/* =========================================
   CS Winters Law - Design System
   ========================================= */

:root {
  --navy: #002244;
  --navy-dark: #001530;
  --navy-mid: #003366;
  --gold: #b8975a;
  --gold-light: #d4af72;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #e8e6e1;
  --mid-gray: #9a9490;
  --text-dark: #1a1a1a;
  --text-body: #3a3633;

  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1100px;
  --section-pad: 5rem 1.5rem;
  --transition: 0.25s ease;
  --radius: 4px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-pad); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--off { background: var(--off-white); }

.text-center { text-align: center; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 1.25rem 0 1.75rem;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 151, 90, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav__brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav__links a.active {
  color: var(--gold);
}

.nav__cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.1rem !important;
}
.nav__cta:hover {
  background: var(--gold-light) !important;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  opacity: 0.9;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content { max-width: none; }

.hero__header {
  grid-column: 1;
}

.hero__footer {
  grid-column: 1;
}

.hero__image {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img {
  max-width: 340px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid rgba(255, 255, 255, 0.12);
}

.hero__title { color: var(--white); margin-bottom: 1rem; }

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---- Page Header (inner pages) ---- */
.page-header {
  background: var(--navy);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.page-header h1 { color: var(--white); }
.page-header .eyebrow { color: var(--gold-light); }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p { font-size: 0.97rem; color: var(--text-body); opacity: 0.85; }

/* ---- Two Column ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* ---- Attorney Bio ---- */
.bio-photo {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  outline: 1px solid var(--light-gray);
}

.bio-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin-top: 1.5rem;
  margin-right: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.bio-stat svg { color: var(--gold); flex-shrink: 0; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info__icon {
  width: 42px;
  height: 42px;
  background: rgba(184, 151, 90, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-info__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mid-gray);
  margin-bottom: 0.2rem;
}

.contact-info__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
}

.contact-info__value a { transition: color var(--transition); }
.contact-info__value a:hover { color: var(--gold); }

/* ---- Form ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 34, 68, 0.1);
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.form-submit:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.form-message {
  display: none;
  text-align: center;
  padding: 1rem;
  background: rgba(184, 151, 90, 0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  margin-top: 1rem;
}

/* ---- Map ---- */
.map-embed {
  width: 100%;
  height: 300px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  margin-top: 2rem;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- CTA Strip ---- */
.cta-strip {
  background: var(--navy);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.cta-strip h2 { color: var(--white); margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto 2rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
  font-size: 0.82rem;
}
.footer__links a:hover { color: var(--gold); }

/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col--reverse { direction: ltr; }
  .bio-photo { max-width: 260px; }
}

@media (max-width: 700px) {
  .nav__links { display: none; flex-direction: column; gap: 0; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-md);
  }
  .nav__links.open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.95rem;
  }
  .nav__cta { margin-top: 0.5rem; }
  .nav__toggle { display: flex; }

  .site-header { position: sticky; }

  .hero {
    padding: 5rem 1.25rem 4rem;
    text-align: center;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero__header {
    order: 1;
  }

  .hero__image {
    order: 2;
  }

  .hero__footer {
    order: 3;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
  }

  :root { --section-pad: 3.5rem 1.25rem; }

  .card-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }

  .form-card { padding: 1.75rem 1.25rem; }
}
