/* ===========================================================================
   ArduraCare — unified design system
   Olive · Cream · Terra · Fraunces (display) + General Sans (body)
   "El hogar que merecen."
   =========================================================================== */

:root {
  /* Brand tokens (existing design system) */
  --olive: #7A8338;
  --olive-deep: #5C6429;
  --olive-light: #A5B373;
  --cream: #F7F2E8;
  --sand: #E8DCC4;
  --terra: #C9744B;
  --terra-deep: #B36138;
  --forest: #3D4A2E;
  --charcoal: #2D2A24;
  --gold: #B89F5E;
  --muted: #6B665C;
  --line: #E5E0D0;
  --paper: #FFFFFF;

  --container: 1240px;
  --gutter: 48px;

  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
  --dur-fast: 200ms;
  --dur: 400ms;

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 2px 6px rgba(45, 42, 36, 0.04);
  --shadow: 0 4px 24px rgba(45, 42, 36, 0.06);
  --shadow-lg: 0 18px 48px rgba(45, 42, 36, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'General Sans', -apple-system, system-ui, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle paper grain — atmosphere, not noise */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(122,131,56,0.035), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(201,116,75,0.03), transparent 40%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

::selection { background: var(--olive); color: var(--cream); }

a { color: var(--olive-deep); }

.serif, h1, h2, h3 {
  font-family: 'Fraunces', Cambria, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--olive-deep);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--olive);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--terra);
  display: inline-block;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terra); color: var(--cream);
  padding: 14px 28px; border-radius: var(--radius); font-weight: 600;
  text-decoration: none; cursor: pointer; border: 0;
  font-family: inherit; font-size: 16px; letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  box-shadow: 0 1px 0 rgba(45,42,36,0.04);
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,116,75,0.28); }
.btn-primary .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--olive-deep);
  padding: 12.5px 28px; border-radius: var(--radius);
  border: 1.5px solid var(--olive);
  font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 16px; letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn-secondary:hover { background: rgba(122,131,56,0.08); border-color: var(--olive-deep); }

/* ── Header / nav ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 18px 0;
  background: rgba(247,242,232,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), padding var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); padding: 12px 0; box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lockup img { height: 34px; width: auto; }
.brand-lockup .wordmark {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px;
  color: var(--olive-deep); letter-spacing: -0.01em; line-height: 1;
}
.brand-lockup .wordmark b { font-weight: 600; }
.brand-lockup .wordmark .care { color: var(--olive); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  margin-left: 8px; padding: 8px 14px;
  color: var(--charcoal); text-decoration: none; font-size: 15px; font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--dur-fast) var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--olive-deep); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--olive-deep); font-weight: 600; }
.site-nav a.active::after { transform: scaleX(1); }
.site-nav .nav-cta {
  margin-left: 14px; background: var(--olive-deep); color: var(--cream);
  padding: 9px 18px; font-weight: 600;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--forest); color: var(--cream); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); position: relative; transition: var(--dur-fast); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--charcoal); transition: var(--dur-fast); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal); color: var(--cream);
  padding: 80px 0 40px; margin-top: 0;
}
.site-footer .foot-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.3fr; gap: 56px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(247,242,232,0.12);
}
.site-footer .brand-line {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 30px; color: var(--olive-light); margin-bottom: 14px;
}
.site-footer .meta { font-size: 13.5px; color: rgba(247,242,232,0.62); line-height: 1.75; max-width: 360px; }
.site-footer h4 {
  color: var(--cream); font-family: 'General Sans', sans-serif; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 18px; font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer ul li { font-size: 14px; color: rgba(247,242,232,0.75); padding: 5px 0; }
.site-footer ul li a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.site-footer ul li a:hover { color: var(--olive-light); }
.site-footer .firm-card {
  background: rgba(247,242,232,0.04); border: 1px solid rgba(247,242,232,0.1);
  padding: 22px 24px; border-radius: var(--radius);
}
.site-footer .firm-card .eyebrow { color: var(--gold); }
.site-footer .firm-card .eyebrow::before { background: var(--gold); }
.site-footer .firm-card p { font-size: 13.5px; color: rgba(247,242,232,0.7); line-height: 1.6; margin: 12px 0 14px; }
.site-footer .firm-card a.firm-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold);
  text-decoration: none; font-weight: 600; font-size: 14px;
}
.site-footer .firm-card a.firm-link:hover { color: var(--gold-l, #d4af6a); }
.site-footer .foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 28px; flex-wrap: wrap;
}
.site-footer .foot-bottom .legal { font-size: 12.5px; color: rgba(247,242,232,0.45); max-width: 760px; line-height: 1.6; }

/* ── Team / signature card (Eduardo = option 3, reusable) ─────────────────── */
.team-signatures {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
@media (max-width: 760px) { .team-signatures { grid-template-columns: 1fr; } }
.sig-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; gap: 24px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sig-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sig-card .portrait {
  flex-shrink: 0; width: 104px; height: 104px; border-radius: var(--radius);
  object-fit: cover; object-position: center top;
  border: 1px solid var(--line); background: linear-gradient(135deg, var(--sand), var(--olive));
}
.sig-card .portrait.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-style: italic; font-size: 34px; color: var(--cream);
}
.sig-card .sig-body { min-width: 0; }
.sig-card h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; color: var(--olive-deep); margin-bottom: 4px; line-height: 1.1; }
.sig-card .role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--olive); font-weight: 600; margin-bottom: 14px; }
.sig-card .bio { font-size: 14.5px; line-height: 1.6; color: var(--charcoal); margin-bottom: 16px; }
.sig-card .sig-contact { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.sig-card .sig-contact a, .sig-card .sig-contact span {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px;
  color: var(--muted); text-decoration: none; transition: color var(--dur-fast) var(--ease);
}
.sig-card .sig-contact a:hover { color: var(--terra); }
.sig-card .sig-contact .ico { width: 15px; height: 15px; flex-shrink: 0; color: var(--olive); }

/* ── Scroll-reveal ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn-primary:hover, .sig-card:hover { transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-footer .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  body.nav-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { margin: 0; padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin: 14px 0 0; justify-content: center; border-bottom: 0; }
  .site-footer .foot-top { grid-template-columns: 1fr; gap: 32px; }
}
