/* ===================================================================
   THIRU SASHTIN CONSTRUCTION - OFFICIAL BRAND STYLESHEET
   Brand Identity: Vibrant Eco Green + Warm Earth Gold/Bronze + Charcoal
   =================================================================== */

/* Official Brand Font (Dokter Monstro from Logo) */
@font-face {
    font-family: 'Dokter Monstro';
    src: url('/static/fonts/DokterMonstro-Italic.woff2') format('woff2'),
         url('/static/fonts/DokterMonstro-Italic.woff') format('woff'),
         url('/static/fonts/DokterMonstro-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Dokter Monstro';
    src: url('/static/fonts/DokterMonstro-Regular.woff2') format('woff2'),
         url('/static/fonts/DokterMonstro-Regular.woff') format('woff'),
         url('/static/fonts/DokterMonstro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Color Theme derived from Company Logo */
    --brand-green: #5a9e04;         /* Primary Logo Green */
    --brand-green-light: #72c408;   /* Vibrant Sprout Glow */
    --brand-green-dark: #3b6b02;    /* Deep Forest Green */
    --brand-green-subtle: #f0f7e6;  /* Soft Green Tint */
    
    --brand-gold: #9e7e38;          /* Bronze/Gold Emblem Ring */
    --brand-gold-light: #c8a34b;    /* Bright Champagne Accent */
    --brand-gold-dark: #745b24;     /* Deep Antique Bronze */
    --brand-gold-subtle: #f9f5ea;   /* Warm Ivory Gold Tint */
    
    --dark-primary: #121811;        /* Midnight Forest Slate */
    --dark-secondary: #1a2219;      /* Card Dark */
    --dark-tertiary: #273426;       /* Border Dark */
    
    --light-bg: #f8faf5;            /* Natural Warm Off-White */
    --light-card: #ffffff;
    --text-primary: #1a2019;
    --text-secondary: #4a5548;
    --text-muted: #738071;
    
    --white: #ffffff;
    --border-light: rgba(90, 158, 4, 0.15);
    --border-gold: rgba(158, 126, 56, 0.25);
    
    /* Gradients */
    --grad-green: linear-gradient(135deg, #5a9e04 0%, #3b6b02 100%);
    --grad-gold: linear-gradient(135deg, #c8a34b 0%, #9e7e38 100%);
    --grad-brand: linear-gradient(135deg, #5a9e04 0%, #9e7e38 100%);
    --grad-dark: linear-gradient(180deg, #121811 0%, #1a2219 100%);
    --grad-hero: linear-gradient(135deg, rgba(14, 22, 16, 0.88) 0%, rgba(14, 22, 16, 0.74) 55%, rgba(14, 22, 16, 0.60) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 8px 28px rgba(90, 158, 4, 0.28);
    --shadow-gold: 0 8px 28px rgba(158, 126, 56, 0.28);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-brand: 'Dokter Monstro', 'Poppins', cursive, sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===================================================================
   Global Resets & Base
   =================================================================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--light-bg);
    line-height: 1.65;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--brand-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-green-dark);
}

/* ===================================================================
   Preloader / Splash Animation
   =================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e281b 0%, #0d120d 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hide-preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-emblem-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    display: none !important;
}

.preloader-pulse-glow {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 196, 8, 0.35) 0%, transparent 70%);
    animation: pulseFlame 2s ease-in-out infinite;
}

.preloader-logo-img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: emblemFloat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
}

.preloader-title {
    font-family: var(--font-brand);
    font-style: italic;
    color: #72c408 !important;
    font-size: clamp(1.2rem, 5.2vw, 1.8rem);
    font-weight: normal;
    letter-spacing: 0.04em;
    margin-top: 10px;
    margin-bottom: 6px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 25px rgba(114, 196, 8, 0.45);
    background: none !important;
    -webkit-text-fill-color: #72c408 !important;
}

.preloader-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.68rem, 2.5vw, 0.85rem);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

.preloader-progress-bar {
    width: 140px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    margin-top: 18px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5a9e04, #84e00a, #d4af37);
    border-radius: 3px;
    animation: splashProgress 1.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes splashProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseFlame {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.9; }
}

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

@keyframes shimmerText {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ===================================================================
   Navbar & Branding
   =================================================================== */
.top-bar {
    display: none !important;
}

/* ===================================================================
   Mobile Category Navigation Bar (Shopping App Style)
   =================================================================== */
.mobile-category-bar {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.category-scroll-track {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 2px 2px 6px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.category-scroll-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: #f3f5f1;
    color: #273324 !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid rgba(90, 158, 4, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.cat-chip i {
    font-size: 0.8rem;
    color: var(--brand-green);
    transition: color 0.2s ease;
}

.cat-chip:hover,
.cat-chip:active {
    background: #e7ece4;
    color: var(--brand-green-dark) !important;
    border-color: var(--brand-green);
}

.cat-chip.active {
    background: linear-gradient(135deg, #5a9e04 0%, #3a6802 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 10px rgba(90, 158, 4, 0.35);
}

.cat-chip.active i {
    color: #ffffff !important;
}

.cat-chip-gold {
    background: linear-gradient(135deg, #c8a34b 0%, #9e7c2c 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 10px rgba(200, 163, 75, 0.35);
}

.cat-chip-gold i {
    color: #ffffff !important;
}

/* Compact Mobile Call Button (Right-Side Header) */
.btn-mobile-call {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #72c408 0%, #4a8203 100%);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    box-shadow: 0 3px 10px rgba(90, 158, 4, 0.35);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: auto;
}

.btn-mobile-call:hover,
.btn-mobile-call:active {
    background: linear-gradient(135deg, #84e00a 0%, #5a9e04 100%);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 5px 15px rgba(90, 158, 4, 0.5);
}

/* ===================================================================
   Reversed Phone Icon to Match Telephone Handset Position (Image 2)
   =================================================================== */
.btn-mobile-call i,
.btn-nav-call i,
.mobile-bottom-btn.btn-call i,
.mobile-bottom-bar .fa-phone-alt,
.mobile-bottom-bar .fa-phone,
.btn-phone i {
    transform: scaleX(-1) !important;
    display: inline-block !important;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid transparent;
}

.navbar.navbar-scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--brand-green);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-emblem-container {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-emblem-ring {
    display: none !important;
}

.brand-emblem-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

.brand-wrapper:hover .brand-emblem-img {
    transform: scale(1.05);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name-title {
    font-family: var(--font-brand);
    font-style: italic;
    font-size: 1.35rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    color: var(--brand-green-dark);
    line-height: 1.15;
    text-transform: uppercase;
}

.brand-name-title span {
    color: inherit;
}

.brand-name-sub {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-primary) !important;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--grad-green);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.nav-link.active {
    color: var(--brand-green) !important;
}

/* Header CTA Button */
.btn-nav-estimate {
    background: var(--grad-green);
    color: var(--white) !important;
    font-weight: 600;
    padding: 8px 20px !important;
    border-radius: 50px;
    box-shadow: var(--shadow-green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-nav-estimate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 158, 4, 0.45);
    background: linear-gradient(135deg, #72c408 0%, #5a9e04 100%);
}

.btn-nav-call {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #72c408 0%, #4a8203 100%);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-green);
    transition: var(--transition);
    text-decoration: none;
}

.btn-nav-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 158, 4, 0.45);
    background: linear-gradient(135deg, #84e00a 0%, #5a9e04 100%);
    color: #ffffff;
}

/* ===================================================================
   Buttons & Badges
   =================================================================== */
.btn-primary {
    background: var(--grad-green);
    border: none;
    color: var(--white);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--shadow-green);
    transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #72c408 0%, #3b6b02 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(90, 158, 4, 0.4);
    color: var(--white);
}

.btn-gold {
    background: var(--grad-gold);
    border: none;
    color: var(--white);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d8b45c 0%, #745b24 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(158, 126, 56, 0.4);
    color: var(--white);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--brand-gold-light);
    color: var(--brand-gold);
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--grad-gold);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.badge-brand {
    background-color: var(--brand-green-subtle);
    color: var(--brand-green-dark);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(90, 158, 4, 0.2);
}

.badge-gold {
    background-color: var(--brand-gold-subtle);
    color: var(--brand-gold-dark);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-gold);
}

.badge-iso {
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%) !important;
    color: #0b1a0f !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
    display: inline-flex;
    align-items: center;
    text-shadow: none !important;
    white-space: nowrap;
}

.badge-iso i {
    color: #0b1a0f !important;
    margin-right: 5px;
    font-size: 0.9rem;
}

.hero-iso-pill {
    background: rgba(212, 175, 55, 0.22);
    border: 1.5px solid #d4af37;
    color: #fce18d;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.hero-iso-pill i {
    color: #fce18d;
    margin-right: 5px;
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--grad-hero), url('/images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-trust-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 163, 75, 0.4);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-gold-light);
    margin-bottom: 24px;
}

.hero-trust-tag i {
    color: var(--brand-green-light);
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-title .highlight-green {
    color: var(--brand-green-light);
    text-shadow: 0 0 25px rgba(114, 196, 8, 0.4);
}

.hero-title .highlight-gold {
    color: var(--brand-gold-light);
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin-bottom: 32px;
}

.hero-card-display {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(200, 163, 75, 0.3);
}

.hero-card-display img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-card-display:hover img {
    transform: scale(1.05);
}

/* Hero Floating Badge */
.hero-floating-seal {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--dark-secondary);
    border: 2px solid var(--brand-gold);
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 5;
    animation: floatSeal 4s ease-in-out infinite;
}

.hero-floating-seal img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.hero-seal-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-gold-light);
    line-height: 1;
}

.hero-seal-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ===================================================================
   Quick Stats Ribbon
   =================================================================== */
.stats-ribbon {
    background: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 30px 20px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    position: relative;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-green-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number span {
    color: var(--brand-gold);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================================================
   Section Headers
   =================================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: var(--brand-green);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 800;
    color: var(--dark-primary);
    position: relative;
    margin-bottom: 16px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--grad-green);
    margin: 12px auto 0;
    border-radius: 4px;
}

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

/* ===================================================================
   Construction Cost Estimator Card
   =================================================================== */
.calculator-section {
    background: linear-gradient(135deg, #152213 0%, #0d140b 100%);
    color: var(--white);
    padding: 90px 0;
    position: relative;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 163, 75, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-display-box {
    background: linear-gradient(135deg, rgba(90, 158, 4, 0.15) 0%, rgba(158, 126, 56, 0.15) 100%);
    border: 1px solid rgba(90, 158, 4, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.calc-total-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-gold-light);
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(200, 163, 75, 0.4);
}

.calc-breakdown-bar {
    height: 10px;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
    margin: 20px 0;
}

.calc-bar-struct { background-color: var(--brand-green); width: 45%; }
.calc-bar-finish { background-color: var(--brand-gold); width: 25%; }
.calc-bar-services { background-color: #2980b9; width: 20%; }
.calc-bar-design { background-color: #8e44ad; width: 10%; }

/* ===================================================================
   Service Cards & Modals
   =================================================================== */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-green);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-green);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--brand-green-subtle);
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
    background: var(--grad-green);
    color: var(--white);
    transform: rotate(5deg) scale(1.05);
}

/* ===================================================================
   Project Cards
   =================================================================== */
.project-filter-btn {
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    margin: 5px;
    transition: var(--transition);
}

.project-filter-btn:hover,
.project-filter-btn.active {
    background: var(--grad-green);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-badge-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(18, 24, 17, 0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-gold);
}

/* ===================================================================
   Team Members
   =================================================================== */
.team-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.team-img-wrap {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrap img {
    transform: scale(1.06);
}

/* ===================================================================
   Floating WhatsApp Button
   =================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    color: #ffffff;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}


/* ===================================================================
   Footer
   =================================================================== */
.footer {
    background-color: var(--dark-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 30px;
    border-top: 3px solid var(--brand-green);
    position: relative;
}

.footer-brand-title {
    font-family: var(--font-brand);
    font-style: italic;
    color: var(--white);
    font-size: 1.55rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-gold-light);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--brand-green-light);
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 25px;
    font-size: 0.88rem;
}

/* ===================================================================
   AUTOMATIC RESPONSIVE MOBILE VIEW (Smart Mobile Adaptation)
   Desktop View (>= 992px) Remains 100% Unchanged & Preserved
   =================================================================== */

/* Hide mobile bottom action dock on desktop/system by default */
.mobile-bottom-bar {
    display: none !important;
}

/* TABLETS & MOBILES (Screens <= 991.98px) */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 64px; /* Space for mobile bottom action dock */
    }

    /* Mobile Brand / Navbar */
    .navbar {
        padding: 8px 0;
    }
    .brand-wrapper {
        gap: 10px;
    }
    .brand-emblem-container {
        width: 42px;
        height: 42px;
    }
    .brand-emblem-img {
        width: 38px;
        height: 38px;
    }
    .brand-name-title {
        font-size: 1.15rem;
        line-height: 1.15;
    }
    .brand-name-sub {
        font-size: 0.64rem;
        letter-spacing: 1.5px;
    }

    /* Modern Mobile Hamburger Toggler */
    .navbar-toggler {
        border: 1px solid rgba(90, 158, 4, 0.35) !important;
        background: rgba(90, 158, 4, 0.08) !important;
        border-radius: 10px !important;
        padding: 6px 10px !important;
        transition: var(--transition);
    }
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(90, 158, 4, 0.25) !important;
    }
    .navbar-toggler i {
        color: var(--brand-green-dark) !important;
        font-size: 1.25rem;
    }

    /* Floating Sleek Dark Drawer for Mobile Navigation */
    .navbar-collapse {
        background: #141c13;
        border: 1px solid rgba(158, 126, 56, 0.3);
        border-radius: 16px;
        padding: 16px 18px;
        margin-top: 12px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    }
    .navbar-nav .nav-link {
        color: #f0f3ee !important;
        padding: 12px 14px !important;
        border-radius: 10px;
        font-size: 0.98rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: var(--transition);
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(90, 158, 4, 0.2);
        color: #fce18d !important;
    }
    .navbar-nav .nav-link::after {
        display: none !important;
    }
    .btn-nav-estimate {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        padding: 12px 20px !important;
        font-size: 0.95rem;
    }

    /* Mobile Sticky Bottom Action Dock (Native App Feel) */
    .mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(18, 24, 17, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(158, 126, 56, 0.35);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
        z-index: 1040;
        align-items: center;
        justify-content: space-around;
        padding: 0 4px;
    }
    .mobile-bottom-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.72);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 500;
        padding: 4px 6px;
        border-radius: 8px;
        flex: 1;
        transition: var(--transition);
        text-align: center;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-bottom-btn i {
        font-size: 1.15rem;
        margin-bottom: 2px;
        color: #c8a34b;
    }
    .mobile-bottom-btn.btn-call i {
        color: #72c408;
    }
    .mobile-bottom-btn.btn-whatsapp i {
        color: #25d366;
    }
    .mobile-bottom-btn:hover,
    .mobile-bottom-btn:active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    /* Lift WhatsApp Float Button so it doesn't overlap bottom bar */
    .whatsapp-float {
        bottom: 74px !important;
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    /* Hero Section Mobile Adaptation */
    .hero-section {
        padding: 95px 0 40px;
        text-align: center;
    }
    .hero-trust-tag {
        justify-content: center;
        margin-bottom: 14px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.3rem);
        line-height: 1.25;
        margin-bottom: 14px;
    }
    .hero-lead {
        font-size: 0.94rem;
        line-height: 1.6;
        margin: 0 auto 24px;
        max-width: 95%;
    }
    .hero-section .d-flex.flex-wrap.gap-3 {
        justify-content: center;
    }
    .hero-card-display {
        margin-top: 32px;
    }
    .hero-floating-seal {
        position: relative;
        left: 0;
        transform: none;
        bottom: 0;
        margin: 16px auto 0;
        width: 100%;
        max-width: 310px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }

    /* Stats Ribbon */
    .stats-ribbon {
        margin-top: 24px;
        margin-bottom: 24px;
    }
    .stat-box {
        padding: 16px 10px;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid rgba(90, 158, 4, 0.12);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    .stat-box:not(:last-child)::after {
        display: none;
    }
    .stat-number {
        font-size: 1.85rem;
    }
    .stat-label {
        font-size: 0.76rem;
    }

    /* Calculator Mobile */
    .calculator-card {
        padding: 22px 16px;
        border-radius: 16px;
    }
    .calculator-card .form-control,
    .calculator-card .form-select,
    .form-control,
    .form-select {
        font-size: 16px !important; /* iOS zoom prevention */
    }
    .calc-total-amount {
        font-size: 1.95rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 28px;
    }
    .section-title {
        font-size: 1.7rem;
        line-height: 1.3;
    }
    .section-subtitle {
        font-size: 0.92rem;
    }

    /* Project Filters on Mobile */
    .project-filter-btn {
        padding: 7px 16px;
        font-size: 0.85rem;
        margin: 3px;
    }

    /* Sub-page Header Banners */
    .page-header-banner,
    .page-banner {
        padding: 85px 0 35px !important;
        text-align: center;
    }
    .page-banner-title {
        font-size: 1.85rem !important;
    }

    /* Footer Mobile */
    .footer {
        padding-top: 45px;
        padding-bottom: 25px;
    }
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        text-align: center;
        flex-direction: column;
        gap: 12px;
    }
}

/* SMARTPHONES (Screens <= 575.98px) */
@media (max-width: 575.98px) {
    /* Brand on small phones */
    .brand-emblem-container {
        width: 38px;
        height: 38px;
    }
    .brand-emblem-img {
        width: 34px;
        height: 34px;
    }
    .brand-name-title {
        font-size: 1.05rem;
    }
    .brand-name-sub {
        font-size: 0.6rem;
    }

    /* Hero Buttons stacked full-width for effortless thumb tapping */
    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
    }
    .hero-section .d-flex.flex-wrap.gap-3 .btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Horizontal scroll for Project filter buttons */
    .project-filter-btn-group,
    div:has(> .project-filter-btn) {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 4px 10px;
        gap: 8px;
        justify-content: flex-start;
    }
    div:has(> .project-filter-btn)::-webkit-scrollbar {
        display: none;
    }
    .project-filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Contact forms full-width buttons */
    .btn-primary.w-100,
    .btn-submit {
        padding: 14px 20px;
        font-size: 1rem;
    }

    /* Service card padding */
    .service-card {
        padding: 24px 18px;
    }

    /* Modals fit phone screen smoothly */
    .modal-dialog {
        margin: 12px;
    }
}

/* Calculator Consultation Form Styling */
#calcEstimateForm .form-control::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.9rem;
}
#calcEstimateForm .form-control {
    background-color: rgba(20, 35, 24, 0.9) !important;
    border-color: rgba(197, 155, 39, 0.4) !important;
    color: #ffffff !important;
}
#calcEstimateForm .form-control:focus {
    background-color: rgba(25, 45, 30, 0.95) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(197, 155, 39, 0.25) !important;
    color: #ffffff !important;
}
#calcEstimateForm .input-group-text {
    background-color: rgba(15, 25, 18, 0.95) !important;
    border-color: rgba(197, 155, 39, 0.4) !important;
}


/* In-Website Success Modal Styling (Zero Browser Alert Popups) */
.custom-success-modal-content {
    background: linear-gradient(145deg, #0e2213 0%, #15321c 50%, #0a1b0e 100%) !important;
    border: 2px solid rgba(200, 163, 75, 0.45) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(20px);
}
.modal-gold-bar {
    height: 5px;
    background: linear-gradient(90deg, #c8a34b, #ffd700, #5a9e04, #c8a34b);
}
.success-checkmark-circle {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, #5a9e04 0%, #3b6b02 100%);
    border: 3px solid #72c408;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #ffffff;
    margin: 0 auto 16px auto;
    box-shadow: 0 0 35px rgba(114, 196, 8, 0.5);
    animation: popCheckmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popCheckmark {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* Floating Website Toast Notification */
.website-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1055;
    width: 90%;
    max-width: 460px;
    pointer-events: none;
}
.website-toast {
    background: linear-gradient(135deg, #102816 0%, #0a1b0e 100%);
    border: 2px solid #5a9e04;
    border-radius: 16px;
    padding: 14px 18px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideDown 0.35s ease;
    transition: all 0.35s ease;
}
@keyframes toastSlideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
