/* ===========================
   Modern HNO Practice Website
   Clean, Professional Design
   =========================== */

/* CSS Reset & Variables */
:root {
    --primary-color: #4A6B7C;
    --primary-dark: #3a5563;
    --primary-light: #E8EEF1;
    --secondary-color: #5B7C8D;
    --accent-color: #E57A44;
    --accent-gold: #D4AF37;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --background: #ffffff;
    --background-light: #f7fafc;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.75;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 122, 155, 0.2);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 24px;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 60px;
    width: auto;
    display: block;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Legacy text branding styles (for reference/fallback) */
.nav-brand h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.nav-brand .subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    color: var(--text-medium);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    position: relative;
}

.nav-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation - Transform to X when active */
.nav-toggle.active .hamburger:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
    padding: 5rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
}

.placeholder-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.placeholder-image svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Image Gallery */
.image-gallery {
    width: 100%;
    max-width: 500px;
}

.gallery-main {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    border: 1px solid rgba(74, 107, 124, 0.15);
    aspect-ratio: 3 / 2;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity var(--transition);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid rgba(74, 107, 124, 0.12);
    transition: all var(--transition);
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.thumbnail.active {
    border-color: var(--accent-gold);
    opacity: 1;
    box-shadow: var(--shadow-md);
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c9a134 100%);
    padding: 1.5rem 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.announcement-content svg {
    flex-shrink: 0;
    stroke: white;
}

.announcement-content p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.news-section .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.news-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

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

.news-date {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-text {
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

.no-news {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
}

/* Info Cards */
.info-cards {
    padding: 5rem 0;
    background-color: var(--background);
}

.info-cards .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Services Section */
.services-preview {
    padding: 5rem 0;
    background-color: var(--background-light);
}

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

.section-header h2::after,
.philosophy-section > .container > .section-header h2::after,
.news-section .section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--accent-gold);
    margin: 0.75rem auto 0;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

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

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

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

.service-item li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
}

.service-item li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

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

/* Hours Section */
.hours-section {
    padding: 5rem 0;
    background: white;
}

.hours-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hours-info h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.note {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

.hours-row .day {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 120px;
}

.hours-row .time {
    color: var(--text-medium);
    text-align: right;
}

.contact-info {
    background: var(--primary-light);
    padding: 2.5rem;
    border-radius: var(--radius);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-medium);
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-info .btn {
    margin-top: 1.5rem;
    width: 100%;
}

/* Philosophy Section */
.philosophy-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.philosophy-item {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border-color);
}

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

.philosophy-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.philosophy-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Info Section for SEO */
.info-section {
    padding: 4rem 0;
    background: white;
}

.info-section h2 {
    color: var(--primary-color);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 2rem;
    text-align: center;
}

.info-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.info-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-section .btn-primary:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col > a {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-col > a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Services Detail Page */
.services-detail {
    padding: 4rem 0;
    background: var(--background-light);
}

.service-detail-item {
    background: white;
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-detail-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.detail-box {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.detail-box h4 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

.detail-box li {
    padding: 0.4rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
}

.detail-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-section .btn-primary:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

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

/* Team Page */
.team-section {
    padding: 4rem 0;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
}

.team-member-featured {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
}

.member-image {
    position: relative;
}

.placeholder-image-team {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.placeholder-image-team svg {
    width: 100%;
    height: auto;
    display: block;
}

.member-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.member-bio h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.specialty-list {
    list-style: none;
    padding: 0;
}

.specialty-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.specialty-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.member-qualifications {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.qualification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.team-grid {
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.team-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.member-image-small {
    margin-bottom: 1.5rem;
}

.placeholder-image-team-small {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.placeholder-image-team-small svg {
    width: 100%;
    height: 100%;
    display: block;
}

.team-member h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-subtitle {
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.member-description {
    font-size: 0.95rem;
}

.philosophy-section {
    margin-top: 5rem;
    text-align: center;
}

.philosophy-section h2 {
    margin-bottom: 3rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.philosophy-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.philosophy-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-details {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-details h2 {
    margin-bottom: 2rem;
}

.contact-block {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--radius);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-block h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-block p {
    margin: 0;
    line-height: 1.8;
}

.contact-link {
    font-weight: 600;
    font-size: 1.125rem;
}

.note-small {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.opening-hours-detail {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.opening-hours-detail h2 {
    margin-bottom: 1.5rem;
}

.important-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--primary-light);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent-gold);
}

.important-note svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.important-note p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-row-detail {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--background-light);
    border-radius: 8px;
    align-items: center;
}

.day-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 150px;
}

.day-cell svg {
    color: var(--primary-color);
}

.day-name {
    font-weight: 600;
    color: var(--text-dark);
}

.time-cell {
    color: var(--text-medium);
    text-align: right;
    line-height: 1.6;
}

.hours-note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

.hours-note p {
    margin: 0;
    font-size: 0.95rem;
}

.hours-note a {
    font-weight: 600;
}

/* Map Section */
.map-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.map-section h2 {
    margin-bottom: 2rem;
}

.map-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.map-placeholder {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-box {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
}

.map-box svg {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.map-box p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.directions-info h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.directions-info h3:first-child {
    margin-top: 0;
}

.directions-info ul {
    list-style: none;
    padding-left: 0;
}

.directions-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.directions-info li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: white;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-box {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Legal Pages (Impressum & Datenschutz) */
.legal-section {
    padding: 4rem 0;
    background: white;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legal-toc {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.legal-toc h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.legal-toc li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.legal-toc li:last-child {
    border-bottom: none;
}

.legal-toc a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.legal-toc a:hover {
    color: var(--accent-orange);
    padding-left: 10px;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--text-dark);
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h4 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h5 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-box {
    background: var(--background-light);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.legal-box:hover {
    box-shadow: var(--shadow-md);
}

.legal-box p {
    margin-bottom: 1rem;
}

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

.legal-box ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-box li {
    margin: 0.5rem 0;
    color: var(--text-medium);
}

.legal-box a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.legal-box a:hover {
    color: var(--accent-orange);
}

.legal-box strong {
    color: var(--text-dark);
}

.legal-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.legal-notice p {
    margin: 0.75rem 0;
    color: #856404;
}

.legal-notice p:first-child {
    margin-top: 0;
}

.legal-notice p:last-child {
    margin-bottom: 0;
}

.legal-notice strong {
    color: #856404;
    font-weight: 600;
}

.legal-update {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Show hamburger button on mobile/tablet */
    .nav-toggle {
        display: flex;
    }


    /* Mobile menu overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 400px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1500;
        margin: 0;
    }

    /* Show menu when active */
    .nav-menu.active {
        transform: translateX(0);
    }

    /* Mobile menu links styling */
    .nav-menu li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation for menu items */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-menu a {
        color: white;
        font-size: 1.5rem;
        padding: 1rem 2rem;
        display: block;
        border-radius: var(--radius);
        transition: all var(--transition);
    }

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

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(255, 255, 255, 0.15);
        color: var(--accent-gold);
        transform: scale(1.05);
    }

    /* Overlay backdrop */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background-color 0.4s ease;
        z-index: -1;
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active::before {
        background-color: rgba(0, 0, 0, 0.5);
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hours-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hours-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hours-row .time {
        text-align: left;
    }

    .team-member-featured {
        grid-template-columns: 1fr;
    }

    .contact-grid,
    .map-info-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 3rem 0;
    }

    .info-cards,
    .services-preview,
    .hours-section,
    .services-detail,
    .team-section,
    .contact-section {
        padding: 3rem 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .service-detail-item {
        padding: 1.5rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hours-row-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .time-cell {
        text-align: left;
    }
}
