/* ============================================
   Lake Hamilton Tax & Advisory — Main Stylesheet
   ============================================ */

:root {
  --navy: #0F2A44;
  --navy-light: #1A3D5C;
  --slate: #2C3E50;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dark: #A68A3E;
  --cream: #FAF8F2;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #D1D1D1;
  --gray-500: #888888;
  --gray-700: #444444;
  --gray-900: #1A1A1A;
  --teal: #1B7A6E;
  --teal-light: #E6F5F3;
  --red-soft: #C0392B;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

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

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
}
.header-top a { color: var(--gold-light); }
.header-top a:hover { color: var(--gold); }

.header-main {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy);
}
.logo-text { line-height: 1.2; }
.logo-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); }
.logo-tagline { font-size: 0.72rem; color: var(--gold-light); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 14px;
  color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 600;
  border-radius: 4px; transition: all var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--white); background: rgba(255,255,255,0.1); }

/* Dropdowns */
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: 8px; min-width: 260px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); padding: 8px 0;
  z-index: 100;
}
.nav-links > li:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 20px; color: var(--gray-700);
  font-size: 0.88rem; transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--cream); color: var(--navy); padding-left: 24px; }

/* Mobile hamburger */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--white);
  position: absolute; left: 0; transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* CTA button in nav */
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; border-radius: 6px !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ---- HERO SECTIONS ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--slate) 100%);
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--white); line-height: 1.2; margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 640px; margin-bottom: 32px; }

.hero-sm { padding: 60px 0 50px; }
.hero-sm h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero-sm p { font-size: 1rem; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.breadcrumbs a { color: var(--gold-light); }
.breadcrumbs a:hover { color: var(--gold); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; padding: 14px 32px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  border-radius: 6px; cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 0.88rem; }

/* ---- SECTIONS ---- */
section { padding: 80px 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-slate { background: var(--slate); color: var(--white); }

.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px;
}
.bg-navy .section-label { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 16px; color: var(--navy);
}
.bg-navy .section-title, .bg-slate .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem; color: var(--gray-500); max-width: 640px; margin-bottom: 48px;
}
.bg-navy .section-subtitle { color: rgba(255,255,255,0.7); }

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- CARDS ---- */
.card {
  background: var(--white); border-radius: 12px; padding: 36px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all var(--transition); border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.card-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem; color: var(--gold);
}
.card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; color: var(--navy); }
.card p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.65; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.88rem; color: var(--gold-dark); }
.card .card-link:hover { color: var(--navy); }

/* ---- CREDENTIALS BAR ---- */
.credentials-bar {
  background: var(--cream); border-top: 3px solid var(--gold);
  padding: 28px 0;
}
.credentials-bar .container {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; align-items: center;
}
.credential-badge {
  text-align: center; font-size: 0.82rem; font-weight: 700;
  color: var(--navy); letter-spacing: 1px; text-transform: uppercase;
}
.credential-badge .badge-icon {
  display: block; font-size: 1.6rem; margin-bottom: 4px;
}

/* ---- STATS ROW ---- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center; padding: 48px 0;
}
.stat-item .stat-number {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
  color: var(--gold);
}
.stat-item .stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ---- CONTENT SECTIONS ---- */
.content-block { max-width: 800px; }
.content-block h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin-bottom: 16px; margin-top: 40px; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { margin-bottom: 16px; color: var(--gray-700); }
.content-block ul { margin: 16px 0; padding-left: 24px; }
.content-block li { margin-bottom: 8px; color: var(--gray-700); }
.content-block li::marker { color: var(--gold-dark); }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: start; }
.sidebar { position: sticky; top: 100px; }

/* Sidebar CTA Box */
.sidebar-cta {
  background: var(--navy); color: var(--white); border-radius: 12px;
  padding: 32px 24px; margin-bottom: 24px;
}
.sidebar-cta h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; color: var(--gold); }
.sidebar-cta p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.sidebar-cta .btn { width: 100%; text-align: center; }

.sidebar-box {
  background: var(--cream); border-radius: 12px; padding: 24px; margin-bottom: 24px;
  border: 1px solid var(--gray-200);
}
.sidebar-box h4 { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin-bottom: 12px; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { font-size: 0.9rem; font-weight: 600; }

/* ---- TESTIMONIAL ---- */
.testimonial-block {
  background: var(--cream); border-left: 4px solid var(--gold);
  padding: 32px; border-radius: 0 12px 12px 0; margin: 40px 0;
}
.testimonial-block blockquote {
  font-family: var(--font-display); font-size: 1.15rem; font-style: italic;
  color: var(--navy); line-height: 1.6; margin-bottom: 12px;
}
.testimonial-block cite { font-size: 0.88rem; font-style: normal; color: var(--gray-500); }

/* ---- LOCATION CARDS ---- */
.location-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.location-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
.location-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 24px; color: var(--white);
}
.location-card-header h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.location-card-header p { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.location-card-body { padding: 24px; }
.location-card-body p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 16px; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  padding: 64px 0; text-align: center;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; line-height: 1.6; }
.site-footer h4 {
  font-family: var(--font-display); font-size: 1rem; color: var(--white);
  margin-bottom: 16px; position: relative; padding-bottom: 12px;
}
.site-footer h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--gold);
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card {
  background: var(--cream); border-radius: 12px; padding: 28px;
  margin-bottom: 20px; border: 1px solid var(--gray-200);
}
.contact-info-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.contact-info-card p { font-size: 0.92rem; color: var(--gray-700); }

.contact-form label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px; margin-top: 16px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--gray-300); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 70px 0 60px; }
  .section-title { font-size: 1.8rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .header-top { display: none; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); padding: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  }
  .nav-links.active .dropdown-menu {
    display: block; position: static;
    box-shadow: none; background: rgba(255,255,255,0.05);
    border-radius: 4px; margin-top: 4px;
  }
  .nav-links.active .dropdown-menu a { color: rgba(255,255,255,0.7); }
  .credentials-bar .container { gap: 24px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
