/* =====================================================
   SS CONSTRUCTIONS — Design Tokens & Custom Styles
   Palette: paper white, charcoal, brass-gold, quiet grey
   Type: Fraunces (display, structural serif) / Inter (body/UI)
         JetBrains Mono (data, labels — blueprint feel)
   Signature: architectural blueprint corner-marks + dimension
   lines used as section dividers, echoing engineering drawings.
   ===================================================== */

:root{
  --paper:        #FBFAF8;
  --paper-dim:    #F3F1EC;
  --charcoal:     #1C1F22;
  --charcoal-2:   #2B2F33;
  --ink:          #3A3E41;
  --line:         #DEDAD1;
  --line-strong:  #C8C2B4;
  --gold:         #A9803D;
  --gold-soft:    #C9A46A;
  --gold-tint:    #F3E9D6;
  --white:        #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,.font-display{
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.font-mono{ font-family: var(--font-mono); }

a{ color: inherit; }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px){
  .wrap{ padding-left: 40px; padding-right: 40px; }
}

.section{ padding: 88px 0; }
@media (max-width: 767px){ .section{ padding: 56px 0; } }

.section-tight{ padding: 56px 0; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Blueprint corner marks (signature motif) ---------- */
.blueprint-frame{
  position: relative;
}
.blueprint-frame::before,
.blueprint-frame::after,
.blueprint-frame .bp-tl,
.blueprint-frame .bp-br{
  content:"";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gold);
  opacity: 0.85;
}
.blueprint-frame::before{ top: -1px; left: -1px; border-right: none; border-bottom: none; }
.blueprint-frame::after{ bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Dimension-line divider — echoes a drafting measurement line */
.dim-line{
  display:flex; align-items:center; gap:10px;
  color: var(--line-strong);
}
.dim-line::before, .dim-line::after{
  content:"";
  flex:1;
  height:1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px);
}
.dim-line .dot{ width:4px; height:4px; background: var(--gold); border-radius:50%; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid var(--charcoal);
}
.btn-primary:hover{ background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

.btn-outline{
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline:hover{ background: var(--charcoal); color: var(--white); }

.btn-gold{
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
}
.btn-gold:hover{ background: var(--charcoal); border-color: var(--charcoal); }

.btn-block{ width: 100%; }

/* ---------- Header / Nav ---------- */
#site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,248,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-link{
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 2px;
  position: relative;
}
.nav-link::after{
  content:"";
  position:absolute; left:0; bottom:0;
  height:1px; width:0;
  background: var(--gold);
  transition: width 0.2s ease;
}
.nav-link:hover::after, .nav-link.active::after{ width: 100%; }
.nav-link.active{ color: var(--charcoal); font-weight: 600; }

#mobile-menu{ display:none; }
#mobile-menu.open{ display:block; }

/* ---------- Cards ---------- */
.card{
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow .25s ease;
}
.card:hover{
  border-color: var(--gold-soft);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(28,31,34,0.25);
}

.icon-tile{
  width: 46px; height: 46px;
  display: flex; align-items:center; justify-content:center;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- Stats ---------- */
.stat-num{
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--charcoal);
  font-weight: 600;
}

/* ---------- Fade in on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Process steps ---------- */
.process-step{ position: relative; }
.process-num{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  border: 1px solid var(--gold);
  width: 34px; height: 34px;
  display:flex; align-items:center; justify-content:center;
  background: var(--paper);
}

/* ---------- FAQ accordion ---------- */
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width: 100%;
  text-align: left;
  padding: 22px 4px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--charcoal);
}
.faq-icon{ transition: transform 0.25s ease; flex-shrink:0; color: var(--gold); }
.faq-item.open .faq-icon{ transform: rotate(45deg); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.7;
  padding: 0 4px;
}
.faq-item.open .faq-a{ padding-bottom: 22px; }

/* ---------- Forms ---------- */
.field label{
  display:block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal-2);
}
.field input, .field select, .field textarea{
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.field.has-error input,
.field.has-error textarea{
  border-color: #B3423E;
}
.field-error-msg{
  display: none;
  font-size: 12.5px;
  color: #B3423E;
  margin-top: 6px;
}
.field.has-error .field-error-msg{ display: block; }

.btn[disabled]{
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- WhatsApp float ---------- */
#whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
}
#whatsapp-float:hover{ transform: scale(1.07); }

/* ---------- Misc ---------- */
.tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.tag-gold{ border-color: var(--gold); color: var(--gold); }

.grid-blueprint-bg{
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}

::selection{ background: var(--gold-tint); color: var(--charcoal); }
