/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
  --section-padding: 72px;
  /* Color variables are defined in baseof.html from config.toml */
}


/* =========================================================
   RESET & BASE
========================================================= */

html,
body {
  height: 100%;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}


/* =========================================================
   GLOBAL CONTAINERS
========================================================= */

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


/* =========================================================
   NAVIGATION (FIXED HEADER)
========================================================= */
/* =========================================================
   NAVIGATION — REDESIGN
========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-light);
}

/* Container */
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}

/* Links */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  padding: 4px 0;
}

/* Underline hover (law firm standard) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active anchor state (optional later) */
.nav-links a.active::after {
  width: 100%;
}

/* =========================================================
   MOBILE NAV
========================================================= */

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }

  .nav-links {
    gap: 24px;
  }
}



/* =========================================================
   SECTIONS (AUTO HEIGHT – GLOBAL RULE)
========================================================= */

section {
  scroll-margin-top: var(--header-height);
}

.section {
  padding: var(--section-padding) 20px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 48px;
  font-size: 2.2rem;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
}


/* =========================================================
   HERO SECTION (ONLY FULL HEIGHT SECTION)
========================================================= */

.hero-bg {
  position: relative;
  min-height: 87vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background-image: url("/images/hero-placeholder.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 30px var(--shadow-color);
  text-align: center;
}

.hero-box h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-box p {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--text);
}

.cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.cta:hover {
  background: var(--primary);
  color: var(--bg-white);
}

.hero-overlay {
  background: var(--shadow-color);
}
.hero-box {
  max-width: 560px;
  padding: 2.25rem 2.75rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.hero-box h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-box p {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.9;
}
.cta {
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
}



/* =========================================================
   ABOUT SECTION
========================================================= */

.section-about {
  background: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

.about-photo img {
  width: 100%;
  border: 1px solid var(--border-medium);
  padding: 6px;
  background: var(--bg-white);
}

.about-name {
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--link-color);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.about-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-content p {
  margin-bottom: 18px;
  max-width: 720px;
}


/* =========================================================
   CONTACT SECTION
========================================================= */

.section-contact h2::after {
  margin: 16px 0 0;   /* left-align the gold bar */
}
.section-contact {
  background: var(--bg-white);
}

/* Layout: text left, images right */
.contact-layout {
  display: grid;
  grid-template-columns: 1.8fr 0.6fr; /* push text left */
  gap: 80px;
  align-items: center;
}

/* CONTACT CARD */
.contact-card {
  background: var(--bg-white);
  padding: 2.75rem 3.25rem;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-left: -50px; /* nudge left */
}

/* Left-align heading */
.section-contact .contact-card h2 {
  text-align: left;
}

/* Intro text */
.contact-intro {
  max-width: 520px;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 1.75rem 2.25rem;
}

/* Labels */
.contact-item h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

/* Values */
.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

/* Links */
.contact-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Disclaimer */
.contact-disclaimer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* IMAGE STACK */
.contact-images {
  display: flex;
  flex-direction: column;
  gap: 42px;
  align-items: flex-start; /* correct alignment */
  margin-right: 0px;     /* push images right */
}

/* Images */
.contact-images img {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  max-width: 430px;        /* larger images */
  display: block;
}

/* Staggered second image */
.contact-images img:last-child {
  width: 100%;
  margin-left: 150px;
}

/* =========================================================
   FOOTER — COMPACT HORIZONTAL
========================================================= */
.footer {
  background: var(--bg-dark);
  color: var(--text-lightest);
  padding: 20px 20px 16px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Top row → now stacked & centered */
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}

/* Logo */
.footer-logo {
  height: 40px;
  display: block;
  margin: 0 auto;
}

/* Divider → horizontal under logo */
.footer-divider {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* Disclaimer / rights text */
.footer-bottom {
  max-width: 720px;
  font-size: 0.7rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0 auto;
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-divider {
    width: 40px;
    height: 1px;
  }

  .footer-text {
    max-width: 100%;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  :root {
    --section-padding: 56px;
  }

  .nav-inner {
    flex-direction: column;
    gap: 16px;
  }

  .hero-bg {
    min-height: auto;
    padding: calc(var(--header-height) + 40px) 20px 60px;
    background-attachment: scroll;
  }

  .hero-box {
    padding: 2rem 1.5rem;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-images img:last-child {
    margin-left: 0;
    width: 90%;
  }
}

/* ===============================
   Attorney Bio Page
   =============================== */

.attorney-hero {
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-lightest);
}

.hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 25px var(--shadow-color);
}

.attorney-section {
  padding: 3.5rem 0;
  background: var(--bg-white);
  color: var(--text-color);
}

.attorney-section.alt {
  background: var(--light-gray);
}

.attorney-section h2 {
  margin-bottom: 1.25rem;
}

.attorney-section ul {
  padding-left: 1.25rem;
}

.attorney-section li {
  margin-bottom: 0.5rem;
}

.container.narrow {
  max-width: 820px;
}

.attorney-cta {
  padding: 4rem 0;
  background: var(--bg-dark);
  color: var(--bg-white);
  text-align: center;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-primary:hover {
  opacity: 0.9;
}
