/* ============================================================
   Atty. Joyen Melca I. Jimenez — Law & Notarial Office
   Design tokens reconstructed from the live attyjimenez.com
   (colors, type, spacing, and section rhythm measured directly
   from the deployed GHL site's computed styles).
   ============================================================ */

:root {
  --navy: #14213D;
  --navy-light: #2A324D;
  --gold: #C9A84C;
  --bg: #F9F8F5;
  --cream: #F0ECE3;
  --white: #FFFFFF;
  --muted: #6B7280;
  --line: #E3DECE;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Offset anchor jumps so section tops aren't hidden behind the sticky header */
#home, #about, #services, #contact { scroll-margin-top: 135px; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.display, .h-display {
  font-size: 48px;
}
@media (max-width: 720px) {
  .display, .h-display { font-size: 34px; }
}

h3.card-title {
  font-size: 22px;
  font-weight: 600;
}

p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.muted { color: var(--muted); font-weight: 300; }

.on-navy { color: var(--white); }
.on-navy .eyebrow { color: var(--gold); }
.on-navy .muted { color: #FFFFFF; }
.section-navy .muted { color: #FFFFFF; }

/* Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 18px 34px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-1px); background: #d9b95c; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-ghost-navy:hover { background: #1d2f52; border-color: #1d2f52; color: var(--white); }

/* ============================================================
   Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.nav-logo .brand-logo { height: 90px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 18px;
  font-weight: 300;
  color: var(--navy);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   Hero — split navy / light panel (measured from live site)
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg);
  padding: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.hero-panel {
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 80px 48px 80px max(48px, calc((100vw - var(--container)) / 2 + 24px));
}
.hero-panel-inner { max-width: 520px; }
.hero-panel-inner .lede {
  font-size: 1.05em;
  font-weight: 300;
  margin: 22px 0 34px;
  color: #D6DAE6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Right hero panel — "Why clients choose us", photo background */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.62);
}
.why-panel-inner { position: relative; z-index: 2; max-width: 520px; }
.why-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.why-list li {
  position: relative;
  padding-left: 24px;
  color: #E4E7EF;
  font-size: 1em;
  line-height: 1.55;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Stat bar — full width */
.stat-bar {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}
.stat-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   Section rhythm
   ============================================================ */
section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-bg { background: var(--bg); }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Gold CTA strip */
.cta-strip {
  background: var(--gold);
  padding: 26px 0;
}
.cta-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip p {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}
.cta-strip span { font-family: var(--font-body); font-weight: 300; font-size: 15px; display: block; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
  background: transparent;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { margin-bottom: 18px; color: #333; }

/* ============================================================
   Practice areas — index-card grid with accordions
   ============================================================ */
.services-intro { max-width: 720px; margin: 0 0 48px; color: #333; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 32px 34px;
}
.service-num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
  line-height: 1.05;
}
.service-card h3.card-title {
  font-size: 30px;
  margin-top: 2px;
}
.service-card > p { margin-top: 12px; }
.service-card ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  color: #444;
  font-size: 0.9em;
  display: grid;
  gap: 10px;
}
.service-card li {
  position: relative;
  padding-left: 28px;
}
.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================================
   Process
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}
.process-step { position: relative; padding-left: 8px; }
.process-step .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  line-height: 1.05;
}
.process-step h3 { color: var(--white); font-size: 24px; margin-bottom: 10px; }
.process-step p { color: #C7CCDA; font-size: 16px; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card blockquote {
  margin: 0 0 22px;
  font-size: 16px;
  color: #333;
  font-style: italic;
  flex-grow: 1;
}
.testimonial-who { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.testimonial-role { font-size: 13px; color: var(--muted); }

/* ============================================================
   Contact — split navy / cream panel
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-info {
  position: relative;
  color: var(--white);
  padding: 90px 56px 90px max(56px, calc((100vw - var(--container)) / 2 + 24px));
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.78);
}
.contact-info > .wrap { position: relative; z-index: 2; }
.contact-info .muted { color: #FFFFFF; }
.contact-info .wrap { max-width: 620px; margin: 0; padding: 0; }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 26px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.icon-badge { width: 44px; height: 44px; flex-shrink: 0; display: block; }
.icon-badge svg { width: 100%; height: 100%; display: block; }
.contact-list .label { font-size: 16px; font-weight: 400; }
.contact-list .sub { font-size: 13px; color: #FFFFFF; margin-top: 2px; }

.contact-form-panel {
  background: var(--cream);
  padding: 90px 56px;
  display: flex;
  align-items: center;
}
.contact-form-panel .wrap { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.form-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 28px;
}
.form-frame iframe {
  width: 100%;
  height: 1700px;
  border: 0;
  display: block;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #A9AFC2;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { cursor: pointer; }
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   Legal modals (Privacy Policy / Disclaimer)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(20, 33, 61, 0.55);
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--white);
  color: var(--navy);
  max-width: 760px;
  width: 100%;
  margin: auto;
  padding: 56px 56px 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--navy); color: var(--white); }
.modal-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  text-align: center;
  color: var(--muted);
  margin: 0 0 28px;
}
.modal-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.modal-body p:last-child { margin-bottom: 0; }
.modal-body a { color: var(--navy); text-decoration: underline; }

@media (max-width: 720px) {
  .modal { padding: 48px 24px 32px; }
  .modal-title { font-size: 32px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { padding: 64px 24px; }
  .hero-panel-inner { max-width: 100%; margin: 0; }
  .hero-art { padding: 64px 24px; }
  .why-panel-inner { max-width: 100%; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form-panel { padding: 64px 24px; }
  .contact-info .wrap, .contact-form-panel .wrap { max-width: 100%; margin: 0; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .nav-logo .brand-logo { height: 64px; }
  #home, #about, #services, #contact { scroll-margin-top: 106px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .process-grid { grid-template-columns: 1fr; padding: 28px; }
  .cta-strip .wrap { flex-direction: column; align-items: center; text-align: center; }

  /* Hero buttons: equal width + centered on mobile */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* Center footer content on mobile */
  .footer-row { flex-direction: column; text-align: center; gap: 12px; }
  .footer-links { justify-content: center; }

  /* Mobile nav drawer — scoped to mobile only so it can never
     carry over to desktop when the viewport is resized */
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 33, 61, 0.12);
  }
  body.nav-open .nav-links a { padding: 10px 0; width: 100%; }
  body.nav-open .nav-links a.nav-cta {
    padding: 14px 20px;
    margin-top: 8px;
    display: inline-flex;
    width: auto;
  }
}
