/* ============================================================
   THE YOUNG TEAM ATLANTA — Shared Stylesheet
   Berkshire Hathaway HomeServices
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --primary:       #13243B;
  --primary-light: #1F3554;
  --primary-dark:  #0E1B2E;
  --accent:        #C9A84C;
  --accent-light:  #E8D08A;
  --accent-deep:   #9A7B2E;
  --cream:         #FAF6EF;
  --white:         #FFFFFF;
  --charcoal:      #1A1A1A;
  --gray:          #6B7280;
  --light-gray:    #E5E7EB;
  --border:        #D1D5DB;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.10);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.16);
  --radius:        4px;
  --radius-lg:     8px;
  --transition:    0.25s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-ghost-dark:hover {
  background: rgba(27,58,43,0.1);
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.topbar a:hover { color: var(--accent); }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

/* ===== HEADER / NAV ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
}
.logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { color: var(--primary); background: var(--cream); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: var(--charcoal);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.dropdown a:hover { background: var(--cream); color: var(--primary); }
.nav-cta { margin-left: 12px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== PAGE HERO BANNER (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1f3554 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.page-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 560px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.9375rem; color: var(--primary); }
.author-detail { font-size: 0.8125rem; color: var(--gray); margin-top: 1px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  background: var(--accent);
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-content .section-title { color: var(--primary-dark); margin-bottom: 8px; }
.cta-content p { color: var(--primary); font-size: 1.0625rem; max-width: 480px; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand .logo-name { color: var(--white); font-size: 1.25rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 20px;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
.footer-bottom-links { display: flex; gap: 16px; }

/* ===== PROCESS STEPS ===== */
.process { padding: 96px 0; background: var(--primary); }
.process-header { text-align: center; margin-bottom: 56px; }
.process-header .section-label { color: var(--accent-light); }
.process-header .section-title { color: var(--white); }
.process-header .section-subtitle { color: rgba(255,255,255,0.65); margin: 0 auto; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.process-step::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 28px;
  color: var(--accent);
  font-size: 1.25rem;
}
.process-step:last-child::after { display: none; }
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 16px;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-banner .container { flex-direction: column; text-align: center; }
  .cta-content p { margin: 0 auto; }
  .cta-actions { flex-wrap: wrap; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Mobile nav open state */
.nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 200;
  padding: 80px 24px 32px;
  overflow-y: auto;
  gap: 0;
}
.nav.open .nav-item { width: 100%; }
.nav.open .nav-link {
  font-size: 1.125rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.nav.open .dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  padding-left: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.nav.open .nav-cta { display: flex; margin-top: 24px; margin-left: 0; }
.nav-close {
  display: none;
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
  background: none;
  border: none;
}
.nav.open .nav-close { display: block; }
