/* ============================================
   CRESTA Concierge & Gastronomi
   Premium Corporate Website Styles
   ============================================ */

:root {
    --gold: #b8963e;
    --gold-light: #d4b066;
    --gold-dark: #8a6f2e;
    --navy: #1a1f2e;
    --navy-light: #2a3040;
    --charcoal: #2c2c2c;
    --cream: #f8f5ef;
    --cream-dark: #ede8df;
    --white: #ffffff;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --text-muted: #999999;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 24px;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-inner {
    width: 0%;
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    animation: loaderProgress 1.8s ease forwards;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* RESET */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--transition);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 31, 46, 0.98);
    padding: 14px 0;
    box-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-cresta {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.15em;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--gold-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transition: width 0.4s var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

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

.nav-link-cta {
    background: var(--gold);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 2px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--gold-light);
}

.nav-active {
    color: var(--white) !important;
}

.nav-active::after {
    width: 100% !important;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    margin-left: 20px;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lang-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.lang-text {
    line-height: 1;
    font-weight: 600;
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.lang-toggle:active {
    background: rgba(255,255,255,0.15);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--gold);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(26, 31, 46, 0.6) 0%,
        rgba(26, 31, 46, 0.3) 40%,
        rgba(26, 31, 46, 0.5) 70%,
        rgba(26, 31, 46, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid rgba(184, 150, 62, 0.4);
    padding: 8px 24px;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.12em;
    line-height: 1;
}

.hero-line-thin {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 0.15em;
    margin-top: 8px;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    letter-spacing: 0.05em;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid var(--gold);
    padding: 16px 48px;
    transition: all 0.4s var(--transition);
    font-weight: 500;
}

.hero-cta:hover {
    background: var(--gold);
    color: var(--white);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold-light), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTIONS - COMMON
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 16px;
}

.section-tag-light {
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

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

.section-title-light em {
    color: var(--gold-light);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.85;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--charcoal);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 18px;
}

.about-text strong {
    color: var(--navy);
    font-weight: 600;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 4px;
    z-index: 0;
}

.about-image .image-frame {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

/* ============================================
   IMAGE BAND
   ============================================ */
.image-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 280px;
    overflow: hidden;
}

.image-band-item {
    overflow: hidden;
    position: relative;
}

.image-band-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.image-band-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .image-band {
        grid-template-columns: repeat(2, 1fr);
        height: 200px;
    }
}

@media (max-width: 480px) {
    .image-band {
        grid-template-columns: 1fr 1fr;
        height: 150px;
    }
}

/* ============================================
   BUSINESS MODEL SECTION
   ============================================ */
.section-model {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.model-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.model-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 31, 46, 0.92) 0%,
        rgba(26, 31, 46, 0.85) 100%
    );
}

.section-model .container {
    position: relative;
    z-index: 1;
}

.model-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.model-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(184, 150, 62, 0.25);
    padding: 48px 40px;
    border-radius: 6px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.model-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(184, 150, 62, 0.4);
    transform: translateY(-4px);
}

.model-card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 20px;
}

.model-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.3;
}

.model-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-services {
    background: var(--white);
}

.service-category {
    margin-bottom: 80px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.service-category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cream-dark);
}

.cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--gold);
    flex-shrink: 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item-reverse {
    direction: rtl;
}

.service-item-reverse > * {
    direction: ltr;
}

.service-item-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.service-item-content p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 14px;
}

.service-item-content p:last-child {
    margin-bottom: 0;
}

.service-item-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.service-item-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

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

/* ============================================
   PROJECTS SECTION
   ============================================ */
.section-projects {
    background: var(--cream);
}

.projects-grid {
    display: grid;
    gap: 40px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 16px 60px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

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

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.08));
}

.project-card-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-logo-wrap {
    margin-bottom: 20px;
}

.project-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.project-card-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 12px;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.project-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.project-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--cream-dark);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 31, 46, 0.93) 0%,
        rgba(26, 31, 46, 0.88) 100%
    );
}

.section-contact .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.contact-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(184, 150, 62, 0.2);
    padding: 40px 28px;
    border-radius: 6px;
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(184, 150, 62, 0.35);
    transform: translateY(-3px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(184, 150, 62, 0.15);
    color: var(--gold-light);
    margin: 0 auto 20px;
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.contact-card a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--gold-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-cresta {
    font-size: 1.5rem;
}

.footer-brand-sub {
    display: block;
    font-size: 0.62rem;
    color: var(--gold-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-desc {
    margin-top: 12px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

.footer-map {
    margin-top: 16px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-brands {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brands-title {
    font-size: 1.1rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-style: normal !important;
}

.footer-brands span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
}

.footer-dev {
    margin-top: 12px;
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.55) !important;
    letter-spacing: 0.04em;
}

.footer-dev a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-dev a:hover {
    color: var(--gold);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ============================================
   RESPONSIVE DESIGN — Mobile App Quality
   ============================================ */

/* Tablet Landscape & Small Desktop */
@media (max-width: 1024px) {
    .model-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image::before {
        display: none;
    }

    .about-image img {
        height: 360px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card-image {
        min-height: 280px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        padding-left: 0;
    }
    
    .footer-map iframe {
        height: 160px;
    }
}

/* Tablet Portrait & Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
        scroll-padding-top: 80px;
    }

    .section {
        padding: 72px 0;
    }

    .section-model,
    .section-contact {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .container {
        padding: 0 20px;
    }

    /* Language toggle mobile */
    .lang-toggle {
        position: absolute;
        top: 50%;
        right: 64px;
        transform: translateY(-50%);
        margin-left: 0;
        padding: 6px 11px;
        font-size: 0.65rem;
        gap: 4px;
    }
    
    .lang-icon {
        font-size: 0.85rem;
    }

    /* Mobile Navigation — Full Screen Drawer */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 80px 24px 24px;
        transition: right 0.45s var(--transition);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.open {
        right: 0;
    }
    

    .nav-link {
        font-size: 1rem;
        letter-spacing: 0.12em;
        padding: 10px 0;
    }

    .nav-link-cta {
        padding: 14px 32px !important;
        margin-top: 8px;
    }

    /* Hero — Mobile optimized */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 16px;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .hero-cta {
        padding: 14px 36px;
        font-size: 0.72rem;
    }

    .hero-scroll {
        bottom: 28px;
    }

    .scroll-line {
        height: 40px;
    }

    /* About */
    .about-lead {
        font-size: 1rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .about-image img {
        height: 280px;
        border-radius: 8px;
    }

    .about-image .image-frame {
        border-radius: 8px;
    }

    /* Services — Stack */
    .service-category-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
        padding-bottom: 16px;
    }

    .cat-icon {
        width: 44px;
        height: 44px;
    }

    .cat-icon svg {
        width: 22px;
        height: 22px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 48px;
    }

    .service-item-reverse {
        direction: ltr;
    }

    .service-item-title {
        font-size: 1.35rem;
    }

    .service-item-content p {
        font-size: 0.88rem;
    }

    .service-item-image {
        border-radius: 8px;
        order: -1;
    }

    .service-item-image img {
        height: 220px;
        border-radius: 8px;
    }

    /* Model Cards */
    .model-card {
        padding: 32px 24px;
    }

    .model-card-number {
        font-size: 2.4rem;
        margin-bottom: 14px;
    }

    .model-card-title {
        font-size: 1.3rem;
    }

    /* Projects */
    .project-card-image {
        min-height: 240px;
    }

    .project-card-content {
        padding: 28px 24px;
    }

    .project-card-title {
        font-size: 1.6rem;
    }

    .project-card-content p {
        font-size: 0.85rem;
    }

    .project-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .project-logo {
        height: 90px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 28px 16px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .contact-card h4 {
        font-size: 1.05rem;
    }

    /* Footer */
    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        gap: 28px;
        padding-bottom: 28px;
    }

    /* Parallax off on mobile */
    .model-bg,
    .contact-bg {
        background-attachment: scroll;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-model,
    .section-contact {
        padding: 72px 0;
    }

    /* Hero fine-tuning */
    .hero-line {
        letter-spacing: 0.06em;
    }

    .hero-line-thin {
        letter-spacing: 0.08em;
        margin-top: 4px;
    }

    .hero-badge {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    /* Section titles */
    .section-title {
        font-size: 1.7rem;
    }

    .section-tag {
        font-size: 0.65rem;
    }

    /* About */
    .about-image img {
        height: 220px;
    }

    /* Services */
    .service-item-image img {
        height: 200px;
    }

    .service-category-title {
        font-size: 1.4rem;
    }

    .service-item-title {
        font-size: 1.2rem;
    }

    /* Model cards */
    .model-card {
        padding: 28px 20px;
    }

    .model-card-title {
        font-size: 1.15rem;
    }

    .model-card p {
        font-size: 0.82rem;
    }

    /* Projects */
    .project-card-content {
        padding: 24px 18px;
    }

    .project-card-title {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-card {
        padding: 24px 16px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .contact-icon {
        margin: 0;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .contact-card h4 {
        margin-bottom: 2px;
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.82rem;
    }

    /* Footer */
    .footer-brands span {
        font-size: 0.95rem;
    }
}

/* Ultra small screens */
@media (max-width: 360px) {
    .hero-line {
        font-size: 2.8rem;
    }

    .hero-line-thin {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 0.68rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Safe area support (iPhone notch, dynamic island) */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: max(24px, env(safe-area-inset-top));
    }

    .navbar.scrolled {
        padding-top: max(14px, env(safe-area-inset-top));
    }

    .hero {
        padding-top: env(safe-area-inset-top);
    }

    .footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }

    .nav-menu {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 8px 0;
    }

    .hero-cta {
        padding: 16px 40px;
    }

    .model-card:hover {
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .contact-card:hover {
        transform: none;
    }

    .service-item-image:hover img {
        transform: none;
    }

    .image-band-item:hover img {
        transform: none;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-slide {
        transition: opacity 0.3s ease;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .scroll-line {
        animation: none;
    }
}

/* Landscape mobile fix */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 480px;
    }

    .hero-badge {
        display: none;
    }

    .hero-subtitle {
        display: none;
    }

    .hero-line {
        font-size: 3rem;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 4px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .loader,
    .hero-scroll,
    .hero-cta,
    .image-band {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-overlay {
        background: rgba(0,0,0,0.3);
    }

    .section {
        padding: 30px 0;
        break-inside: avoid;
    }

    .section-model,
    .section-contact {
        color: #000;
    }

    .model-overlay,
    .contact-overlay {
        background: rgba(255,255,255,0.85);
    }

    .model-card-title,
    .section-title-light {
        color: #000;
    }

    body {
        font-size: 12pt;
    }
}
