/* =========================================================
   ALONSO & RAMOS, S.C. — Design System
   Tokens: navy / gold / cream · serif display + humanist sans
   ========================================================= */

:root{
  --navy: #1A2744;
  --navy-deep: #10192D;
  --gold: #C9A84C;
  --gold-deep: #A68236;
  --gold-soft: #E4D6AE;
  --cream: #FAF8F2;
  --cream-deep: #F1EBDC;
  --ink: #262A33;
  --muted: #5F6470;
  --white: #FFFFFF;
  --line: #E3DCC9;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4{ font-family: var(--serif); color: var(--navy); font-weight: 600; margin: 0; }
p{ margin: 0; }

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

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

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before{
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-deep);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-primary:hover{ background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline{
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover{ background: var(--navy); color: var(--cream); }
.btn-gold{
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover{ background: var(--gold-deep); border-color: var(--gold-deep); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand svg{ width: 40px; height: auto; flex-shrink: 0; }
.brand-text{
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--navy);
  line-height: 1.2;
}
.brand-text span{
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a{
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-deep);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ width: 100%; }
.nav-links a.active{ color: var(--gold-deep); }
.nav-cta{ display: flex; align-items: center; gap: 16px; }
.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span{ display: block; width: 100%; height: 2px; background: var(--navy); }

@media (max-width: 880px){
  .nav-links{
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a{ padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta .btn-outline{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1{
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.15;
  margin: 18px 0 22px;
}
.hero .tagline{
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 19px;
  margin-bottom: 22px;
  display: block;
}
.hero p.lede{
  font-size: 17px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }
.hero-emblem{
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-emblem svg{
  width: 100%;
  max-width: 420px;
  height: auto;
  transform-origin: 250px 50px;
  animation: sway 7s ease-in-out infinite;
}
@keyframes sway{
  0%, 100%{ transform: rotate(-1.4deg); }
  50%{ transform: rotate(1.4deg); }
}

@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-emblem{ order: -1; margin-bottom: 12px; }
  .hero-emblem svg{ max-width: 260px; }
}

/* ---------- Sections ---------- */
.section{ padding: 96px 0; }
.section-cream{ background: var(--cream); }
.section-white{ background: var(--white); }
.section-navy{ background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3{ color: var(--white); }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); margin-top: 14px; }
.section-head p{ color: var(--muted); margin-top: 16px; font-size: 16px; }
.section-navy .section-head p{ color: rgba(250,248,242,0.75); }

hr.rule{
  border: none;
  border-top: 1px solid var(--gold);
  width: 64px;
  margin: 0;
}

/* ---------- Cards: Mission/Vision ---------- */
.mv-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.mv-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 44px 40px;
  border-radius: var(--radius);
}
.mv-card .icon{
  width: 46px; height: 46px;
  margin-bottom: 22px;
  color: var(--gold-deep);
}
.mv-card h3{ font-size: 22px; margin-bottom: 16px; }
.mv-card p{ color: var(--muted); font-size: 15.5px; }

@media (max-width: 760px){ .mv-grid{ grid-template-columns: 1fr; } }

/* ---------- Practice area cards ---------- */
.areas-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.area-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.area-card:hover{ border-color: var(--gold); transform: translateY(-4px); }
.area-card .num{
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: block;
}
.area-card h3{ font-size: 20px; margin-bottom: 12px; }
.area-card p{ color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.area-card a{ font-size: 13px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

@media (max-width: 960px){ .areas-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .areas-grid{ grid-template-columns: 1fr; } }

/* ---------- Area detail sections (areas.html) ---------- */
.area-detail{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.area-detail:last-child{ border-bottom: none; }
.area-detail .label{
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-deep);
  letter-spacing: 1px;
}
.area-detail h3{ font-size: 26px; margin-top: 10px; }
.area-detail .body p{ color: var(--muted); margin-bottom: 16px; }
.area-detail .body h4{ font-family: var(--sans); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin: 24px 0 12px; }
.area-detail ul.checklist li{
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 15px;
}
.area-detail ul.checklist li::before{
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 1.5px;
  background: var(--gold-deep);
}

@media (max-width: 760px){ .area-detail{ grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Team / bios ---------- */
.team-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.team-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
}
.team-card .avatar{
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 24px;
}
.team-card h3{ font-size: 22px; margin-bottom: 4px; }
.team-card .role{ color: var(--gold-deep); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; display: block; }
.team-card p{ color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.team-card .fill-note{ font-size: 13px; color: var(--gold-deep); font-style: italic; }

@media (max-width: 760px){ .team-grid{ grid-template-columns: 1fr; } }

/* ---------- Values / voice list ---------- */
.value-list{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-item h4{ font-family: var(--serif); font-size: 19px; color: var(--white); margin-bottom: 10px; }
.value-item p{ color: rgba(250,248,242,0.75); font-size: 14.5px; }
@media (max-width: 760px){ .value-list{ grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--navy);
  color: var(--cream);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2{ color: var(--white); font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 16px; }
.cta-banner p{ color: rgba(250,248,242,0.75); max-width: 50ch; margin: 0 auto 30px; }
.cta-banner .hero-actions{ justify-content: center; }

/* ---------- Contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info-item{
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:first-child{ padding-top: 0; }
.contact-info-item .ic{
  width: 22px; height: 22px;
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-info-item h4{ font-family: var(--sans); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.contact-info-item p, .contact-info-item a{ color: var(--muted); font-size: 15.5px; }
.contact-info-item a:hover{ color: var(--navy); }

.form-field{ margin-bottom: 20px; }
.form-field label{ display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--navy); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea{
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline: none;
  border-color: var(--gold-deep);
}
.form-field textarea{ resize: vertical; min-height: 120px; }
.form-note{ font-size: 13px; color: var(--muted); margin-top: 4px; }

@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------- WhatsApp float button ---------- */
.wa-float{
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: transform 0.2s ease;
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-deep);
  color: rgba(250,248,242,0.7);
  padding: 64px 0 28px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,248,242,0.12);
}
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand svg{ width: 34px; height: auto; }
.footer-brand span{ font-family: var(--serif); color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.footer-grid p{ font-size: 14px; max-width: 34ch; }
.footer-col h5{ color: var(--white); font-family: var(--sans); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a, .footer-col p{ display: block; font-size: 14px; margin-bottom: 12px; color: rgba(250,248,242,0.7); }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(250,248,242,0.45);
}

@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{ padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1{ font-size: clamp(32px, 4vw, 46px); margin: 16px 0 0; }
.page-hero p{ color: var(--muted); max-width: 60ch; margin-top: 18px; font-size: 16.5px; }
