/* ============================================
   ESTUDIOS MI ARQUITECTO WEBSITE - STYLES
   Modern Website with Metallic Orange Theme
   ============================================ */

/* Editorial & Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Colors - Dark Orange Theme */
    --primary-light: #FFB366;
    --primary: #FF8C42;
    --primary-dark: #D67C22;
    --primary-darker: #8B4513;

    /* Background Colors */
    --bg-dark: #0D0D15;
    --bg-darker: #050508;
    --bg-card: rgba(30, 20, 10, 0.9);
    --bg-card-hover: rgba(214, 124, 34, 0.15);
    --bg-gradient: linear-gradient(135deg, #0D0D15 0%, #1a1a2e 50%, #0D0D15 100%);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --text: var(--text-primary);
    --text-light: rgba(255, 255, 255, 0.82);

    /* Accent Colors */
    --accent: var(--primary-light);
    --accent-gold: #FFB366;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;

    /* Metallic Gradient */
    --metallic-gradient: linear-gradient(135deg, #FFB366 0%, #FF8C42 25%, #D67C22 50%, #FF8C42 75%, #FFB366 100%);
    --metallic-text: linear-gradient(180deg, #FFB366 0%, #FF8C42 50%, #D67C22 100%);

    /* Shadows & Effects */
    --shadow-sm: 0 2px 10px rgba(255, 140, 66, 0.15);
    --shadow-md: 0 4px 20px rgba(255, 140, 66, 0.2);
    --shadow-lg: 0 8px 40px rgba(255, 140, 66, 0.25);
    --shadow-glow: 0 0 30px rgba(255, 140, 66, 0.5);

    /* Typography */
    --font-display: 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-serif: 'DM Serif Display', 'Georgia', serif;
    --font-brand: 'Cormorant Garamond', 'DM Serif Display', 'Georgia', serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius � architectural, angular */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 4px;

    /* Glass Effects */
    --glass-bg: rgba(30, 20, 10, 0.7);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 140, 66, 0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.65;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html,
body,
.franchise-directory-modal-scroll,
.cookie-modal-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 166, 92, 0.56) rgba(18, 20, 34, 0.68);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.franchise-directory-modal-scroll::-webkit-scrollbar,
.cookie-modal-card::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.franchise-directory-modal-scroll::-webkit-scrollbar-track,
.cookie-modal-card::-webkit-scrollbar-track {
    background: rgba(18, 20, 34, 0.52);
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.franchise-directory-modal-scroll::-webkit-scrollbar-thumb,
.cookie-modal-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 179, 102, 0.92), rgba(214, 124, 34, 0.88));
    border: 3px solid rgba(18, 20, 34, 0.22);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.franchise-directory-modal-scroll::-webkit-scrollbar-thumb:hover,
.cookie-modal-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 191, 125, 0.98), rgba(224, 132, 39, 0.94));
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(255, 179, 102, 0.9);
    outline-offset: 3px;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Base */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

/* Section Title */
.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FF8C42 0%, #FFB84D 50%, #E67E22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 140, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    line-height: 1.2;
}

.section-title i {
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto 50px;
}

/*  ============================================
    BUTTONS
    ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--metallic-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 140, 66, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.5);
    transform: translateY(-3px);
}

/*  ============================================
    NAVIGATION
    ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    transition: all var(--transition-normal);
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(13, 13, 21, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    overflow: visible;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

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

.nav-menu li {
    overflow: visible;
}

.nav-link {
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 11px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--metallic-gradient);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Access button in nav */
.nav-link-odoo {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin-left: 14px !important;
    padding: 7px 20px !important;
    border-radius: 999px !important;
    background: transparent;
    border: 1px solid rgba(255, 140, 66, 0.5);
    color: var(--primary-light) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.14em;
    font-weight: 400 !important;
    transition: all var(--transition-fast) !important;
}

.nav-link-odoo::after {
    display: none !important;
}

.nav-link-odoo:hover {
    background: rgba(255, 140, 66, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.nav-odoo-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

:root[data-theme="light"] .nav-link-odoo {
    background: transparent;
    border-color: rgba(168, 94, 14, 0.45);
    color: #8b4513 !important;
}

:root[data-theme="light"] .nav-link-odoo:hover {
    background: rgba(168, 94, 14, 0.08) !important;
    border-color: rgba(168, 94, 14, 0.7) !important;
    color: #7c3d0a !important;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(13, 13, 21, 0.95) 0%, rgba(26, 26, 46, 0.9) 100%);
    border-bottom: 2px solid rgba(255, 140, 66, 0.3);
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero.hero-media {
    isolation: isolate;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero.hero-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(9, 11, 18, 0.78) 0%, rgba(12, 15, 22, 0.62) 42%, rgba(35, 20, 9, 0.68) 100%);
    z-index: 1;
    pointer-events: none;
    animation: none;
}

.hero.hero-media::after {
    content: '';
    position: absolute;
    inset: auto auto -18% -10%;
    width: 42vw;
    height: 42vw;
    min-width: 260px;
    min-height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.2) 0%, rgba(255, 166, 92, 0.04) 44%, transparent 72%);
    z-index: 1;
    pointer-events: none;
}

.hero-background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero.hero-media .section-title,
.hero.hero-media .section-subtitle {
    color: #fff;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.hero.hero-media .section-subtitle {
    color: rgba(255, 248, 240, 0.88);
}

.hero-video-hero .hero-content {
    max-width: 860px;
}

#empresa-hero {
    background-image: url("https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#services-hero {
    background-image: url("../media/img/imagenes/4.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#projects-hero {
    background-image: url("https://images.pexels.com/photos/3760529/pexels-photo-3760529.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#franchise-hero {
    background-image: url("https://images.pexels.com/photos/1629292/pexels-photo-1629292.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#contact-hero {
    background-image: url("../media/img/imagenes/contacto.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 980px;
    position: relative;
    z-index: 1;
}

.hero-home-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.12;
    text-transform: none;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(145deg, #FFD4A0 0%, #FFB366 30%, #FF8C42 60%, #FFD4A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(217, 155, 74, 0.5));
}

.hero-tagline {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* shimmer animation removed */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 180px;
    padding: 22px 26px;
    border: 1px solid rgba(255, 140, 66, 0.24);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.56) 0%, rgba(31, 21, 11, 0.4) 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 179, 102, 0.72);
    box-shadow: 0 20px 42px rgba(255, 140, 66, 0.18);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
.achievements-section {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.08) 0%, rgba(108, 184, 230, 0.04) 100%);
    padding: 60px 0;
    position: relative;
}

.info-feature-section .container {
    max-width: 1220px;
}

.info-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: center;
}

.info-feature-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.info-feature-media {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.28);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.82), rgba(35, 22, 12, 0.74));
}

.info-feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 17, 24, 0.08) 0%, rgba(14, 17, 24, 0.34) 100%);
}

.info-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-feature-copy {
    display: grid;
    gap: 16px;
}

.info-feature-kicker {
    margin-bottom: 0;
    color: var(--primary-light);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
}

.info-feature-kicker::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--primary-light);
    opacity: 0.7;
    flex-shrink: 0;
}

.info-feature-section .section-title,
.info-feature-section .section-subtitle {
    text-align: left;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
}

.info-feature-section .section-subtitle {
    max-width: 62ch;
}

.section-actions {
    display: flex;
    margin-top: 34px;
}

.section-actions-center {
    justify-content: center;
}

.achievement-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, rgba(22, 26, 40, 0.94) 0%, rgba(37, 24, 14, 0.88) 100%);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 140, 66, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transition: all var(--transition-normal);
}

.achievement-card::before {
    content: '';
    position: absolute;
    inset: auto -48px -74px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.18) 0%, rgba(255, 166, 92, 0.04) 45%, transparent 72%);
    pointer-events: none;
}

.achievement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 84px;
    height: 3px;
    border-radius: 999px;
    background: var(--metallic-gradient);
}

.achievement-card > * {
    position: relative;
    z-index: 1;
}

.achievement-card:hover {
    border-color: rgba(255, 179, 102, 0.7);
    box-shadow: 0 26px 52px rgba(255, 140, 66, 0.22), 0 4px 12px rgba(0, 0, 0, 0.14);
}

/* Responsive */
@media (max-width: 992px) {
    .whats-next-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FEEDBACK SECTION
   ============================================ */
.feedback-section {
    background: var(--bg-gradient);
}

.feedback-container {
    display: grid;
    grid-template-columns: minmax(420px, 1.15fr) minmax(520px, 1.45fr);
    gap: 56px;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
}

.feedback-info {
    background: linear-gradient(145deg, rgba(21, 24, 36, 0.96) 0%, rgba(30, 36, 56, 0.92) 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 140, 66, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.feedback-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feedback-info>p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(6, 10, 28, 0.78);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 140, 66, 0.18);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.contact-item:hover {
    border-color: rgba(255, 140, 66, 0.45);
    box-shadow: 0 12px 26px rgba(255, 140, 66, 0.16);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item span {
    color: var(--text-secondary);
}

.contact-item-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.contact-item-copy strong {
    color: var(--text-primary);
    font-size: 0.96rem;
    letter-spacing: 0.03em;
}

.contact-item-helper,
.contact-item-static-value {
    color: var(--text-secondary);
    line-height: 1.45;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 140, 66, 0.45);
    text-underline-offset: 2px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

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

/* Feedback Form */
.feedback-form {
    background: linear-gradient(135deg, rgba(44, 57, 109, 0.6) 0%, rgba(40, 66, 118, 0.4) 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(10, 116, 230, 0.586);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(20, 15, 10, 0.6);
    border: 1px solid rgba(255, 140, 66, 0.4);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:not([type="checkbox"])::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(217, 169, 74, 0.2);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF8C42' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

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

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px;
}

/* Contact Form - Enhanced look */
#feedback-form.contact-form-pro {
    background:
        linear-gradient(145deg, rgba(21, 24, 36, 0.96) 0%, rgba(30, 36, 56, 0.92) 100%);
    border: 1px solid rgba(255, 140, 66, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#feedback-form.contact-form-pro .form-group {
    margin-bottom: 18px;
}

#feedback-form.contact-form-pro input:not([type="checkbox"]),
#feedback-form.contact-form-pro select,
#feedback-form.contact-form-pro textarea {
    min-height: 50px;
    background: rgba(8, 10, 20, 0.72);
    border: 1px solid rgba(255, 140, 66, 0.38);
}

#feedback-form.contact-form-pro textarea {
    min-height: 140px;
}

#feedback-form.contact-form-pro .btn-submit {
    margin-top: 8px;
    letter-spacing: 0.05em;
}

.career-fields {
    margin: 8px 0 20px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 140, 66, 0.45);
    background: rgba(255, 140, 66, 0.06);
}

.career-fields[hidden] {
    display: none !important;
}

.career-fields-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.form-group-consent {
    margin-top: 4px;
}

.privacy-consent {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    margin-bottom: 0;
}

.privacy-consent input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.privacy-consent span {
    color: var(--text-secondary);
    line-height: 1.45;
}

.privacy-consent a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-group.has-error label,
.form-group.has-error .career-fields-title {
    color: #ffd4d4;
}

.form-group.has-error input:not([type="checkbox"]),
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: rgba(248, 113, 113, 0.92) !important;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.22);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(to top, rgba(5, 5, 8, 0.98), rgba(15, 15, 25, 0.8));
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 2px solid rgba(255, 140, 66, 0.3);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.footer-brand h3 {
    font-family: var(--font-display);
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 217, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-bottom i {
    color: var(--accent-red);
}

/* Extra bottom padding for the footer to prevent cut off */
.footer {
    padding-bottom: 100px;
    overflow: visible;
}

html,
body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   SERVICES SHOWCASE
   ============================================ */
.services-showcase {
    margin: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    align-items: stretch;
}

.service-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(155deg, rgba(22, 26, 40, 0.98) 0%, rgba(38, 24, 14, 0.92) 58%, rgba(18, 18, 28, 0.98) 100%);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 4px;
    padding: 34px 30px 30px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -58px -58px auto auto;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.18) 0%, rgba(255, 166, 92, 0.04) 44%, transparent 72%);
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top: 2px solid rgba(255, 140, 66, 0.30);
    border-right: 2px solid rgba(255, 140, 66, 0.30);
    box-shadow: none;
    transform: none;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(255, 179, 102, 0.78);
    box-shadow: 0 24px 48px rgba(255, 140, 66, 0.22), 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(30, 21, 14, 0.98) 0%, rgba(68, 39, 18, 0.92) 58%, rgba(22, 19, 28, 0.98) 100%);
}

.service-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 2.1rem;
    color: var(--primary);
    margin-bottom: 0;
    /* icon-float animation removed */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
        linear-gradient(145deg, rgba(255, 140, 66, 0.18) 0%, rgba(255, 140, 66, 0.06) 100%);
    border: 1px solid rgba(255, 179, 102, 0.16);
    box-shadow: 0 16px 30px rgba(255, 140, 66, 0.12);
}

.service-card h3 {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    color: var(--text);
    margin-bottom: 0;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.service-card p:not(.service-tagline) {
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 0;
    font-size: 1rem;
}

.service-card p.service-tagline {
    display: flex;
    align-items: center;
    align-self: stretch;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    gap: 8px;
    padding: 10px 14px;
    margin-top: auto;
    border-radius: 8px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 179, 102, 0.16);
    color: var(--primary-light);
    font-weight: 700;
    font-style: normal;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
}

/* ============================================
   SERVICES CATALOG SECTION
   ============================================ */
.services-catalog {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.15) 0%, rgba(108, 184, 230, 0.08) 100%);
    border-top: 2px solid rgba(74, 144, 217, 0.2);
    border-bottom: 2px solid rgba(74, 144, 217, 0.2);
    padding: 80px 0;
}

.services-catalog .container {
    text-align: center;
}

.services-catalog .btn {
    margin-top: 30px;
}

.franchise-copy {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.margen{
    margin-top: 25px;
}

.royalty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.royalty-card {
    background: linear-gradient(145deg, rgba(19, 22, 36, 0.94) 0%, rgba(35, 23, 13, 0.88) 100%);
    border: 1px solid rgba(255, 140, 66, 0.45);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.royalty-kicker {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.royalty-rate {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.royalty-return {
    margin: 14px 0 12px;
    color: var(--primary-light);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.royalty-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.franchise-entry-card {
    max-width: 760px;
    margin: 36px auto 0;
    padding: 28px 32px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 140, 66, 0.12) 0%, rgba(214, 124, 34, 0.08) 100%);
    border: 1px solid rgba(255, 140, 66, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(255, 140, 66, 0.12);
}

.franchise-entry-label {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.franchise-entry-amount {
    margin: 10px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary-light);
}

.franchise-entry-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.franchise-visual-subtitle {
    max-width: 900px;
    margin: 0 auto 30px;
}

.franchise-overview-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1140px;
    margin: 0 auto 38px;
}

.franchise-overview-item,
.franchise-pillar-card,
.franchise-fit-panel,
.franchise-fit-aside {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 66, 0.24);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.96) 0%, rgba(35, 22, 12, 0.92) 100%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.franchise-overview-item::before,
.franchise-pillar-card::before,
.franchise-fit-panel::before,
.franchise-fit-aside::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    left: -70px;
    bottom: -110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.18) 0%, rgba(255, 166, 92, 0) 72%);
    pointer-events: none;
}

.franchise-overview-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 4px;
}

.franchise-overview-icon,
.franchise-pillar-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #1f140c;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    box-shadow: 0 12px 24px rgba(255, 140, 66, 0.24);
}

.franchise-overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    font-size: 1rem;
}

.franchise-overview-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.franchise-overview-copy strong {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.franchise-overview-copy span {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
}

.franchise-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.franchise-pillar-card {
    padding: 28px;
    border-radius: 4px;
}

.franchise-pillar-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.franchise-pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    font-size: 1.2rem;
}

.franchise-pillar-kicker {
    margin: 0 0 8px;
    color: var(--primary-light);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.franchise-fit-eyebrow {
    margin: 0 0 10px;
    color: var(--primary-light);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.franchise-pillar-card h3,
.franchise-fit-panel h3,
.franchise-fit-aside h3 {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1.15;
}

.franchise-pillar-card h3 {
    font-size: 1.34rem;
}

.franchise-pillar-list,
.franchise-fit-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.franchise-pillar-list {
    display: grid;
    gap: 14px;
}

.franchise-pillar-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.franchise-pillar-list li:first-child {
    padding-top: 0;
    border-top: none;
}

.franchise-pillar-list i {
    margin-top: 4px;
    color: var(--primary-light);
    font-size: 0.92rem;
}

.franchise-pillar-list strong,
.franchise-fit-checklist strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.franchise-pillar-list span,
.franchise-fit-checklist span,
.franchise-fit-aside > p:not(.franchise-fit-eyebrow),
.franchise-fit-note,
.franchise-support-lead {
    color: var(--text-secondary);
}

.franchise-pillar-list span {
    line-height: 1.6;
}

.franchise-fit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 42px;
}

.franchise-fit-panel,
.franchise-fit-aside {
    padding: 32px;
    border-radius: 4px;
}

.franchise-fit-panel h3,
.franchise-fit-aside h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.franchise-fit-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.franchise-fit-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 3px;
    border: 1px solid rgba(255, 140, 66, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.franchise-fit-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(255, 168, 97, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 168, 97, 0.16);
    color: var(--primary-light);
}

.franchise-fit-checklist span {
    line-height: 1.55;
}

.franchise-fit-aside > p:not(.franchise-fit-eyebrow) {
    margin: 16px 0 0;
    line-height: 1.7;
}

.franchise-fit-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 3px;
    border: 1px solid rgba(255, 140, 66, 0.22);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.12) 0%, rgba(255, 140, 66, 0.04) 100%);
    line-height: 1.65;
}

.franchise-fit-note i {
    margin-top: 3px;
    color: var(--primary-light);
}

.franchise-fit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.franchise-fit-tags span {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 140, 66, 0.26);
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.franchise-support-lead {
    max-width: 66ch;
    margin: 30px auto 0;
    text-align: center;
    font-size: clamp(1.16rem, 1.2vw, 1.34rem);
    font-weight: 500;
    line-height: 1.8;
}

.franchise-process-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto 34px;
}

.franchise-process-stage {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 22px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.24);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.96) 0%, rgba(35, 22, 12, 0.92) 100%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.franchise-process-stage::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -110px;
    right: -90px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.16) 0%, rgba(255, 166, 92, 0) 72%);
    pointer-events: none;
}

.franchise-process-stage-range {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 140, 66, 0.22);
    background: rgba(255, 140, 66, 0.08);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.franchise-process-stage h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.34rem;
    line-height: 1.2;
}

.franchise-process-stage p:last-child {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dossier-section .container {
    text-align: center;
}

.dossier-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 140, 66, 0.46);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.95) 0%, rgba(30, 20, 10, 0.9) 100%);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.dossier-file {
    margin: 0 0 10px;
    color: var(--primary-light);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dossier-copy {
    margin: 0 auto 10px;
    max-width: 46ch;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dossier-card .btn {
    margin-top: 18px;
}

#franchise-benefits .service-card::before,
#requirements .service-card::before {
    background: radial-gradient(circle, rgba(255, 140, 66, 0.12) 0%, transparent 72%);
}

#franchise-benefits .services-grid {
    align-items: stretch;
    gap: 32px;
    counter-reset: franchise-benefit;
}

#franchise-benefits .service-card {
    counter-increment: franchise-benefit;
    min-height: 100%;
    padding: 34px 32px 30px;
    border-radius: 4px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    isolation: isolate;
    contain: paint;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background:
        linear-gradient(165deg, rgba(25, 18, 14, 0.98) 0%, rgba(54, 33, 19, 0.94) 55%, rgba(36, 22, 16, 0.98) 100%);
    border: 1px solid rgba(255, 153, 76, 0.4);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

#franchise-benefits .service-card > * {
    position: relative;
    z-index: 1;
}

#franchise-benefits .service-card::before {
    inset: auto;
    top: -30%;
    right: -22%;
    width: 240px;
    height: 240px;
    background:
        radial-gradient(circle, rgba(255, 169, 92, 0.22) 0%, rgba(255, 169, 92, 0.08) 34%, transparent 72%);
    opacity: 0.95;
}

#franchise-benefits .service-card::after {
    content: "0" counter(franchise-benefit);
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 214, 177, 0.9);
    background: rgba(255, 140, 66, 0.12);
    border: 1px solid rgba(255, 179, 102, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 0;
}

#franchise-benefits .service-icon {
    width: 78px;
    height: 78px;
    margin: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffb366;
    background: linear-gradient(145deg, rgba(255, 140, 66, 0.2) 0%, rgba(255, 140, 66, 0.08) 100%);
    border: 1px solid rgba(255, 179, 102, 0.2);
    box-shadow: 0 12px 24px rgba(255, 140, 66, 0.12);
}

#franchise-benefits .service-card h3 {
    margin: 2px 0 0;
    color: var(--text-primary);
    font-size: clamp(1.72rem, 2vw, 2.08rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

#franchise-benefits .service-card p {
    margin: 0;
    color: rgba(227, 221, 214, 0.78);
    font-size: 1.04rem;
    line-height: 1.74;
    max-width: 28ch;
}

#franchise-benefits .service-card:hover,
#requirements .service-card:hover {
    border-color: rgba(255, 179, 102, 0.82);
    box-shadow: 0 30px 56px rgba(255, 140, 66, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(42, 26, 12, 0.96) 0%, rgba(78, 45, 16, 0.84) 100%);
}

#franchise-benefits .service-card:hover {
    box-shadow: 0 28px 58px rgba(255, 140, 66, 0.26), 0 4px 12px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 179, 102, 0.08);
}

#franchise-benefits .service-card:hover .service-icon {
    color: #ffd0a0;
    background: linear-gradient(145deg, rgba(255, 166, 92, 0.28) 0%, rgba(255, 140, 66, 0.14) 100%);
    box-shadow: 0 18px 30px rgba(255, 140, 66, 0.18);
}

#requirements .franchise-support-grid {
    gap: 30px;
    margin-top: 34px;
    counter-reset: support-card;
}

#requirements .support-card {
    --support-accent: 255, 160, 92;
    counter-increment: support-card;
    min-height: 320px;
    padding: 28px;
    border-radius: 4px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    gap: 16px;
    text-align: left;
    isolation: isolate;
    contain: paint;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(160deg, rgba(16, 18, 30, 0.98) 0%, rgba(41, 24, 16, 0.94) 54%, rgba(14, 15, 23, 0.98) 100%);
    border: 1px solid rgba(var(--support-accent), 0.34);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

#requirements .support-card > * {
    position: relative;
    z-index: 1;
}

#requirements .support-card::before {
    inset: auto;
    left: -84px;
    bottom: -118px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(var(--support-accent), 0.22) 0%, rgba(var(--support-accent), 0.08) 34%, transparent 72%);
    opacity: 0.95;
}

#requirements .support-card::after {
    content: "0" counter(support-card);
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(var(--support-accent), 0.14);
    z-index: 0;
}

#requirements .support-card .service-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

#requirements .support-card .service-icon {
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: rgb(var(--support-accent));
    background: linear-gradient(145deg, rgba(var(--support-accent), 0.18) 0%, rgba(var(--support-accent), 0.06) 100%);
    border: 1px solid rgba(var(--support-accent), 0.18);
    box-shadow: 0 14px 28px rgba(var(--support-accent), 0.14);
    animation: none;
}

#requirements .support-card .service-card-highlight {
    max-width: 210px;
    margin-left: auto;
    padding: 12px 14px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--support-accent), 0.16);
}

#requirements .support-card .service-card-kicker {
    color: rgba(255, 224, 195, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#requirements .support-card .service-card-highlight strong {
    color: #fff3e3;
    font-family: var(--font-display);
    font-size: 0.96rem;
    line-height: 1.2;
    text-wrap: balance;
}

#requirements .support-card h3 {
    margin: 2px 0 0;
    max-width: 14ch;
    color: var(--text-primary);
    font-size: clamp(1.52rem, 2vw, 1.96rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

#requirements .support-card p {
    margin: 0;
    max-width: 30ch;
    color: rgba(227, 221, 214, 0.8);
    font-size: 1rem;
    line-height: 1.72;
}

#requirements .support-card .service-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

#requirements .support-card .service-card-footer span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--support-accent), 0.16);
    color: rgba(255, 231, 210, 0.86);
    font-size: 0.87rem;
    line-height: 1.1;
}

#requirements .support-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--support-accent), 0.72);
    box-shadow: 0 30px 58px rgba(var(--support-accent), 0.2), 0 0 0 1px rgba(var(--support-accent), 0.08);
    background: linear-gradient(160deg, rgba(28, 20, 15, 0.98) 0%, rgba(60, 35, 21, 0.95) 54%, rgba(18, 18, 26, 0.98) 100%);
}

#requirements .support-card:hover .service-icon {
    transform: translateY(-3px);
    color: #fff0de;
    background: linear-gradient(145deg, rgba(var(--support-accent), 0.26) 0%, rgba(var(--support-accent), 0.1) 100%);
    box-shadow: 0 18px 32px rgba(var(--support-accent), 0.2);
}

#requirements .support-card-finance {
    --support-accent: 255, 176, 102;
}

#requirements .support-card-location {
    --support-accent: 239, 138, 86;
}

#requirements .support-card-integral {
    --support-accent: 224, 106, 98;
}

#requirements .support-card-growth {
    --support-accent: 167, 160, 90;
}

#requirements .support-card-protocols {
    --support-accent: 205, 123, 74;
}

#requirements .support-card-leads {
    --support-accent: 225, 94, 73;
}

.theme-repaint {
    outline: 1px solid transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#franchise-process .process-step {
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.84) 0%, rgba(45, 28, 15, 0.72) 100%);
    border-color: rgba(255, 140, 66, 0.34);
}

#franchise-process .process-step:hover {
    border-color: rgba(255, 179, 102, 0.84);
    box-shadow: 0 24px 46px rgba(255, 140, 66, 0.24);
    background: linear-gradient(135deg, rgba(42, 26, 12, 0.96) 0%, rgba(78, 45, 16, 0.82) 100%);
}

#franchise-process .step-number {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    box-shadow: 0 12px 22px rgba(255, 140, 66, 0.26);
}

#franchise-includes .requirement-card,
#requirements .requirement-card,
.royalty-card,
.franchise-entry-card,
.dossier-card,
.franchise-overview-item,
.franchise-pillar-card,
.franchise-fit-panel,
.franchise-fit-aside,
.franchise-fit-checklist li {
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

#franchise-includes .requirement-card:hover,
#requirements .requirement-card:hover {
    border-color: rgba(255, 179, 102, 0.78);
    box-shadow: 0 22px 44px rgba(255, 140, 66, 0.24);
    background: linear-gradient(135deg, rgba(42, 26, 12, 0.96) 0%, rgba(78, 45, 16, 0.82) 100%);
}

.franchise-overview-item:hover,
.franchise-pillar-card:hover,
.franchise-fit-panel:hover,
.franchise-fit-aside:hover,
.franchise-fit-checklist li:hover,
.franchise-process-stage:hover {
    border-color: rgba(255, 179, 102, 0.78);
    box-shadow: 0 22px 44px rgba(255, 140, 66, 0.2);
}

.royalty-card:hover,
.franchise-entry-card:hover,
.dossier-card:hover {
    border-color: rgba(255, 179, 102, 0.82);
    box-shadow: 0 24px 48px rgba(255, 140, 66, 0.2);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.2) 0%, rgba(108, 184, 230, 0.1) 100%);
    border: 2px solid rgba(74, 144, 217, 0.3);
    border-left: 0px;
    border-right: 0px;
    border-radius: var(--radius-lg);
    padding: 80px 0;
    margin: 80px 0;
    position: relative;
    border-radius: 0px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(155deg, rgba(22, 26, 40, 0.98) 0%, rgba(39, 24, 14, 0.92) 58%, rgba(18, 18, 28, 0.98) 100%);
    border: 1px solid rgba(255, 140, 66, 0.32);
    border-radius: 4px;
    padding: 34px 30px 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.testimonial-card::after {
    content: '\201C';
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: rgba(255, 179, 102, 0.14);
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 179, 102, 0.76);
    box-shadow: 0 24px 48px rgba(255, 140, 66, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stars {
    color: #ffc107;
    font-size: 1.2em;
    margin-bottom: 0;
    letter-spacing: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 179, 102, 0.08);
    border: 1px solid rgba(255, 179, 102, 0.12);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 34ch;
}

.testimonial-author {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9em;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 179, 102, 0.12);
    width: 100%;
}

/* ============================================
   REAL ESTATE PARTNERS SECTION
   ============================================ */
.real-estate-section {
    border-left: 0px;
    border-right: 0px;
    border-radius: var(--radius-lg);
    padding: 80px 0;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    border-radius: 0px;
}

.real-estate-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.real-estate-section h2 {
    margin-bottom: 15px;
}

.real-estate-section .section-subtitle {
    margin-bottom: 40px;
    max-width: 600px;
}

.real-estate-content {
    width: 100%;
    max-width: 940px;
    margin-top: 0;
}

.real-estate-cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 26px;
    padding: 38px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        linear-gradient(145deg, rgba(21, 24, 36, 0.96) 0%, rgba(31, 19, 10, 0.92) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

.real-estate-cta-panel::before {
    content: '';
    position: absolute;
    inset: auto -70px -110px auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.18) 0%, rgba(255, 166, 92, 0.03) 44%, transparent 72%);
    pointer-events: none;
}

.real-estate-cta-panel > * {
    position: relative;
    z-index: 1;
}

.real-estate-support-copy {
    max-width: 64ch;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
}

.real-estate-actions {
    justify-content: center;
    margin-top: 0;
}

.real-estate-actions .btn {
    min-width: min(100%, 320px);
}

.real-estate-content .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .real-estate-section {
        padding: 40px 0;
        margin: 40px 0;
    }

    .real-estate-cta-panel {
        padding: 28px 22px;
        border-radius: 4px;
    }

    .real-estate-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .real-estate-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ============================================
   PROJECTS GALLERY
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(155deg, rgba(22, 26, 40, 0.98) 0%, rgba(38, 24, 14, 0.92) 58%, rgba(18, 18, 28, 0.98) 100%);
    border: 1px solid rgba(255, 140, 66, 0.32);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    isolation: isolate;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: auto -56px -86px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.16) 0%, rgba(255, 166, 92, 0.04) 44%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 92px;
    height: 3px;
    border-radius: 999px;
    background: var(--metallic-gradient);
    z-index: 2;
}

.project-card:hover {
    border-color: rgba(255, 179, 102, 0.8);
    box-shadow: 0 28px 56px rgba(255, 140, 66, 0.26), 0 4px 14px rgba(0, 0, 0, 0.16);
}

.project-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.18), rgba(255, 188, 111, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(74, 144, 217, 0.3);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

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

.project-info {
    position: relative;
    z-index: 1;
    padding: 25px;
    display: grid;
    gap: 10px;
}

.project-info h3 {
    color: var(--text);
    margin-bottom: 0;
    font-size: 1.3rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.68;
}

.project-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 140, 66, 0.12);
    color: var(--primary-light);
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(255, 179, 102, 0.14);
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.02em;
}

.project-link::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

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

#project-detail-section {
    padding-top: 138px;
}

.project-detail-intro {
    width: min(100%, 760px);
    margin: 0 auto 28px;
}

.project-detail-intro .section-title,
.project-detail-intro .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.project-detail-intro .section-subtitle {
    max-width: 60ch;
    margin-bottom: 0;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
}

.project-detail-panel,
.project-detail-meta {
    background: linear-gradient(150deg, rgba(25, 16, 9, 0.9) 0%, rgba(35, 24, 14, 0.78) 100%);
    border: 1px solid rgba(255, 140, 66, 0.45);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.project-detail-visual {
    position: relative;
    min-height: 230px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 140, 66, 0.35);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.16), rgba(255, 188, 111, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    overflow: hidden;
}

.project-detail-visual.is-zoomable {
    cursor: zoom-in;
}

.project-detail-visual.is-zoomable::after {
    content: 'Ver grande';
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 179, 102, 0.28);
    background: rgba(8, 10, 18, 0.62);
    color: rgba(255, 248, 240, 0.92);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.project-detail-visual img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.project-detail-visual.is-zoomable:hover img {
    transform: scale(1.02);
}

.project-detail-visual.is-zoomable:hover::after {
    transform: translateY(-2px);
}

.project-detail-visual i {
    font-size: 5rem;
    color: rgba(255, 179, 102, 0.9);
}

.project-detail-copy {
    color: var(--text-secondary);
    line-height: 1.75;
}

.project-detail-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.project-detail-meta h2 {
    font-size: 1.35rem;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.project-meta-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.project-meta-list li {
    border: 1px solid rgba(255, 140, 66, 0.28);
    background: rgba(9, 12, 24, 0.45);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-secondary);
}

.project-meta-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

/* CTA buttons below the project layout grid */
.project-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 140, 66, 0.2);
}

:root[data-theme="light"] .project-detail-cta {
    border-top-color: rgba(168, 94, 14, 0.18);
}

.project-related {
    margin-top: 24px;
}

.project-related h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.project-related-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.project-related-list a:hover {
    color: var(--primary-light);
}

@media (max-width: 920px) {
    #project-detail-section {
        padding-top: 118px;
    }

    .project-detail-intro {
        width: 100%;
        margin-bottom: 22px;
    }

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

/* ============================================
   PROCESS TIMELINE
   ============================================ */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.process-step {
    background: linear-gradient(135deg, rgba(20, 25, 45, 0.6) 0%, rgba(30, 50, 90, 0.4) 100%);
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(74, 144, 217, 0.2);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), rgba(108, 184, 230, 0.8));
    color: white;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.process-step h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.5;
}

#franchise-process .process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
}

#franchise-process .process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 28px;
    text-align: left;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.3);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.96) 0%, rgba(35, 22, 12, 0.9) 100%);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

#franchise-process .process-step::before {
    content: '';
    position: absolute;
    inset: auto -40px -70px auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.14) 0%, rgba(255, 166, 92, 0) 74%);
    pointer-events: none;
}

.process-step-meta {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.process-step-phase {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 140, 66, 0.2);
    background: rgba(255, 140, 66, 0.08);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.process-step-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2) 0%, rgba(255, 188, 111, 0.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 140, 66, 0.14);
    color: var(--primary-light);
    font-size: 1.2rem;
}

#franchise-process .step-number {
    width: 54px;
    height: 54px;
    margin-bottom: 0;
    border-radius: 3px;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

#franchise-process .process-step h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 1.6vw, 1.6rem);
    line-height: 1.16;
}

#franchise-process .process-step p {
    margin: 0;
    max-width: 38ch;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.72;
}

/* ============================================
   REQUIREMENTS GRID
   ============================================ */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.requirement-card {
    background: linear-gradient(135deg, rgba(30, 20, 10, 0.8) 0%, rgba(40, 25, 15, 0.7) 100%);
    border: 1px solid rgba(255, 140, 66, 0.5);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.requirement-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.3);
}

.requirement-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.requirement-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(155deg, rgba(22, 26, 40, 0.98) 0%, rgba(37, 24, 14, 0.9) 100%);
    border: 1px solid rgba(255, 140, 66, 0.24);
    border-radius: 4px;
    padding: 30px 28px 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 100%;
}

.faq-item::before {
    content: '?';
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 179, 102, 0.14);
    pointer-events: none;
}

.faq-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 78px;
    height: 3px;
    border-radius: 999px;
    background: var(--metallic-gradient);
}

.faq-item > * {
    position: relative;
    z-index: 1;
}

.faq-item:hover {
    border-color: rgba(255, 179, 102, 0.74);
    box-shadow: 0 24px 48px rgba(255, 140, 66, 0.18);
    transform: translateY(-8px);
}

.faq-item h4 {
    color: var(--primary-light);
    margin-bottom: 0;
    font-size: 1.16rem;
    line-height: 1.26;
    max-width: 20ch;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.72;
    margin-top: auto;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Smooth transitions globally */
* {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Additional hover effects for links */
a {
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

/* Improved form inputs */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2);
}
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

    .feedback-container {
        grid-template-columns: 1fr;
    }

    .franchise-overview-strip,
    .franchise-fit-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .franchise-pillars-grid,
    .franchise-fit-layout {
        grid-template-columns: 1fr;
    }

    .franchise-process-overview,
    #franchise-process .process-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        border-bottom: 1px solid rgba(74, 144, 217, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 15px 20px;
        border-radius: var(--radius-md);
    }

    .nav-link:hover {
        background: rgba(74, 144, 217, 0.1);
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Hero */
    .hero-logo {
        max-width: 280px;
    }

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

    .hero-stats {
        gap: 30px;
    }

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

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
    }

    /* Games Grid */
    .games-grid {
        grid-template-columns: 1fr;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .social-icons {
        justify-content: center;
    }

    /* Feedback Form */
    .feedback-info,
    .feedback-form {
        padding: 25px;
    }

    .franchise-overview-strip,
    .franchise-fit-checklist {
        grid-template-columns: 1fr;
    }

    .franchise-overview-item {
        padding: 16px 18px;
    }

    .franchise-pillar-card,
    .franchise-fit-panel,
    .franchise-fit-aside {
        padding: 24px;
        border-radius: 4px;
    }

    .franchise-pillar-card h3,
    .franchise-fit-panel h3,
    .franchise-fit-aside h3 {
        font-size: 1.4rem;
    }

    .franchise-fit-layout {
        margin-top: 34px;
    }

    .franchise-support-lead {
        margin-top: 24px;
    }

    .franchise-process-stage,
    #franchise-process .process-step {
        padding: 24px;
    }

    #franchise-benefits .service-card {
        padding: 28px 24px 24px;
        gap: 16px;
        border-radius: 4px;
    }

    #franchise-benefits .service-icon {
        width: 68px;
        height: 68px;
        border-radius: 3px;
        font-size: 1.7rem;
    }

    #franchise-benefits .service-card h3 {
        font-size: 1.52rem;
    }

    #franchise-benefits .service-card::after {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    #requirements .franchise-support-grid {
        gap: 24px;
    }

    #requirements .support-card {
        min-height: auto;
        padding: 24px;
        border-radius: 4px;
    }

    #requirements .support-card .service-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    #requirements .support-card .service-icon {
        width: 64px;
        height: 64px;
        border-radius: 3px;
        font-size: 1.5rem;
    }

    #requirements .support-card .service-card-highlight {
        max-width: none;
        width: 100%;
        margin-left: 0;
        align-items: flex-start;
        text-align: left;
    }

    #requirements .support-card h3 {
        max-width: none;
        font-size: 1.46rem;
    }

    #requirements .support-card::after {
        top: 18px;
        right: 20px;
        font-size: 2.9rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    /* Mobile fix for achievement numbers getting cut off */
    .achievement-number {
        font-size: 1.8rem;
        white-space: nowrap;
        overflow: visible;
        min-width: 0;
    }

    .achievement-card {
        padding: 15px 10px;
        min-width: 0;
        overflow: visible;
    }

    .achievement-label {
        font-size: 0.8rem;
    }

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

    .franchise-overview-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .franchise-fit-tags span {
        width: 100%;
        text-align: center;
    }

    .process-step-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    #requirements .support-card {
        padding: 22px 20px 20px;
    }

    #requirements .support-card .service-card-highlight {
        padding: 10px 12px;
        border-radius: 4px;
    }

    #requirements .support-card .service-card-highlight strong {
        font-size: 0.9rem;
    }

    #requirements .support-card p {
        max-width: none;
        font-size: 0.98rem;
    }

    #requirements .support-card .service-card-footer {
        gap: 8px;
    }

    #requirements .support-card .service-card-footer span {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 0.82rem;
    }
}

/* Extra small screens (very small phones) */
@media (max-width: 360px) {
    .achievement-number {
        font-size: 1.5rem;
    }

    .achievement-label {
        font-size: 0.75rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animations */
.game-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3) {
    animation-delay: 0.3s;
}

.game-card:nth-child(4) {
    animation-delay: 0.4s;
}

.game-card:nth-child(5) {
    animation-delay: 0.5s;
}

.game-card:nth-child(6) {
    animation-delay: 0.6s;
}

.achievement-card:nth-child(1) {
    animation-delay: 0.1s;
}

.achievement-card:nth-child(2) {
    animation-delay: 0.2s;
}

.achievement-card:nth-child(3) {
    animation-delay: 0.3s;
}

.achievement-card:nth-child(4) {
    animation-delay: 0.4s;
}

.team-card:nth-child(1) {
    animation-delay: 0.1s;
}

.team-card:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card:nth-child(3) {
    animation-delay: 0.3s;
}

.team-card:nth-child(4) {
    animation-delay: 0.4s;
}

.team-card:nth-child(5) {
    animation-delay: 0.5s;
}

.team-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Discord Join Button */
.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #f2b458, #c87d32);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 94, 14, 0.3);
}

.discord-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 136, 74, 0.5);
    background: linear-gradient(135deg, #f5b868, #ea841d);
}

.discord-card .achievement-icon .discord-svg {
    width: 40px;
    height: 40px;
}

/* Milestone completed styling */
.milestone-item.completed .milestone-dot {
    background: var(--success, #22c55e);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* SVG Social Icons in Footer */
.social-icon-link {
    text-decoration: none;
}

.social-svg {
    width: 20px;
    height: 20px;
    color: #d99d4a;
    transition: all 0.3s ease;
}

.social-icon-link:hover .social-svg {
    color: #e0c76b;
    transform: scale(1.1);
}

/* X Icon in Contact Section */
.x-svg.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .animate-hidden,
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .project-card:hover,
    .process-step:hover,
    .requirement-card:hover,
    .franchise-overview-item:hover,
    .franchise-pillar-card:hover,
    .franchise-fit-panel:hover,
    .franchise-fit-aside:hover,
    .franchise-fit-checklist li:hover,
    .franchise-process-stage:hover,
    .faq-item:hover,
    .video-wrapper:hover video,
    .video-wrapper:focus-within video {
        transform: none !important;
        box-shadow: inherit !important;
    }
}

/* ============================================
   INLINE STYLES MIGRATED FROM HTML
   ============================================ */
.hero-buttons-inline {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-location-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-location-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.full-width {
    width: 100%;
}

.m-0 {
    margin: 0;
}

.map-iframe {
    border: 0;
    border-radius: 10px;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

.empresa-intro {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.responsibility-bg {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.15) 0%, rgba(108, 184, 230, 0.08) 100%);
}

.grid-280 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.center-max-800 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.company-green-visual {
    margin: 24px 0 0;
    min-height: 220px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.26);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.9), rgba(32, 20, 11, 0.82));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.company-green-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.join-tribu-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: center;
}

.join-tribu-media {
    min-height: 360px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.28);
    background: linear-gradient(145deg, rgba(18, 22, 35, 0.9), rgba(32, 20, 11, 0.82));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.join-tribu-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.join-tribu-copy {
    text-align: left;
}

.join-tribu-copy .section-title,
.join-tribu-copy .join-subtitle,
.join-tribu-copy .join-highlight,
.join-tribu-copy .join-text {
    text-align: left;
    justify-content: flex-start;
}

.join-subtitle {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: var(--text-primary);
}

.join-highlight {
    font-size: 1.3rem;
    margin: 30px 0 20px;
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.team-intro {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto 50px;
}

.team-grid-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card-shell {
    text-align: center;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(155deg, rgba(22, 26, 40, 0.98) 0%, rgba(38, 24, 14, 0.92) 58%, rgba(18, 18, 28, 0.98) 100%);
    border: 1px solid rgba(255, 140, 66, 0.32);
    border-radius: 4px;
    padding: 26px 24px 22px;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.team-card-shell::before {
    content: '';
    position: absolute;
    inset: auto -48px -76px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.18) 0%, rgba(255, 166, 92, 0.04) 44%, transparent 72%);
    pointer-events: none;
}

.team-card-shell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 84px;
    height: 3px;
    border-radius: 999px;
    background: var(--metallic-gradient);
}

.team-card-shell > * {
    position: relative;
    z-index: 1;
}

.team-card-image {
    width: 100%;
    height: 236px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 6px;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.team-card-name {
    color: var(--primary-light);
    margin-bottom: 0;
    font-size: 1.08rem;
    line-height: 1.2;
    text-align: left;
}

.team-card-role {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 0.92rem;
    text-align: left;
}

.team-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: left;
}

.team-card-shell:hover,
.service-catalog-card:hover,
.company-manifesto-card:hover,
.company-green-point:hover {
    border-color: rgba(255, 179, 102, 0.76);
    box-shadow: 0 24px 48px rgba(255, 140, 66, 0.22);
}

.team-card-shell:hover .team-card-image {
    transform: scale(1.03);
    filter: saturate(1.04);
}

.policy-wrap {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.policy-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.policy-h2 {
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.policy-h3 {
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.policy-list-clean {
    list-style: none;
    padding-left: 0;
}

.policy-link-accent {
    color: var(--primary);
}

.ml-20 {
    margin-left: 20px;
}

.mt-15 {
    margin-top: 15px;
}

/* ============================================
   THEME TOGGLE + LIGHT THEME
   ============================================ */
/* Nav-embedded theme toggle (compact icon button) */
.nav-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 4px;
    opacity: 0.7;
}

.nav-theme-toggle:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: rotate(20deg);
    background: rgba(255, 140, 66, 0.08);
}

/* Light mode overrides for the nav toggle */
:root[data-theme="light"] .nav-theme-toggle {
    color: #b45309;
}

:root[data-theme="light"] .nav-theme-toggle:hover {
    background: rgba(168, 94, 14, 0.1);
    color: #7c3d0a;
}

/* Keep old class for any backward compatibility */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 140, 66, 0.38);
    background: rgba(255, 140, 66, 0.10);
    color: var(--primary-light);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 140, 66, 0.22);
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(255, 140, 66, 0.32);
    transform: scale(1.1) rotate(12deg);
}

:root[data-theme="light"] {
    --bg-dark: #f3ece2;
    --bg-darker: #e7ddcf;
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-card-hover: rgba(168, 94, 14, 0.14);
    --bg-gradient: linear-gradient(135deg, #f7f1e8 0%, #ebdfcf 52%, #f8f3eb 100%);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-light: #475569;
    --glass-bg: rgba(255, 250, 244, 0.92);
    --glass-border: 1px solid rgba(168, 94, 14, 0.28);
    --light-border-soft: rgba(168, 94, 14, 0.16);
    --light-border: rgba(168, 94, 14, 0.28);
    --light-border-strong: rgba(168, 94, 14, 0.42);
    /* Primary colours shifted to darker amber for legibility on cream bg */
    --primary: #a85c16;
    --primary-light: #b66a1f;
    --primary-dark: #7c3a0a;
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at 12% 12%, rgba(214, 124, 34, 0.14) 0%, transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(168, 94, 14, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72) 0%, transparent 38%),
        linear-gradient(180deg, #fbf6ef 0%, #f2e7d8 52%, #f8f1e7 100%);
    color: var(--text-primary);
}

:root[data-theme="light"] .navbar,
:root[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 250, 244, 0.96);
    border-bottom: 1px solid var(--light-border-strong);
    box-shadow: 0 10px 28px rgba(44, 33, 21, 0.12);
}

:root[data-theme="light"] .nav-link {
    color: #4a5568;
}

:root[data-theme="light"] .nav-link:hover,
:root[data-theme="light"] .nav-link.active {
    color: #111827;
    background: rgba(168, 94, 14, 0.06);
}

:root[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(255, 252, 247, 0.98) 0%, rgba(244, 234, 220, 0.98) 52%, rgba(251, 246, 239, 0.96) 100%);
    border-bottom: 2px solid var(--light-border-strong);
    box-shadow: inset 0 -1px 0 rgba(168, 94, 14, 0.08);
}

:root[data-theme="light"] .hero.hero-media::before {
    background:
        linear-gradient(120deg, rgba(20, 12, 5, 0.74) 0%, rgba(38, 22, 8, 0.64) 42%, rgba(18, 10, 5, 0.76) 100%);
}

/* Light mode hero-media — force white text over the dark overlay */
:root[data-theme="light"] .hero.hero-media .section-title {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.97);
    color: #fff;
    filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.6));
}

/* hero-home-title is a section-title: restore its warm gradient in light mode too */
:root[data-theme="light"] .hero.hero-media .hero-home-title {
    background: linear-gradient(145deg, #FFD4A0 0%, #FFB366 30%, #FF8C42 60%, #FFD4A0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 22px rgba(0, 0, 0, 0.65));
}

:root[data-theme="light"] .hero.hero-media .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.46);
}

:root[data-theme="light"] .hero.hero-media::after {
    background: radial-gradient(circle, rgba(255, 201, 145, 0.3) 0%, rgba(255, 201, 145, 0.08) 44%, transparent 72%);
}

:root[data-theme="light"] .achievements-section,
:root[data-theme="light"] .services-catalog,
:root[data-theme="light"] .real-estate-section {
    background: linear-gradient(135deg, rgba(214, 124, 34, 0.14) 0%, rgba(168, 94, 14, 0.07) 100%);
    border-color: var(--light-border);
}

:root[data-theme="light"] .feedback-section {
    background: var(--bg-gradient);
}

:root[data-theme="light"] .services-showcase,
:root[data-theme="light"] .service-faqs,
:root[data-theme="light"] .company-manifesto,
:root[data-theme="light"] .company-green-section,
:root[data-theme="light"] .franchise-contact-strip,
:root[data-theme="light"] .policy-wrap,
:root[data-theme="light"] .responsibility-bg {
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.74) 0%, rgba(246, 236, 223, 0.84) 100%);
    border-top: 1px solid rgba(168, 94, 14, 0.08);
    border-bottom: 1px solid rgba(168, 94, 14, 0.08);
}

:root[data-theme="light"] .info-feature-media,
:root[data-theme="light"] .company-green-visual,
:root[data-theme="light"] .join-tribu-media,
:root[data-theme="light"] .real-estate-cta-panel {
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(247, 239, 228, 0.95));
    border-color: rgba(214, 124, 34, 0.22);
    box-shadow: 0 20px 40px rgba(74, 45, 16, 0.12);
}

:root[data-theme="light"] .info-feature-media::after {
    background: linear-gradient(180deg, rgba(255, 245, 232, 0.02) 0%, rgba(91, 52, 17, 0.18) 100%);
}

:root[data-theme="light"] .testimonials-section {
    background: linear-gradient(135deg, rgba(255, 244, 231, 0.92) 0%, rgba(245, 232, 214, 0.82) 100%);
    border-color: rgba(168, 94, 14, 0.18);
}

:root[data-theme="light"] .contact-item,
:root[data-theme="light"] .feedback-info,
:root[data-theme="light"] .feedback-form,
:root[data-theme="light"] .achievement-card,
:root[data-theme="light"] .service-card,
:root[data-theme="light"] .testimonial-card,
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .process-step,
:root[data-theme="light"] .requirement-card,
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .stat-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 240, 229, 0.97) 60%, rgba(244, 232, 216, 0.95) 100%);
    border-color: var(--light-border-strong);
    box-shadow: 0 16px 36px rgba(36, 25, 14, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .stat-item {
    border-color: var(--light-border);
    box-shadow: 0 10px 26px rgba(36, 25, 14, 0.08);
}

:root[data-theme="light"] .service-card::before {
    background: radial-gradient(circle, rgba(214, 124, 34, 0.12) 0%, rgba(214, 124, 34, 0.04) 40%, transparent 72%);
}

:root[data-theme="light"] .project-card::after,
:root[data-theme="light"] .achievement-card::after,
:root[data-theme="light"] .team-card-shell::after,
:root[data-theme="light"] .service-catalog-card::after,
:root[data-theme="light"] .company-manifesto-card::after,
:root[data-theme="light"] .company-green-point::after {
    background: linear-gradient(145deg, rgba(214, 124, 34, 0.12) 0%, rgba(214, 124, 34, 0.04) 100%);
    border-color: rgba(214, 124, 34, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

:root[data-theme="light"] .service-card::after {
    border-top-color: rgba(180, 100, 14, 0.38);
    border-right-color: rgba(180, 100, 14, 0.38);
}

:root[data-theme="light"] .testimonial-card::before {
    background: linear-gradient(90deg, rgba(214, 124, 34, 0.96), rgba(255, 179, 102, 0.88), rgba(168, 94, 14, 0.92));
}

:root[data-theme="light"] .service-icon {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.24)),
        linear-gradient(145deg, rgba(214, 124, 34, 0.14) 0%, rgba(214, 124, 34, 0.05) 100%);
    border-color: rgba(214, 124, 34, 0.16);
    color: #b45309;
    box-shadow: 0 16px 28px rgba(74, 45, 16, 0.08);
}

:root[data-theme="light"] .stars {
    background: rgba(214, 124, 34, 0.08);
    border-color: rgba(214, 124, 34, 0.12);
}

:root[data-theme="light"] .testimonial-author {
    border-top-color: rgba(168, 94, 14, 0.14);
}

:root[data-theme="light"] .project-category,
:root[data-theme="light"] .service-tagline {
    background: rgba(214, 124, 34, 0.1);
    border-color: rgba(214, 124, 34, 0.14);
    color: #a85c16;
}

:root[data-theme="light"] #feedback-form.contact-form-pro {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 245, 236, 0.94) 100%);
    border: 1px solid var(--light-border-strong);
    box-shadow: 0 16px 40px rgba(37, 26, 13, 0.12);
}

:root[data-theme="light"] .form-group input:not([type="checkbox"]),
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea {
    background: #ffffff;
    color: #1f2933;
    border: 1px solid var(--light-border);
}

:root[data-theme="light"] #feedback-form.contact-form-pro label {
    color: #334155;
}

:root[data-theme="light"] #feedback-form.contact-form-pro input:not([type="checkbox"]),
:root[data-theme="light"] #feedback-form.contact-form-pro select,
:root[data-theme="light"] #feedback-form.contact-form-pro textarea {
    background: #ffffff !important;
    color: #1f2933 !important;
    border: 1px solid var(--light-border-strong) !important;
}

:root[data-theme="light"] .form-group input:not([type="checkbox"])::placeholder,
:root[data-theme="light"] .form-group textarea::placeholder {
    color: #748396;
}

:root[data-theme="light"] #feedback-form.contact-form-pro input:not([type="checkbox"])::placeholder,
:root[data-theme="light"] #feedback-form.contact-form-pro textarea::placeholder {
    color: #8a97a9 !important;
}

:root[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #1f2933;
}

:root[data-theme="light"] .career-fields {
    background: rgba(214, 124, 34, 0.08);
    border-color: var(--light-border-strong);
}

:root[data-theme="light"] .section-subtitle,
:root[data-theme="light"] .service-card p,
:root[data-theme="light"] .requirement-card p,
:root[data-theme="light"] .faq-item p,
:root[data-theme="light"] .contact-item span,
:root[data-theme="light"] .contact-item a,
:root[data-theme="light"] .footer-brand p,
:root[data-theme="light"] .footer-links a,
:root[data-theme="light"] .footer-bottom p {
    color: #334155;
}

:root[data-theme="light"] .service-card h3,
:root[data-theme="light"] .faq-item h4,
:root[data-theme="light"] .footer-links h4,
:root[data-theme="light"] .footer-social h4,
:root[data-theme="light"] .footer-brand h3 {
    color: #0f172a;
}

:root[data-theme="light"] .contact-item a {
    text-decoration-color: rgba(168, 94, 14, 0.38);
}

:root[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(168, 94, 14, 0.46);
    color: #8b4513;
}

:root[data-theme="light"] .btn-secondary:hover {
    background: rgba(255, 248, 240, 0.98);
    border-color: rgba(168, 94, 14, 0.62);
    color: #8b4513;
    box-shadow: 0 14px 28px rgba(168, 94, 14, 0.18);
}

:root[data-theme="light"] .service-card:hover,
:root[data-theme="light"] .achievement-card:hover,
:root[data-theme="light"] .testimonial-card:hover,
:root[data-theme="light"] .project-card:hover,
:root[data-theme="light"] .process-step:hover,
:root[data-theme="light"] .franchise-process-stage:hover,
:root[data-theme="light"] .requirement-card:hover,
:root[data-theme="light"] .faq-item:hover {
    background: linear-gradient(160deg, rgba(255, 255, 255, 1) 0%, rgba(247, 238, 226, 0.99) 62%, rgba(242, 227, 208, 0.98) 100%);
    border-color: rgba(214, 124, 34, 0.58);
    box-shadow: 0 22px 44px rgba(74, 45, 16, 0.22), 0 4px 12px rgba(74, 45, 16, 0.10);
}

:root[data-theme="light"] .stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 124, 34, 0.72);
    box-shadow: 0 18px 34px rgba(74, 45, 16, 0.16);
}

:root[data-theme="light"] .project-detail-panel,
:root[data-theme="light"] .project-detail-meta {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 245, 236, 0.94) 100%);
    border-color: var(--light-border-strong);
    box-shadow: 0 16px 36px rgba(52, 35, 16, 0.14);
}

:root[data-theme="light"] .project-detail-visual {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(247, 241, 230, 0.92));
    border-color: var(--light-border);
}

:root[data-theme="light"] .project-detail-visual.is-zoomable::after {
    background: rgba(255, 250, 244, 0.9);
    border-color: rgba(214, 124, 34, 0.22);
    color: #8a4e16;
}

:root[data-theme="light"] .project-detail-visual i {
    color: rgba(214, 124, 34, 0.78);
}

:root[data-theme="light"] .project-meta-list li {
    background: rgba(255, 255, 255, 0.84);
    border-color: var(--light-border);
    color: #475569;
}

:root[data-theme="light"] .project-detail-copy,
:root[data-theme="light"] .project-related-list a {
    color: #334155;
}

:root[data-theme="light"] .project-detail-note {
    color: #64748b;
}

:root[data-theme="light"] .project-lightbox-backdrop {
    background: rgba(232, 223, 212, 0.78);
}

:root[data-theme="light"] .project-lightbox-figure {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 243, 233, 0.96));
    border-color: rgba(214, 124, 34, 0.18);
    box-shadow: 0 28px 70px rgba(52, 35, 16, 0.22);
}

:root[data-theme="light"] .project-lightbox-figure img {
    background: rgba(241, 232, 220, 0.78);
}

:root[data-theme="light"] .project-lightbox-title {
    color: #1f2937;
}

:root[data-theme="light"] .project-lightbox-count {
    color: #64748b;
}

:root[data-theme="light"] .project-lightbox-close,
:root[data-theme="light"] .project-lightbox-nav {
    background: rgba(255, 250, 244, 0.92);
    border-color: rgba(214, 124, 34, 0.2);
    color: #1f2937;
    box-shadow: 0 18px 36px rgba(52, 35, 16, 0.16);
}

:root[data-theme="light"] .royalty-card,
:root[data-theme="light"] .franchise-entry-card,
:root[data-theme="light"] .dossier-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 243, 233, 0.94) 100%);
    border-color: var(--light-border-strong);
    box-shadow: 0 16px 36px rgba(52, 35, 16, 0.12);
}

:root[data-theme="light"] #franchise-benefits .service-card::before,
:root[data-theme="light"] #requirements .service-card::before {
    background: radial-gradient(circle, rgba(214, 124, 34, 0.1) 0%, transparent 72%);
}

:root[data-theme="light"] #franchise-benefits .service-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 242, 232, 0.95) 56%, rgba(246, 236, 222, 0.98) 100%);
    border-color: rgba(214, 124, 34, 0.28);
    box-shadow: 0 18px 34px rgba(74, 45, 16, 0.12);
}

:root[data-theme="light"] #franchise-benefits .service-card::after {
    color: #a85c16;
    background: rgba(214, 124, 34, 0.1);
    border-color: rgba(214, 124, 34, 0.14);
}

:root[data-theme="light"] #franchise-benefits .service-icon {
    color: #d67c22;
    background: linear-gradient(145deg, rgba(214, 124, 34, 0.14) 0%, rgba(214, 124, 34, 0.06) 100%);
    border-color: rgba(214, 124, 34, 0.14);
    box-shadow: 0 12px 24px rgba(74, 45, 16, 0.1);
}

:root[data-theme="light"] #franchise-benefits .service-card h3 {
    color: #0f172a;
}

:root[data-theme="light"] #franchise-benefits .service-card p {
    color: #475569;
}

:root[data-theme="light"] #franchise-process .process-step {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 245, 236, 0.94) 100%);
    border-color: var(--light-border);
}

:root[data-theme="light"] #franchise-benefits .service-card:hover,
:root[data-theme="light"] #requirements .service-card:hover,
:root[data-theme="light"] #franchise-process .process-step:hover,
:root[data-theme="light"] #franchise-includes .requirement-card:hover,
:root[data-theme="light"] #requirements .requirement-card:hover,
:root[data-theme="light"] .royalty-card:hover,
:root[data-theme="light"] .franchise-entry-card:hover,
:root[data-theme="light"] .dossier-card:hover {
    border-color: rgba(214, 124, 34, 0.76);
    box-shadow: 0 20px 38px rgba(74, 45, 16, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 238, 224, 0.97) 100%);
}

:root[data-theme="light"] .royalty-kicker,
:root[data-theme="light"] .royalty-copy,
:root[data-theme="light"] .franchise-entry-copy,
:root[data-theme="light"] .dossier-copy {
    color: #475569;
}

:root[data-theme="light"] .franchise-entry-label {
    color: #64748b;
}

:root[data-theme="light"] .franchise-overview-item,
:root[data-theme="light"] .franchise-pillar-card,
:root[data-theme="light"] .franchise-fit-panel,
:root[data-theme="light"] .franchise-fit-aside,
:root[data-theme="light"] .franchise-fit-checklist li,
:root[data-theme="light"] .franchise-fit-note,
:root[data-theme="light"] .franchise-process-stage,
:root[data-theme="light"] #franchise-process .process-step {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 243, 233, 0.95) 100%);
    border-color: var(--light-border);
    box-shadow: 0 16px 36px rgba(52, 35, 16, 0.12);
}

:root[data-theme="light"] .franchise-overview-copy strong,
:root[data-theme="light"] .franchise-pillar-card h3,
:root[data-theme="light"] .franchise-fit-panel h3,
:root[data-theme="light"] .franchise-fit-aside h3,
:root[data-theme="light"] .franchise-process-stage h3,
:root[data-theme="light"] .franchise-pillar-list strong,
:root[data-theme="light"] .franchise-fit-checklist strong,
:root[data-theme="light"] #franchise-process .process-step h3 {
    color: #0f172a;
}

:root[data-theme="light"] .franchise-overview-copy span,
:root[data-theme="light"] .franchise-pillar-list span,
:root[data-theme="light"] .franchise-fit-checklist span,
:root[data-theme="light"] .franchise-process-stage p:last-child,
:root[data-theme="light"] .franchise-fit-aside > p:not(.franchise-fit-eyebrow),
:root[data-theme="light"] .franchise-fit-note,
:root[data-theme="light"] .franchise-support-lead,
:root[data-theme="light"] #franchise-process .process-step p {
    color: #475569;
}

:root[data-theme="light"] .franchise-fit-icon {
    background: rgba(214, 124, 34, 0.12);
    box-shadow: inset 0 0 0 1px rgba(214, 124, 34, 0.16);
    color: rgba(168, 94, 14, 0.92);
}

:root[data-theme="light"] .franchise-fit-tags span {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--light-border);
    color: rgba(168, 94, 14, 0.92);
}

:root[data-theme="light"] .franchise-process-stage-range,
:root[data-theme="light"] .process-step-phase {
    background: rgba(214, 124, 34, 0.1);
    border-color: rgba(214, 124, 34, 0.2);
    color: rgba(168, 94, 14, 0.96);
}

:root[data-theme="light"] .process-step-icon {
    background: linear-gradient(135deg, rgba(214, 124, 34, 0.12) 0%, rgba(214, 124, 34, 0.04) 100%);
    box-shadow: inset 0 0 0 1px rgba(214, 124, 34, 0.14);
    color: rgba(168, 94, 14, 0.96);
}

:root[data-theme="light"] #requirements .support-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 243, 233, 0.97) 56%, rgba(245, 236, 221, 0.99) 100%);
    border-color: rgba(var(--support-accent), 0.24);
    box-shadow: 0 18px 34px rgba(74, 45, 16, 0.12);
}

:root[data-theme="light"] #requirements .support-card::before {
    background: radial-gradient(circle, rgba(var(--support-accent), 0.14) 0%, rgba(var(--support-accent), 0.04) 38%, transparent 72%);
}

:root[data-theme="light"] #requirements .support-card::after {
    color: rgba(var(--support-accent), 0.18);
}

:root[data-theme="light"] #requirements .support-card .service-icon {
    color: rgb(var(--support-accent));
    background: linear-gradient(145deg, rgba(var(--support-accent), 0.14) 0%, rgba(var(--support-accent), 0.05) 100%);
    border-color: rgba(var(--support-accent), 0.14);
    box-shadow: 0 12px 24px rgba(74, 45, 16, 0.08);
}

:root[data-theme="light"] #requirements .support-card .service-card-highlight {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(var(--support-accent), 0.12);
}

:root[data-theme="light"] #requirements .support-card .service-card-kicker {
    color: rgba(127, 77, 21, 0.72);
}

:root[data-theme="light"] #requirements .support-card .service-card-highlight strong {
    color: #7c4313;
}

:root[data-theme="light"] #requirements .support-card h3 {
    color: #0f172a;
}

:root[data-theme="light"] #requirements .support-card p {
    color: #475569;
}

:root[data-theme="light"] #requirements .support-card .service-card-footer span {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(var(--support-accent), 0.14);
    color: #7c4a16;
}

:root[data-theme="light"] #requirements .support-card:hover {
    border-color: rgba(var(--support-accent), 0.56);
    box-shadow: 0 24px 42px rgba(74, 45, 16, 0.18);
    background: linear-gradient(155deg, rgba(255, 255, 255, 1) 0%, rgba(247, 239, 227, 0.98) 100%);
}

:root[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 18px 32px rgba(214, 124, 34, 0.4);
}

:root[data-theme="light"] .team-card-shell,
:root[data-theme="light"] #team .container > div:last-of-type > div {
    background: linear-gradient(145deg, #ffffff, #f7f1e8) !important;
    border: 1px solid var(--light-border-strong) !important;
    box-shadow: 0 10px 24px rgba(53, 34, 14, 0.1);
}

:root[data-theme="light"] .team-card-shell:hover,
:root[data-theme="light"] #team .container > div:last-of-type > div:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(214, 124, 34, 0.62) !important;
    box-shadow: 0 20px 40px rgba(74, 45, 16, 0.2) !important;
}

:root[data-theme="light"] .footer {
    background: linear-gradient(to top, rgba(236, 227, 215, 0.98), rgba(248, 242, 235, 0.96));
    border-top: 1px solid var(--light-border-strong);
}

:root[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(168, 94, 14, 0.18);
}

:root[data-theme="light"] .social-icons a {
    background: rgba(168, 94, 14, 0.1);
    border: 1px solid rgba(168, 94, 14, 0.18);
}

:root[data-theme="light"] .social-svg {
    color: #a0521a;
}

:root[data-theme="light"] .theme-toggle-btn {
    background: rgba(255, 250, 244, 0.96);
    border-color: var(--light-border-strong);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(52, 35, 16, 0.1);
}

:root[data-theme="light"] .theme-toggle-btn i {
    color: #b45309;
}
@media (max-width: 768px) {
    :root[data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--light-border);
    }

    :root[data-theme="light"] .nav-link:hover {
        background: rgba(214, 124, 34, 0.1);
    }
}

/* ============================================
   CONTACT FRANCHISE DIRECTORY
   ============================================ */
.franchise-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 410px));
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin-top: 32px;
}

.franchise-directory-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 140, 66, 0.24);
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(145deg, rgba(23, 16, 10, 0.94), rgba(13, 17, 30, 0.94));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.franchise-directory-card::before {
    content: '';
    position: absolute;
    inset: auto -48px -82px auto;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.18) 0%, rgba(255, 166, 92, 0.04) 46%, transparent 72%);
    pointer-events: none;
}

.franchise-directory-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 84px;
    height: 3px;
    border-radius: 999px;
    background: var(--metallic-gradient);
}

.franchise-directory-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 179, 102, 0.62);
    box-shadow: 0 28px 58px rgba(255, 140, 66, 0.16);
}

.franchise-directory-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 100%;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.franchise-directory-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.franchise-directory-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    width: fit-content;
    max-width: min(100%, 24ch);
    padding: 12px 16px;
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
        linear-gradient(145deg, rgba(255, 140, 66, 0.2) 0%, rgba(255, 188, 111, 0.08) 100%);
    border: 1px solid rgba(255, 179, 102, 0.18);
    box-shadow: 0 16px 30px rgba(255, 140, 66, 0.12);
    color: var(--primary-light);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    overflow-wrap: anywhere;
}

.franchise-directory-state {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 179, 102, 0.16);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.franchise-directory-copy {
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.7;
    max-width: 33ch;
}

.franchise-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.franchise-directory-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1;
}

.franchise-directory-meta i {
    color: var(--primary-light);
}

.franchise-directory-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.franchise-directory-cta i {
    color: var(--primary-light);
    transition: transform var(--transition-fast);
}

.franchise-directory-card:hover .franchise-directory-cta i {
    transform: translateX(4px);
}

.franchise-directory-button:hover,
.franchise-directory-button:focus-visible {
    background: transparent;
}

.franchise-directory-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 10, 18, 0.76);
    backdrop-filter: blur(8px);
}

.franchise-directory-modal[hidden] {
    display: none !important;
}

.franchise-directory-modal-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 860px);
    max-height: calc(100vh - 48px);
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.26);
    background:
        radial-gradient(circle at 108% 112%, rgba(255, 166, 92, 0.18) 0%, rgba(255, 166, 92, 0.04) 18%, transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(145deg, rgba(20, 16, 12, 0.97), rgba(14, 18, 33, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.franchise-directory-modal-card::before {
    content: none;
}

.franchise-directory-modal-scroll {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    max-height: calc(100vh - 48px);
    padding: 28px 16px 28px 28px;
    margin-right: 8px;
    display: grid;
    gap: 20px;
}

.franchise-directory-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.franchise-directory-modal-hero {
    display: block;
    flex: 1;
}

.franchise-directory-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    align-self: start;
    width: fit-content;
    max-width: min(100%, 32ch);
    padding: 12px 18px;
    border-radius: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
        linear-gradient(145deg, rgba(255, 140, 66, 0.22) 0%, rgba(255, 188, 111, 0.08) 100%);
    border: 1px solid rgba(255, 179, 102, 0.18);
    box-shadow: 0 18px 32px rgba(255, 140, 66, 0.12);
    color: var(--primary-light);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    overflow-wrap: anywhere;
}

.franchise-directory-modal-heading {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.franchise-directory-modal-card h3 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.04;
}

.franchise-directory-modal-kicker {
    margin: 0;
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.franchise-directory-modal-copy {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.68;
    max-width: 52ch;
}

.franchise-directory-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 179, 102, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-radius: 999px;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.franchise-directory-close:hover {
    border-color: rgba(255, 179, 102, 0.38);
    background: rgba(255, 140, 66, 0.08);
    transform: translateY(-1px);
}

.franchise-directory-modal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.franchise-directory-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.18);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.franchise-directory-detail-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 3px;
    background: rgba(255, 140, 66, 0.12);
    color: var(--primary-light);
    font-size: 1.1rem;
}

.franchise-directory-detail-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.franchise-directory-detail-label {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.franchise-directory-detail-value {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.franchise-directory-detail-value:hover {
    color: var(--primary-light);
}

.franchise-directory-detail-value[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.7;
}

.franchise-directory-map-section {
    display: grid;
    gap: 12px;
}

.franchise-directory-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.franchise-directory-map-kicker {
    margin: 0 0 6px;
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.franchise-directory-map-copy {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.68;
    max-width: 48ch;
}

.franchise-directory-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.franchise-directory-inline-link:hover {
    color: var(--primary-light);
}

.franchise-directory-map-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 179, 102, 0.14);
    background: rgba(255, 255, 255, 0.04);
    min-height: clamp(220px, 30vh, 280px);
}

.franchise-directory-map {
    width: 100%;
    height: clamp(220px, 30vh, 280px);
    border: 0;
    display: block;
}

.franchise-directory-map-fallback {
    margin: 0;
    padding: 22px;
    color: var(--text-light);
    line-height: 1.7;
}

.franchise-directory-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

:root[data-theme="light"] .franchise-directory-card,
:root[data-theme="light"] .franchise-directory-modal-card {
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(247, 239, 229, 0.96));
    border-color: rgba(217, 126, 44, 0.28);
}

:root[data-theme="light"] .franchise-directory-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 239, 226, 0.97));
    border-color: rgba(214, 124, 34, 0.58);
    box-shadow: 0 26px 52px rgba(74, 45, 16, 0.18);
}

:root[data-theme="light"] .franchise-directory-card::after {
    background: linear-gradient(90deg, rgba(214, 124, 34, 0.92), rgba(232, 167, 84, 0.78));
}

:root[data-theme="light"] .franchise-directory-badge {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        linear-gradient(145deg, rgba(214, 124, 34, 0.14) 0%, rgba(255, 216, 170, 0.34) 100%);
    border-color: rgba(214, 124, 34, 0.2);
    color: #b45309;
    box-shadow: 0 16px 28px rgba(168, 92, 22, 0.12);
}

:root[data-theme="light"] .franchise-directory-state {
    background: rgba(214, 124, 34, 0.1);
    border-color: rgba(214, 124, 34, 0.16);
    color: #a85c16;
}

:root[data-theme="light"] .franchise-directory-copy,
:root[data-theme="light"] .franchise-directory-map-fallback,
:root[data-theme="light"] .franchise-directory-meta span {
    color: #5f5d66;
}

:root[data-theme="light"] .franchise-directory-cta {
    color: #0f172a;
}

:root[data-theme="light"] .franchise-directory-meta span {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(214, 124, 34, 0.12);
}

:root[data-theme="light"] .franchise-directory-meta i,
:root[data-theme="light"] .franchise-directory-cta i {
    color: #b45309;
}

:root[data-theme="light"] .franchise-directory-modal {
    background: rgba(61, 46, 31, 0.18);
}

:root[data-theme="light"] html,
:root[data-theme="light"] body,
:root[data-theme="light"] .franchise-directory-modal-scroll,
:root[data-theme="light"] .cookie-modal-card {
    scrollbar-color: rgba(214, 124, 34, 0.58) rgba(238, 229, 216, 0.96);
}

:root[data-theme="light"] html::-webkit-scrollbar-track,
:root[data-theme="light"] body::-webkit-scrollbar-track,
:root[data-theme="light"] .franchise-directory-modal-scroll::-webkit-scrollbar-track,
:root[data-theme="light"] .cookie-modal-card::-webkit-scrollbar-track {
    background: rgba(238, 229, 216, 0.96);
}

:root[data-theme="light"] html::-webkit-scrollbar-thumb,
:root[data-theme="light"] body::-webkit-scrollbar-thumb,
:root[data-theme="light"] .franchise-directory-modal-scroll::-webkit-scrollbar-thumb,
:root[data-theme="light"] .cookie-modal-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(232, 167, 84, 0.94), rgba(214, 124, 34, 0.92));
    border-color: rgba(245, 237, 226, 0.86);
}

:root[data-theme="light"] html::-webkit-scrollbar-thumb:hover,
:root[data-theme="light"] body::-webkit-scrollbar-thumb:hover,
:root[data-theme="light"] .franchise-directory-modal-scroll::-webkit-scrollbar-thumb:hover,
:root[data-theme="light"] .cookie-modal-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(242, 179, 99, 0.98), rgba(222, 132, 43, 0.96));
}

:root[data-theme="light"] .franchise-directory-modal-badge {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        linear-gradient(145deg, rgba(214, 124, 34, 0.14) 0%, rgba(255, 216, 170, 0.34) 100%);
    border-color: rgba(214, 124, 34, 0.2);
    color: #b45309;
    box-shadow: 0 16px 28px rgba(168, 92, 22, 0.12);
}

:root[data-theme="light"] .franchise-directory-modal-copy,
:root[data-theme="light"] .franchise-directory-map-copy,
:root[data-theme="light"] .franchise-directory-detail-label {
    color: rgba(17, 24, 39, 0.68);
}

:root[data-theme="light"] .franchise-directory-close {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(214, 124, 34, 0.16);
    color: #0f172a;
}

:root[data-theme="light"] .franchise-directory-close:hover {
    background: rgba(214, 124, 34, 0.08);
}

:root[data-theme="light"] .franchise-directory-detail {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(214, 124, 34, 0.14);
}

:root[data-theme="light"] .franchise-directory-detail-icon {
    background: rgba(214, 124, 34, 0.12);
    color: #b45309;
}

:root[data-theme="light"] .franchise-directory-detail-value,
:root[data-theme="light"] .franchise-directory-inline-link {
    color: #0f172a;
}

:root[data-theme="light"] .franchise-directory-detail-value:hover,
:root[data-theme="light"] .franchise-directory-inline-link:hover {
    color: #b45309;
}

:root[data-theme="light"] .franchise-directory-map-wrap {
    border-color: rgba(214, 124, 34, 0.14);
    background: rgba(255, 255, 255, 0.52);
}

/* ============================================
   LEGAL, COOKIES AND CONTENT PARITY
   ============================================ */
.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 12px 18px;
    margin-top: 0;
}

.footer-bottom-links a,
.footer-cookie-button {
    color: var(--text-secondary);
    font-size: 0.92rem;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover,
.footer-cookie-button:hover {
    color: var(--primary-light);
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.35);
    background: rgba(9, 12, 24, 0.94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-title {
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cookie-banner-copy p {
    color: var(--text-secondary);
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 6, 12, 0.74);
}

.cookie-modal[hidden] {
    display: none !important;
}

.cookie-modal-card {
    position: relative;
    width: min(680px, 100%);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.32);
    background: linear-gradient(145deg, rgba(15, 18, 30, 0.98), rgba(29, 16, 9, 0.95));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.cookie-modal-kicker {
    margin-bottom: 8px;
    color: var(--primary-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 700;
}

.cookie-modal-card h2 {
    margin-bottom: 10px;
}

.cookie-modal-copy {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.cookie-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    cursor: pointer;
}

.cookie-option-list {
    display: grid;
    gap: 14px;
}

.cookie-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 3px;
    border: 1px solid rgba(255, 140, 66, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.cookie-option strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cookie-option small {
    display: block;
    color: var(--text-secondary);
    line-height: 1.55;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.cookie-option.is-required {
    opacity: 0.86;
}

.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

body.cookie-modal-open {
    overflow: hidden;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-legal-copy {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-legal-copy a {
    color: var(--primary-light);
}

.franchise-directory-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.franchise-directory-actions .btn {
    min-height: 54px;
    font-size: 0.94rem;
}

.franchise-contact-strip {
    padding-top: 16px;
}

.franchise-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.franchise-contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.28);
    background: linear-gradient(145deg, rgba(25, 15, 8, 0.9), rgba(15, 18, 30, 0.86));
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
}

.franchise-contact-card::before {
    content: '';
    position: absolute;
    inset: auto auto -42px -38px;
    width: 148px;
    height: 148px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.2) 0%, rgba(255, 166, 92, 0.05) 44%, transparent 72%);
    pointer-events: none;
}

.franchise-contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 179, 102, 0.55);
    box-shadow: 0 22px 50px rgba(255, 140, 66, 0.12);
}

.franchise-contact-card strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.franchise-contact-card span {
    color: var(--text-secondary);
}

.franchise-contact-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.franchise-contact-value {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.franchise-contact-helper {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.franchise-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 4px;
    background: rgba(255, 140, 66, 0.12);
    color: var(--primary-light);
    font-size: 1.2rem;
}

.service-catalog-detail {
    background:
        radial-gradient(circle at top right, rgba(255, 140, 66, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(14, 14, 24, 0.94), rgba(8, 10, 18, 0.98));
}

.service-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.service-catalog-card {
    position: relative;
    overflow: hidden;
    padding: 30px 24px 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(145deg, rgba(27, 17, 9, 0.94), rgba(12, 16, 28, 0.9));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}

.service-catalog-card::before,
.company-manifesto-card::before,
.company-green-point::before {
    content: '';
    position: absolute;
    inset: auto -44px -70px auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 166, 92, 0.16) 0%, rgba(255, 166, 92, 0.04) 44%, transparent 72%);
    pointer-events: none;
}

.service-catalog-card::after,
.company-manifesto-card::after,
.company-green-point::after {
    content: '';
    position: absolute;
    top: 0;
    left: 22px;
    width: 76px;
    height: 3px;
    border-radius: 999px;
    background: var(--metallic-gradient);
}

.service-catalog-card > *,
.company-manifesto-card > *,
.company-green-point > * {
    position: relative;
    z-index: 1;
}

.service-catalog-card h3 {
    margin-bottom: 0;
    font-size: 1.18rem;
    color: var(--text-primary);
    line-height: 1.22;
    max-width: 20ch;
}

.service-catalog-card p {
    color: var(--text-secondary);
    line-height: 1.72;
    font-size: 0.98rem;
}

.service-faqs {
    padding-top: 30px;
}

.company-manifesto {
    padding-top: 20px;
}

.company-manifesto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.company-manifesto-card,
.company-green-point {
    position: relative;
    overflow: hidden;
    padding: 30px 24px 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%),
        linear-gradient(145deg, rgba(27, 17, 9, 0.92), rgba(14, 18, 30, 0.92));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}

.company-manifesto-card h3 {
    margin-bottom: 0;
    line-height: 1.22;
}

.company-manifesto-card p,
.company-green-point span {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}

.company-green-section {
    padding-top: 8px;
}

.company-green-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 22px;
    align-items: start;
}

.company-green-kicker {
    margin-bottom: 12px;
    color: var(--primary-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
}

.company-green-points {
    display: grid;
    gap: 16px;
}

.company-green-point strong {
    display: block;
    margin-bottom: 0;
    color: var(--text-primary);
    line-height: 1.24;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.project-gallery-thumb {
    padding: 0;
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-gallery-thumb img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    display: block;
}

.project-gallery-thumb:hover,
.project-gallery-thumb.is-active {
    transform: translateY(-2px);
    border-color: rgba(255, 179, 102, 0.55);
    box-shadow: 0 14px 28px rgba(255, 140, 66, 0.16);
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 24px;
}

.project-lightbox[hidden] {
    display: none !important;
}

.project-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.82);
    backdrop-filter: blur(12px);
}

.project-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
}

.project-lightbox-figure {
    margin: 0;
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 140, 66, 0.3);
    background: linear-gradient(145deg, rgba(15, 18, 30, 0.98), rgba(29, 16, 9, 0.95));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.project-lightbox-figure img {
    width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    display: block;
    border-radius: 4px;
    background: rgba(8, 10, 18, 0.48);
}

.project-lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.project-lightbox-kicker,
.project-lightbox-title,
.project-lightbox-count {
    margin: 0;
}

.project-lightbox-kicker {
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-lightbox-title {
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 700;
}

.project-lightbox-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.project-lightbox-close,
.project-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(255, 179, 102, 0.24);
    background: rgba(11, 14, 26, 0.74);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 179, 102, 0.58);
    background: rgba(18, 22, 35, 0.92);
}

.project-lightbox-close {
    top: 18px;
    right: 18px;
}

.project-lightbox-prev,
.project-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.project-lightbox-prev:hover,
.project-lightbox-next:hover {
    transform: translateY(calc(-50% - 2px));
}

.project-lightbox-prev {
    left: 18px;
}

.project-lightbox-next {
    right: 18px;
}

body.project-lightbox-open {
    overflow: hidden;
}

:root[data-theme="light"] .cookie-banner {
    background: rgba(255, 250, 245, 0.96);
    border-color: rgba(214, 124, 34, 0.2);
}

:root[data-theme="light"] .cookie-modal {
    background: rgba(248, 245, 239, 0.7);
}

:root[data-theme="light"] .cookie-modal-card,
:root[data-theme="light"] .cookie-option,
:root[data-theme="light"] .service-catalog-card,
:root[data-theme="light"] .company-manifesto-card,
:root[data-theme="light"] .company-green-point,
:root[data-theme="light"] .franchise-contact-card {
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.98), rgba(248, 240, 232, 0.95));
    border-color: rgba(214, 124, 34, 0.18);
}

:root[data-theme="light"] .service-catalog-detail {
    background:
        radial-gradient(circle at top right, rgba(214, 124, 34, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(249, 243, 235, 0.98), rgba(241, 232, 220, 0.96));
    border-top: 1px solid rgba(168, 94, 14, 0.08);
    border-bottom: 1px solid rgba(168, 94, 14, 0.08);
}

:root[data-theme="light"] .service-catalog-detail .section-subtitle {
    color: rgba(15, 23, 42, 0.74);
}

:root[data-theme="light"] .cookie-banner-copy p,
:root[data-theme="light"] .cookie-option small,
:root[data-theme="light"] .service-catalog-card p,
:root[data-theme="light"] .company-manifesto-card p,
:root[data-theme="light"] .company-green-point span,
:root[data-theme="light"] .franchise-contact-card span,
:root[data-theme="light"] .contact-legal-copy,
:root[data-theme="light"] .footer-bottom-links a,
:root[data-theme="light"] .footer-cookie-button {
    color: rgba(17, 24, 39, 0.72);
}

:root[data-theme="light"] .franchise-contact-icon {
    background: rgba(214, 124, 34, 0.12);
    color: #b45309;
}

:root[data-theme="light"] .real-estate-support-copy,
:root[data-theme="light"] .info-feature-section .section-subtitle,
:root[data-theme="light"] .join-text {
    color: rgba(17, 24, 39, 0.76);
}

/* ============================================
   INTERACTIVE SPAIN MAP
   ============================================ */
.spain-map-figure {
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.spain-map-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.espanya-map-svg {
    width: 100%;
    height: auto;
    flex: 1;
    display: block;
    cursor: default;
}

/* === SPAIN MAP ENTRANCE ANIMATION === */
.map-territory {
    opacity: 0;
    transition: opacity 1.2s ease 0.2s;
}

.espanya-map-svg.map-animated .map-territory {
    opacity: 1;
}

.map-pins {
    opacity: 0;
    transition: opacity 1s ease 1.5s;
}

.espanya-map-svg.map-animated .map-pins {
    opacity: 1;
}

/* Map stats bar */
.spain-map-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px 20px;
    background: rgba(13,13,21,0.88);
    border: 1px solid rgba(255,140,66,0.2);
    border-top: none;
    border-radius: 0 0 3px 3px;
}

.smap-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 24px;
}

.smap-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.smap-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.smap-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,140,66,0.2);
}

/* Light mode adaptation */
:root[data-theme="light"] .spain-map-stats {
    background: rgba(248,245,240,0.95);
    border-color: rgba(180,83,9,0.2);
}

/* ============================================
   HOUSE BUILD ANIMATION
   ============================================ */
.house-build-figure {
    overflow: visible !important;
    background: linear-gradient(145deg, rgba(8,14,28,0.96) 0%, rgba(4,10,22,0.98) 100%) !important;
    border-color: rgba(100,160,255,0.25) !important;
    box-shadow: 0 22px 46px rgba(0,0,0,0.3), inset 0 0 80px rgba(20,60,120,0.08) !important;
}

/* Remove the dark gradient overlay that covers the phase bar */
.house-build-figure::after {
    display: none;
}

.house-build-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.house-svg {
    width: 100%;
    height: auto;
    flex: 1;
    display: block;
}

/* All phases hidden initially */
.house-phase {
    opacity: 0;
}

/* SVG line draw-on animation */
@keyframes draw-line {
    from { stroke-dashoffset: var(--line-len, 400); }
    to   { stroke-dashoffset: 0; }
}
@keyframes fade-in-fill {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wall-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}
.roof-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}
.draw-rect {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}

/* When phase is active, trigger drawing */
.house-phase-1.phase-active {
    opacity: 1;
    animation: fade-in-fill 0.4s ease forwards;
}
.house-phase-1.phase-active .draw-rect {
    animation: draw-line 2.0s ease forwards;
}

.house-phase-2.phase-active {
    opacity: 1;
}
.house-phase-2.phase-active .wall-line {
    animation: draw-line 2.2s ease forwards;
}
.house-phase-2.phase-active .wall-line:nth-child(1) { animation-delay: 0.0s; }
.house-phase-2.phase-active .wall-line:nth-child(2) { animation-delay: 0.4s; }
.house-phase-2.phase-active .wall-line:nth-child(3) { animation-delay: 0.8s; }
.house-phase-2.phase-active .wall-line:nth-child(4) { animation-delay: 1.0s; }
.house-phase-2.phase-active .wall-line:nth-child(5) { animation-delay: 1.2s; }
.house-phase-2.phase-active .wall-window { animation: fade-in-fill 0.6s ease forwards 1.8s; }
.house-phase-2.phase-active .wall-door   { animation: fade-in-fill 0.6s ease forwards 2.0s; }

.house-phase-3.phase-active {
    opacity: 1;
}
.house-phase-3.phase-active .roof-line {
    animation: draw-line 2.0s ease forwards;
}
.house-phase-3.phase-active .roof-line:nth-child(1) { animation-delay: 0.0s; }
.house-phase-3.phase-active .roof-line:nth-child(2) { animation-delay: 0.35s; }
.house-phase-3.phase-active .roof-line:nth-child(3) { animation-delay: 0.65s; }
.house-phase-3.phase-active .roof-line:nth-child(4) { animation-delay: 0.9s; }
.house-phase-3.phase-active .roof-line:nth-child(5) { animation-delay: 1.0s; }
.house-phase-3.phase-active .roof-line:nth-child(6) { animation-delay: 1.15s; }
.house-phase-3.phase-active .roof-tile  { animation: fade-in-fill 0.7s ease forwards 1.5s; }

.house-phase-4.phase-active {
    animation: fade-in-fill 1.0s ease forwards;
    opacity: 0;
}

/* Fade out 2D plan — delayed so 3D lines appear first, overlap creates "same drawing" feel */
.house-svg.is-3d .bp-plan,
.house-svg.is-3d .house-phase-1,
.house-svg.is-3d .house-phase-2,
.house-svg.is-3d .house-phase-3,
.house-svg.is-3d .house-phase-4 {
    transition: opacity 2.4s ease 1.0s;
    opacity: 0 !important;
}

/* ---- Phase 5: 3D lines crystallize out of the plan ---- */
/*
   Strategy:
   - mix-blend-mode: screen → white bg of the lineas image disappears;
     only the black lines (inverted to white) glow over the plan.
   - The image starts blurred + shifted down slightly.
   - It sharpens and rises over ~2.6s while the plan is still visible.
   - Plan fades out 1s later → for ~1s both drawings overlap = feels like one evolving object.
*/
.house-phase-5 {
    mix-blend-mode: screen;
    transform: translateY(16px);
}
.house-phase-5 .terraza-img {
    filter: invert(1) blur(10px);
    transition: filter 2.6s cubic-bezier(0.4, 0, 0.1, 1) 0.5s;
}
.house-phase-5.phase-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.5s,
                transform 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}
.house-phase-5.phase-active .terraza-img {
    filter: invert(1) blur(0px);
}

/* Light mode: multiply makes white bg transparent, black lines opaque */
:root[data-theme="light"] .house-phase-5 { mix-blend-mode: multiply; }
:root[data-theme="light"] .house-phase-5 .terraza-img { filter: blur(10px); }
:root[data-theme="light"] .house-phase-5.phase-active .terraza-img { filter: blur(0px); }

/* ---- Phase 6: render — crossfade ---- */
.house-phase-6.phase-active {
    opacity: 0.95;
    transition: opacity 1.6s ease 0.2s;
}

/* Fade out lineas when Render activates */
.house-svg.is-render .bp-plan,
.house-svg.is-render .house-phase-1,
.house-svg.is-render .house-phase-2,
.house-svg.is-render .house-phase-3,
.house-svg.is-render .house-phase-4,
.house-svg.is-render .house-phase-5 {
    transition: opacity 1.4s ease;
    opacity: 0 !important;
}

/* ---- Phase 7: foto real — crossfade from render ---- */
.house-phase-7.phase-active {
    opacity: 0.95;
    transition: opacity 1.8s ease 0.2s;
}

/* Fade out render when Photo activates */
.house-svg.is-photo .bp-plan,
.house-svg.is-photo .house-phase-1,
.house-svg.is-photo .house-phase-2,
.house-svg.is-photo .house-phase-3,
.house-svg.is-photo .house-phase-4,
.house-svg.is-photo .house-phase-5,
.house-svg.is-photo .house-phase-6 {
    transition: opacity 1.4s ease;
    opacity: 0 !important;
}

/* ---- Phase captions (HTML overlay over SVG) ---- */
.phase-caption {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8,10,20,0.78);
    color: rgba(255,179,102,0.95);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 3px;
    border: 1px solid rgba(255,140,66,0.18);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}
.phase-caption.caption-visible { opacity: 1; }
.phase-caption[data-phase="5"].caption-visible { transition: opacity 0.8s ease 2.2s; }
.phase-caption[data-phase="6"].caption-visible { transition: opacity 0.8s ease 1.2s; }
.phase-caption[data-phase="7"].caption-visible { transition: opacity 0.8s ease 1.4s; }
:root[data-theme="light"] .phase-caption {
    background: rgba(240,230,215,0.9);
    color: rgba(120,60,10,0.9);
    border-color: rgba(168,94,14,0.25);
}

/* Light-mode grid visibility toggles */
.bp-light-grid { display: none; }

/* Progress bar */
.house-phases-bar {
    position: relative;
    height: 4px;
    background: rgba(100,160,255,0.1);
    border-top: 1px solid rgba(100,160,255,0.08);
    z-index: 2;
    overflow: hidden;
}

.house-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF8C42, #FFD4A0);
    transition: width 2.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.house-progress-fill::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #FFD4A0;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,140,66,0.8);
}

/* Light mode — blueprint on tracing paper */
:root[data-theme="light"] .house-build-figure {
    background: linear-gradient(145deg, #f6f1e8 0%, #ede4d2 100%) !important;
    border-color: rgba(180,100,20,0.32) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.1), inset 0 0 60px rgba(180,130,40,0.05) !important;
}
:root[data-theme="light"] .house-build-figure::after {
    display: none;
}
:root[data-theme="light"] .bp-dark-grid { display: none; }
:root[data-theme="light"] .bp-light-grid { display: block; }
:root[data-theme="light"] .house-phases-bar {
    background: rgba(180,100,20,0.1);
    border-top-color: rgba(180,100,20,0.15);
}
:root[data-theme="light"] .house-progress-fill {
    background: linear-gradient(90deg, #b86a10, #d48a30);
}
/* Blueprint dimension text & plan lines */
:root[data-theme="light"] .bp-plan text  { fill: rgba(20,60,160,0.5); }
:root[data-theme="light"] .bp-plan rect,
:root[data-theme="light"] .bp-plan line  { stroke: rgba(20,60,160,0.28); }
/* Phase label text inside SVG */
:root[data-theme="light"] .house-phase text {
    fill: rgba(140,70,0,0.7);
}

@media (max-width: 480px) {
    .smap-stat {
        padding: 6px 14px;
    }
}

:root[data-theme="light"] .info-feature-kicker,
:root[data-theme="light"] .company-green-kicker {
    color: #b66a1f;
}

:root[data-theme="light"] .service-catalog-card:hover,
:root[data-theme="light"] .company-manifesto-card:hover,
:root[data-theme="light"] .company-green-point:hover,
:root[data-theme="light"] .team-card-shell:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 237, 223, 0.97)) !important;
    border-color: rgba(214, 124, 34, 0.62) !important;
    box-shadow: 0 22px 42px rgba(74, 45, 16, 0.18) !important;
}

:root[data-theme="light"] .service-catalog-card h3,
:root[data-theme="light"] .company-manifesto-card h3,
:root[data-theme="light"] .company-green-point strong,
:root[data-theme="light"] .franchise-contact-card strong {
    color: #0f172a;
}

:root[data-theme="light"] .company-green-kicker,
:root[data-theme="light"] .royalty-return,
:root[data-theme="light"] .franchise-entry-amount,
:root[data-theme="light"] .dossier-file,
:root[data-theme="light"] .franchise-pillar-kicker,
:root[data-theme="light"] .franchise-fit-eyebrow {
    color: #a85c16;
}

@media (max-width: 920px) {
    .cookie-banner {
        grid-template-columns: 1fr;
    }

    .franchise-directory-modal-head,
    .franchise-directory-map-head {
        flex-direction: column;
    }

    .franchise-directory-modal-meta,
    .franchise-contact-grid,
    .company-manifesto-grid,
    .company-green-layout,
    .info-feature,
    .info-feature-reverse,
    .join-tribu-layout {
        grid-template-columns: 1fr;
    }

    .info-feature-media,
    .join-tribu-media {
        min-height: 300px;
    }

    .info-feature-section .section-title,
    .info-feature-section .section-subtitle,
    .join-tribu-copy,
    .join-tribu-copy .section-title,
    .join-tribu-copy .join-subtitle,
    .join-tribu-copy .join-highlight,
    .join-tribu-copy .join-text {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .project-lightbox {
        padding: 16px;
    }

    .project-lightbox-figure {
        padding: 18px;
        border-radius: 4px;
    }

    .project-lightbox-figure img {
        max-height: calc(100vh - 210px);
        border-radius: 3px;
    }

    .project-lightbox-caption {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-lightbox-close,
    .project-lightbox-nav {
        width: 46px;
        height: 46px;
    }

    .project-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .project-lightbox-prev {
        left: 12px;
    }

    .project-lightbox-next {
        right: 12px;
    }

    .franchise-directory-modal {
        padding: 16px;
    }

    .franchise-directory-modal-card {
        border-radius: 4px;
    }

    .franchise-directory-modal-scroll {
        padding: 22px 10px 22px 18px;
        margin-right: 6px;
    }

    .franchise-directory-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .franchise-directory-button {
        padding: 24px 20px 22px;
    }

    .franchise-directory-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .franchise-directory-modal-hero {
        display: block;
    }

    .franchise-directory-modal-badge {
        border-radius: 3px;
        padding: 11px 14px;
        max-width: 100%;
    }

    .franchise-directory-detail {
        padding: 16px;
    }

    .franchise-directory-actions {
        grid-template-columns: 1fr;
    }

    .franchise-directory-map-wrap,
    .franchise-directory-map {
        min-height: 220px;
        height: 220px;
    }

    .cookie-banner {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 18px;
    }

    .cookie-modal-card {
        padding: 24px 18px;
    }

    .cookie-modal-actions,
    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-modal-actions .btn,
    .cookie-banner-actions .btn {
        width: 100%;
    }

    .project-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.project-collection-section {
    padding-top: clamp(132px, 14vw, 176px);
}

.project-collection-header {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.project-collection-kicker {
    margin: 0;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-collection-section .projects-grid {
    margin-top: 42px;
}

.project-collection-cta {
    margin-top: 34px;
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.project-collection-cta p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.projects-grid-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 4px;
    border: 1px dashed rgba(255, 140, 66, 0.28);
    color: var(--text-muted);
    text-align: center;
    background: rgba(13, 18, 32, 0.42);
}

:root[data-theme="light"] .projects-grid-empty {
    background: rgba(255, 248, 241, 0.92);
    color: #6d6256;
    border-color: rgba(214, 124, 34, 0.22);
}

@media (max-width: 768px) {
    .project-collection-section {
        padding-top: 118px;
    }

    .project-collection-section .projects-grid {
        margin-top: 30px;
    }
}

/* ============================================
   ARCHITECTURE FIRM IMPROVEMENTS
   Enhanced readability, typography, visual quality
   ============================================ */

/* --- Typography: refined reading experience --- */
.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.82;
    letter-spacing: 0.01em;
}

.service-card p,
.requirement-card p,
.faq-item p,
.company-manifesto-card p,
.company-green-point span,
.testimonial-text {
    font-size: 1rem;
    line-height: 1.76;
}

/* --- Service cards: more architectural / minimal feel --- */
.service-card {
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

/* --- Light mode: ensure all paragraph text is legible (contrast ratio) --- */
:root[data-theme="light"] .empresa-intro p,
:root[data-theme="light"] .join-tribu-copy p,
:root[data-theme="light"] .join-text,
:root[data-theme="light"] .real-estate-support-copy,
:root[data-theme="light"] .team-intro p,
:root[data-theme="light"] .policy-content,
:root[data-theme="light"] .section-subtitle {
    color: #374151;
}

:root[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #a85c16 0%, #c97523 50%, #8b4513 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 6px rgba(168, 94, 14, 0.22));
}

:root[data-theme="light"] .section-title i {
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

:root[data-theme="light"] .footer {
    background: linear-gradient(180deg, #f5ede0 0%, #ede0ce 100%);
    border-top: 1px solid rgba(168, 94, 14, 0.18);
}

:root[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(168, 94, 14, 0.14);
    background: transparent;
}

:root[data-theme="light"] .footer-bottom p {
    color: #6b564a;
}

/* Dark mode: readable subtle backgrounds per section */
:root:not([data-theme="light"]) .section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.012);
}

/* --- Hero inner page: proper min-height (not full 100vh) --- */
.hero.empresa,
.hero.hero-media:not(#main-hero) {
    min-height: 52vh;
    padding: 120px 20px 80px;
}

/* --- Info feature media: better proportions --- */
.info-feature-media img {
    border-radius: var(--radius-md);
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* --- Stats grid: always center-align text for numbers --- */
.stat-number {
    text-align: center;
}

.stat-label {
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* --- Manifesto cards: add subtle left accent line --- */
.company-manifesto-card {
    border-left: 3px solid var(--primary);
    padding-left: 22px;
}

/* --- Team cards readability in light --- */
:root[data-theme="light"] .team-card-name {
    color: #0f172a;
}

:root[data-theme="light"] .team-card-role,
:root[data-theme="light"] .team-card-meta {
    color: #475569;
}

/* --- Join tribu heading colors in light --- */
:root[data-theme="light"] .join-tribu-copy .section-title {
    color: #7c3d0a;
}

:root[data-theme="light"] .join-subtitle,
:root[data-theme="light"] .join-highlight {
    color: #0f172a;
}

/* --- Testimonials: better card base --- */
.testimonial-author {
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

/* --- Navbar: additional items fit correctly at medium viewport --- */
@media (max-width: 1150px) {
    .nav-link {
        font-size: 0.78rem;
        padding: 8px 10px;
    }
    .nav-link-odoo {
        padding: 7px 12px !important;
    }
}

/* --- Mobile: stack CTA buttons --- */
@media (max-width: 600px) {
    .project-detail-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .project-detail-cta .btn {
        text-align: center;
        justify-content: center;
    }
}

/* --- Responsiveness for nav with more items --- */
@media (max-width: 900px) {
    .nav-theme-toggle {
        order: 99;
    }
}

/* ============================================
   DARK / LIGHT MODE CONTENT PARITY
   ============================================ */

/* Hero-media sections keep their photo background in both modes.
   The light-mode .hero rule uses background shorthand which resets
   background-size/position/repeat; this restores them for photo heroes. */
:root[data-theme="light"] .hero.hero-media {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Logo subtle shadow for readability on light navbar */
:root[data-theme="light"] .nav-logo img {
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

/* Light-mode mobile nav dropdown */
@media (max-width: 768px) {
    :root[data-theme="light"] .nav-menu {
        background: rgba(255, 250, 244, 0.99);
        border-bottom: 1px solid rgba(168, 94, 14, 0.18);
        box-shadow: 0 16px 32px rgba(44, 30, 12, 0.12);
    }

    :root[data-theme="light"] .nav-menu .nav-link {
        border-bottom: 1px solid rgba(168, 94, 14, 0.07);
    }
}

/* ============================================
   MOBILE UX OVERHAUL � comprehensive responsive
   ============================================ */

/* --- Tablet / large mobile: 768px --- */
@media (max-width: 768px) {

    /* Reduced section padding */
    :root {
        --section-padding: 56px 0;
    }

    /* Hero height on portrait phones */
    .hero {
        min-height: 80vh;
        min-height: 80svh;
    }

    .hero.hero-media {
        min-height: 68vh;
        min-height: 68svh;
        padding-top: 80px; /* room for fixed navbar */
    }

    /* Hero text sizing */
    .hero .section-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        line-height: 1.2;
    }

    .hero .section-subtitle {
        font-size: clamp(0.92rem, 3vw, 1.05rem);
    }

    /* Section title sizing */
    .section-title {
        font-size: clamp(1.55rem, 5.5vw, 2rem);
    }

    /* Container side padding */
    .container {
        padding: 0 18px;
    }

    /* Navbar: compact toggle + theme button row */
    .nav-container {
        gap: 8px;
    }

    .nav-theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.84rem;
        flex-shrink: 0;
    }

    /* Odoo "Acceder" full-width in mobile menu */
    .nav-link-odoo {
        display: flex !important;
        width: 100%;
        border-radius: var(--radius-md) !important;
        padding: 13px 20px !important;
        font-size: 0.9rem !important;
        justify-content: center;
        letter-spacing: 0.04em;
    }

    /* Services grid 1 column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Royalty cards stacked */
    .royalty-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Hero stats 2-column grid */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-item {
        padding: 14px 10px;
    }

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

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

    /* Service catalog grid 1 column */
    .service-catalog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Project detail layout stacked */
    .project-detail-layout {
        grid-template-columns: 1fr;
    }

    /* Form: info + form stacked */
    .feedback-container {
        gap: 32px;
    }

    /* FAQ grid 1 column */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Section actions centered */
    .section-actions {
        justify-content: center;
    }

    /* Hero buttons inline ? stacked if needed */
    .hero-buttons-inline {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Process timeline 1 column */
    .process-timeline {
        grid-template-columns: 1fr;
    }

    /* Dossier card compact */
    .dossier-card {
        padding: 28px 22px;
    }
}

/* --- Small phones: 480px --- */
@media (max-width: 480px) {

    :root {
        --section-padding: 44px 0;
    }

    .container {
        padding: 0 14px;
    }

    /* Hero full-screen with dynamic viewport unit */
    .hero {
        min-height: 100dvh;
    }

    .hero.hero-media {
        min-height: 62vh;
        min-height: 62svh;
    }

    /* Scale down all headings */
    h1, .hero .section-title,
    .section-title {
        font-size: clamp(1.3rem, 7vw, 1.75rem);
    }

    .section-subtitle {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    /* Buttons: full-width stacked */
    .hero-buttons,
    .hero-buttons-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .btn,
    .hero-buttons-inline .btn {
        width: 100%;
        max-width: none;
        text-align: center;
        justify-content: center;
    }

    /* Logo smaller on tiny screens */
    .nav-logo img {
        height: 30px;
        width: auto;
    }

    /* Theme toggle compact */
    .nav-theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }

    /* Hero stats 2-col compact */
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

    /* Team grid 1 col */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Project image height smaller */
    .project-image {
        height: 180px;
    }

    /* Franchise royalty cards */
    .royalty-card {
        padding: 22px 18px;
    }

    /* Section actions stacked */
    .section-actions .btn,
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        align-self: center;
    }

    /* Franchise entry card */
    .franchise-entry-card {
        padding: 28px 20px;
    }

    .franchise-entry-amount {
        font-size: 2.4rem;
    }

    /* Footer compact */
    .footer-content {
        gap: 32px;
    }

    /* Footer logo */
    .footer-logo {
        width: 160px;
    }

    /* Info-feature image not too tall on small phones */
    .info-feature-media {
        min-height: 220px;
    }

    /* Hero main title — prevent 2.6rem minimum from being too large */
    .hero-home-title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    /* Achievement cards slightly more breathing room */
    .achievement-card {
        padding: 18px 12px;
    }
}

/* --- Very small phones: 360px --- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .nav-logo img {
        height: 26px;
    }

    .footer-logo {
        width: 140px;
    }

    .info-feature-media {
        min-height: 200px;
    }

    .hero-home-title {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    .achievement-card {
        padding: 15px 10px;
    }
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb-nav {
    padding: 14px 0 18px;
    border-bottom: 1px solid rgba(255, 179, 102, 0.08);
    margin-bottom: 0;
}
.breadcrumb-nav ol {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
.breadcrumb-nav li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}
.breadcrumb-nav li:not(:last-child)::after {
    content: '›';
    margin-left: 6px;
    opacity: 0.45;
}
.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.breadcrumb-nav a:hover { opacity: 0.75; }
.breadcrumb-nav li[aria-current="page"] { color: var(--text-primary); }

/* ============================================
   SERVICE DETAIL SVG ILLUSTRATION
   ============================================ */
.service-detail-svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    color: rgba(255, 140, 66, 0.22);
    display: block;
    margin-top: 24px;
}
:root[data-theme="light"] .service-detail-svg { color: rgba(180, 100, 14, 0.28); }

/* ============================================
   SERVICE DETAIL PAGE HERO BACKGROUNDS
   ============================================ */
#obra-nueva-hero {
    background-image: url("https://images.pexels.com/photos/323780/pexels-photo-323780.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#reformas-hero {
    background-image: url("https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#interiorismo-hero {
    background-image: url("https://images.pexels.com/photos/1571461/pexels-photo-1571461.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#locales-hero {
    background-image: url("https://images.pexels.com/photos/261102/pexels-photo-261102.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#sostenibilidad-hero {
    background-image: url("https://images.pexels.com/photos/1629292/pexels-photo-1629292.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#visualizacion-hero {
    background-image: url("https://images.pexels.com/photos/3760529/pexels-photo-3760529.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#cee-hero {
    background-image: url("https://images.pexels.com/photos/1629292/pexels-photo-1629292.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#cedula-hero {
    background-image: url("https://images.pexels.com/photos/1643383/pexels-photo-1643383.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#boletin-electrico-hero {
    background-image: url("https://images.pexels.com/photos/257736/pexels-photo-257736.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#boletin-agua-hero {
    background-image: url("https://images.pexels.com/photos/1552242/pexels-photo-1552242.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#tasacion-hero {
    background-image: url("https://images.pexels.com/photos/534220/pexels-photo-534220.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#lic-actividad-hero {
    background-image: url("https://images.pexels.com/photos/261102/pexels-photo-261102.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#ayudas-hero {
    background-image: url("https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#iee-hero {
    background-image: url("https://images.pexels.com/photos/1370704/pexels-photo-1370704.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#nota-simple-hero {
    background-image: url("https://images.pexels.com/photos/95916/pexels-photo-95916.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#accesibilidad-hero {
    background-image: url("https://images.pexels.com/photos/3760529/pexels-photo-3760529.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#inmobiliarias-hero {
    background-image: url("https://images.pexels.com/photos/1546168/pexels-photo-1546168.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#consultoria-hero {
    background-image: url("https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=1920");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
