/* ==========================================================================
   Dr Spiros Parisis-Mesimeris - Endodontics Corfu
   Static PHP Site Stylesheet
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #7bc8a7;
    --color-primary-dark: #5aad8a;
    --color-primary-light: #a8dcc5;
    --color-primary-bg: #f0f9f5;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e0e0e0;
    --color-gold-text: #5a9a7d;

    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Unna', Georgia, serif;

    --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
    --fs-sm: clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);
    --fs-base: clamp(0.9375rem, 0.875rem + 0.25vw, 1rem);
    --fs-md: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --fs-lg: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --fs-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --fs-xxl: clamp(2.5rem, 2rem + 2vw, 4rem);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --transition: 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text);
}
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
picture { display: contents; }

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-primary { background: var(--color-primary-bg); }
.text-center { text-align: center; }
.section-title {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    text-align: center;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: var(--space-sm) auto 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 44px;
}
.btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn-sm { padding: 10px 20px; font-size: var(--fs-xs); min-height: 44px; }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow);
    height: var(--header-height);
    transition: all var(--transition);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.site-header.scrolled {
    height: 64px;
    box-shadow: var(--shadow-lg);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo img {
    height: 36px;
    width: auto;
    transition: height var(--transition);
}
.site-header.scrolled .logo img { height: 28px; }
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.main-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}
.main-nav a.active { font-weight: 500; }
.lang-switch a {
    background: var(--color-primary-bg);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: var(--fs-xs);
    color: var(--color-gold-text);
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.lang-switch a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* --- Nav Toggle (Mobile) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    position: relative;
    height: 70vh;
    height: 70svh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

/* Slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123,200,167,0.3) 0%, rgba(0,0,0,0.25) 100%);
}

/* Progress bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.15);
    z-index: 2;
}
.hero-progress-bar {
    height: 100%;
    width: 0;
    background: var(--color-primary);
    transition: none;
}
.hero-progress-bar.animate {
    width: 100%;
    transition: width 6s linear;
}

/* Fallback for single-image (non-home pages) */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123,200,167,0.3) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    max-width: 600px;
    padding: 0 var(--space-md);
}
.hero-content h1 {
    color: var(--color-white);
    font-size: var(--fs-xxl);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: var(--space-sm);
}
.hero-content p {
    font-size: var(--fs-md);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-bottom: var(--space-md);
    font-weight: 300;
}
.hero-content .btn {
    background: var(--color-white);
    color: var(--color-primary-dark);
    border-color: var(--color-white);
}
.hero-content .btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Page Header (inner pages) */
.page-header {
    background: var(--color-primary-bg);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--header-height);
    text-align: center;
}
.page-header h1 {
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}
.page-header p {
    color: var(--color-text-light);
    font-size: var(--fs-md);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}
.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card-body {
    padding: var(--space-md);
}
.service-card h3,
.service-card-title {
    margin-bottom: var(--space-xs);
    color: var(--color-text);
    font-size: var(--fs-md);
}
.service-card p {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
}

/* --- Equipment (numbered items) --- */
.equipment-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.equipment-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
    align-items: start;
}
.equipment-number {
    font-family: var(--font-accent);
    font-size: var(--fs-xxl);
    color: var(--color-primary);
    line-height: 1;
    text-align: center;
}
.equipment-item h3,
.equipment-title {
    margin-bottom: var(--space-xs);
    color: var(--color-text);
    font-size: var(--fs-md);
}
.equipment-item p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* --- CV / About --- */
.cv-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
    align-items: start;
}
.cv-photo img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}
.cv-content h2 {
    margin-bottom: var(--space-md);
}
.cv-content p {
    margin-bottom: var(--space-sm);
    line-height: 1.9;
    color: var(--color-text-light);
}

/* CV Page — Hero intro */
.cv-hero {
    background: var(--color-primary-bg);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--header-height);
}
.cv-intro {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.cv-intro .cv-photo {
    flex-shrink: 0;
    width: 220px;
}
.cv-intro .cv-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
}
.cv-intro-text h1 {
    margin-bottom: 4px;
}
.cv-subtitle {
    color: var(--color-primary-dark);
    font-size: var(--fs-md);
    font-weight: 400;
    margin-bottom: var(--space-sm);
}
.cv-bio {
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 560px;
}

/* CV Highlights */
.cv-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    text-align: center;
}
.cv-highlight-card {
    padding: var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--color-primary);
}
.cv-highlight-number {
    display: block;
    font-family: var(--font-accent);
    font-size: var(--fs-xl);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}
.cv-highlight-label {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* CV Timeline */
.cv-timeline {
    position: relative;
    padding-left: 32px;
    max-width: 700px;
    margin: 0 auto;
}
.cv-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-primary-light);
}
.cv-timeline-item {
    position: relative;
    padding-bottom: var(--space-md);
}
.cv-timeline-item:last-child { padding-bottom: 0; }
.cv-timeline-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    z-index: 1;
}
.cv-timeline-item:last-child .cv-timeline-marker {
    background: var(--color-primary);
}
.cv-timeline-year {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--fs-sm);
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 2px;
}
.cv-timeline-content h3 {
    font-size: var(--fs-base);
    margin-bottom: 4px;
}
.cv-timeline-content p {
    color: var(--color-text-light);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* CV Academic */
.cv-academic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}
.cv-academic-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.cv-academic-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-bg);
    border-radius: 50%;
}
.cv-academic-item h3 {
    font-size: var(--fs-base);
    margin-bottom: 4px;
}
.cv-academic-item p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Contact --- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.contact-card {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--color-primary);
}
.contact-card-icon {
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-bg);
    border-radius: 50%;
    margin: 0 auto var(--space-sm);
}
.contact-card h3 {
    font-size: var(--fs-base);
    margin-bottom: 4px;
}
.contact-card p {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}
.contact-card a { color: var(--color-primary-dark); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}
.contact-map-wrap h3,
.contact-form-wrap h3 {
    margin-bottom: var(--space-sm);
}
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: var(--space-md);
}
.contact-office-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.contact-form-card {
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
.btn-full { width: 100%; text-align: center; }

/* --- Forms --- */
.form-group {
    margin-bottom: var(--space-sm);
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--color-text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    transition: border-color var(--transition);
    background: var(--color-white);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123,200,167,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-msg {
    padding: var(--space-sm);
    border-radius: var(--radius);
    margin-top: var(--space-sm);
    display: none;
}
.form-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}
.form-msg.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}
.hp-field { position: absolute; left: -9999px; }

/* --- CTA Banner --- */
.cta-banner {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}
.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}
.cta-banner .btn {
    background: var(--color-white);
    color: var(--color-primary-dark);
    border-color: var(--color-white);
}
.cta-banner .btn:hover {
    background: transparent;
    color: var(--color-white);
}

/* --- Gallery / Before-After --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-sm);
}
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition);
}
@media (hover: hover) {
    .gallery-grid img:hover { transform: scale(1.02); }
}

/* --- Footer --- */
.site-footer {
    background: #1e2a36;
    color: rgba(255,255,255,0.6);
    padding: var(--space-md) 0;
    font-size: var(--fs-sm);
}
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { flex-shrink: 0; }
.footer-logo {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity var(--transition);
}
.footer-brand:hover .footer-logo { opacity: 1; }
.footer-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.footer-nav a {
    color: rgba(255,255,255,0.6);
    font-size: var(--fs-xs);
    transition: color var(--transition);
    white-space: nowrap;
    padding: 8px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.footer-nav a:hover { color: var(--color-primary-light); }
.footer-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.5);
}
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--color-primary-light); }
.footer-sep { opacity: 0.3; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    font-size: var(--fs-xs);
    gap: var(--space-sm);
}
.footer-bottom p { margin: 0; opacity: 0.5; }
.espa-banner img { height: 36px; width: auto; opacity: 0.6; transition: opacity var(--transition); }
.espa-banner img:hover { opacity: 1; }

/* --- Cookie Notice --- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: var(--color-white);
    z-index: 2000;
    padding: var(--space-sm) 0;
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.cookie-notice p { font-size: var(--fs-sm); margin: 0; }

/* --- Home Specific --- */
.home-services {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-md);
    align-items: start;
}
.home-services-sidebar {
    position: relative;
}
.home-services-sidebar img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.home-service-item {
    padding: var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) {
    .home-service-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}
.home-service-item h3 {
    font-size: var(--fs-base);
    margin-bottom: var(--space-xs);
    color: var(--color-primary-dark);
}
.home-service-item p { color: var(--color-text-light); font-size: var(--fs-sm); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .cv-section {
        grid-template-columns: 1fr;
    }
    .cv-photo {
        max-width: 300px;
        margin: 0 auto;
    }
    .cv-intro {
        flex-direction: column;
        text-align: center;
    }
    .cv-intro .cv-photo { width: 180px; }
    .cv-intro .cv-photo img { width: 180px; height: 180px; }
    .cv-bio { margin: 0 auto; }
    .cv-academic { grid-template-columns: 1fr; }
    .home-services {
        grid-template-columns: 1fr;
    }
    .home-services-sidebar {
        max-height: 250px;
        overflow: hidden;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 999;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .main-nav > ul {
        flex-direction: column;
        padding: var(--space-sm);
        gap: 0;
    }
    .main-nav a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--color-bg-alt);
        width: 100%;
    }
    .lang-switch { padding-top: var(--space-xs); }
    .lang-switch a { display: inline-block; margin-top: var(--space-xs); }

    .hero {
        height: 50vh;
        height: 50svh;
        min-height: 350px;
    }
    .hero-content h1 { font-size: var(--fs-lg); }

    .contact-cards { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-sm); }
    .contact-card { padding: var(--space-sm); }
    .contact-card-icon { width: 44px; height: 44px; font-size: 1.4rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .home-services-list { grid-template-columns: 1fr; }
    .equipment-item { grid-template-columns: 50px 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .cv-highlights { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
    .cv-highlight-card { padding: var(--space-sm); }
    .cv-highlight-number { font-size: var(--fs-lg); }
    .cv-intro .cv-photo { width: 150px; }
    .cv-intro .cv-photo img { width: 150px; height: 150px; }
    .cv-hero { padding: var(--space-lg) 0 var(--space-md); }

    /* Compact mobile footer */
    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    .footer-nav {
        justify-content: center;
        gap: var(--space-xs);
    }
    .footer-contact {
        flex-direction: column;
        gap: 2px;
    }
    .footer-sep { display: none; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-sm); }
    .section { padding: var(--space-lg) 0; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .cv-highlights { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; gap: var(--space-sm); text-align: center; }
    .cookie-inner .btn { width: 100%; }
    .contact-map iframe { height: 220px; }
    .hero { height: 50vh; height: 50svh; min-height: 300px; }
}
