/* ============================================
   ProCase Expert - Premium Construction Website
   Industrial Black & Yellow Theme
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --black: #111111;
    --black-light: #1c1c1c;
    --gray-dark: #2a2a2a;
    --gray: #3a3a3a;
    --gray-light: #666666;
    --yellow: #ffb400;
    --yellow-dark: #e6a200;
    --yellow-light: #ffc933;
    --white: #ffffff;
    --white-off: #f5f5f5;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-base: 300ms ease-out;
    --transition-slow: 500ms ease-out;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 180, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 1.5rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.text-accent {
    color: var(--yellow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
}

.btn-primary:hover {
    background: var(--yellow-light);
    border-color: var(--yellow-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray);
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Section Styling */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 180, 0, 0.1);
    color: var(--yellow);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 0.75rem;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.logo-accent {
    color: var(--yellow);
}

.header-logo-img {
    height: 54px;
    width: auto;
    display: block;
    filter: invert(1);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.dropdown-simple {
    min-width: 220px;
}

.dropdown-menu.dropdown-simple a {
    display: block;
    padding: 0.625rem 0;
    color: var(--gray-light);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--gray-dark);
}

.dropdown-menu.dropdown-simple a:last-child {
    border-bottom: none;
}

.dropdown-menu.dropdown-simple a:hover {
    color: var(--yellow);
    padding-left: var(--space-sm);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    min-width: 500px;
}

.dropdown-column h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-dark);
}

.dropdown-column a {
    display: block;
    padding: 0.375rem 0;
    color: var(--gray-light);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.dropdown-column a:hover {
    color: var(--yellow);
    padding-left: var(--space-sm);
}

/* Header CTA */
.header-cta {
    padding: 0.625rem 1.25rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 20px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 60px;
    overflow: hidden;
}

.hero > .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, 0.85) 0%,
        rgba(17, 17, 17, 0.6) 50%,
        rgba(17, 17, 17, 0.85) 100%
    );
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 180, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 180, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    flex-shrink: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid rgba(255, 180, 0, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--yellow);
    margin-bottom: var(--space-lg);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffb400;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--white);
}

.benefit-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Hero Form */
.hero-form {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 380px;
    flex-shrink: 0;
    background: rgba(28, 28, 28, 0.92);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    z-index: 2;
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.form-header h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.form-header p {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.quick-form .form-group {
    margin-bottom: var(--space-md);
}

.quick-form input,
.quick-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.quick-form input::placeholder {
    color: var(--gray-light);
}

.quick-form input:focus,
.quick-form select:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.1);
}

.quick-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--gray-light);
}

.form-note svg {
    width: 14px;
    height: 14px;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--gray-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--yellow), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade In */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Slide Up */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(50px);
    animation: slideLeft 0.8s ease-out forwards;
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

/* Stagger Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.active > * {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.active > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children.active > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children.active > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children.active > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children.active > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children.active > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children.active > *:nth-child(8) { transition-delay: 560ms; }

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    background: var(--black);
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--gray-dark);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--yellow);
    display: inline;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--gray-light);
    margin-top: var(--space-sm);
}

.stat-bar {
    width: 40px;
    height: 3px;
    background: var(--yellow);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

/* ============================================
   COVERAGE SECTION
   ============================================ */
.coverage {
    background: var(--black-light);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.coverage-card {
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.coverage-card:hover {
    border-color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.coverage-card.featured {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--gray-dark), var(--black-light));
    border-color: var(--yellow);
}

.coverage-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--yellow);
    filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.4));
    animation: listIconPulse 2.5s ease-in-out infinite;
    transition: all 0.4s ease;
}

.coverage-card:hover .coverage-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px rgba(255, 180, 0, 0.7));
}

.coverage-icon svg {
    width: 100%;
    height: 100%;
}

.coverage-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.coverage-card.featured h3 {
    font-size: 1.75rem;
}

.coverage-card p {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
}

.coverage-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.coverage-links a {
    font-size: 0.8125rem;
    color: var(--gray-light);
    padding: 0.25rem 0.75rem;
    background: var(--black);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.coverage-links a:hover {
    background: var(--yellow);
    color: var(--black);
}

.coverage-links .more-link {
    font-size: 0.8125rem;
    color: var(--yellow);
    padding: 0.25rem 0.75rem;
}

.coverage-btn {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
    transition: all var(--transition-fast);
}

.coverage-btn:hover {
    color: var(--yellow-light);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    display: block;
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    border-color: var(--yellow);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.4));
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    filter: drop-shadow(0 0 25px rgba(255, 180, 0, 0.8));
    transform: scale(1.2);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

/* ---- FLAME: flickers like fire ---- */
.icon-flame svg {
    animation: flameBurn 0.8s ease-in-out infinite alternate;
    transform-origin: bottom center;
}
@keyframes flameBurn {
    0%   { transform: scaleY(1) scaleX(1) rotate(-2deg); filter: brightness(1); }
    25%  { transform: scaleY(1.08) scaleX(0.95) rotate(1deg); filter: brightness(1.3); }
    50%  { transform: scaleY(0.95) scaleX(1.05) rotate(-1.5deg); filter: brightness(1.1); }
    75%  { transform: scaleY(1.1) scaleX(0.97) rotate(2deg); filter: brightness(1.4); }
    100% { transform: scaleY(1.05) scaleX(1.02) rotate(-0.5deg); filter: brightness(1.2); }
}

/* ---- HOUSE: small earthquake/shake ---- */
.icon-house svg {
    animation: houseShake 3s ease-in-out infinite;
    transform-origin: bottom center;
}
@keyframes houseShake {
    0%, 65%, 100% { transform: rotate(0deg) translateX(0); }
    5%   { transform: rotate(-1.5deg) translateX(-2px); }
    10%  { transform: rotate(2deg) translateX(2px); }
    15%  { transform: rotate(-2deg) translateX(-1px); }
    20%  { transform: rotate(1.5deg) translateX(1px); }
    25%  { transform: rotate(-1deg) translateX(0); }
    30%  { transform: rotate(0.5deg); }
}

/* ---- DOCUMENT: page flutter/flip ---- */
.icon-document svg {
    animation: docFlutter 3s ease-in-out infinite;
    transform-origin: left center;
}
@keyframes docFlutter {
    0%, 100% { transform: perspective(200px) rotateY(0deg); }
    25%  { transform: perspective(200px) rotateY(-12deg); }
    50%  { transform: perspective(200px) rotateY(0deg); }
    75%  { transform: perspective(200px) rotateY(8deg); }
}

/* ---- TEXT WRITING: lines fill in left-to-right ---- */
.write-line {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: writeLine 3s ease infinite;
}
.write-line.w1 { animation-delay: 0s; }
.write-line.w2 { animation-delay: 0.5s; }
.write-line.w3 { animation-delay: 1s; }

@keyframes writeLine {
    0%   { stroke-dashoffset: 20; opacity: 0; }
    10%  { opacity: 1; }
    35%  { stroke-dashoffset: 0; opacity: 1; }
    70%  { stroke-dashoffset: 0; opacity: 1; }
    85%  { stroke-dashoffset: 0; opacity: 0; }
    100% { stroke-dashoffset: 20; opacity: 0; }
}

/* ---- BUILDING: slow pulse/breathe ---- */
.icon-building svg {
    animation: buildingPulse 2.5s ease-in-out infinite;
}
@keyframes buildingPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%  { transform: scale(1.1); opacity: 1; }
}

/* ---- ENVELOPE: opens and closes ---- */
.icon-envelope svg {
    animation: envelopeWobble 2.5s ease-in-out infinite;
    transform-origin: center bottom;
}
@keyframes envelopeWobble {
    0%, 100% { transform: rotateX(0deg) scale(1); }
    30%  { transform: rotateX(-15deg) scale(1.05); }
    60%  { transform: rotateX(5deg) scale(1); }
}

/* ---- BADGE/MEDAL: swinging effect ---- */
.icon-badge svg {
    animation: badgeSwing 2.5s ease-in-out infinite;
    transform-origin: top center;
}
@keyframes badgeSwing {
    0%, 100% { transform: rotate(0deg); }
    25%  { transform: rotate(8deg); }
    75%  { transform: rotate(-8deg); }
}

/* ---- CHART: graph line animate ---- */
.icon-chart svg {
    animation: chartBounce 2s ease-in-out infinite;
}
@keyframes chartBounce {
    0%, 100% { transform: translateY(0); }
    30%  { transform: translateY(-5px); }
    60%  { transform: translateY(2px); }
}

/* ---- GEAR: continuous rotation ---- */
.icon-gear svg {
    animation: gearSpin 6s linear infinite;
}
@keyframes gearSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- COIN: flip rotation ---- */
.icon-coin svg {
    animation: coinFlip 3s ease-in-out infinite;
}
@keyframes coinFlip {
    0%, 100% { transform: perspective(200px) rotateY(0deg); }
    50%  { transform: perspective(200px) rotateY(180deg); }
}

/* ---- COMPASS: wobble search ---- */
.icon-compass svg {
    animation: compassWobble 2s ease-in-out infinite;
    transform-origin: center center;
}
@keyframes compassWobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20%  { transform: rotate(-10deg) scale(1.05); }
    40%  { transform: rotate(8deg) scale(0.98); }
    60%  { transform: rotate(-5deg) scale(1.03); }
    80%  { transform: rotate(3deg) scale(1); }
}

/* ---- LAYERS: float apart and reassemble ---- */
.icon-layers svg {
    animation: layerFloat 3s ease-in-out infinite;
}
@keyframes layerFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    25%  { transform: translateY(-3px) scale(1.05); }
    50%  { transform: translateY(0) scale(1); }
    75%  { transform: translateY(2px) scale(0.97); }
}

/* ---- CLOCK: ticking pendulum ---- */
.icon-clock svg {
    animation: clockTick 2s ease-in-out infinite;
    transform-origin: center center;
}
@keyframes clockTick {
    0%, 100% { transform: rotate(0deg); }
    15%  { transform: rotate(6deg); }
    30%  { transform: rotate(0deg); }
    45%  { transform: rotate(-6deg); }
    60%  { transform: rotate(0deg); }
}

/* ---- FLOORPLAN: blueprint unfold ---- */
.icon-floorplan svg {
    animation: blueprintUnfold 3.5s ease-in-out infinite;
    transform-origin: left center;
}
@keyframes blueprintUnfold {
    0%, 100% { transform: perspective(300px) rotateY(0deg) scale(1); }
    30%  { transform: perspective(300px) rotateY(-10deg) scale(1.02); }
    60%  { transform: perspective(300px) rotateY(5deg) scale(0.98); }
}

/* ---- CARD/CALENDAR: subtle tilt ---- */
.icon-card svg {
    animation: cardTilt 3s ease-in-out infinite;
}
@keyframes cardTilt {
    0%, 100% { transform: perspective(200px) rotateX(0deg); }
    50%  { transform: perspective(200px) rotateX(-8deg) translateY(-2px); }
}

/* ---- SPLIT/DUPLEX: pulsing divide ---- */
.icon-split svg {
    animation: splitPulse 2.5s ease-in-out infinite;
}
@keyframes splitPulse {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    30%  { transform: scaleX(1.06) scaleY(0.98); }
    60%  { transform: scaleX(0.98) scaleY(1.04); }
}

/* ---- HEXAGON: 3D rotation ---- */
.icon-hexagon svg {
    animation: hexRotate 4s ease-in-out infinite;
}
@keyframes hexRotate {
    0%, 100% { transform: perspective(200px) rotateY(0deg); }
    50%  { transform: perspective(200px) rotateY(20deg) scale(1.05); }
}

/* ---- CHECKBOX: bounce confirm ---- */
.icon-checkbox svg {
    animation: checkBounce 2.5s ease-in-out infinite;
}
@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    20%  { transform: scale(1.15); }
    40%  { transform: scale(0.95); }
    60%  { transform: scale(1.05); }
}

/* ---- EYE: scanning look ---- */
.icon-eye svg {
    animation: eyeScan 3s ease-in-out infinite;
}
@keyframes eyeScan {
    0%, 100% { transform: scaleY(1) translateX(0); }
    15%  { transform: scaleY(0.2) translateX(0); }
    25%  { transform: scaleY(1) translateX(0); }
    50%  { transform: scaleY(1) translateX(3px); }
    75%  { transform: scaleY(1) translateX(-3px); }
}

/* ---- LIGHTNING: electric flash ---- */
.icon-lightning svg {
    animation: lightningFlash 2s ease-in-out infinite;
}
@keyframes lightningFlash {
    0%, 100% { transform: scale(1) translateY(0); filter: brightness(1); }
    10%  { filter: brightness(2); transform: scale(1.1) translateY(-2px); }
    20%  { filter: brightness(0.8); transform: scale(0.95) translateY(1px); }
    30%  { filter: brightness(1.8); transform: scale(1.08) translateY(-1px); }
    40%  { filter: brightness(1); transform: scale(1) translateY(0); }
}

/* ---- WATER DROP: dripping bounce ---- */
.icon-waterdrop svg {
    animation: waterDrip 2.5s ease-in-out infinite;
    transform-origin: top center;
}
@keyframes waterDrip {
    0%, 100% { transform: translateY(0) scaleY(1) scaleX(1); }
    30%  { transform: translateY(4px) scaleY(1.1) scaleX(0.92); }
    50%  { transform: translateY(0) scaleY(0.9) scaleX(1.08); }
    70%  { transform: translateY(2px) scaleY(1.05) scaleX(0.96); }
}

/* ---- COMPASS-PEN: drawing rotation ---- */
.icon-compasspen svg {
    animation: compassDraw 3s ease-in-out infinite;
    transform-origin: center center;
}
@keyframes compassDraw {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25%  { transform: rotate(12deg) scale(1.05); }
    50%  { transform: rotate(-8deg) scale(0.97); }
    75%  { transform: rotate(5deg) scale(1.02); }
}

/* ---- FLAG: waving in wind ---- */
.icon-flag svg {
    animation: flagWave 2s ease-in-out infinite;
    transform-origin: bottom left;
}
@keyframes flagWave {
    0%, 100% { transform: skewX(0deg) rotate(0deg); }
    25%  { transform: skewX(-3deg) rotate(-1deg); }
    50%  { transform: skewX(2deg) rotate(0.5deg); }
    75%  { transform: skewX(-1deg) rotate(-0.5deg); }
}

/* ---- MONITOR: screen glow ---- */
.icon-monitor svg {
    animation: monitorGlow 2.5s ease-in-out infinite;
}
@keyframes monitorGlow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
    50%  { filter: brightness(1.3) drop-shadow(0 0 6px rgba(255,180,0,0.5)); }
}

/* ---- USERS: grouped bounce ---- */
.icon-users svg {
    animation: usersBounce 2.5s ease-in-out infinite;
}
@keyframes usersBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25%  { transform: translateY(-3px) scale(1.03); }
    50%  { transform: translateY(0) scale(1); }
    75%  { transform: translateY(-1px) scale(1.01); }
}

/* ---- BOOK: page flip ---- */
.icon-book svg {
    animation: bookFlip 3s ease-in-out infinite;
    transform-origin: left center;
}
@keyframes bookFlip {
    0%, 100% { transform: perspective(200px) rotateY(0deg); }
    30%  { transform: perspective(200px) rotateY(-15deg); }
    60%  { transform: perspective(200px) rotateY(8deg); }
}

/* ---- TEMPLE: stately pulse ---- */
.icon-temple svg {
    animation: templePulse 3s ease-in-out infinite;
}
@keyframes templePulse {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.9; }
    50%  { transform: scale(1.08) translateY(-2px); opacity: 1; }
}

/* Override default listIconPulse when specific icon class is present */
.service-list-icon[class*="icon-"] {
    animation: none;
}
.coverage-icon[class*="icon-"] {
    animation: none;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    transition: color var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--yellow);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.service-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
    transition: all var(--transition-fast);
}

.service-card:hover .service-link {
    color: var(--yellow-light);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    background: var(--black-light);
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-light);
    background: var(--gray-dark);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--white);
    border-color: var(--gray);
}

.filter-btn.active {
    background: var(--yellow);
    color: var(--black);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-dark);
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-dark), var(--black));
}

.portfolio-placeholder svg {
    width: 80%;
    height: 80%;
    opacity: 0.5;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: all var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
    margin-bottom: var(--space-sm);
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    transform: translateY(10px);
    transition: transform var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8125rem;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
}

.portfolio-meta span {
    position: relative;
}

.portfolio-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -10px;
    color: var(--gray);
}

.portfolio-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator {
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--yellow);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.calculator-info .section-tag {
    margin-bottom: var(--space-md);
}

.calculator-info .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.calculator-info > p {
    font-size: 1.0625rem;
    color: var(--gray-light);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.calculator-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.calc-benefit {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9375rem;
}

.calc-benefit svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.calculator-form {
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.calc-group {
    margin-bottom: var(--space-xl);
}

.calc-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.calc-range {
    flex: 1;
    height: 6px;
    background: var(--gray-dark);
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--yellow);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 10px rgba(255, 180, 0, 0.3);
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 180, 0, 0.5);
}

.range-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yellow);
    min-width: 100px;
    text-align: right;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: var(--space-sm);
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.calc-option {
    cursor: pointer;
}

.calc-option input {
    display: none;
}

.option-box {
    display: block;
    padding: var(--space-md);
    background: var(--gray-dark);
    border: 2px solid var(--gray);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
}

.calc-option input:checked + .option-box {
    border-color: var(--yellow);
    background: rgba(255, 180, 0, 0.1);
}

.option-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.option-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-light);
}

.calc-result {
    background: var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.result-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: var(--space-sm);
}

.result-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-sm);
}

.price-from {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--yellow);
}

.result-note {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: var(--space-md);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    background: var(--black-light);
    position: relative;
}
.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bg/process.jpg') center/cover no-repeat;
    opacity: 0.45;
    z-index: 0;
}
.process > .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    position: relative;
}
.pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bg/pricing.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
}
.pricing > .container {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-dark);
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--yellow);
    transition: height 1s ease-out;
}

.timeline.active .timeline-line::before {
    height: 100%;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--black);
    border: 2px solid var(--gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all var(--transition-base);
}

.timeline-item.active .timeline-marker {
    border-color: var(--yellow);
    box-shadow: var(--shadow-glow);
}

.timeline-marker span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--yellow);
}

.timeline-content {
    background: var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border-left: 3px solid var(--yellow);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.timeline-duration {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--yellow);
    background: rgba(255, 180, 0, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: var(--black);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-out;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - var(--space-lg));
    margin-right: var(--space-lg);
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--gray);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--white);
}

.author-info span {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-light);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.testimonial-prev,
.testimonial-next {
    width: 48px;
    height: 48px;
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.testimonial-prev svg,
.testimonial-next svg {
    width: 20px;
    height: 20px;
}

.testimonial-dots {
    display: flex;
    gap: var(--space-sm);
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonial-dots .dot.active {
    background: var(--yellow);
    transform: scale(1.2);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog {
    background: var(--black-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.blog-card {
    background: var(--gray-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.blog-image {
    aspect-ratio: 16/9;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card.featured .blog-image {
    aspect-ratio: 16/10;
}

.blog-placeholder {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

.blog-content {
    padding: var(--space-lg);
}

.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
    margin-bottom: var(--space-sm);
}

.blog-card h3 {
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-card.featured h3 {
    font-size: 1.5rem;
}

.blog-card h3 a:hover {
    color: var(--yellow);
}

.blog-card p {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card.featured p {
    -webkit-line-clamp: 3;
}

.blog-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
}

.blog-link:hover {
    color: var(--yellow-light);
}

.blog-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    background: var(--black);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--gray);
}

.faq-item.active {
    border-color: var(--yellow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--yellow);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--gray-light);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--space-xl) var(--space-xl);
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--black-light);
    position: relative;
}
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bg/about.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
}
.about > .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content .section-tag {
    display: inline-block;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-lead {
    font-size: 1.125rem;
    color: #ffb400;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 180, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.about-feature:hover {
    border-color: rgba(255, 180, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.feature-text span {
    font-size: 0.875rem;
    color: #aaaaaa;
}

.about-cta {
    display: flex;
    gap: var(--space-md);
}

.about-image {
    position: relative;
}

.about-placeholder {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-dark);
}

.about-placeholder svg {
    width: 100%;
    height: auto;
}

/* Earthquake animation on house blueprint */
.house-earthquake {
    animation: earthquake 2.5s ease-in-out infinite;
}

@keyframes earthquake {
    0%   { transform: translate(0, 0) rotate(0deg); }
    5%   { transform: translate(-4px, 0) rotate(-0.8deg); }
    10%  { transform: translate(5px, -1px) rotate(1deg); }
    15%  { transform: translate(-6px, 1px) rotate(-1.3deg); }
    20%  { transform: translate(6px, 0) rotate(1.5deg); }
    25%  { transform: translate(-5px, -1px) rotate(-1.8deg); }
    30%  { transform: translate(7px, 1px) rotate(1.5deg); }
    35%  { transform: translate(-5px, 0) rotate(-1.2deg); }
    40%  { transform: translate(5px, -1px) rotate(1deg); }
    45%  { transform: translate(-4px, 1px) rotate(-0.7deg); }
    50%  { transform: translate(3px, 0) rotate(0.5deg); }
    55%  { transform: translate(-2px, 0) rotate(-0.3deg); }
    60%  { transform: translate(1px, 0) rotate(0.1deg); }
    65%  { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background: var(--yellow);
    color: var(--black);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--black);
    position: relative;
}
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/bg/contact.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
}
.contact > .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
}

.contact-info .section-tag {
    display: inline-block;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.contact-lead {
    font-size: 1.0625rem;
    color: #ffb400;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 180, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
    border-color: rgba(255, 180, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--yellow);
}

.contact-text strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.contact-text a,
.contact-text span {
    font-size: 0.9375rem;
    color: #aaaaaa;
}

.contact-text a:hover {
    color: var(--yellow);
}

/* Submit Button - Blueprint Roll Animation */
.submit-btn-animated {
    flex-direction: column;
    padding: 1.5rem 2rem 1.25rem !important;
    gap: 0.75rem !important;
    min-height: 220px;
}

.submit-animation-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    height: 160px;
    overflow: hidden;
}

.blueprint-roll {
    width: 100%;
    height: 100%;
}

.blueprint-roll .sheet {
    transform-origin: 295px 100px;
    animation: unrollSheet 5s ease-in-out infinite;
}

.blueprint-roll .bp-plan {
    animation: fadeLineIn 5s ease-in-out infinite;
    animation-delay: 0.4s;
}

.blueprint-roll .bp-details {
    animation: fadeLineIn 5s ease-in-out infinite;
    animation-delay: 0.2s;
}

.blueprint-roll .roll-front {
    animation: rollMove 5s ease-in-out infinite;
}

.blueprint-roll .roll-end {
    animation: rollMove 5s ease-in-out infinite;
}

@keyframes unrollSheet {
    0% { transform: scaleX(0.02); opacity: 0; }
    10% { transform: scaleX(0.1); opacity: 0.5; }
    25% { transform: scaleX(0.5); opacity: 0.8; }
    40% { transform: scaleX(1); opacity: 1; }
    65% { transform: scaleX(1); opacity: 1; }
    80% { transform: scaleX(0.5); opacity: 0.8; }
    90% { transform: scaleX(0.1); opacity: 0.5; }
    100% { transform: scaleX(0.02); opacity: 0; }
}

@keyframes rollMove {
    0% { transform: translateX(0); }
    10% { transform: translateX(-30px); }
    25% { transform: translateX(-130px); }
    40% { transform: translateX(-250px); }
    65% { transform: translateX(-250px); }
    80% { transform: translateX(-130px); }
    90% { transform: translateX(-30px); }
    100% { transform: translateX(0); }
}

@keyframes fadeLineIn {
    0% { opacity: 0; }
    30% { opacity: 0; }
    42% { opacity: 1; }
    63% { opacity: 1; }
    78% { opacity: 0; }
    100% { opacity: 0; }
}

.submit-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseText 5s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 35%, 70%, 100% { opacity: 1; }
    45%, 60% { opacity: 0.6; }
}

/* Lead Magnet */
.lead-magnet {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--gray-dark);
    border: 1px solid var(--yellow);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.magnet-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.magnet-content {
    flex: 1;
}

.magnet-content strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.magnet-content p {
    font-size: 0.8125rem;
    color: var(--gray-light);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form .form-group {
    margin-bottom: var(--space-lg);
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.1);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.file-label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-dark);
    border: 2px dashed var(--gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-label:hover {
    border-color: var(--yellow);
}

.file-label svg {
    width: 24px;
    height: 24px;
    color: var(--gray-light);
}

.file-label span {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.file-label input {
    display: none;
}

.file-list {
    margin-top: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--yellow);
}

/* Checkbox */
.checkbox-group {
    margin-bottom: var(--space-lg);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-light);
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    display: inline-block;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    background: var(--black);
    border: 2px solid #ffb400;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition-fast);
    margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--yellow);
    border-color: var(--yellow);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid var(--black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--yellow);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Map */
.contact-map {
    margin-top: var(--space-3xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    text-align: center;
}

.map-overlay p {
    font-size: 1.125rem;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black-light);
    border-top: 1px solid var(--gray-dark);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand > p {
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--yellow);
    color: var(--black);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-light);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--yellow);
    padding-left: var(--space-sm);
}

/* Footer Bottom Layout */
.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: var(--space-xl);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
}
.footer-bottom-row {
    display: contents;
}
.footer-bottom-left {
    text-align: center;
}
.footer-bottom-left p {
    font-size: 0.8125rem;
    color: var(--gray-light);
    margin-bottom: 0.25rem;
}
.footer-seo-text {
    font-size: 0.75rem !important;
    color: #666 !important;
}
.footer-legal-links {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
}
.footer-legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.footer-legal-links a:hover {
    color: var(--yellow);
    text-decoration: underline;
}
.footer-sep {
    color: #555;
    font-size: 0.8rem;
}

/* ANPC Badges */
.anpc-badges {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}
.anpc-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    line-height: 0;
}
.anpc-badge:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}
.anpc-badge img {
    height: 54px;
    width: auto;
    display: block;
}

/* Footer Logo */
.footer-logo-link {
    display: block;
    margin-bottom: 1rem;
}
.footer-logo-img {
    width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: invert(1);
}

/* Cookie Consent Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1c1c1c;
    border-top: 1px solid #333;
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.cookie-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-banner p {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}
.cookie-banner a {
    color: #ffb400;
    text-decoration: underline;
}
.cookie-btns {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cookie-btn-accept {
    background: #ffb400;
    color: #111;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cookie-btn-accept:hover {
    background: #ffd060;
}
.cookie-btn-reject {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.cookie-btn-reject:hover {
    border-color: #888;
    color: #ccc;
}

/* ============================================
   MOBILE CTA
   ============================================ */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--black);
    border-top: 1px solid var(--gray-dark);
    padding: var(--space-sm);
    gap: var(--space-sm);
}

.mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-cta-btn.call {
    background: var(--gray-dark);
    color: var(--white);
}

.mobile-cta-btn.call svg {
    width: 20px;
    height: 20px;
}

.mobile-cta-btn.quote {
    background: var(--yellow);
    color: var(--black);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1200px) {
    .hero > .container {
        flex-direction: column;
    }
    
    .hero-form {
        width: 100%;
        max-width: 500px;
        margin: var(--space-lg) auto 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-bottom: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-benefits {
        justify-content: center;
    }
    
    .coverage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coverage-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-brand {
        grid-column: span 3;
        text-align: center;
        margin-bottom: var(--space-lg);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .dropdown-grid {
        min-width: 400px;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    section {
        padding: var(--space-3xl) 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--black);
        border-left: 1px solid var(--gray-dark);
        padding: 100px var(--space-xl) var(--space-xl);
        transition: right var(--transition-base);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-dark);
    }
    
    .nav-link {
        display: block;
        padding: var(--space-md) 0;
        font-size: 1.125rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .has-dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        background: transparent;
        padding: 0 0 var(--space-md) var(--space-md);
        display: none;
        box-shadow: none;
    }
    
    .has-dropdown.open .dropdown-menu {
        display: block;
    }
    
    .dropdown-grid {
        display: flex;
        flex-direction: column;
        min-width: 100%;
        gap: var(--space-md);
    }
    
    .dropdown-menu.dropdown-simple {
        min-width: 100%;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-cta {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .hero {
        min-height: auto;
        padding: 80px 0 30px;
    }
    
    .hero-form {
        margin-top: var(--space-md);
    }
    
    .hero-scroll {
        display: none;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stat-item::after {
        display: none;
    }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-card.featured {
        grid-column: span 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: var(--space-sm);
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-options {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .lead-magnet {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .anpc-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-legal-links {
        justify-content: center;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
    }
    
    .timeline-marker span {
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-cta,
    .hero-form,
    .calculator,
    .testimonials-slider,
    .contact-form-wrapper {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title,
    h1, h2, h3 {
        color: black;
    }
}

/* ============================================
   LOCATION PAGES
   ============================================ */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.breadcrumb a {
    color: var(--gray-light);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--yellow);
}

.breadcrumb span {
    color: var(--gray-light);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    max-width: 700px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.page-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Location Stats */
.location-stats {
    background: var(--black-light);
    border: none;
}

/* Areas Grid */
.location-areas {
    background: var(--black);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.area-card {
    display: block;
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.area-card:hover {
    border-color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.area-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--yellow);
    opacity: 0.2;
    position: absolute;
    top: var(--space-md);
    right: var(--space-lg);
    line-height: 1;
}

.area-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.area-card > p {
    font-size: 0.9375rem;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
}

.area-features {
    margin-bottom: var(--space-lg);
}

.area-features li {
    font-size: 0.875rem;
    color: var(--gray-light);
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.area-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow);
}

.area-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.city-card {
    display: block;
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.city-card:hover {
    border-color: var(--yellow);
    transform: translateY(-3px);
}

.city-card.featured {
    border-color: var(--yellow);
    background: linear-gradient(135deg, var(--gray-dark), var(--black-light));
}

.city-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.city-card p {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-bottom: var(--space-sm);
}

.city-projects {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Location Services List */
.location-services {
    background: var(--black-light);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.service-list-item {
    display: flex;
    gap: var(--space-xl);
    background: var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.service-list-item:hover {
    transform: translateX(10px);
}

.service-list-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    color: var(--yellow);
    filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.4));
    animation: listIconPulse 2.5s ease-in-out infinite;
    transition: all 0.4s ease;
}

.service-list-item:hover .service-list-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px rgba(255, 180, 0, 0.7));
}

@keyframes listIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.1); opacity: 1; }
}

.service-list-icon svg {
    width: 100%;
    height: 100%;
}

.service-list-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-list-content p {
    font-size: 0.9375rem;
    color: var(--gray-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.service-list-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--yellow);
}

/* Project Types Grid */
.location-project-types {
    background: var(--black);
}

.project-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.project-type-card {
    display: block;
    background: var(--black-light);
    border: 1px solid var(--gray-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.project-type-card:hover {
    border-color: var(--yellow);
    background: var(--gray-dark);
}

.project-type-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.project-type-card p {
    font-size: 0.75rem;
    color: var(--gray-light);
}

/* Location Testimonials */
.location-testimonials {
    background: var(--black-light);
}

.testimonials-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-simple {
    background: var(--gray-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.testimonial-simple p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-simple p::before {
    content: '"';
    color: var(--yellow);
    font-size: 2rem;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: var(--space-xs);
}

.testimonial-author-simple strong {
    display: block;
    font-size: 0.9375rem;
}

.testimonial-author-simple span {
    font-size: 0.8125rem;
    color: var(--gray-light);
}

/* Location CTA */
.location-cta {
    background: var(--black);
    padding: var(--space-3xl) 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--gray-dark), var(--black-light));
    border: 1px solid var(--yellow);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
}

.cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--gray-light);
    line-height: 1.6;
}

.inline-form {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    flex: 1;
    min-width: 150px;
    padding: 0.875rem 1rem;
    background: var(--black);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.9375rem;
}

.inline-form input:focus,
.inline-form select:focus {
    outline: none;
    border-color: var(--yellow);
}

.inline-form .btn {
    flex-shrink: 0;
}

.inline-form .g-recaptcha {
    flex-basis: 100%;
    margin: 4px 0;
}

/* Related Areas */
.related-areas {
    background: var(--black-light);
    padding: var(--space-2xl) 0;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.related-links a {
    padding: 0.625rem 1.25rem;
    background: var(--gray-dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.related-links a:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

/* Location Pages Responsive */
@media (max-width: 1200px) {
    .cities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .project-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-hero-cta {
        flex-direction: column;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-list-item {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .service-list-icon {
        width: 48px;
        height: 48px;
    }
    
    .testimonials-simple {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .inline-form {
        flex-direction: column;
    }
}
