/* Creare Site Web MD 2026 - front-end styles.
   Design carried over from the Divi build (captured 2026-08-05), reimplemented
   hand-coded. Visual language is unchanged on purpose; the cleanup applied is
   listed in CLAUDE.md under "Design decisions locked".

   Radius convention: there is NO radius. The old design used square corners
   everywhere and that reads as deliberate, so --radius stays 0. Do not
   introduce rounded corners without Daniel's sign-off.

   TABLE OF CONTENTS
   1  Tokens
   2  Reset + base
   3  Typography roles
   4  Layout: container + section rhythm
   5  Buttons + arrow links
   6  Header + primary nav
   7  Mobile menu
   8  Footer
   9  Utilities
   10 Responsive
*/

/* ---------------------------------------------------------------- 1 TOKENS */
:root{
  /* brand: exactly two colors do all the work */
  --blue:#0054ff;
  --blue-dk:#0043cc;          /* hover, derived; the old design had no hover state */
  --red:#ff454e;              /* logo red, links, active nav */
  --red-dk:#e02b35;           /* AA-compliant variant for text links on white */

  /* ink */
  --ink:#0a0a0a;              /* body copy */
  --ink-strong:#000;          /* headings, nav */
  --muted:#6b6b6b;            /* was rgba(0,0,0,.3) at 2.0:1 - fixed to 5.0:1 */
  --on-dark:#fff;
  --on-dark-soft:rgba(255,255,255,.90); /* 4.86:1 on --blue. Computed, not
     estimated: pure white on #0054ff is only 5.66:1, so the usable range is
     narrow and .78 (my earlier guess at "4.6") actually measured 3.99. The
     minimum alpha for AA here is .851. */

  /* surfaces: the old design had three near-identical greys, unified to one */
  --paper:#fff;
  --paper-2:#f5f6f9;
  --ink-band:#000;            /* black testimonial band */

  /* lines */
  --line:#d9d9d9;
  --line-faint:rgba(0,0,0,.03);

  /* footer */
  --footer-bg:#222;
  --footer-bar:#171717;
  --footer-text:#a1a1a1;      /* was #666 on #171717 at 3.12:1 - fixed to 7.0:1 */

  /* type */
  --sans:'Poppins',system-ui,-apple-system,sans-serif;
  --head:'Montserrat',var(--sans);  /* was Lato: its latin-ext has no Romanian a-breve/s-comma/t-comma */

  /* spacing scale, 4px base. Replaces the 15 ad-hoc padding values Divi used. */
  --s1:8px; --s2:16px; --s3:24px; --s4:40px;
  --s5:60px; --s6:80px; --s7:120px; --s8:160px;

  --radius:0;
  --header-h:66px;
  --header-h-stuck:40px;
}

/* ------------------------------------------------------- 2 RESET + BASE */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-anchor:none;overflow-x:clip}
body{overflow-x:clip}
body{font-family:var(--sans);font-weight:500;color:var(--ink);background:var(--paper);
     font-size:16px;line-height:2;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:var(--red-dk)}
a:hover{color:var(--red)}
img{display:block;max-width:100%;height:auto}
svg.icon{width:1em;height:1em;display:inline-block;vertical-align:-.125em;fill:none;
         stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
:where(h1,h2,h3,h4,h5,h6){font-family:var(--head);color:var(--ink-strong);font-weight:900;line-height:1.5}
a,button,label{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ------------------------------------------------ 3 TYPOGRAPHY ROLES */
/* The old design had 8 near-identical "eyebrow" treatments. Reduced to two. */
.eyebrow{font-family:var(--sans);font-weight:600;font-size:16px;text-transform:uppercase;
         letter-spacing:3px;line-height:1.8;color:var(--blue)}
.eyebrow--sm{font-size:12px;letter-spacing:2px}

.h-hero{font-family:var(--head);font-weight:900;font-size:40px;line-height:1.5}
.h-section{font-family:var(--head);font-weight:900;font-size:35px;line-height:1.4}
.h-card{font-family:var(--head);font-weight:700;font-size:22px;line-height:1.4}
.lede{font-size:16px;line-height:2}
.small{font-size:14px}

/* --------------------------------------- 4 LAYOUT: CONTAINER + RHYTHM */
/* Divi shipped 80% width capped at 1080px with 5.5% gutters. Kept. */
.wrap{width:80%;max-width:1080px;margin:0 auto;position:relative;z-index:1}
.section{padding-block:var(--s6)}
.section--tight{padding-block:var(--s4)}
.section--flush{padding-block:0}
.grid{display:grid;gap:var(--s4)}
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}

/* The offset grey panel was drawn 3 different ways in the old CSS. One way now. */
.panel-offset{position:relative}
/* -50vw overflowed the viewport. left:50% + width:50vw stays inside it. */
.panel-offset::before{content:"";position:absolute;top:0;bottom:0;left:50%;
                      width:50vw;max-width:50vw;background:var(--paper-2);z-index:-1}

/* --------------------------------------------- 5 BUTTONS + ARROW LINKS */
.btn{display:inline-flex;align-items:center;gap:10px;font-family:var(--sans);
     font-weight:600;font-size:14px;text-transform:uppercase;letter-spacing:2px;
     padding:18px 30px;border:2px solid transparent;border-radius:var(--radius);
     background:var(--blue);color:var(--on-dark);line-height:1;
     transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.btn:hover{background:var(--blue-dk);color:var(--on-dark)}
.btn .icon{transition:transform .2s ease}
.btn:hover .icon{transform:translateX(3px)}
.btn:active{transform:scale(.993)}
.btn--ghost{background:transparent;border-color:currentColor;color:var(--on-dark)}
.btn--ghost:hover{background:var(--on-dark);color:var(--blue)}
.btn--light{background:var(--paper);color:var(--blue)}
.btn--light:hover{background:var(--paper-2);color:var(--blue-dk)}
.btn--text{background:none;padding:0;border:0;color:var(--red-dk);font-size:11px}
.btn--text:hover{background:none;color:var(--red)}

/* ------------------------------------------- 6 HEADER + PRIMARY NAV */
.site-header{position:sticky;top:0;z-index:99;width:100%;background:var(--paper);
             box-shadow:0 1px 0 rgba(0,0,0,.1);
             transition:box-shadow .26s ease}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);
                   height:var(--header-h);transition:height .26s ease}
.site-header.is-stuck{box-shadow:0 0 7px rgba(0,0,0,.1)}
.site-header.is-stuck .wrap{height:var(--header-h-stuck)}
.logo{flex:0 0 auto;display:block}
.logo img{height:36px;width:auto;transition:height .26s ease}
.site-header.is-stuck .logo img{height:22px}
body.admin-bar .site-header{top:32px}

.nav{display:flex;align-items:center;gap:18px;flex:0 1 auto;min-width:0}
.nav a{font-family:var(--sans);font-weight:600;font-size:14px;color:var(--ink-strong);
       line-height:23px;white-space:nowrap;transition:opacity .4s ease,color .18s ease}
.nav a:hover{opacity:.7;color:var(--ink-strong)}
.nav a.is-active{color:var(--red);opacity:1}
.nav a.cta{background:var(--blue);color:var(--on-dark);padding:11px 20px;
           text-transform:uppercase;letter-spacing:2px;line-height:1}
.nav a.cta:hover{background:var(--blue-dk);color:var(--on-dark);opacity:1}
/* Phone in the header: the old site had no way to call from any page but /contact/. */
.nav .tel{display:inline-flex;align-items:center;gap:8px;color:var(--ink-strong)}

.burger{display:none;position:relative;width:28px;height:20px;background:none;border:0;
        cursor:pointer;padding:0}
.burger span{position:absolute;left:0;width:28px;height:2.5px;background:var(--blue);
             border-radius:2px;transition:.22s ease}
.burger span:nth-child(1){top:1px}
.burger span:nth-child(2){top:9px}
.burger span:nth-child(3){top:17px}
.burger[aria-expanded="true"] span:nth-child(1){top:9px;transform:rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){top:9px;transform:rotate(-45deg)}

/* ------------------------------------------------------ 7 MOBILE MENU */
.mobile-menu{position:absolute;left:0;top:100%;width:100%;padding:5%;
             background:var(--paper);border-top:3px solid var(--blue);
             box-shadow:0 2px 5px rgba(0,0,0,.1);display:none}
.mobile-menu.is-open{display:block}
.mobile-menu a{display:block;padding:10px 5%;font-size:14px;font-weight:600;
               color:var(--ink-strong);border-bottom:1px solid var(--line-faint)}
.mobile-menu a:hover{background:rgba(0,0,0,.03);opacity:.7}
.mobile-menu a.is-active{color:var(--red)}

/* ----------------------------------------------------------- 8 FOOTER */
/* The old site shipped Divi's default "Creat de Elegant Themes" credit and
   nothing else: no company name, no contact details, no legal links. */
.site-footer{background:var(--footer-bg);color:var(--footer-text);font-size:14px}
.site-footer a{color:var(--footer-text)}
.site-footer a:hover{color:var(--on-dark)}
.site-footer .footer-h{font-family:var(--sans);font-weight:600;font-size:14px;
                text-transform:uppercase;letter-spacing:2px;color:var(--on-dark);
                margin-bottom:var(--s2)}
.footer-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:var(--s4);
             padding-block:var(--s5)}
.footer-bar{background:var(--footer-bar);padding-block:var(--s3)}
.footer-bar .wrap{display:flex;flex-wrap:wrap;gap:var(--s2);
                  align-items:center;justify-content:space-between}
.footer-credit a{font-weight:700;color:var(--on-dark)}

/* ------------------------------------------------------- 8a HERO + CARDS */
/* The Divi hero used a CSS background on a parallax span, which cannot be
   preloaded or given fetchpriority, and was the reason mobile LCP sat at 6.6s.
   A real <img> with srcset fixes that without changing how the hero looks. */
.hero{padding-block:var(--s7) var(--s6);overflow:hidden}
.hero__grid{display:grid;grid-template-columns:1fr 1.1fr;gap:var(--s5);align-items:center}
.hero__copy{max-width:56ch}
.hero__actions{display:flex;flex-wrap:wrap;gap:var(--s2)}
.hero__media img{width:100%;height:auto}

.proj-card img{width:100%;height:auto;margin-bottom:var(--s2)}
.proj-card h3{transition:color .18s ease}
.proj-card a:hover h3{color:var(--blue)}

.svc-card{display:flex;flex-direction:column;gap:var(--s1);align-items:flex-start;
          padding:var(--s3);background:var(--paper);border:1px solid var(--line)}
.svc-card .btn--text{margin-top:auto;padding-top:var(--s1)}

/* ------------------------------------------------ 8b PRICING COMPONENTS */
.price-card{position:relative;display:flex;flex-direction:column;gap:var(--s2);
            align-items:flex-start;padding:var(--s4) var(--s3);
            background:var(--paper);border:1px solid var(--line)}
.price-card.is-featured{border-color:var(--blue);border-width:2px}
.price-card__flag{position:absolute;top:0;left:0;transform:translateY(-50%);
                  margin-left:var(--s3);background:var(--blue);color:var(--on-dark);
                  font-size:11px;font-weight:600;text-transform:uppercase;
                  letter-spacing:2px;padding:6px 12px;line-height:1}
.price-card__amount{font-family:var(--head);font-weight:900;font-size:22px;
                    line-height:1.3;color:var(--ink-strong)}
.price-card__meta{color:var(--muted)}
.price-card .btn{margin-top:auto}
.panel-offset .price-card{background:var(--paper)}

.checklist{list-style:none}
.checklist li{display:flex;gap:var(--s1);align-items:flex-start;line-height:1.7}
.checklist .icon{color:var(--blue);margin-top:.45em;stroke-width:3}

/* Wide tables must scroll inside their own box, never the page body. */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.ptable{width:100%;border-collapse:collapse;min-width:520px;text-align:left}
.ptable th,.ptable td{padding:var(--s2);border-bottom:1px solid var(--line);
                      vertical-align:top}
.ptable thead th{font-family:var(--sans);font-size:12px;font-weight:600;
                 text-transform:uppercase;letter-spacing:2px;color:var(--muted)}
.ptable tbody th{font-weight:600;font-family:var(--sans)}
.ptable__price{white-space:nowrap;font-weight:600}

/* ------------------------------------------------- 8c FORMS + MESSENGERS */
.contact-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:var(--s5);align-items:start}

.lead-form input[type=text],.lead-form input[type=tel],.lead-form input[type=email],
.lead-form textarea{
  width:100%;padding:16px;font:inherit;font-size:15px;
  /* Old site used #999 at 2.85:1. This is 7.0:1. */
  color:#5a5a5a;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--radius)}
.lead-form ::placeholder{color:#767676;opacity:1}
.lead-form input:focus,.lead-form textarea:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.lead-form p{margin-bottom:var(--s2)}
.lead-form input[type=submit]{
  display:inline-flex;width:auto;cursor:pointer;
  font-family:var(--sans);font-weight:600;font-size:14px;text-transform:uppercase;
  letter-spacing:2px;padding:18px 30px;border:0;border-radius:var(--radius);
  background:var(--blue);color:var(--on-dark);transition:background-color .18s ease}
.lead-form input[type=submit]:hover{background:var(--blue-dk)}
.wpcf7-not-valid-tip{color:var(--red-dk);font-size:13px}
.wpcf7-response-output{border:1px solid var(--line)!important;padding:var(--s2)!important;
                       margin:var(--s2) 0 0!important;font-size:14px}

.msgr{display:flex;flex-direction:column;gap:var(--s1);align-items:stretch}
.msgr__btn{display:inline-flex;align-items:center;gap:10px;padding:14px 18px;
           font-weight:600;font-size:15px;color:var(--on-dark);
           border-radius:var(--radius);transition:filter .18s ease}
.msgr__btn:hover{filter:brightness(.92);color:var(--on-dark)}
.msgr__btn .icon{width:1.15em;height:1.15em}
.msgr__btn--call{background:var(--blue)}
/* Messenger brand colors fail WCAG with white text: WhatsApp #25d366 is
   1.98:1, Viber #7360f2 is 4.48:1, Telegram #29a9eb is 2.64:1. These are each
   the brand's own darker shade (or near it), chosen to stay recognisable while
   clearing 4.5:1. Contrast values computed, not eyeballed. */
.msgr__btn--wa{background:#0f7a6c}   /* 5.22:1 */
.msgr__btn--vb{background:#665cac}   /* 5.69:1, Viber's own dark purple */
.msgr__btn--tg{background:#17709f}   /* Telegram blue darkened to pass */

.prose>*+*{margin-top:var(--s2)}
.service-price{font-family:var(--head);font-weight:900;font-size:22px;color:var(--on-dark)}

/* ------------------------------------------------------- 8c2 PORTFOLIO */
.proj-grid .proj-card{display:flex;flex-direction:column;gap:var(--s1);align-items:flex-start}
.proj-card__media{width:100%;aspect-ratio:3/2;overflow:hidden;background:var(--paper-2);
                  border:1px solid var(--line);margin-bottom:var(--s1)}
.proj-card__media img{width:100%;height:100%;object-fit:cover;object-position:top center;
                      transition:transform .35s ease}
.proj-card a:hover .proj-card__media img{transform:scale(1.03)}
.proj-card .btn--text{margin-top:auto;padding-top:var(--s1)}

.case-hero{border:1px solid var(--line)}
.case-hero img{width:100%;height:auto}
.case-body{display:grid;grid-template-columns:1.7fr 1fr;gap:var(--s5);align-items:start}
.case-aside{position:sticky;top:calc(var(--header-h) + var(--s2));
            background:var(--paper-2);padding:var(--s3);border:1px solid var(--line)}

/* --------------------------------------------------------------- 8c3 FAQ */
.faq__item{border-bottom:1px solid var(--line)}
.faq__q{font-family:var(--sans);font-weight:600;font-size:16px;padding:var(--s2) 0;
        cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:var(--s2)}
.faq__q::-webkit-details-marker{display:none}
.faq__q::after{content:"+";color:var(--blue);font-weight:600;flex:none}
.faq__item[open] .faq__q::after{content:"\2212"}
.faq__q:hover{color:var(--blue)}
.faq__a{padding:0 0 var(--s2);color:var(--ink);line-height:1.9;max-width:76ch}

/* ---------------------------------------------------------- 8d CALCULATOR */
.calc{display:grid;grid-template-columns:1.4fr 1fr;gap:var(--s4);margin-top:var(--s4);
      align-items:start}
.calc__group{border:0;padding:0}
.calc__legend{font-family:var(--sans);font-weight:600;font-size:12px;text-transform:uppercase;
              letter-spacing:2px;color:var(--muted);margin-bottom:var(--s1);padding:0}
.calc__row{display:flex;align-items:center;gap:var(--s2);padding:12px var(--s2);
           background:var(--paper);border:1px solid var(--line);margin-bottom:6px;cursor:pointer}
.calc__row:hover{border-color:var(--blue)}
.calc__row>span:first-of-type{flex:1 1 auto;min-width:0}
.calc__price{color:var(--muted);font-size:14px;white-space:nowrap}
.calc__num{width:64px;padding:6px 8px;font:inherit;font-size:15px;
           border:1px solid var(--line);text-align:center}
.calc__result{position:sticky;top:calc(var(--header-h) + var(--s2));
              background:var(--paper);border:2px solid var(--blue);padding:var(--s3)}
.calc__total{font-family:var(--head);font-weight:900;font-size:30px;line-height:1.2;
             color:var(--ink-strong)}
.calc__total--eur{font-size:18px;color:var(--muted)}
.calc__meta{margin-top:var(--s1)}
.calc__list{list-style:none;margin:var(--s2) 0;padding-top:var(--s2);
            border-top:1px solid var(--line);color:var(--muted);line-height:1.6}
.calc__result .btn{margin-top:var(--s2);width:100%;justify-content:center}

/* -------------------------------------------------------- 9 UTILITIES */
/* Flex column rather than margins: the children are often inline <a> elements
   (footer link lists), and margin-top does nothing to those, so they ran
   together on one line. */
.stack{display:flex;flex-direction:column;gap:var(--s2)}
.stack--tight{gap:var(--s1)}
.center{text-align:center}
.on-blue{background:var(--blue);color:var(--on-dark)}
.on-blue :where(h1,h2,h3,h4){color:var(--on-dark)}
.on-blue .lede{color:var(--on-dark-soft)}
.on-ink{background:var(--ink-band);color:var(--on-dark)}
.on-ink :where(h1,h2,h3,h4){color:var(--on-dark)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;
                 clip:rect(0 0 0 0);white-space:nowrap}

/* ------------------------------------------------------ 10 RESPONSIVE */
/* Divi's breakpoints were 980 and 767. Kept so the design breaks where it did. */
/* Seven nav items plus a phone number and a CTA outgrow the 1080px container
   well before the 980px breakpoint. The logo was shrinking and the nav was
   overlapping it. Drop the phone text first; it stays in the mobile menu,
   the footer and on the contact page. */
@media(max-width:1180px){
  .nav .tel span,.nav .tel{display:none}
}
@media(max-width:980px){
  .nav{display:none}
  .burger{display:block}
  .hero{padding-block:var(--s5)}
  .hero__grid{grid-template-columns:1fr;gap:var(--s4)}
  .contact-grid{grid-template-columns:1fr;gap:var(--s4)}
  .calc{grid-template-columns:1fr}
  .case-body{grid-template-columns:1fr;gap:var(--s4)}
  .case-aside{position:static}
  .calc__result{position:static}
  .grid--3,.grid--4{grid-template-columns:repeat(2,1fr)}
  .footer-cols{grid-template-columns:repeat(2,1fr)}
  .section{padding-block:var(--s5)}
  /* The old CSS dropped the sticky header below 980px and then re-pinned it with
     JS, so phones got an unreliably sticky bar. Sticky everywhere now. */
}
@media(max-width:767px){
  .wrap{width:90%}
  /* Uppercase + 2px letter-spacing makes Romanian CTA labels long enough to
     wrap, which stranded the arrow at the far edge of an auto-width button.
     Full-width centered buttons read as deliberate instead. */
  .hero__actions{flex-direction:column;align-items:stretch}
  .hero__actions .btn{width:100%;justify-content:center}
  .h-hero{font-size:25px}
  .h-section{font-size:25px}
  .grid--2,.grid--3,.grid--4{grid-template-columns:1fr}
  .footer-cols{grid-template-columns:1fr;gap:var(--s3)}
  .section{padding-block:var(--s4)}
  .panel-offset::before{left:0;width:100%;max-width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  html{scroll-behavior:auto}
}
