/* ==========================================================================
   LANE ORTHODONTICS - ORGANIZED STYLESHEET
   ========================================================================== */

/* ==========================================================================
   1. ROOT VARIABLES & THEME SETUP
   ========================================================================== */

   :root {
    /* Spacing System */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border Radius */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-default: all 0.3s ease;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    
    /* Fonts */
    --pd-font: 'Shadows Into Light Two', cursive;
    --ll-font: 'Spicy Rice', cursive;
    --base-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --content-font: 'Quicksand', sans-serif;

    /* Default Theme Colors */
    --primary-color: #1a56db;
    --primary-dark: #1e429f;
    --secondary-color: #f3f4f6;
    --text-color: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    --footer-bg: #1f2937;
    --footer-text: #e5e7eb;

    /* Palm Desert Theme Colors */
    --pd-primary: #4a6023;
    --pd-primary-dark: #344518;
    --pd-secondary: #e09c54;
    --pd-text: #2c4312;
    --pd-text-light: #4a4a3a;
    --pd-footer-bg: #2c4312;
    --pd-footer-text: #f3eadc;

    /* Loma Linda Theme Colors */
    --ll-primary: #1a56db;
    --ll-primary-dark: #0c2d6b;
    --ll-secondary: #87CEEB;
    --ll-text: #333333;
    --ll-text-light: #555555;
    --ll-footer-bg: #d3aa69;
    --ll-footer-text: #ffffff;
}

/* ==========================================================================
   2. THEME SWITCHING
   ========================================================================== */

/* Palm Desert Theme */
body.location-palm-desert {
    --primary-color: var(--pd-primary);
    --primary-dark: var(--pd-primary-dark);
    --secondary-color: var(--pd-secondary);
    --text-color: var(--pd-text);
    --text-light: var(--pd-text-light);
    --footer-bg: var(--pd-footer-bg);
    --footer-text: var(--pd-footer-text);
    font-family: var(--base-font);
}

body.location-palm-desert h1,
body.location-palm-desert h2,
body.location-palm-desert h3,
body.location-palm-desert .section-header h2,
body.location-palm-desert .footer-logo {
    font-family: var(--pd-font);
}

/* Loma Linda Theme */
body.location-loma-linda {
    --primary-color: var(--ll-primary);
    --primary-dark: var(--ll-primary-dark);
    --secondary-color: var(--ll-secondary);
    --text-color: var(--ll-text);
    --text-light: var(--ll-text-light);
    --footer-bg: var(--ll-footer-bg);
    --footer-text: var(--ll-footer-text);
    font-family: var(--base-font);
}

body.location-loma-linda h1,
body.location-loma-linda h2,
body.location-loma-linda h3,
body.location-loma-linda .section-header h2,
body.location-loma-linda .footer-logo {
    font-family: var(--ll-font);
}

/* Content Font Application */
body p, body a, body span, body li {
    font-family: var(--content-font);
}

/* ==========================================================================
   3. RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--base-font);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    position: relative;
    overscroll-behavior-x: none;
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

html, body {
    position: relative;
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
}

body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-xxl) 0;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

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

.section-dark {
    background-color: var(--secondary-color);
}

/* ==========================================================================
   5. COMMON COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

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

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

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

.btn-secondary:hover {
    background-color: rgba(26, 86, 219, 0.05);
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Cards */
.card {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-default);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: bold;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   6. TOP BAR
   ========================================================================== */

.top-bar {
    color: var(--white);
    padding: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

body.location-palm-desert .top-bar {
    background-color: var(--primary-color);
    background-image: linear-gradient(to right, var(--primary-dark), var(--primary-color), var(--primary-color));
}

body.location-loma-linda .top-bar {
    background-color: var(--ll-primary);
    background-image: linear-gradient(to right, var(--ll-primary-dark), var(--ll-primary), var(--ll-primary));
}

.top-bar:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.contact-info {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.icon {
    margin-right: 8px;
}

.phone, .address {
    display: flex;
    align-items: center;
    padding: 4px 0;
    color: white;
}

.phone-link,
.address-link {
    color: white;
    text-decoration: none;
    transition: var(--transition-default);
}

.phone-link:hover,
.address-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Location Toggle */
.location-toggle {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
    z-index: 3;
}

.toggle-container {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px;
}

.toggle-option {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
}

.toggle-option.active {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-option.active:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.95);
    opacity: 0.8;
}

/* ==========================================================================
   7. NAVIGATION
   ========================================================================== */

.main-nav {
    position: sticky;
    position: -webkit-sticky; /* Safari support */
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 40px;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    touch-action: auto;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    gap: 24px;
    display: flex;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-default);
    position: relative;
    padding: 6px 0;
    font-weight: 500;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover:after {
    width: 100%;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.appointment-btn,
.payment-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.appointment-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.payment-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.payment-btn:hover {
    background-color: #e4e4e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.appointment-btn .icon,
.payment-btn .icon {
    margin-right: 8px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-default);
    z-index: 85;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation Themes */
body.location-palm-desert .main-nav {
    background-color: var(--primary-color);
    background-image: linear-gradient(to right, var(--primary-dark), var(--primary-color));
}

body.location-palm-desert .nav-links a {
    color: white;
    font-weight: 500;
}

body.location-palm-desert .nav-links a:after {
    background-color: rgba(255, 255, 255, 0.8);
}

body.location-palm-desert .nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

body.location-palm-desert .hamburger-menu .bar {
    background-color: white;
}

body.location-palm-desert .logo-img {
    filter: brightness(0) invert(1);
}

body.location-palm-desert .payment-btn {
    background-color: var(--pd-secondary);
    color: white;
}

body.location-palm-desert .payment-btn:hover {
    background-color: #c58138;
}

body.location-loma-linda .main-nav {
    background-color: var(--ll-primary);
    background-image: linear-gradient(to right, var(--ll-primary-dark), var(--ll-primary));
}

body.location-loma-linda .nav-links a {
    color: white;
    font-weight: 500;
}

body.location-loma-linda .nav-links a:after {
    background-color: rgba(255, 255, 255, 0.8);
}

body.location-loma-linda .nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

body.location-loma-linda .hamburger-menu .bar {
    background-color: white;
}

body.location-loma-linda .logo-img {
    filter: brightness(0) invert(1);
}

body.location-loma-linda .payment-btn {
    background-color: var(--ll-secondary);
    color: var(--ll-primary-dark);
}

body.location-loma-linda .payment-btn:hover {
    background-color: #7abfd9;
}

/* ==========================================================================
   8. HERO SECTION
   ========================================================================== */

.hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.hero a, .hero button, .hero .interactive-element {
    pointer-events: auto;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
    z-index: 2;
    background-color: rgba(0, 0, 70, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-weight: bold;
    text-align: center;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

.hero-video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    z-index: 3;
}

/* Palm Desert Hero */
body.location-palm-desert .hero {
    background-color: var(--primary-color);
    color: white;
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
}

body.location-palm-desert .hero h1,
body.location-palm-desert .hero p {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

body.location-palm-desert .hero-content {
    background-color: rgba(74, 96, 35, 0.01);
    padding: 30px;
    border-radius: var(--border-radius-md);
}

body.location-palm-desert .hero-image img {
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body.location-palm-desert .hero-video {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Loma Linda Hero - Wire Wagon */
body.location-loma-linda .hero {
    background-color: #87CEEB;
    position: relative;
    padding: 40px 0 60px;
    overflow: hidden;
}

body.location-loma-linda .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0.3;
    z-index: 1;
}

body.location-loma-linda .hero-content {
    background-color: transparent;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: none;
}

body.location-loma-linda .wire-wagon-header {
    text-align: center;
    margin-bottom: 30px;
    background-color: transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.location-loma-linda .hero h1 {
    font-family: var(--ll-font);
    color: #1a3c6e;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
}

body.location-loma-linda .wire-wagon-title {
    font-family: var(--ll-font);
    color: #0c2d6b;
    font-size: 4rem;
    margin: 0 0 5px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
}

body.location-loma-linda .mobile-ortho {
    font-family: var(--base-font);
    color: #1a3c6e;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    display: block;
}

body.location-loma-linda .wire-wagon-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 0;
    background-color: transparent;
    align-items: flex-start;
}

body.location-loma-linda .wire-wagon-text {
    flex: 1;
    padding-right: 30px;
    max-width: 55%;
    text-align: left;
}

body.location-loma-linda .wire-wagon-text h3 {
    font-family: var(--ll-font);
    font-size: 2.5rem;
    color: #1a3c6e;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.2;
}

body.location-loma-linda .wire-wagon-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 18px;
    color: #1a3c6e;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

body.location-loma-linda .wire-wagon-graphic {
    flex: 1;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -60px;
}

body.location-loma-linda .rv-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-top: 20px;
    background-color: transparent;
}

body.location-loma-linda .mobile-rv-image {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: transparent;
    margin-top: -20px;
}

body.location-loma-linda .rv-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.2));
}

body.location-loma-linda .contact-info-mobile {
    text-align: center;
    margin-top: -40px;
    background-color: transparent;
    position: relative;
    z-index: 4;
    padding-right: 30px;
}

body.location-loma-linda .contact-info-mobile h3 {
    font-family: var(--ll-font);
    font-size: 2.8rem;
    color: #1a3c6e;
    margin-bottom: -5px;
    font-style: italic;
    text-align: center;
}

body.location-loma-linda .contact-info-mobile h4 {
    font-family: var(--ll-font);
    font-size: 2.3rem;
    color: #1a3c6e;
    margin-top: -5px;
    margin-bottom: 0;
    font-style: italic;
    text-align: center;
}

body.location-loma-linda .phone-large {
    font-family: var(--ll-font);
    font-size: 2.8rem;
    color: #1a3c6e;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-style: italic;
    text-align: center;
}

body.location-loma-linda .phone-large:hover {
    transform: scale(1.05);
    color: #1a56db;
}

body.location-loma-linda .wire-wagon-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0px;
    background-color: transparent;
}

body.location-loma-linda .returning-patient {
    text-align: left;
    background-color: transparent;
}

body.location-loma-linda .returning-patient h3 {
    font-size: 2.2rem;
    font-style: italic;
    color: #1a3c6e;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
}

body.location-loma-linda .surfboard-container {
    max-width: 300px;
    background-color: transparent;
    margin-top: -10px;
}

body.location-loma-linda .surfboard-button {
    display: inline-block;
    position: relative;
    text-decoration: none;
    transform: rotate(-8deg);
    transition: transform 0.3s ease;
}

body.location-loma-linda .surfboard-button:hover {
    transform: translateY(-5px) rotate(-8deg);
}

body.location-loma-linda .surfboard-img {
    width: 130%;
    height: auto;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3));
}

/* Hero decorative elements */
.palm-leaf-decoration {
    position: absolute;
    top: -20;
    left: 0;
    right: 0;
    width: 100%;
    height: 280px;
    background-image: url('images/drape.png');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: 20% auto;
    z-index: 1;
    pointer-events: none;
    margin-top: -90px;
}

body.location-loma-linda .palm-leaf-decoration {
    opacity: 0.70;
    margin-top: -40px;
}

body.location-palm-desert .palm-leaf-decoration {
    background-image: url('images/drape.png');
    opacity: 0.9;
}

/* Landscape elements */
.landscape {
    margin-bottom: -90px;
    z-index: 8;
}

.beach-cta-img {
    display: block;
    width: 100%;
    height: 150px;
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 150px;
    position: relative;
    margin-bottom: 0;
}

body.location-loma-linda .beach-cta-img {
    background-image: url('images/top-beach.png');
}

body.location-palm-desert .beach-cta-img {
    background-image: url('images/top-desert.png');
}

/* ==========================================================================
   9. SANDY ACTIONS SECTION
   ========================================================================== */

.sandy-actions {
    background-color: #f4a460;
    padding: 70px 0;
    position: relative;
    overflow: visible;
}

.sandy-actions .container {
    position: relative;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.button-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 20px;
}

.circular-btn-image {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.circular-btn-image img {
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 5));
    transition: all 0.3s ease;
}

.circular-btn-image:hover {
    transform: translateY(-5px) scale(1.03);
}

/* ==========================================================================
   10. DOCTOR PROFILE SECTION
   ========================================================================== */

.doctor-profile {
    padding: 80px 0;
    background-color: #f5efe0;
    background-image: linear-gradient(to bottom, #f5efe0, #e9dfc8);
    position: relative;
    overflow: hidden;
}

.doctor-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(45deg, #e09c54 25%, transparent 25%),
                linear-gradient(-45deg, #e09c54 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.8;
}

.doctor-profile .container {
    position: relative;
    z-index: 2;
}

.doctor-profile .section-header h2 {
    color: var(--pd-primary);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.doctor-profile .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--pd-secondary);
    border-radius: 2px;
}

.doctor-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.doctor-info {
    flex: 1;
    max-width: 60%;
    position: relative;
    z-index: 3;
    background-color: rgba(245, 239, 224, 0.3);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(74, 96, 35, 0.2);
}

.doctor-bio {
    color: var(--pd-text);
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.6);
}

.doctor-bio p {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.doctor-image {
    flex: 0 0 35%;
    position: relative;
    z-index: 3;
    align-self: center;
}

.doctor-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid #fff;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.doctor-image:hover img {
    transform: scale(1.02);
}

.image-decoration {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background-color: var(--pd-secondary);
    border-radius: 10px;
    z-index: 1;
    opacity: 0.6;
}

/* Doctor Carousel */
.doctor-carousel {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 20%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--pd-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--pd-primary);
    transform: scale(1.2);
}

/* Decorative elements */
.doctor-profile .container::before {
    content: '';
    position: absolute;
    right: -60px;
    top: 50px;
    width: 180px;
    height: 180px;
    background-image: url('images/succulent2.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transform: rotate(15deg);
    z-index: 1;
    pointer-events: none;
}

.doctor-profile .container::after {
    content: '';
    position: absolute;
    left: -40px;
    bottom: 70px;
    width: 150px;
    height: 150px;
    background-image: url('images/cactus.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.doctor-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background-image: url('images/succulent2.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.doctor-content::after {
    content: '';
    position: absolute;
    right: 20%;
    bottom: 20%;
    width: 130px;
    height: 130px;
    background-image: url('images/cactus.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* ==========================================================================
   11. TREATMENTS/SERVICES SECTION
   ========================================================================== */

.treatments {
    background-color: #f5efe0;
    background-image: linear-gradient(to bottom, #f5efe0, #e9dfc8);
    position: relative;
    padding: 80px 0;
}

.treatments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(45deg, #e09c54 25%, transparent 25%),
                linear-gradient(-45deg, #e09c54 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.8;
}

.treatments .section-header h2 {
    color: var(--pd-primary);
    position: relative;
    display: inline-block;
}

.treatments .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--pd-secondary);
    border-radius: 2px;
}

/* Service Tabs */
.service-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: #fff;
    border: 2px solid var(--pd-primary);
    color: var(--pd-primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background-color: rgba(74, 96, 35, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background-color: var(--pd-primary);
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--pd-primary);
}

/* Tab Content */
.treatment-tabs-container {
    position: relative;
    min-height: 300px;
}

.treatment-tab {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.treatment-tab.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease forwards;
}

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

/* Treatment Cards */
.treatment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.treatment-card {
    background: linear-gradient(135deg, #fff, #f9f9f9);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.treatment-card:hover {
    transform: translateY(-8px);
    border-color: var(--pd-primary);
    box-shadow: 0 15px 35px rgba(74, 96, 35, 0.15);
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 96, 35, 0.1), transparent);
    transition: left 0.5s ease;
}

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

/* Service Icons */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(74, 96, 35, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.treatment-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(74, 96, 35, 0.4);
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    color: var(--pd-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.card-content p {
    color: #666;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* ==========================================================================
   12. INSURANCE & PAYMENT SECTION
   ========================================================================== */

.insurance-payment-section {
    background-color: #e09c54;
    background-image: linear-gradient(to bottom, #e09c54, #d69149);
    color: white;
    padding: 80px 0;
    position: relative;
}

.insurance-payment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="100%" height="100%" fill="none"/><path d="M0,0 L10,10 M20,0 L30,10 M40,0 L50,10 M60,0 L70,10 M80,0 L90,10 M100,0 L110,10 M120,0 L130,10 M140,0 L150,10 M160,0 L170,10 M180,0 L190,10 M0,20 L10,30 M20,20 L30,30 M40,20 L50,30 M60,20 L70,30 M80,20 L90,30 M100,20 L110,30 M120,20 L130,30 M140,20 L150,30 M160,20 L170,30 M180,20 L190,30" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.6;
    z-index: 1;
}

.insurance-payment-section .container {
    position: relative;
    z-index: 2;
}

.insurance-payment-section .section-header h2,
.insurance-payment-section .section-header p {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.insurance-payment-section .section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.insurance-payment-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.insurance-info-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.insurance-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" viewBox="0 0 150 150"><rect width="100%" height="100%" fill="none"/><path d="M0,0 L5,5 M15,0 L20,5 M30,0 L35,5 M45,0 L50,5 M60,0 L65,5 M75,0 L80,5 M90,0 L95,5 M105,0 L110,5 M120,0 L125,5 M135,0 L140,5" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    opacity: 0.5;
    z-index: -1;
}

.insurance-content {
    position: relative;
    z-index: 2;
}

.insurance-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.insurance-info-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.insurance-info-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.insurance-info-card p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.insurance-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.insurance-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.insurance-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.insurance-actions .btn-primary {
    background-color: white;
    color: var(--pd-primary);
    border: none;
}

.insurance-actions .btn-primary:hover {
    background-color: #f0f0f0;
}

.insurance-actions .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.insurance-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.scroll-to-contact {
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   13. LOCATION SECTION  
   ========================================================================== */

.location-section {
    background-color: #f5efe0;
    background-image: linear-gradient(to bottom, #f5efe0, #e8d9bc);
    position: relative;
    padding: 80px 0;
}

.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="100%" height="100%" fill="none"/><path d="M0,0 L5,5 M15,0 L20,5 M30,0 L35,5 M45,0 L50,5 M60,0 L65,5 M75,0 L80,5 M90,0 L95,5 M105,0 L110,5 M120,0 L125,5 M135,0 L140,5" stroke="rgba(224,156,84,0.08)" stroke-width="0.7"/></svg>');
    opacity: 0.8;
    z-index: 1;
}

.location-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(45deg, #e09c54 25%, transparent 25%),
                linear-gradient(-45deg, #e09c54 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 2;
}

.location-section .container {
    position: relative;
    z-index: 3;
}

.location-section .section-header h2 {
    color: var(--pd-primary);
    position: relative;
    display: inline-block;
}

.location-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--pd-secondary);
    border-radius: 2px;
}

.location-section .section-header p {
    color: var(--pd-text-light);
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    position: relative;
}

.location-content::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 5%;
    width: 120px;
    height: 120px;
    background-image: url('images/cactus.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
    transform: rotate(10deg);
}

.location-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 150px;
    height: 150px;
    background-image: url('images/succulent2.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
    transform: rotate(-5deg);
}

.location-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    border: 1px solid rgba(224, 156, 84, 0.2);
    backdrop-filter: blur(5px);
}

.location-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(245, 239, 224, 0.5), transparent);
    border-radius: 0 0 12px 12px;
    z-index: -1;
}

.location-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--pd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(74, 96, 35, 0.2);
}

.location-card h3 {
    color: var(--pd-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.location-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--pd-secondary);
    border-radius: 2px;
}

.location-card address {
    font-style: normal;
    color: var(--pd-text);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.office-hours {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(245, 239, 224, 0.5);
    border-radius: 8px;
}

.office-hours h4 {
    color: var(--pd-primary-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.office-hours p {
    color: var(--pd-text-light);
    margin: 0;
}

.location-btn {
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.location-btn i {
    margin-right: 8px;
}

.map-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 6px solid white;
    z-index: 3;
}

.google-map {
    width: 100%;
    height: 450px;
    position: relative;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    filter: saturate(0.9) sepia(0.1);
    transition: filter 0.3s ease;
}

.google-map:hover iframe {
    filter: saturate(1) sepia(0);
}

.map-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f5efe0" fill-opacity="0.5" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,266.7C672,267,768,245,864,234.7C960,224,1056,224,1152,213.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 4;
}

/* ==========================================================================
   14. CONTACT CTA SECTION
   ========================================================================== */

.contact-cta-section {
    background-color: #f5efe0;
    position: relative;
    overflow: visible;
    padding: 80px 0 0;
    margin-bottom: 0;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="100%" height="100%" fill="none"/><path d="M0,0 L5,5 M15,0 L20,5 M30,0 L35,5 M45,0 L50,5 M60,0 L65,5 M75,0 L80,5 M90,0 L95,5 M105,0 L110,5 M120,0 L125,5 M135,0 L140,5" stroke="rgba(224,156,84,0.08)" stroke-width="0.7"/></svg>');
    opacity: 0.8;
}

.contact-cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(45deg, #e09c54 25%, transparent 25%),
                linear-gradient(-45deg, #e09c54 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 2;
}

.contact-cta-section .container {
    position: relative;
    padding-bottom: 160px;
}

.contact-cta-section .section-header h2 {
    color: var(--pd-primary);
    position: relative;
    display: inline-block;
}

.contact-cta-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--pd-secondary);
    border-radius: 2px;
}

.contact-cta-section .section-header p {
    color: var(--pd-text-light);
    margin-bottom: 30px;
}

.contact-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-landscape {
    margin-bottom: -30px;
}

.footer-cta-img {
    display: block;
    width: 100%;
    height: 150px;
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 150px;
    position: relative;
    margin-bottom: 0;
}

body.location-loma-linda .footer-cta-img {
    background-image: url('images/bottom-beach.png');
    margin-bottom: -15px;
}

body.location-palm-desert .footer-cta-img {
    background-image: url('images/footer.png');
    margin-bottom: 5px;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-section {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.contact-methods {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    color: white;
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background-color: #aa8144;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-links-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--pd-secondary);
}

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

.footer-links-column li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-column a:hover {
    color: white;
    transform: translateX(5px);
}

address {
    font-style: normal;
    line-height: 1.6;
}

.hours {
    margin-top: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   16. VISIBILITY UTILITIES
   ========================================================================== */

/* Location-based visibility */
[data-location-visibility="palm-desert"] {
    display: block;
}

[data-location-visibility="loma-linda"] {
    display: block;
}

body.location-loma-linda [data-location-visibility="palm-desert"] {
    display: none !important;
}

body.location-palm-desert [data-location-visibility="loma-linda"] {
    display: none !important;
}

/* Content switching based on location */
[data-location-content="true"] [data-location="palm-desert"] {
    display: block;
}

[data-location-content="true"] [data-location="loma-linda"] {
    display: none;
}

body.location-loma-linda [data-location-content="true"] [data-location="palm-desert"] {
    display: none;
}

body.location-loma-linda [data-location-content="true"] [data-location="loma-linda"] {
    display: block;
}

/* ==========================================================================
   17. RESPONSIVE DESIGN
   ========================================================================== */

/* Desktop First - Large screens */
@media (min-width: 768px) {
    /* Hide mobile-only navigation elements */
    .nav-header,
    .menu-close,
    .mobile-menu-logo,
    .mobile-menu-title,
    .nav-divider {
        display: none !important;
    }

    .nav-link-icon {
        display: none;
    }

    /* Desktop navigation layout */
    .nav-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        width: auto;
        padding: 0;
    }

    .nav-links li {
        width: auto;
        border: none;
    }

    .nav-links a {
        padding: 6px 0;
        margin: 0 12px;
    }

    .btn-container {
        flex-direction: row;
    }

    /* Hero section desktop layout */
    body.location-palm-desert .hero-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    body.location-palm-desert .hero-content {
        flex: 1;
        text-align: left;
        background-color: rgba(74, 96, 35, 0.01);
        padding: 30px;
        border-radius: var(--border-radius-md);
        margin-bottom: 0;
    }

    body.location-palm-desert .hero-content h1 {
        text-align: left;
        margin-bottom: 20px;
    }

    body.location-palm-desert .hero-content p {
        text-align: left;
        margin: 0 0 24px 0;
    }

    body.location-palm-desert .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body.location-palm-desert .hero-video {
        width: 100%;
        max-width: 500px;
        height: auto;
    }

    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero-content {
        flex: 1;
        text-align: left;
        padding-right: 40px;
        margin-bottom: 0;
    }

    .hero p {
        margin: 0 0 24px;
    }

    .hero-image {
        flex: 1;
    }

    /* Doctor profile desktop layout */
    .doctor-content {
        flex-direction: row;
        text-align: left;
        gap: 60px;
    }

    .doctor-info {
        text-align: left;
        flex: 1;
        background-color: rgba(245, 239, 224, 0.25);
    }

    .doctor-info h2 {
        text-align: left;
        display: block;
    }

    .doctor-info h2::after {
        left: 0;
        transform: none;
    }

    .doctor-image {
        flex: 1;
    }

    .treatment-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 50px;
        justify-items: center;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .treatment-card {
        width: 100%;
        max-width: 280px;
        padding: 25px 15px;
    }

    /* Footer desktop layout */
    .footer-content {
        flex-direction: row;
    }

    .footer-links {
        flex-direction: row;
        flex: 1;
        justify-content: space-around;
    }

    /* Location section desktop layout */
    .location-content {
        flex-direction: row;
        align-items: stretch;
    }

    .location-details {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .location-card {
        width: 100%;
        max-width: 400px;
    }

    .map-container {
        flex: 1.5;
    }
}

/* Tablet and smaller desktop screens */
@media (max-width: 1024px) {
    .sandy-actions .cactus {
        width: 130px;
        left: -60px;
        bottom: -15px;
    }

    .sandy-actions .succulent-left {
        width: 130px;
        left: -65px;
        bottom: -5px;
    }

    .sandy-actions .succulent-right {
        width: 130px;
        left: -55px;
        bottom: -20px;
    }
}

/* Mobile and tablet portrait */
@media (max-width: 767px) {
    /* Top bar mobile adjustments */
    .top-bar {
        padding-top: 25px;
    }

    .top-bar .container {
        flex-wrap: wrap;
    }

    .location-toggle {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
        z-index: 10;
    }

    /* Mobile navigation */
    .hamburger-menu {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        background-color: #15181e;
        box-shadow: var(--shadow-lg);
        padding-top: 0;
        transition: all 0.3s ease-in-out;
        z-index: 90;
        justify-content: flex-start;
        overflow-y: auto;
        padding-bottom: 60px;
        scrollbar-width: none;
        -ms-overflow-style: none;

        overflow-x: hidden; /* Prevent horizontal scrolling */
        overscroll-behavior: contain; /* Prevent elastic scrolling */
        overscroll-behavior-y: contain; /* Allow vertical, prevent elastic */
        overscroll-behavior-x: none; /* No horizontal overscroll */
        -webkit-overflow-scrolling: touch;
    }

    body.location-palm-desert .nav-container {
        background-color: var(--primary-dark);
    }

    body.location-loma-linda .nav-container {
        background-color: var(--ll-primary-dark);
    }

    .nav-divider {
        height: 1px;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 15px 0;
    }

    .nav-container.active {
        left: 0;
    }

    .nav-container.active .nav-header {
        display: flex;
    }

    .nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 15px;
        display: none;
    }

    .mobile-menu-logo {
        display: flex;
        align-items: center;
    }

    .mobile-menu-logo img {
        height: 40px;
        width: auto;
    }

    .mobile-menu-title {
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
        margin-left: 10px;
    }

    .menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0 20px;
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: white;
        font-size: 1.1rem;
        transition: background-color 0.2s ease;
        margin: 0;
    }

    .nav-link-icon {
        margin-right: 15px; /* Increased from default spacing */
        min-width: 20px; /* Ensure consistent icon width */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link-icon i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        transform: none;
    }

    .nav-links a:after {
        display: none;
    }

    body.location-loma-linda .nav-links a {
        color: white;
    }

    body.location-loma-linda .hamburger-menu.active .bar {
        background-color: white;
    }

    body.location-palm-desert .menu-backdrop.active,
    body.location-loma-linda .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile navigation buttons */
    .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .nav-buttons .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        border-radius: 5px;
    }

    body.location-palm-desert .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    body.location-palm-desert .hero-content {
        order: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    body.location-palm-desert .hero-content h1 {
        order: 1;
        text-align: center;
        margin-bottom: 16px;
    }

    body.location-palm-desert .hero-content p {
        order: 2;
        text-align: center;
        margin: 0 0 0 0;
    }

    body.location-palm-desert .hero-image {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    body.location-palm-desert .hero-video {
        width: 100%;
        max-width: 400px;
    }

    .appointment-btn,
    .payment-btn {
        width: 100%;
        margin: 5px 0;
        justify-content: center;
    }

    .appointment-btn {
        margin-left: 0;
        margin-right: 0;
    }

    /* Mobile sections */
    .sandy-actions {
        padding: 60px 0;
    }

    .action-buttons {
        gap: 20px;
    }

    .circular-btn {
        width: 150px;
        height: 150px;
        font-size: 0.8rem;
    }

    .doctor-profile {
        padding: 60px 0;
    }

    /* Fix doctor section mobile layout - proper order */
    .doctor-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    /* Reorder elements on mobile */
    .doctor-info {
        max-width: 100%;
        text-align: center;
        order: 2; /* Text comes after image */
    }

    .doctor-image {
        margin-top: 20px;
        max-width: 300px;
        align-self: center;
        order: 1; /* Image comes first after header */
    }

    /* Carousel comes last */
    .doctor-carousel {
        order: 3;
    }

    .doctor-content::before {
        width: 180px;
        height: 180px;
        opacity: 0.25;
    }

    .doctor-content::after {
        width: 100px;
        height: 100px;
        right: 10%;
        bottom: 15%;
        opacity: 0.25;
    }

    .doctor-profile .container::before,
    .doctor-profile .container::after {
        display: none;
    }

    .treatment-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        justify-items: center;
    }

    .treatment-card {
        width: 100%;
        max-width: 280px;
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

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

    .contact-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .insurance-actions {
        flex-direction: column;
        align-items: center;
    }

    .insurance-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .contact-cta-section .container {
        padding-bottom: 120px;
    }

    .footer {
        margin-top: -18px;
    }

    /* Mobile carousel */
    .carousel-container {
        height: 400px;
    }

    .carousel-slide img {
        height: 400px;
    }

    /* Mobile service tabs */
    .service-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Mobile location section */
    .location-content::before,
    .location-content::after {
        display: none;
    }

    .location-card {
        padding: 25px 20px;
    }

    .location-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .location-card h3 {
        font-size: 1.3rem;
    }

    .map-container {
        height: 350px;
    }

    .google-map,
    .google-map iframe {
        height: 100%;
    }

    /* Mobile insurance section */
    .insurance-info-card {
        padding: 30px 20px;
    }

    /* Loma Linda specific mobile adjustments */
    body.location-loma-linda .wire-wagon-layout {
        flex-direction: column;
        align-items: center;
    }

    body.location-loma-linda .wire-wagon-text {
        text-align: center;
        max-width: 100%;
        padding-right: 0;
    }

    body.location-loma-linda .wire-wagon-text p {
        font-size: 1.15rem;
        padding: 0 10px;
    }

    body.location-loma-linda .wire-wagon-graphic {
        margin-top: 0;
        max-width: 100%;
    }

    body.location-loma-linda .contact-info-mobile {
        margin-top: 0;
        padding-right: 0;
    }

    body.location-loma-linda .wire-wagon-footer {
        flex-direction: column;
        margin-top: 60px;
        gap: 30px;
    }

    body.location-loma-linda .returning-patient {
        text-align: center;
    }

    body.location-loma-linda .surfboard-container {
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Palm leaf decoration mobile */
    .palm-leaf-decoration {
        height: 340px;
        background-size: 150% auto;
    }

    .hero {
        padding-top: 50px;
    }

    /* Landscape mobile adjustments */
    .landscape {
        margin-bottom: -95px;
    }

    body.location-loma-linda .landscape {
        margin-bottom: -25px;
    }
}

/* Small mobile screens */
@media (max-width: 576px) {
    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .treatment-cards {
        grid-template-columns: 1fr;
    }

    .doctor-info h2 {
        font-size: 2rem;
    }

    .circular-btn {
        width: 130px;
        height: 130px;
        font-size: 0.75rem;
        padding: 15px;
    }

    .sandy-actions .desert-element {
        width: 100px;
        opacity: 0.7;
    }

    .footer-landscape {
        margin-bottom: -15px;
    }

    .footer {
        margin-top: -67px;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-slide img {
        height: 350px;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
    }

    .doctor-carousel {
        width: 95%;
    }

    .carousel-dots {
        bottom: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .service-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 80%;
        max-width: 280px;
    }

    .tab-btn.active::after {
        display: none;
    }

    .location-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .circular-btn-image img {
        width: 250px;
        height: 250px;
        gap: 0;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    /* Loma Linda mobile specific */
    body.location-loma-linda .wire-wagon-title {
        font-size: 2.5rem;
    }

    body.location-loma-linda .wire-wagon-text h3,
    body.location-loma-linda .returning-patient h3 {
        font-size: 1.8rem;
    }

    body.location-loma-linda .contact-info-mobile h3 {
        font-size: 1.8rem;
    }

    body.location-loma-linda .contact-info-mobile h4 {
        font-size: 1.6rem;
    }

    body.location-loma-linda .phone-large {
        font-size: 2rem;
    }

    body.location-loma-linda .surfboard-img {
        width: 120%;
        padding-right: 20px;
    }
}

/* Extra small mobile screens */
@media (max-width: 500px) {
    .circular-btn-image img {
        width: 250px;
        height: 250px;
        gap: 0;
    }

    .contact-cta-section .section-header h2 {
        font-size: 1.8rem;
    }

    .location-section .section-header h2 {
        font-size: 1.8rem;
    }

    .insurance-payment-section .section-header h2 {
        font-size: 1.8rem;
    }

    .insurance-info-card {
        padding: 20px 15px;
    }

    .feature p {
        font-size: 1rem;
    }
}

/* Ultra small screens */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .circular-btn-image img {
        width: 200px;
        height: 200px;
    }
}

/* ==========================================================================
   18. UTILITY CLASSES & FIXES
   ========================================================================== */

/* Prevent horizontal scrolling */
.section, .hero, .sandy-actions, .doctor-profile, .treatments,
.insurance-payment-section, .location-section, .contact-cta-section, .footer {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.beach-cta-img, .footer-cta-img {
    max-width: 100%;
    overflow: hidden;
}

/* Mobile browser fixes */
@media (max-width: 767px) {
    body {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .doctor-profile .container::before,
    .doctor-profile .container::after,
    .sandy-actions .cactus,
    .sandy-actions .succulent-left,
    .sandy-actions .succulent-right {
        display: none;
    }

    .menu-backdrop {
        z-index: 85;
    }

    .nav-container {
        z-index: 90;
        height: 100%;
        max-height: 100vh;
    }

    .hamburger-menu {
        z-index: 101;
    }
}

/* Hide scrollbars */
.nav-container::-webkit-scrollbar {
    display: none;
}

/* Print styles */
@media print {
    .hamburger-menu,
    .menu-backdrop,
    .nav-buttons,
    .palm-leaf-decoration {
        display: none !important;
    }

    .hero {
        padding-top: 20px !important;
    }
}