/* CelinaEnamorado.com — main stylesheet */

:root {
  --navy: #10243a;
  --navy-2: #193650;
  --gold: #c6a56b;
  --ink: #202b36;
  --muted: #637080;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e7e5df;
  --soft: #f2f0eb;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: .83rem;
  letter-spacing: .04em;
}
.topbar .wrap { display:flex; justify-content:space-between; gap:18px; padding: 10px 0; }
.topbar a { text-decoration:none; opacity:.9; }

/* Header / navigation */
header {
  position: sticky; top:0; z-index:10;
  background: rgba(251,250,247,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16,36,58,.08);
}
.nav { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:82px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size:1.25rem; font-weight:700; color:var(--navy); text-decoration:none; letter-spacing:.01em; }
.brand span { display:block; font: .67rem Inter, "Segoe UI", Arial, sans-serif; color:var(--muted); font-weight:500; letter-spacing:.15em; text-transform:uppercase; margin-top:2px; }
.navlinks { display:flex; align-items:center; gap:25px; font-size:.91rem; }
.navlinks a { text-decoration:none; color:#364454; }
.navlinks a:hover { color:#9b783e; }
.navlinks a.active { color:#9b783e; font-weight:600; }

/* Mobile menu toggle (visible only on small screens) */
.menu-toggle { display:none; align-items:center; justify-content:center; width:42px; height:42px; padding:0; background:transparent; border:1px solid rgba(16,36,58,.2); border-radius:3px; cursor:pointer; }
.menu-toggle span { display:block; width:18px; height:2px; margin:2.5px auto; background:var(--navy); transition:transform .2s ease, opacity .2s ease; }

/* Buttons */
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 19px; border-radius:3px; font-weight:650; font-size:.91rem; text-decoration:none; transition:transform .18s, background .18s; }
.button:hover { transform:translateY(-1px); }
.button.primary { background:var(--navy); color:white; border:1px solid var(--navy); }
.button.primary:hover { background:var(--navy-2); }
.button.secondary { border:1px solid rgba(16,36,58,.25); color:var(--navy); background:transparent; }
.button.secondary:hover { background:white; }

/* Hero */
.hero { padding:76px 0 82px; overflow:hidden; }
.hero-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:70px; align-items:center; }
.eyebrow { display:flex; align-items:center; gap:12px; color:#987543; text-transform:uppercase; letter-spacing:.18em; font-size:.75rem; font-weight:750; }
.eyebrow:before { content:""; width:34px; height:1px; background:var(--gold); }
h1,h2,h3 { color:var(--navy); line-height:1.14; }
h1 { font-family:Georgia, "Times New Roman", serif; font-size:clamp(2.65rem, 5.2vw, 4.65rem); letter-spacing:-.045em; font-weight:500; margin:20px 0 18px; }
.hero h1 em { color:#9d7a45; font-style:normal; }
.hero-subtitle { font-size:1.13rem; color:#445363; max-width:650px; margin:0 0 26px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:30px 0 27px; }
.specialties { color:var(--muted); font-size:.89rem; letter-spacing:.01em; }
.portrait-wrap { position:relative; max-width:400px; justify-self:end; width:100%; }
.portrait-wrap:before { content:""; position:absolute; width:80%; height:86%; right:-20px; top:-20px; border:1px solid var(--gold); }
.portrait-wrap:after { content:""; position:absolute; width:60%; height:35%; left:-23px; bottom:-24px; background:#e9e4d9; z-index:0; }
.portrait { position:relative; z-index:1; display:block; width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center 32%; filter:saturate(.88); }
.portrait-caption { position:relative; z-index:2; margin-top:14px; text-align:right; color:var(--muted); font-size:.79rem; letter-spacing:.08em; text-transform:uppercase; }

/* Metrics band */
.metrics { background:var(--navy); color:white; }
.metrics-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.metric { padding:29px 25px; border-right:1px solid rgba(255,255,255,.15); }
.metric:last-child { border-right:0; }
.metric strong { display:block; color:#e0c28c; font-family:Georgia,serif; font-size:2.2rem; font-weight:500; line-height:1.1; margin-bottom:8px; }
.metric span { display:block; font-size:.86rem; color:#e4eaf0; line-height:1.45; }

/* Sections */
section { padding:88px 0; }
.section-head { max-width:720px; margin-bottom:42px; }
.section-head h2 { font-family:Georgia,serif; font-weight:500; letter-spacing:-.03em; font-size:clamp(2rem,3.4vw,3rem); margin:13px 0 15px; }
.section-head p { color:var(--muted); font-size:1.04rem; margin:0; }

/* Impact */
.impact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.impact-card { padding:28px; background:white; border:1px solid var(--line); min-height:245px; }
.impact-number { font-family:Georgia,serif; color:#a17c43; font-size:2.15rem; line-height:1.1; margin-bottom:18px; }
.impact-card h3 { font-size:1.12rem; margin:0 0 12px; }
.impact-card p { color:var(--muted); font-size:.94rem; margin:0; }

/* Approach */
.approach { background:var(--soft); }
.approach-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:75px; align-items:start; }
.approach h2 { font-family:Georgia,serif; font-size:clamp(2rem,3.3vw,2.8rem); font-weight:500; letter-spacing:-.03em; margin:14px 0; }
.approach-intro { color:var(--muted); }
.steps { border-top:1px solid #d8d4cb; }
.step { display:grid; grid-template-columns:54px 1fr; gap:18px; padding:22px 0; border-bottom:1px solid #d8d4cb; }
.step-num { color:#9d7a45; font-family:Georgia,serif; font-size:1.3rem; }
.step h3 { margin:0 0 5px; font-size:1.04rem; }
.step p { margin:0; color:var(--muted); font-size:.93rem; }

/* Experience */
.experience-grid { display:grid; grid-template-columns:.7fr 1.3fr; gap:65px; }
.experience-grid h2 { font-family:Georgia,serif; font-size:clamp(2rem,3.3vw,2.8rem); font-weight:500; letter-spacing:-.03em; margin:14px 0; }
.experience-grid .intro { color:var(--muted); }
.timeline { border-left:1px solid #d7d3cb; padding-left:26px; }
.role { position:relative; padding:0 0 29px; }
.role:before { content:""; position:absolute; width:9px; height:9px; border-radius:50%; background:var(--gold); left:-31px; top:7px; box-shadow:0 0 0 4px var(--paper); }
.role h3 { margin:0 0 5px; font-size:1.07rem; }
.role .date { color:#9b783e; font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; font-weight:700; }
.role p { color:var(--muted); font-size:.92rem; margin:7px 0 0; }

/* Expertise */
.expertise { background:white; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.expertise-list { display:flex; flex-wrap:wrap; gap:10px; }
.expertise-list span { padding:10px 14px; border:1px solid var(--line); background:var(--paper); color:#364454; font-size:.89rem; }

/* Contact */
.contact { background:var(--navy); color:white; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.contact .eyebrow { color:#e0c28c; }
.contact h2 { color:white; font-family:Georgia,serif; font-size:clamp(2.1rem,4vw,3.4rem); font-weight:500; letter-spacing:-.03em; margin:15px 0; }
.contact p { max-width:670px; color:#dce4ec; }
.contact .button.primary { background:#e0c28c; border-color:#e0c28c; color:var(--navy); }

/* Contact form (Web3Forms — js/main.js submits it without a page reload;
   without JS it posts natively and redirects to thank-you.html) */
.contact-form { background:var(--white); color:var(--ink); border-radius:4px; padding:30px 28px; box-shadow:0 24px 60px rgba(4,12,22,.35); display:grid; gap:16px; }
.contact-form .field { display:grid; gap:7px; }
.contact-form label { font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--navy); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea { width:100%; font:inherit; font-size:.95rem; color:var(--navy); padding:11px 12px; border:1px solid var(--line); border-radius:3px; background:var(--paper); }
.contact-form textarea { resize:vertical; min-height:120px; }
.contact-form ::placeholder { color:#9aa5b1; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline:2px solid #9b783e; outline-offset:0; border-color:var(--navy-2); }
.contact-form .button { width:100%; }
.form-status { min-height:1.4em; margin:0; font-size:.88rem; color:var(--muted); }
.form-status.success { color:#1e7a46; }
.form-status.error { color:#b3372f; }
.form-botcheck { display:none; }

/* Footer */
footer { padding:25px 0; background:#0b1b2b; color:#c4ced8; font-size:.8rem; }
footer .wrap { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
footer a { text-decoration:none; }

.note { font-size:.78rem; color:var(--muted); margin-top:20px; }

/* 404 page */
.notfound { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:16px; padding:80px 22px; background:var(--paper); }
.notfound h1 { font-family:Georgia,serif; font-size:clamp(3rem,7vw,5rem); margin:0; color:var(--navy); letter-spacing:-.04em; }
.notfound p { color:var(--muted); max-width:460px; margin:0 0 10px; }

/* Scroll reveal (progressive enhancement — .reveal is added by js/main.js) */
.reveal { opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity:1; transform:none; }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible { outline:2px solid #9b783e; outline-offset:3px; border-radius:2px; }

@media (max-width: 850px) {
  .menu-toggle { display:inline-flex; flex-direction:column; }
  .navlinks {
    position:absolute; top:100%; left:0; right:0; z-index:9;
    display:none; flex-direction:column; align-items:stretch; gap:2px;
    background:var(--paper); border-bottom:1px solid var(--line);
    box-shadow:0 14px 28px rgba(16,36,58,.1); padding:10px 22px 18px;
  }
  header.nav-open .navlinks { display:flex; }
  .navlinks a:not(.button) { padding:11px 4px; border-bottom:1px solid var(--line); font-size:.95rem; }
  .navlinks .button { margin-top:12px; width:100%; }
  header.nav-open .menu-toggle span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  header.nav-open .menu-toggle span:nth-child(2) { opacity:0; }
  header.nav-open .menu-toggle span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

  .hero { padding:55px 0 62px; }
  .hero-grid,.approach-grid,.experience-grid { grid-template-columns:1fr; gap:45px; }
  .portrait-wrap { justify-self:start; max-width:330px; margin:0 auto; }
  .metrics-grid { grid-template-columns:repeat(2,1fr); }
  .metric:nth-child(2) { border-right:0; }
  .metric:nth-child(-n+2) { border-bottom:1px solid rgba(255,255,255,.15); }
  .impact-grid { grid-template-columns:1fr; }
  .impact-card { min-height:0; }
  section { padding:65px 0; }
  .contact-grid { grid-template-columns:1fr; }
}

@media (max-width: 480px) {
  .wrap { width:min(var(--max), calc(100% - 30px)); }
  .topbar .wrap { flex-direction:column; gap:2px; }
  .nav { min-height:70px; }
  .brand { font-size:1.08rem; }
  .nav .button { padding:10px 12px; font-size:.82rem; }
  .metrics-grid { grid-template-columns:1fr 1fr; }
  .metric { padding:22px 14px; }
  .metric strong { font-size:1.8rem; }
  .hero-actions .button { width:100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal { opacity:1 !important; transform:none !important; transition:none; }
  .button, .menu-toggle span { transition:none; }
}
