/* ===================================
   RAB Builders - Main Stylesheet
   Professional Construction Company
   =================================== */

/* CSS Variables */
:root {
    --primary: #E63946;
    --primary-dark: #C62E3A;
    --dark: #1A1A1A;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* Container */
.container-enhanced {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-enhanced { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container-enhanced { padding: 0 2rem; }
}

/* Section Spacing */
.section-spacing {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section-spacing { padding: 6rem 0; }
}

@media (min-width: 1024px) {
    .section-spacing { padding: 7rem 0; }
}

.section-spacing-sm {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-spacing-sm { padding: 5rem 0; }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(230, 57, 70, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Cards */
.card-base {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.card-base:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto 3rem;
}

/* Stats */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Grid System - custom only, do not redefine Tailwind utilities */
.grid-enhanced {
    display: grid;
    gap: 2rem;
}

/* Top Bar */
.top-bar {
    background: var(--gray-900);
    color: var(--white);
    font-size: 0.875rem;
}

.top-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-right: 1px solid var(--gray-700);
    transition: var(--transition);
}

.top-bar-item:last-child {
    border-right: none;
}

.top-bar-item:hover {
    background: var(--primary);
}

.top-bar-item i {
    color: var(--primary);
}

.top-bar-item:hover i {
    color: var(--white);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    margin-left: 3rem;
}

@media (min-width: 768px) {
    .nav-menu { display: flex; }
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-right {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

@media (min-width: 1024px) {
    .nav-right { display: flex; }
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.search-box:hover {
    background: var(--gray-200);
}

.search-box:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    width: 10rem;
}

.search-box button {
    color: var(--gray-600);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--primary-dark);
}

.mobile-menu-toggle {
    display: block;
    color: var(--gray-700);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    top: 5rem;
    background: var(--white);
    z-index: 40;
    overflow-y: auto;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
    min-height: 3.125rem;
}

.mobile-menu-item:hover {
    background: rgba(230, 57, 70, 0.05);
    color: var(--primary);
}

.mobile-menu-item.active {
    background: rgba(230, 57, 70, 0.05);
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0;
}

footer a:hover {
    color: var(--primary);
}

/* Note: Do not redefine Tailwind utility classes here.
   Use custom component classes only. */

/* Responsive */
@media (max-width: 767px) {
    .top-bar { display: none; }
    
    .section-spacing {
        padding: 3rem 0;
    }
    
    .grid {
        gap: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}


/* ===================================
   Additional Responsive Fixes
   =================================== */

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for hero section on mobile */
@media (max-width: 767px) {
    .hero-slide {
        min-height: 100vh;
    }
    
    .hero-headline {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-subheadline {
        font-size: 1.125rem !important;
    }
}

/* Page header responsive */
.page-header {
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (min-width: 768px) {
    .page-header {
        min-height: 12rem;
    }
}

@media (min-width: 1024px) {
    .page-header {
        min-height: 16rem;
    }
}

/* Form improvements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Table responsive */
table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
    }
}

/* Prose styling for blog content */
.prose {
    max-width: 65ch;
    color: var(--gray-700);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--gray-900);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--primary-dark);
}

.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.prose ul,
.prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .top-bar,
    footer,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--white);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aspect ratio boxes */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Backdrop blur for modals */
.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Gradient overlays */
.gradient-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--primary);
    color: var(--white);
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Alert styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #D1FAE5;
    border: 1px solid #10B981;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
}

.alert-info {
    background: #DBEAFE;
    border: 1px solid #3B82F6;
    color: #1E40AF;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 2rem 0;
}

/* Container max-widths */
.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-md {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-lg {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* End of Additional Responsive Fixes */

/* ===================================
   PREMIUM HOMEPAGE STYLES
   Inspired by luxury construction UI
   =================================== */

/* ---- Section Eyebrow ---- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 2px;
    background: var(--primary);
    flex-shrink: 0;
}
.section-eyebrow.light {
    color: rgba(255,255,255,0.7);
}
.section-eyebrow.light::before {
    background: rgba(255,255,255,0.5);
}

.section-title-lg {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

/* ---- HERO ---- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 1.5rem;
    text-align: left;
    margin-left: 5vw;
}

@media (max-width: 768px) {
    .hero-content {
        margin-left: 0;
        text-align: center;
        padding: 0 1.25rem;
    }
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-tag-line {
    display: block;
    width: 2.5rem;
    height: 2px;
    background: var(--primary);
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero-sub { margin: 0 auto 2rem; }
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .hero-ctas { justify-content: center; }
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230,57,70,0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Hero counter */
.hero-counter {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    font-weight: 600;
}
#heroCurrentNum { color: #fff; font-size: 1.5rem; font-weight: 800; }
.hero-counter-sep {
    display: block;
    width: 2rem;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

/* Hero arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.hero-arrow-prev { left: 2rem; }
.hero-arrow-next { right: 2rem; }

@media (max-width: 768px) {
    .hero-arrow-prev { left: 1rem; }
    .hero-arrow-next { right: 1rem; }
    .hero-counter { display: none; }
}

/* Hero dots */
.hero-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}
.hero-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dot.active {
    background: var(--primary);
    width: 2rem;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.hero-scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}
@media (max-width: 768px) {
    .hero-scroll-hint { display: none; }
}

/* ---- STATS BAND ---- */
.stats-band {
    background: var(--gray-900);
    padding: 3.5rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
@media (max-width: 767px) {
    .stat-item:nth-child(2n) { border-right: none; }
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ---- ABOUT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
}
.about-images {
    position: relative;
}
.about-img-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.about-img-accent {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    width: 45%;
}
.about-img-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.about-badge {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(230,57,70,0.4);
}
.about-badge-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.about-badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.9;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.about-feature {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}
@media (max-width: 480px) {
    .about-img-accent { display: none; }
    .about-features { grid-template-columns: 1fr; }
}

/* ---- SERVICES ---- */
.services-section {
    background: #f8f8f8;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.35s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(230,57,70,0.08);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrap {
    background: var(--primary);
    color: #fff;
}
.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}
.service-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.service-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}
.service-link:hover { gap: 0.5rem; }

/* ---- HERITAGE ---- */
.heritage-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}
.heritage-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.heritage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.65) 100%);
}
.heritage-content {
    position: relative;
    z-index: 2;
}
.heritage-inner {
    max-width: 700px;
}
.heritage-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.heritage-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.heritage-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.heritage-stat { text-align: left; }
.heritage-stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.heritage-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}
.heritage-stat-divider {
    width: 1px;
    height: 3rem;
    background: rgba(255,255,255,0.2);
}

/* ---- PROJECTS SHOWCASE ---- */
.projects-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .projects-showcase { grid-template-columns: 3fr 2fr; }
}
.project-featured {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 480px;
}
.project-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-featured:hover img { transform: scale(1.05); }
.project-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.project-cat {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.project-featured-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}
.project-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 0.25rem;
    transition: border-color 0.2s ease;
}
.project-link:hover { border-color: var(--primary); color: var(--primary); }

.projects-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.project-thumb {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    flex: 1;
    min-height: 200px;
}
.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-thumb:hover img { transform: scale(1.05); }
.project-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}
.project-thumb-overlay h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0.4rem 0 0.5rem;
}
.project-link-sm {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.project-link-sm:hover { color: var(--primary); }

/* ---- TESTIMONIAL ---- */
.testimonial-section {
    background: var(--gray-900);
    padding: 6rem 0;
}
.testimonial-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}
.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0.8;
}
.testimonial-text {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255,255,255,0.9);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}
.testimonial-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}
.testimonial-avatar-placeholder {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
}
.testimonial-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
}
.testimonial-role {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    text-align: left;
    margin-top: 0.2rem;
}
.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.4rem;
    color: #FBBF24;
    font-size: 0.8rem;
}

/* ---- BLOG ---- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.blog-card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    height: 220px;
}
.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.06); }
.blog-card-cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
}
.blog-card-body {
    padding: 1.75rem;
}
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.blog-card-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}
.blog-card-link:hover { gap: 0.5rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}
.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.cta-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230,57,70,0.92) 0%, rgba(150,20,30,0.88) 100%);
}
.cta-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-banner-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.cta-banner-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
}
.cta-banner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-banner-actions .btn-hero-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.cta-banner-actions .btn-hero-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ── Search Autocomplete ─────────────────────────────────────────── */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    z-index: 9999;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 4px;
}
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: #fef2f2; }
.autocomplete-all {
    font-size: 12px;
    font-weight: 600;
    color: #E63946;
    justify-content: center;
}
