/* ========================================
   Gunderson Law Firm - Global Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary: #9b2020;
  --secondary: #7a7a7a;
  --accent: #4a4a4a;
  --text-dark: #333;
  --text-medium: #555;
  --text-light: #888;
  --background: #fff;
  --background-alt: #f2f2f0;
  --background-dark: #4a4a4a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--background);
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary);
}

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

ul {
  list-style: none;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: normal;
  line-height: 1.25;
  color: var(--text-dark);
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========================================
   Site Header
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background-color: var(--background);
  padding: 12px 30px;
  transition: background-color 0.35s ease;
}

/* Transparent header overlays the hero — used on homepage */
.site-header--transparent {
  background-color: transparent;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* After scrolling 50px, JS adds .scrolled — dark semi-transparent bg */
.site-header--transparent.scrolled {
  background-color: rgba(0, 0, 0, 0.75);
}

/* White hamburger bars on transparent and scrolled-dark states */
.site-header--transparent .hamburger-btn span,
.site-header--transparent.scrolled .hamburger-btn span {
  background-color: #fff;
}

/* Keep logo white/visible on transparent and scrolled-dark states */
/*.site-header--transparent .site-logo img,
.site-header--transparent.scrolled .site-logo img {
  filter: brightness(0) invert(1);
}*/

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  height: 75px;
  width: auto;
}

/* Hamburger button — always visible */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
  position: relative;
}

.hamburger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--text-dark);
  transition: background-color 0.25s ease;
}

.hamburger-btn.is-open span {
  background-color: #fff;
}

/* ========================================
   Full-Screen Overlay Nav
   ======================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(40, 40, 40, 0.96);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
}

.nav-overlay-logo img {
  height: 56px;
  width: auto;
}

.nav-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 8px;
  font-weight: 300;
}

.nav-overlay ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-overlay ul li a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.85);
  font-weight: normal;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-overlay ul li a:hover {
  color: #fff;
}

/* ========================================
   Homepage Hero
   ======================================== */

.hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  margin-top: 80px;
}

/* Full-bleed hero: transparent header overlays, no margin, full viewport feel */
.hero--full {
  height: 92vh;
  min-height: 580px;
  max-height: 900px;
  margin-top: 0;
  background-position: center center;
  align-items: center;
}

/* Dark overlay — lets the image show while keeping text legible */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
}

/* Subtle top-to-bottom gradient over the flat overlay for depth */
.hero--full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.0) 50%,
    rgba(0, 0, 0, 0.18) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 32px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  color: #fff;
  font-weight: normal;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

/* Thin red rule under the headline */
.hero-content h1::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background-color: var(--primary);
  margin: 26px auto 32px;
}

.hero-learn-more {
  display: inline-block;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 12px 34px;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-learn-more:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ========================================
   About / Intro Strip (gray + Mark Gunderson)
   ======================================== */

.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  background-color: var(--secondary);
}

.about-strip-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-strip-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: #f0f0f0;
  margin-bottom: 0;
}

.about-strip-text .g-monogram {
  margin-top: 28px;
  width: 34px;
  height: auto;
  opacity: 0.5;
}

.about-strip-photo {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-strip-photo img {
  width: 90%;
  max-width: 420px;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin: 0 auto;
}

/* ========================================
   Attorneys Grid (homepage + index)
   ======================================== */

.attorneys-section {
  padding: 84px 40px 96px;
  background-color: var(--background);
}

.attorneys-section .section-heading {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.attorneys-section .section-rule {
  width: 36px;
  height: 2px;
  background-color: var(--primary);
  margin: 0 auto 60px;
}

.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 36px;
  row-gap: 60px;
  max-width: 1020px;
  margin: 0 auto;
}

.attorney-card {
  display: block;
  text-align: center;
  color: inherit;
}

.attorney-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin-bottom: 16px;
}

.attorney-card h3 {
  font-size: 0.95rem;
  font-weight: normal;
  margin-bottom: 0;
  line-height: 1.45;
  color: var(--text-dark);
}

.attorney-card:hover h3 {
  color: var(--primary);
}

.attorney-card-rule {
  width: 28px;
  height: 2px;
  background-color: var(--primary);
  margin: 10px auto 8px;
}

.attorney-card-role {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  font-style: normal;
}

/* ========================================
   Practice Areas Strip (homepage)
   ======================================== */

.practice-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  background-color: var(--background-alt);
}

.practice-strip-list {
  padding: 72px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.practice-strip-list h2 {
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.practice-strip-list h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background-color: var(--primary);
  margin-top: 14px;
  margin-bottom: 26px;
}

.practice-strip-list ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.practice-strip-list li a {
  font-size: 0.9rem;
  color: var(--text-medium);
  transition: color 0.2s;
}

.practice-strip-list li a:hover {
  color: var(--primary);
}

.practice-strip-photo {
  overflow: hidden;
}

.practice-strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   Testimonial
   ======================================== */

.testimonial-section {
  background-color: var(--background-dark);
  color: #fff;
  padding: 96px 40px;
  text-align: center;
}

.testimonial-section blockquote {
  font-size: 1.08rem;
  line-height: 2.0;
  max-width: 700px;
  margin: 0 auto 24px;
  font-style: italic;
  color: #f0f0f0;
}

.testimonial-section cite {
  display: block;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: #bbb;
  text-transform: uppercase;
}

/* ========================================
   Footer
   ======================================== */

/* Footer — background image set via inline style on subpages, here for root */
.site-footer {
  position: relative;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: none;
}

/* Root-level pages: footer-root class sets background */
.site-footer.footer-root {
  background-image: url('../images/homepage/footer-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Very subtle overlay — footer-bg.webp is already light, minimal overlay needed */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 0;
}

/* All direct children stack above the overlay */
.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-main {
  text-align: center;
  padding: 80px 20px 36px;
}

.footer-firm-name {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 18px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  letter-spacing: 0.02em;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 2.0;
  margin-bottom: 0;
}

.footer-address a {
  color: var(--text-medium);
}

.footer-address a:hover {
  color: var(--primary);
}

/* Divider rule with G logo centered on it */
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 0 30px;
}

.footer-divider-line {
  flex: 1;
  height: 1px;
  background-color: #ccc;
}

.footer-g-logo {
  display: block;
  height: 70px;
  width: auto;
  opacity: 0.5;
  margin: 0 16px;
  flex-shrink: 0;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 30px;
  font-size: 0.74rem;
  color: #999;
  line-height: 1.75;
  text-align: center;
}

.footer-bottom-nav {
  border-top: 1px solid #d8d8d8;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 20px 40px;
}

.footer-bottom-nav a {
  font-size: 0.79rem;
  color: #666;
  text-transform: none;
  letter-spacing: 0;
}

.footer-bottom-nav a:hover {
  color: var(--primary);
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 1024px) {
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 900px) {
  .attorneys-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-strip,
  .practice-strip {
    grid-template-columns: 1fr;
  }

  .about-strip-photo {
    height: 350px;
  }

  .about-strip-photo img {
    object-position: top center;
    object-fit: contain;
  }

  .practice-strip-photo {
    height: 300px;
  }
}

@media (max-width: 768px) {
}

/* =========================
   SMALL MOBILE
   ========================= */
@media (max-width: 600px) {

  .site-logo img {
    height: 55px;
    width: auto;
  }
  .attorneys-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    row-gap: 36px;
  }

  .hero {
    height: 400px;
  }

  .hero--full {
    height: 75vh;
    min-height: 440px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .practice-strip-list {
    padding: 40px 30px;
  }

  .about-strip-text {
    padding: 40px 30px;
  }

  .container, .container-narrow {
    padding: 0 20px;
  }

  .nav-overlay ul li a {
    font-size: 1.6rem;
  }

  .footer-bottom-nav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
}
