/* ===================================
   Dr. Marinus Medical Practice
   Static build (Crazy Websites conversion of the v1 site).
   Base is the original hand-written stylesheet; the Tailwind/shadcn
   sections it did not cover are converted at the end of this file.
   =================================== */

/* CSS Variables - Color Palette Extracted from Original Site */
:root {
    /* Primary Colors */
    --primary-blue: #008EB4;
    --primary-green: #3ABB98;
    --primary-dark: #1a1a1a;
    --white: #ffffff;
    --off-white: #f9f9f9;
    
    /* Gray Neutrals */
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Semantic Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --border-color: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
}

/* ===================================
   Base Styles
   =================================== */

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-sm);
    z-index: 1002;
}

.skip-link:focus {
    top: 2.5rem;
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 1rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo a {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 125px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: var(--spacing-xs);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.main-nav.active .nav-menu {
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-md);
}

.main-nav.active .nav-menu a {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-200);
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(to bottom, #f0f9ff, var(--white));
}

.hero-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.hero-images img {
    width: 100%;
    height: auto;
}

/* ===================================
   Buttons
   =================================== */

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-width: 150px;
}

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

.btn-primary:hover {
    background: #007499;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.link-learn-more,
.link-inquire {
    color: var(--primary-blue);
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.link-learn-more:hover,
.link-inquire:hover {
    text-decoration: underline;
}

/* ===================================
   About Section
   =================================== */

.about-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--white);
}

.about-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image img {
    width: 100%;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   Services Section
   =================================== */

.services-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--gray-100);
}

.services-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 120px;
    height: auto;
    margin: 0 auto var(--spacing-md);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* ===================================
   Locations Section
   =================================== */

.locations-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--white);
}

.locations-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    text-align: center;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

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

.location-img {
    width: 171px;
    height: 171px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.location-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-md);
}

/* ===================================
   Team Section
   =================================== */

.team-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--gray-100);
}

.team-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    text-align: center;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

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

.team-img {
    width: 171px;
    height: 171px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.team-role {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
}

/* ===================================
   Gallery Section
   =================================== */

.gallery-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: var(--white);
}

.gallery-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

/* Gallery Slideshow */
.gallery-slideshow {
    margin-top: var(--spacing-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: var(--shadow-lg);
}

.slideshow-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
    z-index: 1;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 300;
    line-height: 1;
}

.slideshow-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-btn-prev {
    left: 20px;
}

.slideshow-btn-next {
    right: 20px;
}

.slideshow-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-md);
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-dot:hover {
    background: var(--gray-400);
    transform: scale(1.2);
}

.slideshow-dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

.gallery-empty {
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-secondary);
}

/* ===================================
   Services Page
   =================================== */

.services-hero {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(to bottom, #f0f9ff, var(--white));
    text-align: center;
}

.services-hero-container h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.service-category-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.service-category-section:nth-child(even) {
    background: var(--gray-100);
}

.service-category-container {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.category-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--primary-blue);
    display: inline-block;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* ===================================
   Contact Page
   =================================== */

.contact-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.contact-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero-overlay h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-content-section {
    padding: var(--spacing-3xl) var(--spacing-lg);
}

.contact-content-container {
    max-width: var(--container-lg);
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    line-height: 1.8;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.contact-info-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.contact-info-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.contact-info-card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.contact-info-link {
    font-size: 1.125rem;
    color: var(--primary-blue);
    font-weight: var(--font-weight-semibold);
}

/* ===================================
   Location Detail Pages
   =================================== */

.back-nav {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gray-100);
}

.back-link {
    color: var(--primary-blue);
    font-weight: var(--font-weight-medium);
}

.location-detail-hero {
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    background: linear-gradient(to bottom, #f0f9ff, var(--white));
}

.location-detail-img {
    width: 300px;
    height: 300px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.location-detail-hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
}

.location-team-section,
.location-services-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

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

.location-services-section {
    background: var(--gray-100);
}

.location-content-container {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.location-content-container h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.location-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.team-card-small {
    text-align: center;
}

.team-img-small {
    width: 123px;
    height: 123px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-sm);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.team-card-small h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.location-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.service-item-small {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.service-item-small h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.more-services-text {
    margin-top: var(--spacing-xl);
    text-align: center;
    color: var(--text-secondary);
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: var(--white);
}

.footer-separator {
    width: 100%;
    padding: 0;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-separator-img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-cta-section {
    background: linear-gradient(135deg, #008EB4 0%, #3ABB98 100%);
    padding: var(--spacing-2xl) 0.5rem;
    color: var(--white);
}

.footer-cta-container {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.footer-column {
    text-align: left;
}

.footer-logo-column {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    height: 125px;
    width: auto;
}

.footer-column-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-contact-label {
    font-size: 0.625rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1px;
    margin-bottom: 4px;
    margin-top: var(--spacing-sm);
    color: var(--white);
    opacity: 0.8;
}

.footer-contact-link {
    font-size: 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: opacity 0.2s ease;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.footer-contact-link:hover {
    opacity: 0.8;
}

.footer-cta-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
    opacity: 0.9;
}

.footer-cta-heading {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
    color: var(--white);
}

.footer-cta-heading .highlight {
    font-style: italic;
    font-weight: var(--font-weight-bold);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--white);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    font-size: 0.625rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1px;
    margin-bottom: 2px;
    color: var(--white);
    opacity: 0.8;
}

.contact-value {
    font-size: 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: opacity 0.2s ease;
}

.contact-value:hover {
    opacity: 0.8;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    background: var(--white);
    color: var(--text-secondary);
    padding: var(--spacing-sm);
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-secondary);
}

/* ===================================
   Responsive Design - Mobile
   =================================== */

@media (max-width: 767px) {
    /* Reduce section padding on mobile to prevent horizontal scroll */
    .hero-section,
    .about-section,
    .services-section,
    .locations-section,
    .team-section,
    .gallery-section,
    .contact-content-section,
    .service-category-section,
    .location-services-section,
    .footer-cta-section {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    /* Single column layout for service categories on mobile */
    .service-categories {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .services-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduce gap for team cards on mobile */
    .team-cards {
        gap: 0.75rem;
    }
    
    /* Reduce gap for location cards on mobile */
    .location-cards {
        gap: 0.75rem;
    }
    
    /* Reduce gap for gallery grid on mobile */
    .gallery-grid {
        gap: 0.75rem;
    }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */

@media (min-width: 768px) {
    /* Show desktop navigation */
    .main-nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Hero Section - Two Column */
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    /* About Section - Two Column */
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Service Categories - Min 2 columns */
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Location Cards - 3 columns */
    .location-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Team Cards - Min 2 columns */
    .team-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Footer Columns - 2 columns on tablet */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Service Categories - 4 columns */
    .service-categories {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Team Cards - 4 columns */
    .team-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Footer Columns - 4 columns on desktop */
    .footer-columns {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Larger spacing on desktop */
    .hero-section,
    .about-section,
    .services-section,
    .locations-section,
    .team-section,
    .gallery-section {
        padding-top: var(--spacing-3xl);
        padding-bottom: var(--spacing-3xl);
    }
}

/* ===================================
   Accessibility
   =================================== */

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduce 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 0 0 2px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 0 0 3px rgba(0, 0, 0, 0.3);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu-toggle,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* ===================================
   Emergency Banner
   =================================== */

.emergency-banner {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    width: 100%;
    z-index: 1001;
}

.emergency-banner-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 12s linear infinite;
}

.emergency-banner-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 3rem;
}

.medical-cross {
    width: 18px;
    height: 18px;
    fill: white;
}

.emergency-phone-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.emergency-phone-link:hover {
    border-bottom-color: white;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .emergency-banner-content {
        animation: none;
        padding-left: 0;
    }
    
    .emergency-banner-item:nth-child(2) {
        display: none;
    }
}

/* ===================================
   Mobile Bottom Navigation
   =================================== */

.mobile-bottom-nav-container-simple {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav-container-simple {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        padding: 0 12px 12px 12px;
        gap: 8px;
        pointer-events: none;
    }

    .mobile-bottom-nav-container-simple > * {
        pointer-events: auto;
    }
    
    .mobile-bottom-nav {
        display: flex;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
        padding: 8px 0;
    }
    
    .mobile-bottom-nav-list {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-bottom-nav-item {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .mobile-bottom-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        color: var(--gray-600);
        text-decoration: none;
        font-size: 0.6875rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border-radius: 12px;
        min-width: 52px;
        border: none;
        background: none;
        cursor: pointer;
    }
    
    .mobile-bottom-nav-link.active {
        color: var(--primary-blue);
        background: rgba(58, 173, 225, 0.08);
    }
    
    .mobile-bottom-nav-link:active {
        transform: scale(0.95);
    }
    
    .mobile-bottom-nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-bottom-nav-emergency {
        background-color: #dc2626 !important;
        color: white !important;
        border-radius: 12px;
        margin: 0 0.25rem;
    }
    
    .mobile-bottom-nav-emergency:active {
        background-color: #b91c1c !important;
        color: white !important;
        transform: scale(0.95);
    }
    
    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
        .mobile-bottom-nav-container {
            background: transparent;
        }
        
        .mobile-search-button {
            background: rgba(30, 30, 30, 0.95);
            color: rgba(255, 255, 255, 0.85);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
        }
        
        .mobile-search-button:active {
            background: rgba(40, 40, 40, 0.95);
        }
        
        .mobile-search-icon {
            color: rgba(255, 255, 255, 0.6);
        }
        
        .mobile-bottom-nav {
            background: rgba(30, 30, 30, 0.95);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
        }
        
        .mobile-bottom-nav-link {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .mobile-bottom-nav-link.active {
            color: #3AADE1;
            background: rgba(58, 173, 225, 0.15);
        }
        
        .main-nav.active {
            background: rgba(30, 30, 30, 0.95);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        }
        
        .main-nav.active .nav-menu a {
            color: rgba(255, 255, 255, 0.85);
            border-bottom-color: rgba(255, 255, 255, 0.1);
        }
        
        .main-nav.active .nav-menu a:hover,
        .main-nav.active .nav-menu a.active {
            color: #3AADE1;
        }
    }
    
    /* Center logo on mobile header */
    .header-container {
        justify-content: center;
    }
    
    /* Hide hamburger menu on mobile */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Show mobile navigation menu when active */
    .main-nav.active {
        display: block;
        position: fixed;
        top: auto;
        bottom: 140px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 20px 20px 0 0;
        margin: 0 12px;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 999;
    }
    
    /* Add bottom padding to site wrapper for mobile nav */
    .site-wrapper {
        padding-bottom: 140px;
    }
}

/* ===================================
   Converted sections
   The original shipped these via Tailwind/shadcn utility classes. Values
   below are the computed styles measured off the live v1 site, so the
   rendering is unchanged; only the delivery mechanism is.
   =================================== */

.band { padding: 4rem 0; }
.band-muted { background: rgba(245, 245, 245, 0.3); }
.band-grey { background: var(--gray-100); }

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.band-head { text-align: center; margin-bottom: 3rem; }
.band-head h1,
.band-head h2 {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.band-head p {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0;
}

/* --- card grid ------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.card:hover {
    opacity: 1;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-media {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background: var(--white);
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-media.cover img { object-fit: cover; }

.card-body { padding: 1.5rem; flex: 1; }
.card-body h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.75rem;
    margin-bottom: 0.5rem;
}
.card-body p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text-tertiary);
    margin: 0.75rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-foot {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
}
.card-foot span {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-blue);
}

.card-price {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin: 0.75rem 0 0;
}

/* --- badge ----------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid #e6e6e6;
    border-radius: var(--radius-sm);
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    background: var(--gray-100);
    color: var(--text-primary);
}
.badge-primary {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* --- outline button -------------------------------------------------- */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 2rem;
    border: 1px solid #e6e6e6;
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-outline:hover {
    opacity: 1;
    background: var(--gray-100);
    color: var(--primary-blue);
}
.band-actions { text-align: center; }

/* --- detail pages ---------------------------------------------------- */
.detail-section { padding: 2rem 0 4rem; }

.detail-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}
.detail-media {
    max-width: 448px;
    width: 100%;
    margin: 0 auto;
}
.detail-media img { width: 100%; height: auto; }
.detail-copy h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0.75rem 0 1rem;
}
.detail-copy .lede {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0;
}
.detail-price {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    margin: 1rem 0;
}
.detail-meta {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.subhead {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    margin: 3rem 0 1.5rem;
}

/* people strip (Provided by / Our Team on a detail page) */
.people-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.person {
    display: block;
    text-align: center;
    background: var(--white);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    color: inherit;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.person:hover { opacity: 1; box-shadow: var(--shadow-md); }
.person img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 0.75rem;
}
.person strong { display: block; font-size: 1rem; }
.person span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* chip list (services a person provides, services at a location) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #e6e6e6;
    border-radius: var(--radius-full);
    background: var(--white);
    font-size: 0.875rem;
    color: var(--text-primary);
}
.chip:hover { opacity: 1; border-color: var(--primary-blue); color: var(--primary-blue); }

/* --- category anchors on the services page --------------------------- */
.cat-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

/* --- legal ----------------------------------------------------------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}
.prose h3 {
    font-size: 1.125rem;
    margin: 1.75rem 0 0.5rem;
}
.prose p,
.prose li {
    color: var(--text-secondary);
    line-height: 1.8;
}
.prose ul { margin: 0 0 1rem 1.25rem; }

/* --- faq ------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}
.faq-item h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-secondary); margin-bottom: 0; }

/* --- service finder (replaces the server-side AI router) ------------- */
.finder { max-width: 640px; margin: 0 auto 3rem; }
.finder-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font: inherit;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.finder-input:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}
.finder-hits { margin-top: 1rem; text-align: left; }
.finder-hit {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
}
.finder-hit:hover { opacity: 1; background: var(--gray-100); }
.finder-hit strong { display: block; color: var(--primary-blue); }
.finder-hit span { font-size: 0.875rem; color: var(--text-tertiary); }
.finder-empty { padding: 1rem; color: var(--text-tertiary); text-align: center; }

/* --- 404 ------------------------------------------------------------- */
.nf { text-align: center; padding: 6rem 1rem; }
.nf h1 { font-size: 4rem; margin-bottom: 0.5rem; }
.nf p { color: var(--text-secondary); margin-bottom: 2rem; }

/* --- responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
    .card-grid,
    .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .band { padding: 3rem 0; }
    .band-head { margin-bottom: 2rem; }
    .band-head h1,
    .band-head h2 { font-size: 1.75rem; }
    .band-head p { font-size: 1rem; }
    .card-grid,
    .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .card-body { padding: 1rem; }
    .card-body h3 { font-size: 1rem; line-height: 1.4; }
    .card-foot { padding: 0 1rem 1rem; }
    .detail-head {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .detail-copy h1 { font-size: 2rem; }
    .subhead { font-size: 1.375rem; margin: 2rem 0 1rem; }
    .person img { width: 96px; height: 96px; }
}

/* --- structural fixes for the static markup --------------------------- */
/* The SPA put the <img> directly in these slots; the static build wraps
   each one in <picture> for the webp source. Make the wrapper transparent
   to layout so the original rules keep applying. */
picture { display: contents; }

.slideshow-image { opacity: 0; }
.slideshow-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon img {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.footer-separator-img { width: 100%; height: auto; display: block; }

/* --- Get in Touch band on the home page ------------------------------- */
.footer-cta-band { padding: 4rem 0 5rem; background: var(--white); }
.footer-cta-band .contact-info-grid { margin-top: 0; }

/* --- mobile dock ------------------------------------------------------ */
.mobile-dock {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 0.75rem 0.75rem;
    z-index: 998;
    pointer-events: none;
}
.mobile-dock-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    pointer-events: auto;
}

.dock-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}
.dock-search > svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--text-tertiary);
}
.dock-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.9375rem;
    padding: 0.25rem 0;
    color: var(--text-primary);
}
.dock-search input::placeholder { color: var(--text-tertiary); }
.dock-search input:focus { outline: none; }
.dock-search button {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.625rem;
    background: var(--primary-blue);
    color: var(--white);
}
.dock-search button svg { width: 16px; height: 16px; }

.dock-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0.375rem 0.25rem 0.5rem;
}
.dock-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: var(--font-weight-medium);
}
.dock-nav a svg { width: 20px; height: 20px; }
.dock-nav a:hover { opacity: 1; color: var(--primary-blue); }

.dock-emergency { color: #dc2626; }
.dock-emergency-badge {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -12px;
    border-radius: var(--radius-full);
    background: #dc2626;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}
.dock-emergency-badge svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
    .mobile-dock { display: block; }
    /* clear the dock so it never covers the footer's last line */
    .site-footer { padding-bottom: 7rem; }
    .slideshow-container { height: 500px; }
}

/* --- /team page tiles (the live page uses a bordered card, unlike home) -- */
.band-head-lg h1 { font-size: 3rem; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}
.team-tile {
    display: block;
    text-align: center;
    background: var(--white);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem 1.5rem;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.team-tile:hover {
    opacity: 1;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.team-tile img {
    width: 184px;
    height: 184px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto 1.25rem;
}
.team-tile h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.team-tile p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.team-card img { /* home page circle */
    width: 171px;
    height: 171px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .band-head-lg h1 { font-size: 2rem; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .team-tile { padding: 1.25rem 0.75rem 1rem; }
    .team-tile img { width: 128px; height: 128px; margin-bottom: 0.75rem; }
    .team-tile h3 { font-size: 1rem; }
    .team-card img { width: 128px; height: 128px; }
}
