/* =========================================================
   TOP ROOF CONSTRUCT — stylesheet principal
   Paletă: Albastru oțel & Cupru cald
   Abordare: mobile-first, componente modulare
   ========================================================= */

:root{
  --bg:#F4F6F8;
  --surface:#FFFFFF;
  --text:#1B3A4B;
  --text-muted:#4A5F6B;
  --accent:#2E6E8E;
  --accent-dark:#1B3A4B;
  --cta:#D97B29;
  --cta-hover:#B9691F;
  --border:#C7D3D9;
  --border-strong:#A9BAC2;
  --radius-sm:4px;
  --radius:8px;
  --radius-lg:14px;
  --shadow:0 8px 24px rgba(27,58,75,0.08);
  --container:1180px;
  --font-sans:'Helvetica Neue', Arial, sans-serif;
  --focus-ring:0 0 0 3px rgba(46,110,142,0.35);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ color:var(--text); line-height:1.25; font-weight:700; margin:0 0 .6em; }
p{ margin:0 0 1em; color:var(--text-muted); }
.container{ max-width:var(--container); margin:0 auto; padding:0 1.25rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible{
  outline:none;
  box-shadow:var(--focus-ring);
  border-radius:var(--radius-sm);
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:1rem; top:-3rem;
  background:var(--accent-dark); color:#fff; padding:.6rem 1rem;
  border-radius:var(--radius-sm); z-index:1000; transition:top .15s ease;
}
.skip-link:focus{ top:1rem; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:200;
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:.9rem 1.25rem;
  max-width:var(--container); margin:0 auto;
}
.logo{ font-weight:700; font-size:1.05rem; color:var(--text); white-space:nowrap; }
.logo strong{ color:var(--accent); }

.nav-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border:1px solid var(--border);
  border-radius:var(--radius-sm); background:var(--surface);
}
.nav-toggle svg{ width:22px; height:22px; }

.header-cta-mobile{ display:none; }

.main-nav{
  position:fixed; inset:0 0 0 auto; width:min(320px,86vw);
  background:var(--surface); box-shadow:var(--shadow);
  transform:translateX(100%); transition:transform .2s ease;
  padding:1.25rem; overflow-y:auto; z-index:250;
}
.main-nav.is-open{ transform:translateX(0); }
.nav-close{
  display:flex; margin-left:auto; width:40px; height:40px;
  align-items:center; justify-content:center; border:1px solid var(--border);
  border-radius:var(--radius-sm); background:var(--surface);
}
.nav-list{ margin-top:1.25rem; display:flex; flex-direction:column; gap:.2rem; }
.nav-list > li > a{
  display:block; padding:.75rem .25rem; font-size:1.02rem; font-weight:500;
  border-bottom:1px solid var(--border);
}
.nav-list a[aria-current="page"]{ color:var(--accent); }

.has-submenu > button.submenu-toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:.75rem .25rem; font-size:1.02rem; font-weight:500; background:none;
  border:none; border-bottom:1px solid var(--border); color:var(--text); font-family:inherit;
}
.submenu-toggle svg{ width:16px; height:16px; transition:transform .15s ease; }
.has-submenu.is-open .submenu-toggle svg{ transform:rotate(180deg); }
.submenu{
  max-height:0; overflow:hidden; transition:max-height .2s ease;
  display:flex; flex-direction:column; padding-left:.75rem;
}
.has-submenu.is-open .submenu{ max-height:600px; }
.submenu a{ display:block; padding:.6rem .25rem; font-size:.95rem; color:var(--text-muted); }
.submenu a:hover, .submenu a:focus-visible{ color:var(--accent); }

.nav-overlay{
  position:fixed; inset:0; background:rgba(27,58,75,.45); z-index:240;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.nav-overlay.is-visible{ opacity:1; pointer-events:auto; }

.nav-cta{
  margin-top:1.25rem; display:block; text-align:center;
}

@media (min-width:960px){
  .nav-toggle, .nav-close, .nav-overlay{ display:none; }
  .header-inner{ padding:1rem 1.25rem; }
  .main-nav{
    position:static; width:auto; transform:none; box-shadow:none;
    background:none; padding:0; overflow:visible; flex:1;
  }
  .nav-list{
    flex-direction:row; align-items:center; justify-content:flex-end; gap:1.6rem;
  }
  .nav-list > li > a{ border:none; padding:.4rem 0; font-size:.95rem; }
  .has-submenu{ position:relative; }
  .has-submenu > button.submenu-toggle{
    width:auto; border:none; padding:.4rem 0; font-size:.95rem; gap:.3rem;
  }
  .submenu{
    position:absolute; top:100%; left:0; max-height:none; height:0;
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); min-width:280px; padding:.4rem 0; opacity:0;
    pointer-events:none; overflow:hidden; transition:opacity .15s ease;
  }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .has-submenu.is-open .submenu{
    height:auto; opacity:1; pointer-events:auto; overflow:visible;
  }
  .submenu a{ padding:.6rem 1rem; white-space:nowrap; }
  .nav-cta{ margin:0 0 0 .5rem; }
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding:.85rem 1.5rem; border-radius:var(--radius-sm); font-weight:600;
  font-size:.95rem; border:1px solid transparent; cursor:pointer; font-family:inherit;
}
.btn-primary{ background:var(--cta); color:#fff; }
.btn-primary:hover, .btn-primary:focus-visible{ background:var(--cta-hover); }
.btn-outline{ border-color:var(--accent); color:var(--text); background:var(--surface); }
.btn-outline:hover, .btn-outline:focus-visible{ background:var(--bg); }
.btn-block{ width:100%; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ padding:.9rem 0; font-size:.85rem; color:var(--text-muted); }
.breadcrumbs ol{ display:flex; flex-wrap:wrap; gap:.35rem; }
.breadcrumbs a{ color:var(--accent); }
.breadcrumbs li:not(:last-child)::after{ content:"/"; margin-left:.35rem; color:var(--border-strong); }

/* ---------- Hero ---------- */
.hero{ padding:2.5rem 0 3rem; }
.hero-eyebrow{
  color:var(--accent); font-size:.8rem; font-weight:700; letter-spacing:1.2px;
  text-transform:uppercase; margin-bottom:.8rem;
}
.hero h1{ font-size:1.9rem; max-width:18ch; }
.hero-sub{ font-size:1.05rem; color:var(--text); font-weight:500; margin-bottom:.6rem; }
.hero-text{ max-width:56ch; margin-bottom:1.6rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.75rem; }
.hero-media{
  margin-top:2rem; border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); background:var(--surface);
}
@media (min-width:960px){
  .hero .container{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
  .hero h1{ font-size:2.6rem; }
  .hero-media{ margin-top:0; }
}

/* ---------- Sections ---------- */
.section{ padding:2.75rem 0; }
.section-alt{ background:var(--surface); }
.section-head{ max-width:60ch; margin-bottom:1.75rem; }
.section-eyebrow{
  color:var(--accent); font-size:.78rem; font-weight:700; letter-spacing:1.2px;
  text-transform:uppercase; margin-bottom:.5rem;
}
.section h2{ font-size:1.5rem; }
@media (min-width:960px){ .section h2{ font-size:1.85rem; } }

.grid{ display:grid; gap:1.1rem; }
.grid-2{ grid-template-columns:1fr; }
.grid-3{ grid-template-columns:1fr; }
.grid-4{ grid-template-columns:1fr; }
@media (min-width:640px){
  .grid-2{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:960px){
  .grid-3{ grid-template-columns:repeat(3,1fr); }
  .grid-4{ grid-template-columns:repeat(4,1fr); }
}

/* ---------- Cards ---------- */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.4rem; height:100%;
}
.card:hover{ border-color:var(--border-strong); }
.card-icon{
  width:42px; height:42px; border-radius:var(--radius-sm); background:var(--bg);
  display:flex; align-items:center; justify-content:center; margin-bottom:.9rem;
  color:var(--accent);
}
.card-icon svg{ width:22px; height:22px; }
.card h3{ font-size:1.05rem; margin-bottom:.4rem; }
.card p{ font-size:.92rem; margin-bottom:.8rem; }
.card-link{ font-size:.88rem; font-weight:600; color:var(--accent); }

.service-card{ display:flex; flex-direction:column; }

/* Value props ("De ce Top Roof Construct") */
.value-card{ text-align:left; }

/* Problem list */
.problem-card{ border-left:3px solid var(--cta); border-radius:0 var(--radius) var(--radius) 0; }

/* ---------- Process steps ---------- */
.process-list{ counter-reset:step; display:grid; gap:1rem; }
@media (min-width:640px){ .process-list{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px){ .process-list{ grid-template-columns:repeat(4,1fr); } }
.process-step{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:1.25rem; position:relative;
}
.process-step .step-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%; background:var(--accent);
  color:#fff; font-weight:700; font-size:.9rem; margin-bottom:.75rem;
}
.process-step h3{ font-size:1rem; margin-bottom:.3rem; }
.process-step p{ font-size:.88rem; margin:0; }

/* ---------- Portfolio ---------- */
.portfolio-card{ overflow:hidden; padding:0; }
.portfolio-media{
  aspect-ratio:4/3; background:var(--bg); display:flex; align-items:center;
  justify-content:center; color:var(--text-muted); font-size:.85rem;
  border-bottom:1px solid var(--border);
}
.portfolio-body{ padding:1.1rem 1.25rem; }
.portfolio-tag{
  display:inline-block; font-size:.75rem; font-weight:700; color:var(--accent);
  background:var(--bg); padding:.25rem .6rem; border-radius:99px; margin-bottom:.5rem;
}

/* ---------- Cost factors ---------- */
.cost-list{ display:grid; gap:.9rem; }
@media (min-width:640px){ .cost-list{ grid-template-columns:repeat(2,1fr); } }
.cost-item{ display:flex; gap:.8rem; align-items:flex-start; }
.cost-item .dot{
  flex:none; width:10px; height:10px; border-radius:50%; background:var(--cta); margin-top:.5rem;
}

/* ---------- FAQ ---------- */
.faq{ display:flex; flex-direction:column; gap:.6rem; max-width:52em; }
.faq details{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:.9rem 1.1rem;
}
.faq summary{
  cursor:pointer; font-weight:600; font-size:.98rem; list-style:none;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary .icon{ flex:none; transition:transform .15s ease; color:var(--accent); }
.faq details[open] summary .icon{ transform:rotate(45deg); }
.faq p{ margin:.75rem 0 0; font-size:.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--accent-dark); border-radius:var(--radius-lg); padding:2.25rem 1.5rem;
  text-align:center; color:#fff;
}
.cta-banner h2{ color:#fff; font-size:1.4rem; }
.cta-banner p{ color:#CFE0E8; max-width:48ch; margin:0 auto 1.4rem; }
.cta-banner .hero-actions{ justify-content:center; }
.cta-banner .btn-outline{ background:transparent; border-color:#fff; color:#fff; }
.cta-banner .btn-outline:hover{ background:rgba(255,255,255,.1); }

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:150;
  display:flex; gap:.5rem; padding:.6rem .75rem;
  background:var(--surface); border-top:1px solid var(--border);
  box-shadow:0 -6px 18px rgba(27,58,75,.08);
}
.sticky-cta a{ flex:1; }
@media (min-width:960px){ .sticky-cta{ display:none; } }

/* ---------- Forms ---------- */
.form-grid{ display:grid; gap:1rem; }
@media (min-width:640px){ .form-grid.cols-2{ grid-template-columns:repeat(2,1fr); } }
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field label{ font-size:.88rem; font-weight:600; }
.field .hint{ font-size:.78rem; color:var(--text-muted); font-weight:400; }
.field input, .field select, .field textarea{
  font-family:inherit; font-size:.95rem; padding:.7rem .8rem;
  border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface);
  color:var(--text); width:100%;
}
.field input:hover, .field select:hover, .field textarea:hover{ border-color:var(--border-strong); }
.field textarea{ resize:vertical; min-height:110px; }
.field-checkbox{ flex-direction:row; align-items:flex-start; gap:.6rem; }
.field-checkbox input{ width:18px; height:18px; margin-top:.15rem; }
.field-checkbox label{ font-weight:400; font-size:.85rem; color:var(--text-muted); }
.form-note{ font-size:.8rem; color:var(--text-muted); margin-top:.75rem; }
.form-success{
  display:none; background:var(--bg); border:1px solid var(--border);
  border-radius:var(--radius); padding:1.25rem; margin-top:1.25rem;
}
.form-success.is-visible{ display:block; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color:#B3261E; }
.field-error{ display:none; color:#B3261E; font-size:.8rem; }
.field.has-error .field-error{ display:block; }

/* ---------- Contact info blocks ---------- */
.contact-block{ display:flex; gap:.9rem; align-items:flex-start; }
.contact-block .card-icon{ margin-bottom:0; }
.contact-block h3{ font-size:.95rem; margin-bottom:.15rem; }
.contact-block p{ margin:0; font-size:.92rem; }

/* ---------- Blog ---------- */
.post-card{ display:flex; flex-direction:column; }
.post-meta{ font-size:.8rem; color:var(--text-muted); margin-bottom:.4rem; }
.article-body h2{ font-size:1.25rem; margin-top:1.8rem; }
.article-body h3{ font-size:1.05rem; margin-top:1.3rem; }
.article-body p, .article-body li{ font-size:.98rem; color:var(--text-muted); }
.article-body ul{ padding-left:1.2rem; list-style:disc; margin-bottom:1em; }
.article-body{ max-width:70ch; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--accent-dark); color:#DCE7EC; margin-top:2rem; padding:3rem 0 6.5rem; }
@media (min-width:960px){ .site-footer{ padding-bottom:3rem; } }
.footer-grid{ display:grid; gap:2rem; }
@media (min-width:720px){ .footer-grid{ grid-template-columns:1.4fr 1fr 1fr; } }
.footer-col h3{ color:#fff; font-size:.95rem; margin-bottom:.9rem; }
.footer-col ul{ display:flex; flex-direction:column; gap:.55rem; }
.footer-col a{ color:#B9CCD6; font-size:.9rem; }
.footer-col a:hover{ color:#fff; }
.footer-logo{ color:#fff; font-weight:700; font-size:1.05rem; margin-bottom:.75rem; display:block; }
.footer-desc{ color:#B9CCD6; font-size:.88rem; max-width:36ch; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15); margin-top:2.5rem; padding-top:1.25rem;
  display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; justify-content:space-between;
  font-size:.8rem; color:#9FB6C1;
}
.footer-legal{ display:flex; flex-wrap:wrap; gap:1rem; }
.footer-legal a{ color:#9FB6C1; }
.footer-legal a:hover{ color:#fff; }

/* ---------- Utilities ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.na{ color:var(--text-muted); font-style:italic; }
