/* ============================================
   Linking Legacy - Styles
   A considered approach to legacy planning
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* CSS Custom Properties */
:root {
  /* Primary warm browns */
  --primary-brown: #8B7355;
  --dark-brown: #5D4E37;
  --light-tan: #C4A77D;

  /* Warm neutrals */
  --cream: #F5F0E8;
  --warm-white: #FAF8F5;
  --off-white: #FFFDF9;

  /* Text */
  --text-dark: #2E2720;
  --text-muted: #4A4038;

  /* Accent */
  --warm-highlight: #D4C4A8;
  --soft-gold: #BFA67A;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1100px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--off-white);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.3;
  color: var(--dark-brown);
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.6em;
}

h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary-brown);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--dark-brown);
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.4em;
}

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

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--off-white);
  border-bottom: 1px solid var(--warm-highlight);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(93, 78, 55, 0.08);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  transition: transform var(--transition);
}

.logo:hover .logo-icon {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark-brown);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--dark-brown);
}

.nav-cta {
  font-size: 0.9rem;
  padding: 8px 20px;
  background: var(--primary-brown);
  color: white !important;
  border-radius: 4px;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--dark-brown) !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-brown);
  margin: 5px 0;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--off-white);
  z-index: 1001;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--warm-highlight);
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark-brown);
  padding: 8px;
}

/* ============================================
   Hero Section (Overlay)
   ============================================ */
.hero-overlay {
  position: relative;
  margin-top: 68px;
  height: 480px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 240, 232, 0.92) 0%,
    rgba(245, 240, 232, 0.75) 35%,
    rgba(245, 240, 232, 0.2) 60%,
    rgba(245, 240, 232, 0) 75%
  );
  z-index: 2;
}

.hero-overlay-content {
  position: relative;
  z-index: 3;
  text-align: left;
  padding: 40px 24px 0;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-overlay-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--dark-brown);
  margin-bottom: 12px;
}

.hero-overlay-content .hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-overlay-content .btn-primary {
  background: var(--primary-brown);
  color: white;
}

/* ============================================
   Hero Section (Split Layout)
   ============================================ */
.hero-split {
  margin-top: 68px;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
  overflow: hidden;
  min-height: 500px;
}

.hero-split .container {
  max-width: 1200px;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 400px;
}

.hero-split-content {
  animation: fadeInLeft 0.8s ease forwards;
}

.hero-split-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--dark-brown);
  margin-bottom: 20px;
}

.hero-split-content .hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-split-content .btn-primary {
  padding: 16px 32px;
  font-size: 1rem;
}

.hero-split-image {
  position: relative;
  animation: fadeInRight 0.8s ease forwards;
}

.hero-split-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(93, 78, 55, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
  margin: 0 auto;
}

.hero-split-image::before {
  display: none;
}

.hero-split-image:hover img {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -15px rgba(93, 78, 55, 0.3);
}


/* Mobile responsive for split hero */
@media (max-width: 900px) {
  .hero-split {
    padding: 40px 0 60px;
  }

  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-split-content {
    text-align: center;
  }

  .hero-split-content h1 {
    font-size: 2.2rem;
  }

  .hero-split-content .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-split-image::before {
    display: none;
  }

  .hero-split-image img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-split-content h1 {
    font-size: 1.9rem;
  }

  .hero-split-image img {
    border-radius: 12px;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-brown);
  color: white;
}

.btn-primary:hover {
  background: var(--dark-brown);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-brown);
  border: 1.5px solid var(--primary-brown);
}

.btn-secondary:hover {
  background: var(--primary-brown);
  color: white;
}

.btn-gold {
  background: var(--soft-gold);
  color: white;
}

.btn-gold:hover {
  background: var(--primary-brown);
  color: white;
}

.btn-download {
  background: var(--soft-gold);
  color: white;
  padding: 12px 24px;
}

.btn-download:hover {
  background: var(--primary-brown);
  color: white;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--off-white);
}

.section-warm {
  background: var(--warm-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

/* ============================================
   Content Pages
   ============================================ */
.page-header {
  padding: 140px 0 50px;
  background: var(--cream);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

.page-content {
  padding: 60px 0;
}

.page-content .container {
  max-width: 800px;
}

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

/* Info Boxes */
.info-box {
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 6px;
  padding: 28px;
  margin: 32px 0;
}

.info-box h4 {
  margin-bottom: 12px;
  color: var(--dark-brown);
}

.info-box ul {
  list-style: disc;
  padding-left: 1.2em;
}

.callout-box {
  background: var(--cream);
  border-left: 3px solid var(--primary-brown);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 6px 6px 0;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--warm-highlight);
  margin: 40px 0;
}

/* ============================================
   PDF Download Section
   ============================================ */
.pdf-download {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 8px;
  padding: 28px;
  margin: 40px 0;
}

.pdf-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-brown);
  border: 1px solid var(--warm-highlight);
}

.pdf-info {
  flex: 1;
}

.pdf-info h4 {
  margin-bottom: 4px;
}

.pdf-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(93, 78, 55, 0.08);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-card a {
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   Taper Relief Chart (PETs page)
   ============================================ */
.taper-chart {
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
}

.taper-chart h4 {
  text-align: center;
  margin-bottom: 24px;
}

.taper-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.taper-year {
  width: 30px;
  font-weight: 600;
  text-align: right;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.taper-bar {
  flex: 1;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.taper-bar.red { background: #c0392b; }
.taper-bar.orange { background: #e67e22; }
.taper-bar.yellow { background: #d4a017; }
.taper-bar.light-green { background: #7dab4c; }
.taper-bar.green { background: #4a9e4a; }

.taper-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* ============================================
   Steps / Process
   ============================================ */
.steps {
  counter-reset: step;
  max-width: 700px;
  margin: 40px auto;
}

.step {
  counter-increment: step;
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: 2px solid var(--primary-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary-brown);
  font-size: 1rem;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  border: 1px solid var(--warm-highlight);
  border-radius: 4px;
  background: var(--warm-white);
  color: var(--text-dark);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-brown);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark-brown);
  color: var(--warm-highlight);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  color: var(--warm-highlight);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(212, 196, 168, 0.8);
  line-height: 1.6;
}

.footer h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-highlight);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: rgba(212, 196, 168, 0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer a:hover {
  color: white;
}

.footer-badges {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(212, 196, 168, 0.2);
  border-bottom: 1px solid rgba(212, 196, 168, 0.2);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-badge {
  font-size: 0.85rem;
  color: rgba(212, 196, 168, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(212, 196, 168, 0.6);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(212, 196, 168, 0.6);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   Location Pages
   ============================================ */
.location-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.location-service-item {
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.location-service-item a {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ============================================
   Poetic Text Blocks
   ============================================ */
.poetic-text {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.poetic-text p {
  margin-bottom: 0.6em;
}

.emphasis-text {
  font-weight: 500;
  color: var(--dark-brown);
}

/* ============================================
   Decision Tabs
   ============================================ */
.decision-tabs {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.decision-tab {
  flex: 1;
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 6px;
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.decision-tab .check {
  color: var(--primary-brown);
  font-weight: 700;
}

/* ============================================
   Areas Grid
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.area-card {
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 6px;
  padding: 20px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.area-card:hover {
  box-shadow: 0 2px 12px rgba(93, 78, 55, 0.08);
  transform: translateY(-1px);
}

.area-card a {
  font-weight: 500;
  display: block;
}

/* ============================================
   Contact Grid
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  padding-top: 8px;
}

.contact-detail {
  margin-bottom: 28px;
}

.contact-detail h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-detail p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   Location Page Extras
   ============================================ */
.location-service-item {
  display: block;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.location-service-item:hover {
  box-shadow: 0 2px 12px rgba(93, 78, 55, 0.08);
  transform: translateY(-1px);
}

.location-service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark-brown);
}

.location-service-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.home-visits-section {
  margin: 40px 0;
  padding: 28px;
  background: var(--cream);
  border-radius: 8px;
}

.home-visits-section h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-section {
  background: var(--cream);
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .nav { display: none; }
  .mobile-menu-toggle { display: block; }

  .hero-overlay {
    margin-top: 60px;
    height: 420px;
  }

  .hero-overlay-content {
    padding: 30px 24px 0;
  }

  .hero-overlay-content h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 0;
  }

  .page-header {
    padding: 120px 0 40px;
  }

  .content-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdf-download {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .decision-tabs {
    flex-direction: column;
  }

  .taper-chart {
    padding: 20px;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps .step {
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    max-width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .location-services {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Animations & Keyframes
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ============================================
   Enhanced Header with Scroll Effect
   ============================================ */
.header {
  transition: box-shadow var(--transition), padding var(--transition), background var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(93, 78, 55, 0.12);
  background: rgba(255, 253, 249, 0.98);
  backdrop-filter: blur(10px);
}

.header.scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.header.scrolled .logo-icon {
  width: 40px;
  height: 40px;
}

/* ============================================
   Enhanced Hero Section
   ============================================ */
.hero-overlay-content h1 {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-overlay-content .hero-subtitle {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-overlay-content .btn {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-bg {
  animation: scaleIn 1.2s ease forwards;
  transform-origin: center center;
}

/* Parallax effect for hero */
.hero-overlay {
  perspective: 1px;
  transform-style: preserve-3d;
}

/* ============================================
   Enhanced Service Cards
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-brown), var(--soft-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(93, 78, 55, 0.15);
  transform: translateY(-6px);
  border-color: var(--soft-gold);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  padding: 12px;
  background: linear-gradient(135deg, var(--cream), var(--warm-white));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.service-card .service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-brown);
  stroke-width: 1.5;
}

.service-card .service-icon svg path,
.service-card .service-icon svg polyline,
.service-card .service-icon svg line,
.service-card .service-icon svg circle {
  fill: none;
  stroke: inherit;
  stroke-width: inherit;
}

.service-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
}

.service-card a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary-brown);
  transition: width 0.3s ease;
}

.service-card:hover a::after {
  width: 100%;
}

/* ============================================
   Enhanced Area Cards
   ============================================ */
.area-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 196, 168, 0.3), transparent);
  transition: left 0.5s ease;
}

.area-card:hover::before {
  left: 100%;
}

.area-card:hover {
  box-shadow: 0 8px 25px rgba(93, 78, 55, 0.12);
  transform: translateY(-3px);
  background: var(--cream);
}

/* ============================================
   Enhanced Buttons
   ============================================ */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
  transition: all var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(139, 115, 85, 0.4);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '"';
  position: absolute;
  top: 40px;
  left: 5%;
  font-size: 15rem;
  font-family: 'Playfair Display', serif;
  color: var(--warm-highlight);
  opacity: 0.3;
  line-height: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(93, 78, 55, 0.08);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(93, 78, 55, 0.15);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  color: var(--warm-highlight);
  line-height: 1;
}

.testimonial-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-brown), var(--soft-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
}

.testimonial-info h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.testimonial-stars {
  color: var(--soft-gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* ============================================
   Trust Badges Section
   ============================================ */
.trust-section {
  padding: 48px 0;
  background: var(--warm-white);
  border-top: 1px solid var(--warm-highlight);
  border-bottom: 1px solid var(--warm-highlight);
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  background: var(--off-white);
  border-radius: 12px;
  border: 1px solid var(--warm-highlight);
  transition: transform var(--transition), box-shadow var(--transition);
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(93, 78, 55, 0.1);
}

.trust-badge-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--primary-brown);
  stroke-width: 1.5;
}

.trust-badge-icon svg path,
.trust-badge-icon svg polyline,
.trust-badge-icon svg circle {
  fill: none;
  stroke: inherit;
  stroke-width: inherit;
}

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

.trust-badge-text h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 4px;
}

.trust-badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Enhanced Contact Form
   ============================================ */
.contact-form-wrapper {
  background: var(--warm-white);
  border: 1px solid var(--warm-highlight);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(93, 78, 55, 0.08);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary-brown);
  fill: none;
  stroke-width: 2;
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
}

/* ============================================
   Enhanced About Page
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.about-photo {
  position: relative;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--cream), var(--warm-highlight));
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 2px dashed var(--warm-highlight);
}

.about-photo-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--primary-brown);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.6;
}

.about-photo-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--warm-white);
  border-radius: 8px;
  border: 1px solid var(--warm-highlight);
}

.credential-item svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-brown);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.credential-item span {
  font-weight: 500;
  color: var(--text-dark);
}

/* ============================================
   Footer Logo
   ============================================ */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  filter: brightness(1.2);
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-brown), var(--soft-gold));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary-brown);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(93, 78, 55, 0.3);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--dark-brown);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(93, 78, 55, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

/* ============================================
   Mobile Responsive Updates
   ============================================ */
@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    gap: 24px;
  }

  .trust-badge {
    padding: 16px 24px;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
    max-width: 250px;
    margin: 0 auto;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}
