/* Modern CSS Design System - RR Global Services */

/* --- Custom Properties / Tokens --- */
:root {
    /* Color Palette - Curated Sapphire & Emerald HSL */
    --color-bg-dark: hsl(222, 50%, 8%);
    --color-bg-card: hsla(222, 50%, 12%, 0.75);
    --color-bg-card-hover: hsla(222, 50%, 16%, 0.88);
    --color-border: hsla(220, 95%, 56%, 0.12);
    --color-border-hover: hsla(150, 80%, 46%, 0.25);
    
    --color-primary: hsl(220, 95%, 56%); /* Sapphire Blue */
    --color-primary-hover: hsl(220, 95%, 64%);
    --color-primary-glow: hsla(220, 95%, 56%, 0.25);
    
    --color-accent-green: hsl(150, 80%, 46%); /* Emerald Green */
    --color-accent-green-bg: hsla(150, 80%, 46%, 0.12);
    --color-accent-orange: hsl(35, 95%, 50%);
    --color-accent-orange-bg: hsla(35, 95%, 50%, 0.1);
    --color-accent-blue: hsl(210, 100%, 65%); /* Sapphire secondary accent */
    --color-accent-blue-bg: hsla(210, 100%, 65%, 0.1);
    --color-accent-purple: hsl(265, 85%, 60%);
    --color-accent-purple-bg: hsla(265, 85%, 60%, 0.1);

    --color-text-main: hsl(210, 40%, 98%);
    --color-text-muted: hsl(215, 20%, 65%);
    --color-text-dark: hsl(222, 25%, 15%);
    --color-error: hsl(0, 85%, 60%);

    /* Fonts */
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Grid and Container */
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Electric Sapphire & Emerald gradient blurs */
    background-image: 
        radial-gradient(at 0% 0%, hsla(220, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(150, 100%, 46%, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, hsla(220, 95%, 56%, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
}

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

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

ul {
    list-style: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-main);
}

.gradient-text {
    background: linear-gradient(135deg, hsl(210, 100%, 80%) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-left {
    text-align: left !important;
}

/* --- Layout Components --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-2-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Responsive adjustments */
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .grid-2-1 { grid-template-columns: 1.1fr 0.9fr; }
}

/* --- Buttons & UI Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, hsl(217, 85%, 50%) 100%);
    box-shadow: 0 4px 15px var(--color-primary-glow);
    border: 1px solid hsla(217, 100%, 75%, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, hsl(217, 85%, 55%) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-primary-glow);
}

.btn-secondary {
    background: hsla(222, 47%, 20%, 0.4);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: hsla(222, 47%, 25%, 0.6);
    border-color: var(--color-text-muted);
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: hsla(217, 91%, 60%, 0.1);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: hsl(210, 100%, 80%);
}

.badge-secondary {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: hsla(150, 75%, 45%, 0.1);
    border: 1px solid hsla(150, 75%, 45%, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(150, 80%, 45%);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* --- Header & Navbar --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    padding: 1.2rem 0;
}

.site-header.scrolled {
    background-color: hsla(222, 47%, 7%, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item:hover {
    color: var(--color-text-main);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

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

.header-cta {
    display: none;
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .main-nav { display: block; }
    .header-cta { display: block; }
    .mobile-nav-toggle { display: none; }
}

/* --- Mobile Drawer Navigation --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 100%;
    max-width: 300px;
    height: 100%;
    background-color: var(--color-bg-dark);
    border-left: 1px solid var(--color-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.open .mobile-nav-content {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.mobile-nav-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.mobile-nav-item {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.mobile-nav-item:hover {
    color: var(--color-text-main);
    padding-left: 0.5rem;
}

.mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
}

.mobile-cta-btn {
    width: 100%;
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 8rem 0 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-bg-shapes .shape-1 {
    top: 15%;
    left: -10%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, hsla(220, 100%, 56%, 0.18) 0%, transparent 70%);
    filter: blur(100px);
    animation: pulseSapphire 12s ease-in-out infinite alternate;
}

.hero-bg-shapes .shape-2 {
    bottom: 5%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, hsla(150, 100%, 46%, 0.12) 0%, transparent 70%);
    filter: blur(100px);
    animation: pulseEmerald 15s ease-in-out infinite alternate;
}

@keyframes pulseSapphire {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.15) translate(30px, -20px); opacity: 1; }
}

@keyframes pulseEmerald {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.2) translate(-40px, 30px); opacity: 0.95; }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    align-self: flex-start;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: var(--color-border);
}

/* Hero Visuals */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: hsla(222, 47%, 14%, 0.3);
    padding: 0.8rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(37,99,235,0.1);
    overflow: visible;
}

.hero-main-img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Floating Elements on Hero */
.floating-card {
    position: absolute;
    background: hsla(222, 47%, 14%, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border-hover);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-lg);
    animation: floatEffect 6s ease-in-out infinite;
}

.active-contracts {
    bottom: -20px;
    left: -20px;
}

.quality-stamp {
    top: 20px;
    right: -20px;
    animation-delay: 3s;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(150, 80%, 45%);
}

.floating-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--color-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.floating-card-info {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.info-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.stamp-icon {
    color: var(--color-accent-green);
}

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

/* --- Services & Divisions --- */
.services-section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
    .section-title { font-size: 2.5rem; }
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.services-grid {
    margin-top: 2rem;
}

.service-card {
    position: relative;
    border-radius: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 2.2rem;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 99, 235, 0.1);
}

.card-glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, hsla(217, 91%, 60%, 0.15) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .card-glow-bg {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-logo-container {
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.card-brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.card-feature-list {
    margin-bottom: 2rem;
}

.card-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-main);
}

.check-icon {
    width: 16px;
    height: 16px;
    color: var(--color-accent-green);
    flex-shrink: 0;
}

.card-footer-cta {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 1.2rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.card-link:hover {
    color: var(--color-primary-hover);
}

.card-link i {
    transition: transform 0.2s ease;
}

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

/* --- Brands Section --- */
.brands-section {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: hsla(222, 47%, 7%, 0.5);
}

.brands-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brands-lead-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 600px) {
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
    .brands-grid { grid-template-columns: repeat(7, 1fr); }
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-muted);
    opacity: 0.45;
    transition: var(--transition-smooth);
    padding: 0.8rem;
    text-align: center;
    user-select: none;
}

.brand-item:hover {
    opacity: 1;
    color: var(--color-primary);
    transform: scale(1.08);
    text-shadow: 0 0 15px var(--color-primary-glow);
}

/* --- About & Value Props --- */
.about-section {
    padding: 6rem 0;
    position: relative;
}

.about-paragraph {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.grid-card-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .grid-card-layout { grid-template-columns: repeat(2, 1fr); }
}

.grid-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.grid-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

.grid-card-icon-container {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.grid-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.grid-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Icon Container Color Varieties */
.bg-blue { background: var(--color-accent-blue-bg); }
.icon-blue { color: var(--color-accent-blue); }

.bg-green { background: var(--color-accent-green-bg); }
.icon-green { color: var(--color-accent-green); }

.bg-orange { background: var(--color-accent-orange-bg); }
.icon-orange { color: var(--color-accent-orange); }

.bg-purple { background: var(--color-accent-purple-bg); }
.icon-purple { color: var(--color-accent-purple); }

/* About Bullet Points */
.about-bullet-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bullet-item {
    display: flex;
    gap: 1.2rem;
}

.bullet-number {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bullet-details h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.bullet-details p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Contact & Quote Section --- */
.contact-section {
    padding: 6rem 0;
    position: relative;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.detail-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: hsla(217, 91%, 60%, 0.1);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.detail-link:hover {
    color: var(--color-primary);
}

.detail-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.quote-cta-box {
    padding: 1.2rem;
    background: hsla(28, 95%, 53%, 0.06);
    border-left: 3px solid var(--color-accent-orange);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    max-width: 500px;
}

/* Glass Sourcing Form */
.glass-form-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 600px) {
    .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.form-group label .required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: hsla(222, 47%, 7%, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--color-text-main);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
    background: hsla(222, 47%, 7%, 0.6);
}

/* Invalid State */
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
    border-color: var(--color-error);
}

.error-message {
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 500;
    display: none;
}

.form-group.invalid .error-message {
    display: block;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Success State Panel */
.success-card {
    text-align: center;
    padding: 3.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent-green-bg);
    border: 2px solid var(--color-accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-green);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.success-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.success-msg-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 480px;
}

.success-details {
    width: 100%;
    background: hsla(222, 47%, 7%, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.success-details p {
    margin-bottom: 0.5rem;
}

.success-details p:last-child {
    margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
    background-color: hsl(222, 47%, 5%);
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 10;
}

.footer-cta-strip {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, hsla(217, 91%, 60%, 0.05) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.cta-text-group h4 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.cta-text-group p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-primary);
    color: var(--color-text-main);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.footer-phone-btn:hover {
    background: var(--color-primary-hover);
    transform: scale(1.03);
    box-shadow: 0 8px 25px var(--color-primary-glow);
}

.footer-main {
    padding: 5rem 0 3rem 0;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.legal-badge-group {
    display: flex;
    gap: 0.6rem;
}

.legal-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: hsla(222, 47%, 20%, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
}

.footer-links-col h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.address-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.address-icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dot-separator {
    color: var(--color-border);
}

.footer-bottom a:hover {
    color: var(--color-text-main);
}

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

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
