/* =========================================
   1. VARIABLES & CONFIGURATION
   ========================================= */
:root {
    /* Palette */
    --color-primary: #2c7a7b;       /* Teal */
    --color-primary-dark: #234e52;  /* Dark Teal */
    --color-accent: #e6fffa;        /* Light Teal Background */
    --color-text-main: #2d3748;     /* Dark Grey */
    --color-text-muted: #718096;    /* Medium Grey */
    --color-bg-body: #ffffff;
    --color-bg-light: #f7fafc;      /* Off-white */
    --color-gold: #c5a059;          /* Title Underline */
    
    /* Typography */
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing & Layout */
    --container-width: 1100px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-pill: 50px;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --transition-base: all 0.3s ease;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition-base); }

/* Focus Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* Underline style for titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 10px auto 0;
}

h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.text-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.text-link:hover { color: var(--color-primary-dark); }

/* =========================================
   4. UTILITIES
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--color-bg-light); }
.bg-teal { background-color: var(--color-primary); color: #fff; }
.text-center { text-align: center; }
.mb-large { margin-bottom: 3rem; }

/* Image Loading */
.image-placeholder {
    position: relative;
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    overflow: hidden;
    border-radius: var(--radius-md); 
    background-color: #eee;
}
.fade-in-img { opacity: 0; transition: opacity 0.6s ease-out; width: 100%; height: 100%; object-fit: cover; }
.fade-in-img.loaded { opacity: 1; }

/* =========================================
   5. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm); cursor: pointer;
}
.btn-primary { background-color: var(--color-primary); color: #fff; }
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-white { background-color: #fff; color: var(--color-primary); }
.btn-white:hover { background-color: var(--color-accent); }
.full-width { width: 100%; }

/* =========================================
   6. HEADER & HERO
   ========================================= */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    height: var(--header-height);
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { height: 60px; width: auto; }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a { font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--color-primary); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; padding: 10px; }
.mobile-menu {
    display: none; background: #fff; border-top: 1px solid #eee; padding: 1rem 0;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
}
.mobile-menu.active { display: flex; flex-direction: column; }
.mobile-menu a { padding: 1rem 1.5rem; border-bottom: 1px solid #f0f0f0; font-weight: 500; }

/* Hero */
.hero {
    position: relative;
    min-height: 75vh; min-height: 75dvh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    padding: 100px 20px; overflow: hidden;
}
.hero-bg-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-size: cover; background-position: center; image-rendering: pixelated;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(44, 122, 123, 0.7), rgba(35, 78, 82, 0.7));
    z-index: 2; pointer-events: none;
}
.hero-content { position: relative; z-index: 3; width: 100%; }

/* Trust Badge */
.trust-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero h1 {
    color: #fff; font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.hero p { font-size: 1.25rem; max-width: 650px; margin: 0 auto 2.5rem; opacity: 0.95; }
.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* =========================================
   7. SECTIONS & TIMELINE
   ========================================= */
.single-practitioner-layout {
    display: grid; grid-template-columns: 1fr 350px; gap: 4rem; align-items: start;
}
.role { font-style: italic; color: var(--color-primary); font-weight: 600; display: block; margin-bottom: 1.5rem; }

/* Wrapper to handle spacing */
.practitioner-header-meta {
    display: flex;
    flex-direction: column; /* Stack them on mobile */
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Ensure the role doesn't have the old margin since the wrapper handles it now */
.role {
    margin-bottom: 0; 
}

/* Container alignment */
.subtle-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Slightly more space for the colored logo */
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-text-muted);
    padding: 4px 0;
    transition: var(--transition-base);
}

/* Specific SVG Sizing */
.google-logo-svg {
    width: 18px;  /* Fixed width to match text height */
    height: 18px; /* Fixed height */
    display: block;
    flex-shrink: 0; /* Prevents squishing on small screens */
}

.subtle-rating-link .stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 0.8rem;
    line-height: 1; /* Helps alignment */
}

/* Hover Effect */
.subtle-rating-link:hover .rating-label {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Timeline */
.diploma-box { margin-top: 2rem; }
.diploma-timeline {
    position: relative; padding-left: 20px; border-left: 2px solid #e2e8f0;
}
.diploma-timeline li { position: relative; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.diploma-timeline li::before {
    content: ''; position: absolute; left: -26px; top: 6px;
    width: 10px; height: 10px; background: var(--color-primary);
    border: 2px solid #fff; border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-primary);
}
.diploma-timeline .year { display: block; font-weight: 700; color: var(--color-primary-dark); font-size: 0.9rem; }
.diploma-timeline .desc { font-size: 0.95rem; color: var(--color-text-muted); }

.affiliations-box { margin-top: 1.5rem; font-size: 0.9rem; border-top: 1px solid #eee; padding-top: 1rem; color: var(--color-text-muted); }
.practitioner-image-wrapper .image-placeholder { aspect-ratio: 3/4; box-shadow: var(--shadow-md); border-radius: var(--radius-md); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.service-card {
    background: #fff; padding: 2rem; border-radius: var(--radius-md); text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); border: 1px solid transparent; transition: var(--transition-base);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.service-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1.5rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: 9fr 16fr; gap: 1.5rem; align-items: center; }
.gallery-item .image-placeholder { width: 100%; box-shadow: var(--shadow-md); height: auto; }
.ratio-portrait { aspect-ratio: 3/4; }
.ratio-landscape { aspect-ratio: 4/3; }
.image-caption { text-align: center; margin-top: 0.75rem; font-size: 0.9rem; color: var(--color-text-muted); font-style: italic; }

/* =========================================
   8. PRICING 
   ========================================= */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.info-block.white-card {
    background: #fff; color: var(--color-text-main); padding: 2.5rem;
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; height: 100%;
}
.price-list li, .hours-list li {
    display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid #eee;
}
.price-list li:last-child, .hours-list li:last-child { border-bottom: none; }

/* --- NEW PAYMENT METHODS STYLING --- */
.payment-methods-clean {
    margin-top: 1.5rem;
    padding: 0;              /* Removed padding */
    background: transparent; /* Removed grey background */
    font-size: 0.95rem;      /* Slightly larger for readability */
}

.payment-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted); /* Softer text color */
}

.payment-note:last-child { margin-bottom: 0; }

.payment-note i {
    color: var(--color-primary); /* Teal icon */
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
/* ----------------------------------- */

.card-cta { margin-top: auto; padding-top: 2rem; text-align: center; }

/* =========================================
   9. CONTACT GRID
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; 
    gap: 3rem;
    align-items: start;
}
.contact-info { grid-column: 1 / 2; grid-row: 1 / 2; }
.map-wrapper { grid-column: 2 / 3; grid-row: 1 / 3; height: 100%; min-height: 400px; }
.exterior-wrapper { grid-column: 1 / 2; grid-row: 2 / 3; }

/* Contact Items styling */
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.contact-item .icon {
    width: 40px; height: 40px; background: var(--color-accent); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;
}

/* Phone Button */
.phone-link {
    display: inline-block; font-weight: 700; font-size: 1.25rem;
    color: var(--color-primary-dark); border: 2px solid var(--color-accent);
    padding: 5px 15px; border-radius: 8px; transition: all 0.2s;
}
.phone-link:hover { background: var(--color-accent); color: var(--color-primary); }

/* Parking & Access */
.access-details { background: var(--color-bg-light); padding: 1.5rem; border-radius: var(--radius-md); margin: 1.5rem 0; font-size: 0.95rem; }
.access-details h4 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--color-primary-dark); margin-bottom: 1rem; }
.access-details ul { padding-left: 1.5rem; list-style: circle; margin-top: 0.5rem; }
.access-info-discrete { margin-top: 10px; color: var(--color-text-muted); }

/* Map Wrapper */
.smart-map-link {
    display: block; width: 100%; height: 100%;
    border-radius: var(--radius-md); overflow: hidden; position: relative;
    box-shadow: var(--shadow-md); border: 2px solid #fff;
    background-color: #e2e8f0;
}
.smart-map-image { width: 100%; height: 100%; background-size: cover; background-position: center; }

/* --- UPDATED MAP BUTTON POSITION --- */
.map-overlay {
    position: absolute; inset: 0; 
    /* removed centering flex properties */
    background: rgba(44, 122, 123, 0.2);
    transition: background 0.3s ease;
}
.smart-map-link:hover .map-overlay { background: rgba(44, 122, 123, 0.1); }

.map-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff; color: var(--color-primary-dark);
    padding: 12px 24px; border-radius: 30px; font-weight: 700;
    display: flex; gap: 10px; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* ----------------------------------- */

.exterior-wrapper .image-placeholder { aspect-ratio: 16/9; box-shadow: var(--shadow-sm); }

/* =========================================
   10. FOOTER & RESPONSIVE
   ========================================= */
footer {
    background-color: var(--color-primary-dark); color: rgba(255,255,255,0.7);
    padding: 2rem 0; text-align: center; font-size: 0.9rem;
}
.footer-content { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.mobile-sticky-cta {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-primary); padding: 1rem; text-align: center;
    z-index: 2000; box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
.mobile-sticky-cta a { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Responsive Logic */
@media (max-width: 900px) {
    /* Stack Practitioner */
    .single-practitioner-layout { grid-template-columns: 1fr; gap: 3rem; }
    .practitioner-image-wrapper { order: -1; max-width: 400px; margin: 0 auto; }
    
    /* Stack Info Sections */
    .split-layout { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }

    /* Contact: Stack Everything. Order: Text -> Map -> Image */
    .contact-layout { grid-template-columns: 1fr; grid-template-rows: auto; gap: 2rem; }
    .contact-info { order: 1; }
    .map-wrapper { order: 2; grid-column: 1; grid-row: auto; min-height: 250px; }
    .exterior-wrapper { order: 3; grid-column: 1; grid-row: auto; }
}

@media (max-width: 768px) {
    body { padding-bottom: 60px; }
    .header-cta, .main-nav { display: none; }
    .hamburger { display: block; }
    
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    
    .mobile-sticky-cta { display: block; }
    .card-cta .btn { width: 100%; }
}