/* =====================================================
   GUATEMALAN THEME — Estuardo Enriquez Freelance
   Inspired by huipil textiles, Mayan geometry, and
   the white & maya-blue of the Guatemalan flag.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=DM+Serif+Display&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Flag colors */
    --maya-blue: #4AAEDB;
    --maya-blue-dark: #1B6B93;
    --maya-blue-deeper: #0F4C6B;
    --maya-blue-light: #7CC8E8;
    --maya-blue-pale: #E8F4FA;
    --maya-blue-ghost: #F3F9FC;

    /* Textile accent colors */
    --textile-red: #C23B3B;
    --textile-red-dark: #8B2020;
    --textile-gold: #D4A843;
    --textile-gold-dark: #A17D2F;
    --textile-green: #2D6A4F;
    --textile-green-light: #40916C;
    --textile-indigo: #1B3A5C;
    --textile-purple: #6B3A7D;

    /* Neutrals */
    --white: #FFFFFF;
    --cotton: #FAF8F5;
    --cotton-dark: #F0EDE8;
    --sand: #E8E3DB;
    --stone: #C4BEB5;
    --charcoal: #2D2D2D;
    --ink: #1A1A1A;

    /* Typography */
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;

    /* Spacing */
    --nav-height: 72px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(27,59,92,0.06);
    --shadow-md: 0 4px 12px rgba(27,59,92,0.08);
    --shadow-lg: 0 8px 30px rgba(27,59,92,0.10);
    --shadow-xl: 0 16px 48px rgba(27,59,92,0.12);
}

/* ---- Skip Navigation ---- */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--maya-blue-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 0;
    color: white;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Respect reduced motion preferences */
@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;
    }
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
}

body {
    margin: 0;
    background: var(--cotton);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { max-width: 65ch; }

a { color: var(--maya-blue-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--textile-red); }

/* ---- Focus Visible (keyboard accessibility) ---- */
:focus-visible {
    outline: 3px solid var(--maya-blue);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ---- Layout Containers ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   TEXTILE PATTERNS (Pure CSS)
   ===================================================== */

/* Zigzag divider — most iconic Guatemalan textile element */
.divider-zigzag {
    width: 100%;
    height: 12px;
    background:
        linear-gradient(135deg, var(--textile-red) 33.33%, transparent 33.33%) 0 0,
        linear-gradient(225deg, var(--textile-red) 33.33%, transparent 33.33%) 0 0,
        linear-gradient(315deg, var(--textile-red) 33.33%, transparent 33.33%) 0 0,
        linear-gradient(45deg, var(--textile-red) 33.33%, transparent 33.33%) 0 0;
    background-size: 12px 12px;
    background-color: var(--textile-gold);
}

/* Multi-band stripe — horizontal huipil bands */
.divider-bands {
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom,
        var(--textile-red) 0, var(--textile-red) 2px,
        var(--textile-gold) 2px, var(--textile-gold) 4px,
        var(--maya-blue) 4px, var(--maya-blue) 6px,
        var(--textile-green) 6px, var(--textile-green) 8px
    );
}

/* Thin accent band */
.divider-thin {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--maya-blue) 15%,
        var(--textile-gold) 50%,
        var(--maya-blue) 85%,
        transparent 100%
    );
}

/* Diamond chain — subtle SVG-like pattern */
.divider-diamonds {
    width: 100%;
    height: 16px;
    background:
        linear-gradient(45deg, transparent 40%, var(--maya-blue) 40%, var(--maya-blue) 60%, transparent 60%) 0 0,
        linear-gradient(-45deg, transparent 40%, var(--maya-blue) 40%, var(--maya-blue) 60%, transparent 60%) 0 0;
    background-size: 16px 16px;
    background-color: transparent;
    opacity: 0.25;
}

/* Subtle weave texture — background for sections */
.bg-weave {
    background-color: var(--cotton);
    background-image:
        linear-gradient(0deg, rgba(27,59,92,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,59,92,0.025) 1px, transparent 1px);
    background-size: 6px 6px;
}

/* Brocade diamond field — subtle section background */
.bg-brocade {
    background-color: var(--cotton-dark);
    background-image:
        linear-gradient(45deg, rgba(74,174,219,0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(74,174,219,0.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(74,174,219,0.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(74,174,219,0.04) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
}

/* White section */
.bg-white-section { background-color: var(--white); }

/* =====================================================
   WOVEN RIBBON NAVIGATION
   ===================================================== */

.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--white);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav-main.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    text-decoration: none;
}
.nav-logo:hover { color: var(--ink); }

.nav-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--maya-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--maya-blue-dark);
}
.nav-links a.active {
    color: var(--maya-blue-dark);
    font-weight: 600;
}

/* Textile underline on active/hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--textile-red), var(--textile-gold), var(--maya-blue));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* CTA button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--maya-blue-dark);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--maya-blue-deeper);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(74,174,219,0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--maya-blue-dark);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--maya-blue);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-secondary:hover {
    background: var(--maya-blue-pale);
    color: var(--maya-blue-dark);
    transform: translateY(-1px);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--textile-gold-dark);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}
.btn-gold:hover {
    background: var(--textile-gold-dark);
    color: white;
    transform: translateY(-1px);
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--maya-blue-light);
}

/* Card with textile top border */
.card-textile {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-textile::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--textile-red), var(--textile-gold), var(--maya-blue), var(--textile-green));
}
.card-textile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-textile-body { padding: 28px 32px; }

/* Icon container */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-box-blue { background: var(--maya-blue-pale); color: var(--maya-blue-dark); }
.icon-box-red { background: #FAEAEA; color: var(--textile-red); }
.icon-box-gold { background: #FBF5E6; color: var(--textile-gold-dark); }
.icon-box-green { background: #E8F5EF; color: var(--textile-green); }

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

/* Subtle decorative background — abstract textile geometry */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background:
        radial-gradient(circle at 70% 30%, rgba(74,174,219,0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(212,168,67,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--maya-blue-pale);
    color: var(--maya-blue-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 span.accent {
    color: var(--maya-blue);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #5A5A5A;
    margin-top: 16px;
    margin-bottom: 32px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

/* Trust bar / platforms */
.trust-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--stone);
    font-size: 0.85rem;
    font-weight: 500;
}
.trust-bar span {
    color: #6B6B6B;
}
.trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--stone);
}

/* =====================================================
   STATS BAR
   ===================================================== */

.stats-bar {
    padding: 48px 0;
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--maya-blue-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #6B6B6B;
    font-weight: 500;
}

/* =====================================================
   SECTION TITLES
   ===================================================== */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--maya-blue-dark);
    margin-bottom: 12px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--textile-red), var(--textile-gold));
    border-radius: 2px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
}

/* =====================================================
   HOW IT WORKS — STEPS
   ===================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.66% + 36px);
    right: calc(16.66% + 36px);
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--maya-blue) 0px, var(--maya-blue) 8px,
        transparent 8px, transparent 16px
    );
    opacity: 0.3;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--maya-blue-pale);
    border: 3px solid var(--maya-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}
.step-number i { color: var(--maya-blue-dark); }

.step-badge {
    display: inline-block;
    padding: 3px 12px;
    background: var(--maya-blue-pale);
    color: var(--maya-blue-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 8px;
}

.step-item h3 { margin-bottom: 8px; }
.step-item p { color: #666; font-size: 0.95rem; margin: 0 auto; max-width: 280px; }

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--ink);
    color: var(--stone);
    padding: 48px 0 32px;
}

.footer a {
    color: var(--stone);
    transition: color 0.2s ease;
}
.footer a:hover { color: var(--maya-blue-light); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 12px;
    color: #999;
}

.footer-col h4,
.footer-col .footer-heading {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sand);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}
.footer-socials a:hover {
    background: rgba(74,174,219,0.15);
    color: var(--maya-blue-light);
}

/* =====================================================
   FORM INPUTS
   ===================================================== */

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid var(--sand);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
    border-color: var(--maya-blue);
    box-shadow: 0 0 0 4px rgba(74,174,219,0.12);
    outline: 2px solid var(--maya-blue);
    outline-offset: 1px;
}
.form-input:focus:not(:focus-visible) {
    outline: none;
}
.form-input::placeholder { color: var(--stone); }

/* =====================================================
   ANIMATIONS
   ===================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* =====================================================
   HAMBURGER MENU (Mobile)
   ===================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}
.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px 24px;
    z-index: 99;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}
.mobile-menu.open { display: block; }

.mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--charcoal);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mobile-menu a:hover { color: var(--maya-blue-dark); }

/* =====================================================
   MEGA MENU (Desktop Services dropdown)
   ===================================================== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--textile-red), var(--textile-gold), var(--maya-blue), var(--textile-green)) 1;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    z-index: 101;
}
.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-cats {
    padding: 24px;
    border-right: 1px solid var(--sand);
}
.mega-cats-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone);
    margin-bottom: 12px;
}

.mega-cat {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}
.mega-cat:hover, .mega-cat.active {
    background: var(--maya-blue-pale);
    color: var(--maya-blue-dark);
}
.mega-cat.active {
    border-left-color: var(--maya-blue);
    font-weight: 600;
}
.mega-cat i { width: 18px; height: 18px; flex-shrink: 0; }

.mega-subs {
    padding: 24px 32px;
}
.mega-sub-panel {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.mega-sub-panel.active { display: grid; }

.mega-sub-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.mega-sub-link:hover {
    background: var(--maya-blue-ghost);
    color: inherit;
}
.mega-sub-link .icon-box { width: 40px; height: 40px; margin-top: 2px; }
.mega-sub-link h4 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.mega-sub-link p { font-size: 0.78rem; color: #6B6B6B; margin: 0; }

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cotton); }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--maya-blue); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-links + .btn-primary { display: none; }

    .hero { min-height: auto; padding-top: calc(var(--nav-height) + 24px); padding-bottom: 40px; }
    .hero .container > div[style] { grid-template-columns: 1fr !important; gap: 32px !important; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-screenshot { max-width: 80%; margin: 0 auto; display: block; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .steps-grid::before { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .container, .container-wide { padding: 0 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
    .hero-screenshot { max-width: 90%; }
}

/* =====================================================
   LANGUAGE TOGGLE
   ===================================================== */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--maya-blue-dark);
    border: 1.5px solid var(--maya-blue-light);
    border-radius: 6px;
    transition: background 0.2s ease;
    text-decoration: none;
}
.lang-toggle:hover {
    background: var(--maya-blue-pale);
    color: var(--maya-blue-dark);
}

/* =====================================================
   SERVICE PAGE SPECIFICS
   ===================================================== */

.service-hero {
    padding: calc(var(--nav-height) + 40px) 0 48px;
    background: var(--white);
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #767676;
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--maya-blue-dark); }
.breadcrumb a:hover { color: var(--textile-red); }

/* Feature grid for service pages */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Pricing table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.price-card {
    background: var(--white);
    border: 2px solid var(--sand);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover {
    border-color: var(--maya-blue-light);
    box-shadow: var(--shadow-md);
}
.price-card.featured {
    border-color: var(--maya-blue);
    position: relative;
}
.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--maya-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--ink);
    line-height: 1;
    margin: 16px 0 8px;
}
.price-period {
    font-size: 0.85rem;
    color: #6B6B6B;
}
