/* ==========================================================================
   CONFAZ — Design tokens
   Mahogany + muted gold + cream, grounded in wood-grain / tree-ring identity
   ========================================================================== */
:root {
  --mahogany-deep: #2E1B12;
  --mahogany: #482C1F;
  --mahogany-soft: #6B4530;
  --gold: #C9962F;
  --gold-bright: #F8BD47;
  --cream: #F5EFE2;
  --cream-2: #EFE6D2;
  --ink: #2A2320;
  --stone: #8A7F6E;
  --stone-light: #D9D0BF;
  --white: #FFFFFF;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow-soft: 0 12px 40px rgba(46, 27, 18, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--mahogany-deep);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--mahogany);
  color: var(--white);
}
.btn-primary:hover { background: var(--mahogany-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost {
  background: transparent;
  color: var(--mahogany);
  border-color: var(--mahogany-soft);
}
.btn-ghost:hover { background: var(--mahogany); color: var(--white); }
.btn-whatsapp {
  background: var(--gold);
  color: var(--mahogany-deep);
}
.btn-whatsapp:hover { background: var(--gold-bright); transform: translateY(-2px); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 226, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text > span:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--mahogany-deep); letter-spacing: 0.02em; }
.nav-logo-tagline { font-family: var(--font-display); font-style: italic; font-size: 0.72rem; color: var(--stone); font-weight: 400; margin-top: -1px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mahogany);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--mahogany-deep); font-weight: 700; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-inner { padding: 14px 20px; }
  .nav-logo img { height: 32px; }
  .nav-logo-text > span:first-child { font-size: 1.05rem; }
  .nav-logo-tagline { font-size: 0.62rem; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; padding: 24px 32px; gap: 18px; border-bottom: 1px solid var(--stone-light); transform: translateY(-130%); transition: transform 0.3s ease; z-index: 99; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 6px; order: 3; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--mahogany-deep); margin: 5px 0; transition: 0.25s ease; }
  .nav-cta { order: 2; gap: 8px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .nav-social { display: none; }
  .nav-cta .btn-whatsapp { padding: 10px 16px; font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .nav-logo-text { display: none; }
}

/* ==========================================================================
   Hero + ring motif (signature element)
   ========================================================================== */
.hero {
  background: var(--mahogany-deep);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 640px;
  padding: 80px 32px;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 620px;
}
.hero p.lead {
  color: var(--stone-light);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.ring-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-wrap img { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.35)); }
.ring-svg { width: 100%; max-width: 460px; height: auto; }
.ring-svg circle {
  fill: none;
  stroke: var(--gold);
  opacity: 0.55;
}
.ring-svg .ring-house { fill: var(--gold-bright); opacity: 0.9; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 48px 24px 36px; }
  .ring-wrap { order: -1; max-width: 190px; margin: 0 auto 8px; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  background: var(--cream-2);
  border-bottom: 1px solid var(--stone-light);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 32px;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--mahogany);
}
.stat span { font-size: 0.85rem; color: var(--stone); }
@media (max-width: 700px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Generic section spacing / headers
   ========================================================================== */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-header { max-width: 640px; margin-bottom: 56px; }
.section-header .eyebrow { color: var(--gold); }
.section-header.on-dark .eyebrow { color: var(--gold-bright); }
.section-header p { color: var(--stone); font-size: 1.05rem; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--mahogany-deep); color: var(--stone-light); }
.section-dark h2, .section-dark h3 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover img { transform: scale(1.06); }
.service-card .body { padding: 26px 26px 30px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--stone); font-size: 0.95rem; margin-bottom: 0; }
.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Process timeline (real sequence — numbering is meaningful here)
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 30px 22px 0;
  border-top: 3px solid var(--stone-light);
}
.process-step.is-active-path { border-top-color: var(--gold); }
.process-step .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--stone); }
@media (max-width: 980px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.team-card { text-align: left; }
.team-card .photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card span { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Clients strip
   ========================================================================== */
.clients-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: center;
}
.clients-marquee span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--stone);
  opacity: 0.9;
}
.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  max-width: 780px;
}
.clients-col { display: flex; flex-direction: column; }
.clients-col span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mahogany);
  padding: 16px 0;
  border-bottom: 1px solid var(--stone-light);
}
.clients-col span:first-child { padding-top: 0; }
@media (max-width: 620px) {
  .clients-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--mahogany);
  color: var(--white);
  text-align: center;
  padding: 80px 32px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--stone-light); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--mahogany-deep);
  color: var(--stone-light);
  padding: 56px 32px 28px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-inner h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-inner a, .footer-inner p { color: var(--stone-light); font-size: 0.92rem; }
.footer-inner ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo img { height: 40px; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--gold-bright) !important; font-size: 1rem; margin-bottom: 14px; }
.footer-social { margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--stone-light); font-size: 0.92rem; font-weight: 600; transition: color 0.2s ease; }
.footer-social a:hover { color: var(--gold-bright); }
.nav-social { display: inline-flex; align-items: center; justify-content: center; color: var(--mahogany); padding: 6px; border-radius: 50%; transition: color 0.2s ease, background 0.2s ease; }
.nav-social:hover { color: var(--gold); background: var(--cream-2); }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(245, 239, 226, 0.14);
  font-size: 0.8rem;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Page hero (inner pages, non-home)
   ========================================================================== */
.page-hero {
  background: var(--mahogany-deep);
  color: var(--cream);
  padding: 70px 32px 60px;
}
.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); max-width: 700px; }
.page-hero p { color: var(--stone-light); max-width: 560px; font-size: 1.05rem; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.contact-info-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-info-card p { color: var(--stone); margin-bottom: 4px; }
.contact-info-card a.value { color: var(--mahogany); font-weight: 600; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--mahogany); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--stone); }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Service detail rows (services page, alternating) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--stone-light);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) .img-col { order: 2; }
.service-detail .img-col { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.service-detail .img-col img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.service-detail h3 { font-size: 1.8rem; }
.service-detail .modes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mode-pill {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mahogany);
  border: 1px solid var(--mahogany-soft);
  border-radius: 30px;
  padding: 7px 16px;
}
@media (max-width: 880px) {
  .service-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-detail:nth-child(even) .img-col { order: 0; }
}
