/*
Theme Name: Metsamehe Talu
Theme URI: https://metsamehe-talu.ee
Author: Metsamehe Talu
Description: Hiiumaa metsatööde, traktoritööde ja maakorrastuse ettevõtte veebileht. Kohalik tegija, usaldusväärne töö.
Version: 1.0.0
Text Domain: metsamehe-talu
Tags: custom-menu, custom-logo, featured-images, full-width-template
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Logo-based palette)
   ============================================ */
:root {
    /* Primary greens from logo */
    --color-primary: #0D4D2B;
    --color-primary-dark: #082E1A;
    --color-primary-light: #148C4A;
    --color-secondary: #5B8C2A;
    --color-accent: #8BB83A;
    --color-accent-light: #A8D44A;

    /* Gold from excavator */
    --color-gold: #D4A017;
    --color-gold-light: #F0C040;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #F8FAF6;
    --color-text: #1A2E1A;
    --color-text-light: #4A5E4A;
    --color-border: #D0DCC8;

    /* Glass effect tokens */
    --glass-bg: rgba(13, 77, 43, 0.75);
    --glass-bg-light: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(8, 46, 26, 0.35);
    --glass-blur: blur(18px);

    /* Footer glass */
    --glass-footer-bg: rgba(8, 46, 26, 0.85);

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(8, 46, 26, 0.10);
    --shadow-card-hover: 0 12px 40px rgba(8, 46, 26, 0.18);
    --shadow-text: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SVG ICON SYSTEM
   ============================================ */
.mt-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
}

/* Inside trust bar, contact items */
.trust-icon .mt-icon,
.contact-item-icon .mt-icon {
    color: var(--color-accent);
}

/* Inside service cards */
.service-icon .mt-icon {
    color: var(--color-accent);
    filter: drop-shadow(0 2px 6px rgba(139, 184, 58, 0.3));
}

/* Inside footer */
.footer-contact-item .mt-icon {
    color: var(--color-accent-light);
    flex-shrink: 0;
}

/* Inside buttons */
.btn .mt-icon {
    vertical-align: -2px;
    margin-right: 4px;
}

/* ============================================
   SKIP LINK (accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

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

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

html {
    font-size: 16px;
    /* Prevent font size inflation on rotation (iOS Safari, Samsung Internet) */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent pull-to-refresh bounce on iOS/Chrome */
    overscroll-behavior-y: none;
    /* Remove tap highlight on Android Chrome / Samsung Internet */
    -webkit-tap-highlight-color: transparent;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   GLASS HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    height: var(--header-height);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                height 0.3s ease;
    will-change: transform;
}

/* While animating hide/show, disable blur for smooth performance */
.site-header.header-hidden {
    transform: translateY(-100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

/* Force GPU compositing layer */
.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.site-header.scrolled {
    background: rgba(8, 46, 26, 0.92);
    height: 64px;
    box-shadow: 0 4px 20px rgba(8, 46, 26, 0.25);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1001;
}

.site-logo img {
    height: calc(var(--header-height) - 8px);
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    transition: var(--transition-smooth);
}

.site-header.scrolled .site-logo img {
    height: 56px;
}

.site-logo-text {
    display: none;
}

/* Footer logo */
.site-footer .site-logo img {
    height: 120px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* Navigation */
.main-nav {
    justify-self: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* CTA stays on the right */
.main-nav .menu-cta {
    position: absolute;
    right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
    top: 50%;
    transform: translateY(-50%);
}

.main-nav a {
    display: inline-block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: var(--color-white);
    background: var(--glass-bg-light);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
    transform: translateX(-50%) scaleX(1);
}

/* CTA button in nav */
.main-nav .menu-cta a {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 28px;
}

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

.main-nav .menu-cta a:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 184, 58, 0.4);
}

/* Mobile call button */
.mobile-call {
    display: none;
}

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

.mobile-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport — respects iOS/Android address bar */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, var(--color-secondary) 100%);
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.45) saturate(1.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 184, 58, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(8, 46, 26, 0.3) 0%, transparent 60%);
    z-index: 1;
}

/* Animated forest silhouette */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%23ffffff' d='M0,200 L0,140 C40,140 50,80 70,80 C90,80 95,120 100,120 C110,120 115,60 130,60 C145,60 150,100 160,100 C175,100 180,50 200,50 C220,50 225,90 240,90 C255,90 260,40 280,40 C300,40 310,100 320,100 C335,100 340,70 360,70 C380,70 385,110 400,110 C415,110 420,60 440,60 C460,60 465,100 480,100 C500,100 510,30 530,30 C550,30 555,90 570,90 C585,90 590,50 610,50 C630,50 640,100 660,100 C675,100 680,70 700,70 C720,70 725,110 740,110 C760,110 765,40 790,40 C815,40 820,90 840,90 C860,90 870,60 890,60 C910,60 915,100 930,100 C950,100 960,50 980,50 C1000,50 1010,85 1030,85 C1050,85 1055,35 1080,35 C1105,35 1110,80 1130,80 C1150,80 1160,55 1180,55 C1200,55 1210,95 1230,95 C1250,95 1260,45 1280,45 C1300,45 1310,90 1330,90 C1350,90 1370,65 1390,65 C1410,65 1430,100 1440,100 L1440,200 Z'/%3E%3C/svg%3E") center bottom/cover no-repeat;
    z-index: 2;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--color-accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge .mt-icon {
    color: var(--color-accent-light);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 24px;
    text-shadow: var(--shadow-text);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 em {
    font-style: normal;
    color: var(--color-accent);
    position: relative;
}

.hero h1 em::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    border-radius: 4px;
    opacity: 0.5;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 20px rgba(139, 184, 58, 0.35);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 184, 58, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.btn-green {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(13, 77, 43, 0.3);
}

.btn-green:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 77, 43, 0.4);
}

/* Content slides over hero */
.hero-next {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    border-radius: 32px 32px 0 0;
    margin-top: -40px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    padding: 0;
    border-bottom: none;
    background: transparent;
    margin-top: -36px;
    position: relative;
    z-index: 3;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(8, 46, 26, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(8, 46, 26, 0.14);
}

/* Mobile overlay for nav */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.trust-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 77, 43, 0.2);
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.3;
}

.trust-text span {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 100px 0;
}

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

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

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

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 12px;
    position: relative;
    padding: 0 20px;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-label::before { left: -20px; }
.section-label::after { right: -20px; }

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
    cursor: default;
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.06);
}

.service-card-img-wrapper {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-card-body {
    padding: 28px 32px 32px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
    box-shadow: 0 4px 14px rgba(13, 77, 43, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 28px rgba(13, 77, 43, 0.3);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card:hover .service-link::after {
    transform: translateX(4px);
}

/* ============================================
   SERVICES PAGE — SHOWCASE SECTIONS
   ============================================ */

/* --- Intro section --- */
.services-intro {
    padding-bottom: 0;
}

/* --- Showcase wrapper --- */
.services-showcase {
    position: relative;
}

/* --- Individual service section --- */
.service-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.service-section--odd {
    background: var(--color-white);
}

.service-section--even {
    background: var(--color-off-white);
}

/* --- Angled divider between sections --- */
.service-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 2;
}

.service-section--odd::before {
    background: var(--color-off-white);
    clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
}

.service-section--even::before {
    background: var(--color-white);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0%);
}

/* First section: transition from white intro */
.service-section:first-of-type::before {
    display: none;
}

/* --- Large watermark number --- */
.service-section__number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(12rem, 22vw, 20rem);
    font-weight: 900;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    letter-spacing: -0.05em;
}

.service-section--odd .service-section__number {
    right: -2%;
}

.service-section--even .service-section__number {
    left: -2%;
}

/* --- Grid layout --- */
.service-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.service-section--even .service-section__grid {
    direction: rtl;
}

.service-section--even .service-section__grid > * {
    direction: ltr;
}

/* --- Image / Visual --- */
.service-section__visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-primary-dark);
    box-shadow: 0 20px 60px rgba(8, 46, 26, 0.15);
    /* Clip-path reveal: starts hidden */
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.service-section--even .service-section__visual {
    clip-path: inset(0 0 0 100%);
}

.service-section.revealed .service-section__visual {
    clip-path: inset(0 0 0 0);
}

.service-section__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}

.service-section:hover .service-section__visual img {
    transform: scale(1.05);
}

/* --- Content --- */
.service-section__content {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease 0.25s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.service-section--even .service-section__content {
    transform: translateX(-60px);
}

.service-section.revealed .service-section__content {
    opacity: 1;
    transform: translateX(0);
}

/* --- Badge (small number above title) --- */
.service-section__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 8px;
    position: relative;
    padding-left: 36px;
}

.service-section__badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
}

.service-section__content h2 {
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.service-section__content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* --- Feature list --- */
.service-features {
    margin: 24px 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--color-text);
    font-size: 0.95rem;
    /* Stagger animation */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-section.revealed .service-features li {
    opacity: 1;
    transform: translateY(0);
}

.service-section.revealed .service-features li:nth-child(1) { transition-delay: 0.45s; }
.service-section.revealed .service-features li:nth-child(2) { transition-delay: 0.52s; }
.service-section.revealed .service-features li:nth-child(3) { transition-delay: 0.59s; }
.service-section.revealed .service-features li:nth-child(4) { transition-delay: 0.66s; }
.service-section.revealed .service-features li:nth-child(5) { transition-delay: 0.73s; }
.service-section.revealed .service-features li:nth-child(6) { transition-delay: 0.80s; }

.service-features li::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23082E1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12l2.5 3L16 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* --- CTA button within service --- */
.service-section .btn-green {
    margin-top: 16px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease 0.85s, transform 0.5s ease 0.85s,
                background 0.3s ease, box-shadow 0.3s ease;
}

.service-section.revealed .btn-green {
    opacity: 1;
    transform: translateY(0);
}

/* --- Floating progress nav --- */
.service-progress {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.service-progress.visible {
    opacity: 1;
    pointer-events: auto;
}

.service-progress__dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.service-progress__dot span {
    display: none;
}

.service-progress__dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    background: var(--color-white);
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-progress__dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.service-progress__dot.active {
    background: var(--color-accent);
    border-color: var(--color-primary);
    transform: scale(1.35);
    box-shadow: 0 0 0 4px rgba(139, 184, 58, 0.25);
}

.service-progress__dot.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 184, 58, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 36px;
    line-height: 1.8;
}

/* ============================================
   ABOUT / INFO BLOCK
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-icon {
    font-size: 6rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--color-accent);
    border-radius: 20px;
    opacity: 0.3;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--color-off-white);
    border-radius: 16px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    padding: 48px;
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
    border-radius: 24px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 184, 58, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    position: relative;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.7;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item-text strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-light);
    margin-bottom: 4px;
}

.contact-item-text span,
.contact-item-text a {
    font-size: 1.05rem;
    color: var(--color-white);
}

.contact-item-text a:hover {
    color: var(--color-accent-light);
}

/* Contact Company Block */
.contact-company {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
}

.contact-company-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.contact-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-company-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-company-details strong {
    font-size: 1.05rem;
    color: var(--color-white);
    margin-bottom: 4px;
}

.contact-company-details span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* Contact Form */
.contact-form-wrapper {
    padding: 48px;
    background: var(--color-white);
    border-radius: 24px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.contact-form-wrapper h2 {
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-off-white);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(13, 77, 43, 0.08);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Form messages */
.form-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message--error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(139, 184, 58, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--color-white), transparent);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--color-white);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    text-shadow: var(--shadow-text);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   GLASS FOOTER
   ============================================ */
.site-footer {
    position: sticky;
    bottom: 0;
    z-index: 0;
    background: var(--color-primary-dark);
    overflow: hidden;
}

/* Main content needs to sit above footer */
#main-content {
    position: relative;
    z-index: 1;
    background: var(--color-white);
}

.footer-glass {
    background: var(--glass-footer-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 72px 0 0;
    position: relative;
}

.footer-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(139, 184, 58, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(13, 77, 43, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    position: relative;
    z-index: 2;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-accent-light);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact-item .mt-icon {
    margin-top: 3px;
}

.footer-contact-item span:first-child {
    font-size: 1.1rem;
}

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

.footer-contact-item a:hover {
    color: var(--color-accent-light);
}

.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Focus-visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.main-nav a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    background: var(--glass-bg-light);
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent-light);
    outline-offset: 3px;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

    .service-section--even .service-section__grid {
        direction: ltr;
    }

    .service-section {
        padding: 72px 0;
    }

    .service-progress {
        right: 12px;
    }

    .service-progress__dot::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr auto auto;
        padding: 0 16px;
    }

    .mobile-call {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--color-accent);
        border-radius: 50%;
        color: var(--color-primary-dark);
        z-index: 1001;
        transition: var(--transition-fast);
    }

    .mobile-call:hover {
        background: var(--color-accent-light);
        transform: scale(1.05);
    }

    .mobile-toggle {
        display: flex;
        margin-left: 12px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        background: rgba(8, 46, 26, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 32px 32px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav .menu-cta {
        position: static;
        transform: none;
    }

    .main-nav a {
        display: block;
        padding: 14px 20px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .hero-content {
        padding: 140px 20px 180px;
    }

    .trust-items {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 16px;
    }

    .trust-bar {
        margin-top: -28px;
    }

    .trust-item {
        padding: 20px 22px;
        border-radius: 16px;
    }

    .trust-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .contact-info {
        border-radius: 24px;
    }

    .contact-form-wrapper {
        border-radius: 24px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col--services {
        display: none;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .site-logo {
        justify-content: center;
    }

    .footer-brand p {
        max-width: 100%;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
    }

    .footer-col ul li {
        margin-bottom: 0;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-glass {
        padding: 48px 0 0;
    }

    .footer-bottom {
        margin-top: 32px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 32px;
    }

    .contact-company {
        padding: 20px;
        gap: 16px;
    }

    .contact-company-logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        padding: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .service-progress {
        display: none;
    }

    .service-section {
        padding: 56px 0;
    }

    .service-section__number {
        font-size: 8rem;
    }

    .service-section__content h2 {
        font-size: 1.7rem;
    }

    .service-section__visual {
        clip-path: inset(0 0 100% 0);
    }

    .service-section--even .service-section__visual {
        clip-path: inset(0 0 100% 0);
    }

    .service-section.revealed .service-section__visual {
        clip-path: inset(0 0 0 0);
    }

    .service-section__content {
        transform: translateY(30px);
    }

    .service-section--even .service-section__content {
        transform: translateY(30px);
    }

    .service-section::before {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

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

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 16px;
    }

    .trust-item {
        gap: 14px;
    }

    .trust-text strong {
        font-size: 0.88rem;
    }

    .trust-text span {
        font-size: 0.78rem;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 120px 16px 160px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .contact-info,
    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-company {
        padding: 16px;
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-glass {
        padding: 40px 0 0;
    }

    .footer-brand .site-logo img {
        height: 100px;
    }

    .footer-brand p {
        font-size: 0.88rem;
    }

    .footer-bottom-inner {
        font-size: 0.78rem;
    }

    .service-section {
        padding: 40px 0;
    }

    .service-section__number {
        font-size: 6rem;
    }

    .service-section__content h2 {
        font-size: 1.4rem;
    }

    .service-section__badge {
        font-size: 0.75rem;
    }
}

/* ============================================
   SMALL PHONES (iPhone SE, Galaxy S mini, older 4" devices)
   320px–359px
   ============================================ */
@media (max-width: 359px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .header-inner {
        padding: 0 12px;
    }

    .site-logo img {
        height: 56px;
    }

    .mobile-call {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-content {
        padding: 110px 12px 140px;
    }

    .trust-item {
        padding: 16px 14px;
    }

    .trust-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .section {
        padding: 48px 0;
    }

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

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .service-section__features li {
        font-size: 0.88rem;
    }
}

/* ============================================
   GALAXY Z FOLD — folded mode (outer screen)
   ~280px width
   ============================================ */
@media (max-width: 300px) {
    html {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .trust-items {
        max-width: 100%;
    }

    .trust-icon {
        width: 36px;
        height: 36px;
    }

    .trust-text strong {
        font-size: 0.82rem;
    }

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

/* ============================================
   LANDSCAPE PHONES
   Short viewport, wide screen
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-content {
        padding: 80px 24px 60px;
    }

    .site-header {
        height: 56px;
    }

    .site-header.scrolled {
        height: 50px;
    }

    .site-logo img {
        height: 48px;
    }

    .section {
        padding: 40px 0;
    }

    .page-hero {
        padding: 80px 0 40px;
    }

    .footer-glass {
        padding: 32px 0 0;
    }

    .site-footer .site-logo img {
        height: 64px;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .footer-bottom {
        margin-top: 24px;
    }
}

/* ============================================
   iOS SAFE AREAS (iPhone X+, notch & home bar)
   ============================================ */
@supports (padding: env(safe-area-inset-top)) {
    .site-header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .hero-content {
        padding-left: calc(16px + env(safe-area-inset-left));
        padding-right: calc(16px + env(safe-area-inset-right));
    }

    .footer-glass {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .footer-bottom {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

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

    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch — prevent sticky :hover on mobile */
    .trust-item:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(8, 46, 26, 0.08);
    }

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

    /* Larger touch targets */
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 48px;
    }

    input, select, textarea {
        font-size: 16px; /* Prevent iOS zoom on input focus */
    }
}

/* ============================================
   HIGH DPI / RETINA SCREENS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-header {
        border-bottom-width: 0.5px;
    }

    .contact-company {
        border-width: 0.5px;
    }

    .trust-item {
        border-width: 0.5px;
    }
}

/* ============================================
   REDUCED MOTION (accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero {
        position: relative;
    }

    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }

    .service-section__visual {
        clip-path: inset(0 0 0 0) !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .mobile-toggle,
    .mobile-call,
    .hero-bg,
    .service-progress {
        display: none !important;
    }

    .hero {
        position: relative;
        min-height: auto;
        padding: 24px 0;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section {
        padding: 24px 0;
    }
}
