/* Core Design System with optimized selectors and contrast adjustments */
:root {
/* Color System - Adjusted for moodier tones and better contrast */
--color-heritage-green-100: #e8f0eb;
--color-heritage-green-200: #c5d9ce;
--color-heritage-green-300: #9bbda8;
--color-heritage-green-400: #6d9f7f;
--color-heritage-green-500: #2e5a3e;
--color-heritage-green-600: #234731;
--color-heritage-green-700: #183524;
--color-heritage-green-800: #0e2417;
--color-heritage-green-900: #08170e;

--color-heritage-gold-100: #f9f4e3;
--color-heritage-gold-200: #f0e5b9;
--color-heritage-gold-300: #e6d68f;
--color-heritage-gold-400: #d9c366; /* Lightened for contrast */
--color-heritage-gold-500: #c9ac4d; /* Adjusted for readability */
--color-heritage-gold-600: #a68a39;
--color-heritage-gold-700: #86702e;
--color-heritage-gold-800: #665523;
--color-heritage-gold-900: #463a18;

--color-heritage-earth-100: #ece9e6;
--color-heritage-earth-200: #d2cbc3;
--color-heritage-earth-300: #b7a99c;
--color-heritage-earth-400: #9c8a78;
--color-heritage-earth-500: #5e4b3e;
--color-heritage-earth-600: #4e3f34;
--color-heritage-earth-700: #3e3229;
--color-heritage-earth-800: #2e251f;
--color-heritage-earth-900: #1f1915;

--color-heritage-cream-100: #fdfcf9;
--color-heritage-cream-200: #faf8f0;
--color-heritage-cream-300: #f8f5e6;
--color-heritage-cream-400: #f5f0dc;
--color-heritage-cream-500: #f2ebd1;
--color-heritage-cream-600: #ebe0b7;
--color-heritage-cream-700: #e3d59d;
--color-heritage-cream-800: #dbc983;
--color-heritage-cream-900: #d4be69;

--color-accent-red-500: #a23e48;
--color-accent-blue-500: #3e6b8a;
--color-accent-teal-500: #3e8a77;
--color-accent-mist-500: #a3b0b8;

--color-neutral-50: #fafafa;
--color-neutral-100: #f5f5f5;
--color-neutral-200: #e5e5e5;
--color-neutral-300: #d4d4d4;
--color-neutral-400: #a3a3a3;
--color-neutral-500: #737373;
--color-neutral-600: #525252;
--color-neutral-700: #404040;
--color-neutral-800: #262626;
--color-neutral-900: #171717;

/* Semantic Colors */
--color-text-primary: var(--color-neutral-900);
--color-text-secondary: var(--color-neutral-700);
--color-text-tertiary: var(--color-neutral-500);
--color-text-light: var(--color-neutral-50);

--color-background-primary: var(--color-heritage-cream-300);
--color-background-secondary: white;
--color-background-tertiary: var(--color-heritage-cream-200);
--color-background-accent: var(--color-heritage-green-600);

--color-border-light: var(--color-neutral-200);
--color-border-medium: var(--color-neutral-300);
--color-border-dark: var(--color-neutral-400);

/* Typography */
--font-heritage: 'Cormorant Garamond', Georgia, serif;
--font-modern: 'Montserrat', system-ui, sans-serif;
--font-gaelic: 'Uncial Antiqua', cursive;

/* Spacing Scale */
--space-3xs: clamp(0.25rem, 0.25vw, 0.31rem);
--space-2xs: clamp(0.5rem, 0.5vw, 0.63rem);
--space-xs: clamp(0.75rem, 0.75vw, 0.94rem);
--space-sm: clamp(1rem, 1vw, 1.25rem);
--space-md: clamp(1.5rem, 1.5vw, 1.88rem);
--space-lg: clamp(2rem, 2vw, 2.5rem);
--space-xl: clamp(3rem, 3vw, 3.75rem);
--space-2xl: clamp(4rem, 4vw, 5rem);
--space-3xl: clamp(6rem, 6vw, 7.5rem);

/* Elevation/Shadows */
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

/* Border Radius */
--radius-xs: 0.125rem;
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
--radius-xl: 0.75rem;
--radius-2xl: 1rem;
--radius-3xl: 1.5rem;
--radius-full: 9999px;

/* Transitions */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

/* Z-index Scale */
--z-negative: -1;
--z-elevate: 1;
--z-dropdown: 10;
--z-sticky: 100;
--z-fixed: 200;
--z-modal: 300;
--z-popover: 400;
--z-tooltip: 500;
}

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

html {
font-size: 16px;
scroll-behavior: smooth;
scroll-padding-top: 80px;
-webkit-text-size-adjust: 100%;
}

body {
font-family: var(--font-modern);
font-weight: 400;
line-height: 1.6;
color: var(--color-text-primary);
background-color: var(--color-background-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}

/* Typography with improved legibility on mobile */
h1, h2, h3, h4, h5 {
font-family: var(--font-heritage);
font-weight: 500;
line-height: 1.2;
margin-bottom: var(--space-sm);
color: var(--color-text-primary);
}

h1 {
font-size: clamp(2.5rem, 5vw, 3.5rem);
letter-spacing: -0.02em;
}

h2 {
font-size: clamp(2rem, 4vw, 2.8rem);
letter-spacing: -0.015em;
font-family: var(--font-gaelic);
}

h3 {
font-size: clamp(1.5rem, 3vw, 2.2rem);
letter-spacing: -0.01em;
}

h4 {
font-size: clamp(1.2rem, 2vw, 1.8rem);
}

h5 {
font-size: clamp(1.1rem, 1.5vw, 1.5rem);
font-weight: 600;
}

p {
margin-bottom: var(--space-md);
font-size: clamp(1.1rem, 1.8vw, 1.2rem);
}

a {
color: var(--color-heritage-green-600);
text-decoration: none;
transition: color var(--transition-fast);
font-weight: 500;
}

a:hover, a:focus {
color: var(--color-heritage-gold-500);
}

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

/* Layout */
.container {
width: 100%;
max-width: 1440px;
margin: 0 auto;
padding: 0 var(--space-md);
}

.section {
padding: var(--space-xl) 0;
position: relative;
}

.section-lg {
padding: var(--space-2xl) 0;
}

/* Celtic Decorative Elements */
.celtic-border {
position: relative;
/* border-top: 2px solid var(--color-heritage-gold-300); Optional: Add a simple border if visual cue is still desired */
/* padding-top: 30px; Adjust if needed after image removal */
}

/* .celtic-border::before removed background-image */
.celtic-border::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 30px; 
/* background-image: url('/images/celtic-border.png'); */ /* REMOVED */
background-repeat: repeat-x;
background-size: auto 100%;
opacity: 0.7;
}


.celtic-divider {
height: 50px;
width: 100%;
background-image: url('/images/celtic-divider.png');
background-repeat: no-repeat;
background-position: center;
background-size: contain;
margin: var(--space-lg) 0;
opacity: 0.6;
}

.celtic-corner {
position: absolute;
width: 70px;
height: 70px;
background-size: contain;
background-repeat: no-repeat;
opacity: 0.8;
}

.celtic-corner-tl {
top: 0;
left: 0;
background-image: url('/images/celtic-corner.png');
}

.celtic-corner-tr {
top: 0;
right: 0;
background-image: url('/images/celtic-corner.png');
transform: rotate(90deg);
}

.celtic-corner-bl {
bottom: 0;
left: 0;
background-image: url('/images/celtic-corner.png');
transform: rotate(270deg);
}

.celtic-corner-br {
bottom: 0;
right: 0;
background-image: url('/images/celtic-corner.png');
transform: rotate(180deg);
}

.celtic-bg-pattern { /* Kept as it doesn't match removal criteria */
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('/images/celtic-pattern.png');
background-size: 300px;
opacity: 0.1;
z-index: var(--z-negative);
}

/* Consolidated Reusable Styles */
.transition-medium {
transition: all var(--transition-medium);
}
.shadow-md {
box-shadow: var(--shadow-md);
}

/* Buttons with evocative language support */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.85rem 1.75rem;
border-radius: var(--radius-md);
font-family: var(--font-modern);
font-weight: 500;
font-size: 1.1rem;
line-height: 1.4;
text-align: center;
cursor: pointer;
transition: all var(--transition-medium);
border: none;
text-decoration: none;
position: relative;
overflow: hidden;
z-index: 1;
}

.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
/* background-image: url('/images/button-bg.png'); */ /* REMOVED */
background-size: 100% 100%;
opacity: 0.15;
z-index: -1;
transition: opacity var(--transition-medium);
}

.btn:hover::before {
opacity: 0.25;
}

.btn:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(58, 106, 75, 0.5);
}

.btn-primary {
background-color: var(--color-heritage-green-500);
color: white;
}

.btn-primary:hover, .btn-primary:focus {
background-color: var(--color-heritage-green-600);
color: white;
transform: translateY(-2px);
box-shadow: 0 0 10px rgba(35, 71, 49, 0.7);
}

.btn-secondary {
background-color: var(--color-heritage-gold-500);
color: var(--color-heritage-earth-800);
}

.btn-secondary:hover, .btn-secondary:focus {
background-color: var(--color-heritage-gold-600);
color: var(--color-heritage-earth-900);
transform: translateY(-2px);
}

.btn-outline {
background-color: transparent;
border: 2px solid var(--color-heritage-green-500);
color: var(--color-heritage-green-500);
}

.btn-outline:hover, .btn-outline:focus {
background-color: var(--color-heritage-green-500);
color: white;
transform: translateY(-2px);
}

/* Header & Navigation with close button styling */
.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: var(--z-fixed);
background-color: rgba(248, 245, 230, 0.95);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: transform var(--transition-medium), background-color var(--transition-medium);
box-shadow: var(--shadow-sm);
}

.header-scrolled {
transform: translateY(-100%);
}

.header-visible {
transform: translateY(0);
}

.header-container {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-sm) var(--space-md);
height: 80px;
}

.logo-container {
display: flex;
align-items: center;
gap: var(--space-sm);
}

.logo {
width: 50px;
height: auto;
transition: transform var(--transition-medium);
}

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

.site-title {
font-family: var(--font-gaelic);
font-size: clamp(1.2rem, 2vw, 1.5rem);
margin: 0;
color: var(--color-heritage-green-600);
font-weight: normal; /* To match p styling */
}

.nav-toggle {
display: none;
background: none;
border: none;
cursor: pointer;
padding: var(--space-xs);
color: var(--color-heritage-green-500);
}

.nav-close {
background: none;
border: none;
cursor: pointer;
padding: var(--space-xs);
color: var(--color-heritage-green-500);
display: none; /* Initially hidden */
position: absolute; 
top: 20px; 
right: 20px; 
z-index: calc(var(--z-dropdown) + 1); 
}

.main-nav.active ~ .nav-close { 
    display: block;
}
   
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav ~ .nav-close { 
    display: none;
  }
  .main-nav.active ~ .nav-close {
    display: block;
  }
}


.main-nav ul {
display: flex;
list-style: none;
gap: var(--space-md);
}

.nav-link {
font-family: var(--font-modern);
font-weight: 500;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: var(--space-xs) 0;
position: relative;
color: var(--color-heritage-green-600);
}

.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: var(--color-heritage-gold-500);
transition: width var(--transition-medium);
}

.nav-link:hover, .nav-link:focus {
color: var(--color-heritage-gold-500);
}

.nav-link:hover::after, .nav-link:focus::after {
width: 100%;
}

/* Hero Section */
.hero {
position: relative;
min-height: 90vh; 
display: flex;
align-items: center;
padding-top: 80px; /* Ensure content is below fixed header */
overflow: hidden;
background: linear-gradient(to bottom, var(--color-heritage-cream-300), var(--color-accent-mist-500));
}

.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: var(--z-negative);
/* background-image: url('/images/family-tree-mapper.webp'); REMOVED as per request (already commented out) */
background-size: cover;
background-position: center;
opacity: 0.2;
}

.hero-tree {
position: absolute;
top: 50%;
right: 10%;
transform: translateY(-50%);
width: 40%;
max-width: 600px;
height: auto;
opacity: 0.7;
z-index: 0;
animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
from { filter: brightness(0.8); }
to { filter: brightness(1.2); }
}

.hero-content {
position: relative;
max-width: 650px;
z-index: 1;
animation: fadeInUp 1.2s ease-out;
}

.hero-tagline {
font-family: var(--font-heritage);
font-style: italic;
font-weight: 300;
font-size: clamp(1.1rem, 2vw, 1.3rem);
color: var(--color-heritage-green-700);
margin-bottom: var(--space-md);
}

.hero-cta-group {
display: flex;
gap: var(--space-sm);
margin-top: var(--space-md);
}

/* Generic Content Section for pages like 'About' */
.content-section {
    background-color: var(--color-background-secondary);
    padding: var(--space-2xl) 0;
}

.content-section .container {
    max-width: 960px; /* More readable width for text-heavy pages */
}

.content-section .page-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.content-section .page-intro {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-family: var(--font-heritage);
    font-style: italic;
    color: var(--color-text-secondary);
}

.content-section h3 {
    font-family: var(--font-gaelic);
    color: var(--color-heritage-green-600);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.content-section p {
    font-size: clamp(1.1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-top: var(--space-xl);
}

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

.content-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Services Section with improved stacking on mobile */
.services-section {
position: relative;
overflow: hidden;
}

.services-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/services-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.1;
z-index: -1;
}

.services-intro {
text-align: center;
max-width: 800px;
margin: 0 auto var(--space-lg);
}

.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: var(--space-md);
}

.service-card {
background-color: var(--color-background-secondary);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-md);
transition: transform var(--transition-medium), box-shadow var(--transition-medium);
height: 100%;
display: flex;
flex-direction: column;
position: relative;
}

.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: linear-gradient(to right, var(--color-heritage-green-500), var(--color-heritage-gold-500));
}

.service-card:hover, .service-card:focus-within {
transform: translateY(-5px);
box-shadow: var(--shadow-lg);
}

.service-image {
aspect-ratio: 16 / 9;
width: 100%;
background-size: cover;
background-position: center;
position: relative;
}

.service-image::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 30%;
background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.service-content {
padding: var(--space-md);
flex: 1;
display: flex;
flex-direction: column;
}

.service-title {
font-family: var(--font-heritage);
font-size: 1.5rem;
color: var(--color-heritage-green-600);
margin-bottom: var(--space-sm);
}

.service-description {
margin-bottom: var(--space-md);
flex: 1;
}

.service-link {
align-self: flex-start;
font-weight: 500;
display: inline-flex;
align-items: center;
gap: 5px;
color: var(--color-heritage-green-500);
}

.service-link::after {
content: '→';
transition: transform var(--transition-fast);
}

.service-link:hover, .service-link:focus {
color: var(--color-heritage-gold-500);
}

.service-link:hover::after, .service-link:focus::after {
transform: translateX(5px);
}

/* Heritage Finder */
.heritage-finder {
background-color: var(--color-background-secondary);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-xl);
padding: var(--space-md);
margin-top: var(--space-lg);
position: relative;
z-index: var(--z-elevate);
overflow: hidden;
}

.heritage-finder::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/heritage-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.05;
z-index: -1;
}

.finder-header {
text-align: center;
margin-bottom: var(--space-md);
}

.finder-steps {
display: flex;
justify-content: space-between;
margin-bottom: var(--space-md);
}

.finder-step {
flex: 1;
text-align: center;
padding: 0 var(--space-sm);
position: relative;
}

.finder-step:not(:last-child)::after {
content: '';
position: absolute;
top: 25px;
right: -10px;
width: 20px;
height: 2px;
background-color: var(--color-heritage-gold-500);
}

.step-number {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: var(--color-heritage-cream-300);
border: 2px solid var(--color-heritage-gold-500);
color: var(--color-heritage-green-600);
font-family: var(--font-heritage);
font-size: 1.5rem;
margin: 0 auto var(--space-sm);
position: relative;
overflow: hidden;
}

.step-number::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/step-bg.png'); */ /* REMOVED - assuming part of "-bg." rule, though not explicitly listed */
background-size: cover;
opacity: 0.1;
}

.step-title {
font-family: var(--font-heritage);
font-size: 1.2rem;
margin-bottom: var(--space-xs);
color: var(--color-heritage-green-500);
}

.finder-form {
background-color: var(--color-heritage-cream-200);
border-radius: var(--radius-lg);
padding: var(--space-md);
}

.form-group {
margin-bottom: var(--space-md);
}

.form-label {
display: block;
margin-bottom: var(--space-xs);
font-weight: 500;
color: var(--color-text-secondary);
}

.form-input, .form-select, .form-textarea {
display: block;
width: 100%;
padding: 0.75rem 1rem;
font-size: 1rem;
line-height: 1.5;
color: var(--color-text-primary);
background-color: white;
background-clip: padding-box;
border: 1px solid var(--color-border-medium);
border-radius: var(--radius-md);
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
border-color: var(--color-heritage-gold-400);
outline: 0;
box-shadow: 0 0 0 3px rgba(195, 163, 67, 0.25);
}

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

.form-check {
display: flex;
align-items: flex-start;
margin-bottom: var(--space-xs);
}

.form-check-input {
margin-right: var(--space-xs);
margin-top: 0.25rem;
}

.form-check-label {
font-size: 1rem;
}

.form-submit {
display: block;
width: 100%;
padding: var(--space-sm);
background-color: var(--color-heritage-green-500);
color: white;
border: none;
border-radius: var(--radius-md);
font-family: var(--font-modern);
font-weight: 500;
font-size: 1.1rem;
cursor: pointer;
transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
position: relative;
overflow: hidden;
}

.form-submit::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/form-submit-bg.png'); */ /* REMOVED */
background-size: cover;
opacity: 0.1;
z-index: -1;
}

.form-submit:hover::before {
opacity: 0.2;
}

.form-submit:hover, .form-submit:focus {
background-color: var(--color-heritage-gold-500);
box-shadow: 0 0 10px rgba(195, 163, 67, 0.5);
}

.form-feedback {
display: none;
margin-top: var(--space-sm);
font-size: 0.9rem;
color: var(--color-heritage-green-600);
font-style: italic;
}

/* Honeypot field styling for spam prevention */
.honeypot-field {
display: none;
}

/* Two-Column Layout for Checkboxes in Assessment Form */
.checkbox-columns {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--space-sm);
}

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

/* Journey Timeline with consistent layout */
.journey-section {
position: relative;
overflow: hidden;
background: linear-gradient(to bottom, var(--color-heritage-cream-300), var(--color-heritage-green-100));
}

.journey-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/journey-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.1;
z-index: -1;
}

.journey-timeline {
position: relative;
max-width: 1000px;
margin: 0 auto;
padding: var(--space-lg) 0;
}

.timeline-line {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 4px;
background-color: var(--color-heritage-gold-500);
transform: translateX(-50%);
}

.timeline-item {
display: flex;
justify-content: flex-end;
padding-right: 50%;
position: relative;
margin-bottom: var(--space-lg);
}

.timeline-item:nth-child(even) {
justify-content: flex-start;
padding-right: 0;
padding-left: 50%;
}

.timeline-content {
width: 80%;
background-color: var(--color-background-secondary);
border-radius: var(--radius-lg);
padding: var(--space-md);
box-shadow: var(--shadow-md);
position: relative;
transition: transform var(--transition-medium);
}

.timeline-content:hover {
transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content::after {
content: '';
position: absolute;
top: 20px;
right: -15px;
border-width: 15px 0 15px 15px;
border-style: solid;
border-color: transparent transparent transparent var(--color-background-secondary);
}

.timeline-item:nth-child(even) .timeline-content::after {
content: '';
position: absolute;
top: 20px;
left: -15px;
border-width: 15px 15px 15px 0;
border-style: solid;
border-color: transparent var(--color-background-secondary) transparent transparent;
}

.timeline-dot {
position: absolute;
top: 20px;
left: 50%;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: var(--color-heritage-green-600);
border: 4px solid var(--color-heritage-gold-500);
transform: translateX(-50%);
z-index: 1;
transition: background-color var(--transition-medium);
cursor: pointer;
}

.timeline-dot:hover {
background-color: var(--color-heritage-gold-500);
}

.timeline-title {
font-family: var(--font-heritage);
font-size: 1.3rem;
color: var(--color-heritage-green-600);
margin-bottom: var(--space-xs);
}

/* Testimonials Section */
.testimonials-section {
background-color: var(--color-heritage-green-600);
color: white;
position: relative;
overflow: hidden;
}

.testimonials-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/testimonials-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.15;
z-index: 0;
}
    
.testimonials-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: var(--space-lg);
    position: relative;
    z-index: 1; 
    padding: var(--space-lg) 0; 
}

.testimonial-item { 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for items */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-inner);
}

.testimonial-quote {
font-family: var(--font-heritage);
font-style: italic;
font-size: 1.3rem;
max-width: 800px; 
margin-bottom: var(--space-sm);
position: relative;
color: white;
}

.testimonial-quote::before, .testimonial-quote::after {
content: '"';
font-family: var(--font-heritage);
font-size: 3rem;
color: var(--color-heritage-gold-400);
opacity: 0.5;
position: absolute;
}

.testimonial-quote::before {
top: -20px;
left: -20px;
}

.testimonial-quote::after {
bottom: -40px; 
right: -20px;
transform: rotate(180deg);
}

.testimonial-author {
font-family: var(--font-modern);
font-weight: 500;
color: var(--color-heritage-gold-400);
margin-top: var(--space-xs); 
}

.testimonial-location {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
}

/* Full Testimonials Page Specific Styles */
.testimonials-page-section {
    background-color: var(--color-background-secondary);
}

.testimonials-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.testimonial-card-full {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 5px solid var(--color-heritage-gold-500);
}

.testimonial-card-full .testimonial-content-full {
    padding: var(--space-lg);
}

.testimonial-card-full blockquote p {
    margin-bottom: var(--space-md);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.testimonial-card-full blockquote footer {
    margin-top: var(--space-md);
    text-align: right;
    font-family: var(--font-heritage);
    font-size: 1.2rem;
    color: var(--color-text-primary);
}

.testimonial-card-full blockquote footer cite {
    font-style: normal;
    font-weight: 600;
}

.testimonial-card-full .testimonial-image-placeholder {
    width: 100%;
    height: 350px;
    background-color: var(--color-heritage-cream-200);
    background-size: cover;
    background-position: center;
}

/* Layout for two-column testimonials */
.testimonials-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 992px) {
    .testimonials-grid-half {
        grid-template-columns: 1fr;
    }
}


/* Gallery Section */
.gallery-section {
position: relative;
overflow: hidden;
}

.gallery-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/gallery-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.1;
z-index: -1;
}

.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: var(--space-sm);
}

.gallery-item {
position: relative;
overflow: hidden;
border-radius: var(--radius-md);
aspect-ratio: 1;
}

.gallery-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-image {
transform: scale(1.05);
}

.gallery-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
padding: var(--space-sm);
color: white;
transform: translateY(100%);
transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
transform: translateY(0);
}

/* FAQ Section - Updated Styles */
.faq-section {
position: relative;
overflow: hidden;
}

.faq-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/faq-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.1;
z-index: -1;
}

.faq-container {
max-width: 800px;
margin: 0 auto;
position: relative;
z-index: 1;
}

.faq-item {
margin-bottom: var(--space-xs);
border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
font-family: var(--font-heritage);
font-size: 1.2rem;
color: var(--color-heritage-green-600);
padding: var(--space-xs) 0;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
min-height: 60px;
background: none; 
border: none; 
width: 100%; 
text-align: left; 
}

.faq-question::after {
content: '+';
font-size: 2rem;
transition: transform var(--transition-fast);
margin-left: var(--space-sm); 
}

.faq-item.active .faq-question::after {
transform: rotate(45deg);
}

.faq-answer {
padding: 0 0 var(--space-sm);
display: none;
font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.faq-item.active .faq-answer {
display: block;
animation: fadeIn 0.5s ease-out;
}

/* Media Query for Desktop Spacing Preservation */
@media (min-width: 769px) {
.faq-item {
margin-bottom: var(--space-sm);
}
.faq-question {
padding: var(--space-sm) 0;
}
}

/* Contact Section */
.contact-section {
position: relative;
overflow: hidden;
}

.contact-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/contact-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.1;
z-index: -1;
}

.contact-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-lg);
position: relative;
z-index: 1;
}

.contact-info {
display: flex;
flex-direction: column;
gap: var(--space-md);
}

.contact-method {
display: flex;
align-items: flex-start;
gap: var(--space-sm);
}

.contact-icon {
font-size: 1.5rem;
color: var(--color-heritage-gold-500);
}

.contact-form {
background-color: var(--color-background-secondary);
border-radius: var(--radius-lg);
padding: var(--space-md);
box-shadow: var(--shadow-md);
position: relative;
overflow: hidden;
}

.contact-form::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/contact-form-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.05;
z-index: -1;
}

/* Heritage Concierge - UPDATED POSITION */
.concierge-badge {
position: fixed;
bottom: 110px; 
right: 30px;
background-color: var(--color-heritage-green-500);
color: white;
border-radius: 50%;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-lg);
cursor: pointer;
z-index: var(--z-fixed);
transition: transform var(--transition-bounce), background-color var(--transition-medium);
overflow: hidden;
border: none; 
padding: 0; 
}

.concierge-badge::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/concierge-bg.png'); */ /* REMOVED */
background-size: cover;
opacity: 0.2;
z-index: -1;
}

.concierge-badge:hover {
transform: scale(1.1);
background-color: var(--color-heritage-gold-500);
}

.concierge-badge::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 50%;
border: 2px solid rgba(255,255,255,0.5);
animation: pulse 2s infinite;
}

@keyframes pulse {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(1.5);
opacity: 0;
}
}

/* Responsive adjustment for smaller screens */
@media (max-width: 480px) {
.concierge-badge {
width: 50px;
height: 50px;
bottom: 90px; 
right: 20px;
}
}

/* Footer */
.site-footer {
background-color: var(--color-heritage-earth-500);
color: var(--color-text-light);
padding: var(--space-xl) 0 var(--space-md);
position: relative;
overflow: hidden;
}

.footer-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background-image: url('/images/footer-bg.jpg'); */ /* REMOVED */
background-size: cover;
opacity: 0.05;
z-index: 0;
}

.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: var(--space-lg);
margin-bottom: var(--space-lg);
position: relative;
z-index: 1;
}

@media (min-width: 992px) { 
    .footer-grid {
        grid-template-columns: 1fr 1fr 2fr; 
    }
}


.footer-column h4 {
font-family: var(--font-heritage);
font-size: 1.2rem;
margin-bottom: var(--space-sm);
color: var(--color-heritage-gold-400);
}

.footer-links {
list-style: none;
}

.footer-link {
margin-bottom: var(--space-xs);
}

.footer-link a {
color: var(--color-text-light);
transition: color var(--transition-fast);
}

.footer-link a:hover, .footer-link a:focus {
color: var(--color-heritage-gold-400);
}

.footer-social {
display: flex;
gap: var(--space-sm);
margin-top: var(--space-sm);
}

.social-icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255,255,255,0.1);
color: var(--color-text-light);
transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover, .social-icon:focus {
background-color: var(--color-heritage-gold-500);
color: var(--color-heritage-earth-900);
transform: translateY(-3px);
}

.footer-bottom {
text-align: center;
padding-top: var(--space-md);
border-top: 1px solid rgba(255,255,255,0.1);
font-size: 0.9rem;
position: relative;
z-index: 1;
}

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

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

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

.animate-fade-in {
animation: fadeIn 1s ease-out;
}

.animate-fade-in-up {
animation: fadeInUp 1s ease-out;
}

.animate-fade-in-right {
animation: fadeInRight 1s ease-out;
}

/* Responsive Styles with improved mobile adjustments */
@media (max-width: 1200px) {
.container {
padding: 0 var(--space-sm);
}

.hero-tree { 
    opacity: 0.5;
}
.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}
}

@media (max-width: 1024px) {
.timeline-line {
left: 30px;
}

.timeline-item {
padding-right: 0;
padding-left: 60px;
justify-content: flex-start;
}

.timeline-item:nth-child(even) {
padding-left: 60px;
}

.timeline-dot {
left: 30px;
}

.timeline-content {
width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content::after {
right: auto;
left: -15px;
border-width: 15px 15px 15px 0;
border-color: transparent var(--color-background-secondary) transparent transparent;
}

.contact-container {
grid-template-columns: 1fr;
}
.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}
}

@media (max-width: 768px) {
.header-container {
padding: var(--space-xs) var(--space-sm);
position: relative; 
}

.nav-toggle {
display: block; 
z-index: calc(var(--z-dropdown) + 2); 
}

.nav-close {
    position: absolute;
    top: 50%;
    right: var(--space-sm);
    transform: translateY(-50%);
    padding: var(--space-xs);
    z-index: calc(var(--z-dropdown) + 2); 
}

.main-nav {
position: fixed;
top: 0; 
left: 0;
width: 100%;
height: 100vh; 
background-color: var(--color-background-secondary);
box-shadow: var(--shadow-md);
padding: var(--space-2xl) var(--space-md) var(--space-md); 
transform: translateX(-100%); 
opacity: 0;
transition: transform var(--transition-medium), opacity var(--transition-medium);
z-index: var(--z-dropdown);
pointer-events: none;
display: flex; 
flex-direction: column; 
align-items: center; 
justify-content: center; 
}

.main-nav.active {
transform: translateX(0); 
opacity: 1;
pointer-events: auto;
}

.main-nav.active ~ .nav-toggle {
/* No specific style needed here, but you could hide it if nav is open though handled by JS logic */
}
.main-nav.active ~ .nav-close {
    display: block;
}

.main-nav ul {
flex-direction: column;
gap: var(--space-lg); 
text-align: center; 
}
.nav-link {
    font-size: 1.2rem; 
}

.hero-tree {
    display: none; /* Hide decorative image on smaller screens */
}
.hero-content {
    max-width: 100%;
}

.hero-cta-group {
flex-direction: column;
gap: var(--space-sm);
align-items: center; 
}

.finder-steps {
flex-direction: column;
gap: var(--space-md);
}

.finder-step:not(:last-child)::after {
top: auto;
right: auto;
bottom: -20px;
left: 50%;
width: 2px;
height: 20px;
transform: translateX(-50%);
}

.services-grid {
grid-template-columns: 1fr;
gap: var(--space-lg);
}

.service-card {
min-height: auto;
}

.gallery-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.testimonials-grid {
    grid-template-columns: 1fr; /* Mobile: 1 column */
}
}

@media (max-width: 480px) {
.logo {
width: 40px;
}

.site-title {
font-size: 1rem;
}

.hero {
min-height: auto; 
padding-bottom: var(--space-lg);
}

.heritage-finder {
padding: var(--space-md) var(--space-sm);
}

.testimonial-quote {
font-size: 1.1rem;
}

.testimonial-quote::before, .testimonial-quote::after {
font-size: 2rem;
}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}