@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --bg: #FAFAF8;
    --bg-alt: #F0EDE6;
    --text: #1A1A1A;
    --accent: #C9A96E;
    --accent-dark: #A8894E;
    --charcoal: #2D2D2D;
    --muted: #8A8A8A;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border: rgba(0,0,0,0.06);
    --accent-glow: rgba(201, 169, 110, 0.25);
    --bg-card: #fff;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideRight { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes modalSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
}

/* HEADER */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 24px 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s var(--ease);
}
header.sticky {
    background: rgba(250, 250, 248, 0.96);
    backdrop-filter: blur(24px);
    padding: 16px 80px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.01em;
    z-index: 1001;
}
.logo span { color: var(--accent); }

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}
nav a {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--text); }

.nav-items-grid {
    display: flex;
    gap: 20px;
}

.header-cta {
    padding: 14px 32px !important;
    background: var(--text) !important;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    border: 1px solid var(--text) !important;
    transition: all 0.3s var(--ease) !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
}
.header-cta:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow) !important;
}
.header-cta::after { display: none !important; }

.lang-switch {
    display: flex;
    border: 1px solid var(--text);
    overflow: hidden;
}
.lang-switch a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.lang-switch a:first-child.active { background: var(--text); color: #fff !important; }
.lang-switch a:last-child.active { background: var(--text); color: #fff !important; }
.lang-switch a:hover { background: var(--text) !important; color: #fff !important; }
.lang-switch a::after { display: none; }

/* MOBILE TOGGLE */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.menu-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    display: block;
    line-height: 1;
    white-space: nowrap;
}
.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.hamburger-bar:before,
.hamburger-bar:after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}
.hamburger-bar:before { top: -6px; }
.hamburger-bar:after { top: 6px; }

.mobile-menu-toggle.active .hamburger-bar { background: transparent; }
.mobile-menu-toggle.active .hamburger-bar:before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle.active .hamburger-bar:after { top: 0; transform: rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 180px 120px;
    position: relative;
    overflow: hidden;
}

/* Swirly pattern background */
.hero-swirl {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}
.hero-swirl svg {
    width: 100%;
    height: 100%;
}

.hero-visual {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 540px;
    height: 640px;
    z-index: 2;
}

.hero-img-container {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 48px 100px rgba(0,0,0,0.14);
}

.hero-img-1 {
    width: 300px;
    height: 420px;
    top: 60px;
    left: 0;
    animation: float 7s ease-in-out infinite;
    z-index: 1;
}

.hero-img-2 {
    width: 250px;
    height: 350px;
    top: 160px;
    left: 200px;
    animation: float2 6s ease-in-out 1s infinite;
    z-index: 3;
}

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

.hero-content { position: relative; z-index: 3; max-width: 600px; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 28px;
    animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.hero-tag-line { width: 40px; height: 1px; background: var(--accent); }
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 12px;
    animation: fadeUp 0.7s var(--ease) 0.2s both;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
    white-space: nowrap;
}
.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 480px;
    animation: fadeUp 0.7s var(--ease) 0.35s both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.7s var(--ease) 0.5s both;
}
.hero-social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--muted);
    animation: fadeUp 0.7s var(--ease) 0.6s both;
}
.hero-social-share a {
    color: var(--text);
    font-size: 1.1rem;
    transition: color 0.3s var(--ease);
}
.hero-social-share a:hover {
    color: var(--accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
    border: 1px solid var(--text);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.2);
    transition: all 0.3s var(--ease);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.hero-decor {
    position: absolute;
    left: 220px;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeIn 1s var(--ease) 1.2s both;
}
.hero-decor-line { width: 80px; height: 1px; background: var(--accent); }
.hero-decor-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

/* SECTIONS */
section { padding: 100px 48px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}
.section-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 24px;
}
.section-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.8;
}

/* ABOUT */
.about { background: var(--bg); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-text p {
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 16px;
}
.about-list {
    list-style: none;
    margin-bottom: 24px;
}
.about-list li {
    position: relative;
    padding-left: 28px;
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 12px;
}
.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
}
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: center;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.stat-item:hover {
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    flex-shrink: 0;
}
.stat-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    line-height: 1.4;
}

/* SERVICES */
.services { background: var(--bg-alt); }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-desc { margin: 0 auto; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    padding: 40px 32px;
    transition: all 0.4s var(--ease);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.08);
    border-color: rgba(201,169,110,0.15);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-swirl::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath d='M50,150 Q100,25 200,100 T350,75 Q375,150 300,225 Q200,275 75,200 T25,100 Q25,50 100,40 Q200,30 300,75 Q350,125 275,175 Q200,225 100,175 Q50,140 50,150Z' fill='none' stroke='%23C9A96E' stroke-width='0.8'/%3E%3Cpath d='M75,175 Q125,50 225,125 T375,100 Q400,175 325,250 Q225,300 100,225 T50,125 Q50,75 125,65 Q225,55 325,100 Q375,150 300,200 Q225,250 125,200 Q75,165 75,175Z' fill='none' stroke='%23C9A96E' stroke-width='0.6'/%3E%3C/svg%3E") center/cover no-repeat;
}
.service-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
}
.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}
.service-card p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
}

/* MISSIS */
.missis {
    background: var(--text);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.missis::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.15);
}
.missis::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -5%;
    width: 400px; height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.1);
}
.missis-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.missis-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}
.missis h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.15;
}
.missis h2 em { color: var(--accent); font-style: italic; }
.missis p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    line-height: 1.9;
    margin-bottom: 32px;
}
.missis-images {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 550px;
    margin: 0 auto;
}
@media (min-width: 1201px) {
    .missis-images {
        margin-left: auto;
        margin-right: 0;
    }
}
.missis-img {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 1s var(--ease);
}
.missis-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.missis-img-1 {
    z-index: 2;
    right: 0;
    width: 80%;
}
.missis-img-2 {
    z-index: 1;
    left: 0;
    width: 80%;
    top: 40px;
}

.missis-cycling .missis-img {
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity;
}
.missis-cycling .missis-img.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}


.about .container,
.experience .container {
    position: relative;
    z-index: 1;
}

.missis-img {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.missis-img-1 {
    width: 300px;
    height: 400px;
    top: 40px;
    left: 50%;
    transform: translateX(-230px);
    z-index: 1;
}
.missis-img-2 {
    width: 250px;
    height: 340px;
    top: 120px;
    left: 50%;
    transform: translateX(20px);
    z-index: 3;
}
.missis-img img,
.missis-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* EXPERIENCE */
.experience { background: var(--bg); }
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}
.exp-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.exp-card:hover {
    border-color: rgba(201,169,110,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.exp-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    color: var(--accent);
}
.exp-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.exp-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
}

/* TESTIMONIALS */
.testimonials { background: var(--bg-alt); }
.testimonials-header { text-align: center; margin-bottom: 64px; }
.testimonials-header .section-desc { margin: 0 auto; }
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.test-card {
    background: var(--bg-card);
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s var(--ease);
    max-width: 380px;
    flex: 1 1 380px;
}
.test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.06);
}
.test-card::before {
    content: '"';
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 4px; left: 20px;
    line-height: 1;
}
.test-card p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.test-author { display: flex; align-items: center; gap: 12px; }
.test-author-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}
.test-author-role { font-size: 0.75rem; color: var(--muted); }

/* CONTACT SECTION */
.contact { background: var(--bg); }
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s var(--ease);
    font-size: 0.9375rem;
}
.contact-link:hover {
    border-color: var(--accent);
    transform: translateX(8px);
    color: var(--accent);
}
.contact-link svg { color: var(--accent); flex-shrink: 0; }
.contact-cta {
    text-align: center;
    padding: 64px;
    background: var(--bg-alt);
    border: 1px solid rgba(0,0,0,0.04);
}
.contact-cta h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 16px;
}
.contact-cta p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 32px;
    font-weight: 300;
}

/* INSTAGRAM FEED */
.instagram-section {
    padding: 60px 0;
    background: var(--bg);
}
.tutorial_link { display: none !important; }

/* FOOTER */
footer {
    background: var(--text);
    color: #fff;
    padding: 64px 48px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
}
.footer-logo span { color: var(--accent); }
.footer-desc {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    max-width: 280px;
}
.footer-links {
    display: flex;
    gap: 12px 32px;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    margin-top: 25px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s var(--ease);
    width: auto;
    white-space: nowrap;
}
.footer-links a:hover { color: var(--accent); }
.footer-social {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.footer-social a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}
.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}
.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-policies {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 32px;
    width: 100%;
}
.footer-policies a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}
.footer-policies a:hover { color: var(--accent); }

/* CONTACT POPUP */
.contact-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-popup {
    position: fixed;
    top: 0; right: 0;
    width: 460px;
    max-width: 95%;
    height: 100%;
    background: var(--bg);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--border);
}
.contact-popup.active {
    transform: translateX(0);
}

.popup-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 8px;
}
.popup-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.popup-content {
    padding: 80px 40px 40px;
}
.popup-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 8px;
}
.popup-subtitle {
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 300;
    margin-bottom: 32px;
    line-height: 1.6;
}

.popup-form { display: flex; flex-direction: column; gap: 20px; }
.form-fields { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.popup-form button[type="submit"] {
    padding: 16px 32px;
    background: var(--text);
    color: #fff;
    border: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    margin-top: 8px;
    border-radius: 8px;
}
.popup-form button[type="submit"]:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.form-message {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.9375rem;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(201,169,110,0.1);
    color: var(--accent-dark);
    border: 1px solid rgba(201,169,110,0.3);
}
.form-message.error {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
    margin-bottom: 25px; /* add spacing below error messages only */
}

.form-message.success {
    margin-bottom: 0; /* ensure success messages don't get the extra spacing */
}

.popup-contact-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.popup-contact-info > p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 16px;
}
.popup-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 10px;
    transition: all 0.3s var(--ease);
}
.popup-contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(4px);
}
.popup-contact-link svg { color: var(--accent); }

/* COOKIE BANNER */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    z-index: 9998;
    display: none;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    max-width: 420px;
    width: calc(100% - 40px);
}
.cookie-consent.show { display: block; }
.cookie-content { display: flex; flex-direction: column; gap: 16px; }
.cookie-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    font-family: var(--font-serif);
}
.cookie-text p {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.5;
}
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cookie-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    align-items: center;
}
.cookie-btn { display: none; }
.cookie-btn.accept-all { display: inline-flex; }
.cookie-btn.customize { display: inline-flex; }
.cookie-btn.save { display: inline-flex; }
.cookie-legal { display: none; }
.cookie-btn.accept-all {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.cookie-btn.accept-all:hover { box-shadow: 0 6px 20px var(--accent-glow); }
.cookie-btn.customize { border-color: var(--accent); color: var(--accent); }
.cookie-btn.customize:hover { background: rgba(201,169,110,0.08); }

/* COOKIE MODAL */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.cookie-modal.show { display: flex; }
.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}
.cookie-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s ease-out;
    margin-right: 0;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { color: var(--accent); }
.cookie-modal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 28px;
    color: var(--text);
}
.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.cookie-category:last-of-type { border-bottom: none; }
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.category-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex-grow: 1;
}
.category-checkbox { display: none; }
.toggle-switch {
    display: inline-flex;
    align-items: center;
    width: 44px; height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    left: 2px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.category-checkbox:checked + .toggle-switch { background: var(--accent); }
.category-checkbox:checked + .toggle-switch::after { left: 22px; }
.category-checkbox:disabled + .toggle-switch { opacity: 0.5; cursor: not-allowed; }
.category-title { font-weight: 500; color: var(--text); font-size: 0.9375rem; }
.category-badge {
    background: rgba(220,38,38,0.08);
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.category-description {
    color: var(--muted);
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.5;
    margin-left: 56px;
}
.cookie-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.cookie-btn.save {
    flex: 1;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.cookie-btn.save:hover { box-shadow: 0 6px 20px var(--accent-glow); }
.cookie-modal-actions .cookie-btn.accept-all { flex: 1; }
.cookie-legal {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
}
.cookie-legal a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
.cookie-legal a:hover { color: var(--accent-dark); text-decoration: underline; }

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--text);
    color: #fff;
    border: 1px solid var(--text);
    border-radius: 50%;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s var(--ease), opacity 0.4s ease, visibility 0.4s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: bottom 0.4s ease, all 0.3s var(--ease);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.whatsapp-btn.shifted {
    bottom: 80px;
}
.whatsapp-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* NAV CONTACT INFO (MOBILE) */
.nav-contact-info {
    display: none;
}
.nav-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s var(--ease);
}
.nav-contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.nav-whatsapp-link {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.nav-whatsapp-link:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* RESPONSIVE */
@media (min-width: 1500px) {
    header { padding: 28px 220px; }
    header.sticky { padding: 18px 220px; }
    .hero { padding: 160px 220px 120px; }
    .hero-visual { right: 220px; }
    section { padding: 120px 80px; }
    footer { padding: 80px; }
    .footer-logo { font-size: 3rem; }
}

@media (max-width: 1200px) {
    section { padding: 80px 24px; }
    header { padding: 18px 24px !important; }
    header.sticky { padding: 14px 24px !important; }
    nav { display: none; }
    .mobile-menu-toggle { display: flex; }

    .hero {
        padding: 125px 24px 80px;
        flex-direction: column;
        min-height: 100svh;
    }
    .hero-content { max-width: 100%; }
    .hero-visual {
        position: relative;
        right: auto; top: auto;
        transform: none;
        width: 100%;
        max-width: 300px;
        height: 360px;
        margin-top: 40px;
        align-self: center;
    }
    .hero-decor { display: none; }
    .hero-actions { flex-direction: column; margin-bottom: 40px; }
    .btn-primary, .btn-outline { justify-content: center; }

    .about-grid, .missis-inner, .contact-inner { grid-template-columns: 1fr; gap: 80px; }
    .about-stats { flex-direction: column; }
    .stat-item { flex-direction: column; text-align: center; padding: 16px; gap: 8px; }
    .stat-item:hover { transform: translateY(-4px); }

    .services-grid { grid-template-columns: 1fr; }
    .exp-grid { grid-template-columns: 1fr; }
    .exp-card { flex-direction: column; align-items: center; text-align: center; }
    .test-grid { grid-template-columns: 1fr; }
    .test-card { max-width: 100%; }

    .contact-cta { padding: 40px 24px; }
    .contact-cta h3 { font-size: 1.75rem; }

    footer { padding: 40px 24px 100px; }
    .footer-inner { gap: 0; align-items: center; }
    .footer-top { flex-direction: column; gap: 24px; align-items: center; }
    .footer-logo { font-size: 2rem; }
    .footer-brand-col { align-items: center; text-align: center; }
    .footer-desc { text-align: center; }
    .footer-social { align-self: center; }
    .footer-links { flex-wrap: wrap; gap: 12px 32px; justify-content: center; align-content: center; width: 100%; }
    .footer-links a { text-align: center; }

    .hero-visual { width: 280px; height: 340px; }
    .hero-img-1 { width: 180px; height: 240px; left: 0; top: 30px; z-index: 1; }
    .hero-img-2 { width: 130px; height: 180px; left: 120px; top: 110px; z-index: 3; }
    .missis-images { height: 280px; width: 100%; max-width: 320px; }
    .missis-img-1 { width: 180px; height: 240px; left: 50%; transform: translateX(-150px); top: 10px; z-index: 1; }
    .missis-img-2 { width: 140px; height: 190px; left: 50%; transform: translateX(10px); top: 90px; z-index: 3; }

    /* NAV MOBILE STYLES */
    nav {
        position: fixed;
        top: 0; left: -100%;
        width: 100%;
        height: 120vh;
        min-height: 120vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 24px 160px;
        gap: 10px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        display: flex !important;
    }
    nav.active { left: 0; }
    .nav-items-grid {
        display: grid;
grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        flex-shrink: 0;
    }
    .nav-items-grid a {
        padding: 16px 14px;
        font-size: 16px;
        border: 1px solid var(--border);
        text-align: center;
    }
    .nav-items-grid a.active {
        border-color: var(--accent);
    }
    .nav-items-grid a::after { display: none; }
    nav .header-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 24px;
        padding: 12px 24px !important;
        font-size: 14px !important;
        height: 48px;
        flex-shrink: 0;
    }
    nav .lang-switch {
        display: flex !important;
        margin-top: 24px;
        margin-bottom: 24px;
        flex-shrink: 0;
    }
    .nav-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        flex-shrink: 0;
    }
    .nav-contact-link {
        width: 100%;
        max-width: 280px;
    }

    .contact-popup { width: 90%; }
    .popup-content { padding: 60px 24px 40px; }

    .cookie-consent {
        left: 10px; right: 10px; bottom: 10px;
        padding: 16px;
        width: calc(100% - 20px);
        max-width: 100%;
    }
    .cookie-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .cookie-btn { flex: auto; min-width: 100px; padding: 10px 12px; }
    .cookie-modal-content { width: 95%; padding: 24px; max-height: 90vh; }
    .cookie-modal-content h2 { font-size: 1.25rem; margin-bottom: 20px; }
    .category-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .category-description { margin-left: 0; margin-top: 8px; }
    .cookie-modal-actions { flex-direction: column; }
    .footer-policies { flex-direction: column; gap: 8px; align-items: center; margin-top: 32px; }
    .footer-policies a { margin-bottom: 4px; }
    .blog-grid { grid-template-columns: 1fr !important; }
    .related-grid { grid-template-columns: 1fr !important; }

@media (max-width: 345px) {
    .nav-items-grid {
        grid-template-columns: 1fr;
    }
}
}


/* Image slideshow */
.hero-img-container img, .missis-img img { transition: opacity 1s ease-in-out; }
