/* ===========================
   Custom Styles for Anuda Construction
   =========================== */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #64748b;
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark #navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #E31E24;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image Overlay Effect */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

.image-overlay img {
    transition: transform 0.5s ease;
}

.image-overlay:hover img {
    transform: scale(1.1);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #E31E24, #B81519);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Form Styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #E31E24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E31E24;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E31E24;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1e293b;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #E31E24, #B81519);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Material Icons Styling */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Accessibility */
.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 #E31E24;
    outline-offset: 2px;
}

/* VR Viewer Hotspot */
.vr-hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(227, 30, 36, 0.8);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.vr-hotspot:hover {
    transform: scale(1.2);
    background: rgba(227, 30, 36, 1);
}

/* Calculator Result Card */
.result-card {
    background: linear-gradient(135deg, #E31E24 0%, #B81519 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 20px 40px rgba(227, 30, 36, 0.3);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E31E24;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E31E24;
    border: 3px solid white;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
}

.badge-primary {
    background: #E31E24;
    color: white;
}

.badge-secondary {
    background: #64748b;
    color: white;
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.custom-checkbox:checked {
    background: #E31E24;
    border-color: #E31E24;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

/* ===========================
   Responsive Defaults
   =========================== */
:root {
    --container-max: 1200px;
    --container-pad: clamp(1rem, 3vw, 2.5rem);
    --section-gap: clamp(2rem, 4vw, 4rem);
}

body {
    overflow-x: hidden;
}

.layout-container,
.layout-content-container {
    width: min(var(--container-max), 100% - (var(--container-pad) * 2));
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

main > section,
.section-block {
    padding-block: var(--section-gap);
}

/* Generic layout helpers */
.two-col,
.feature-grid,
.content-grid {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.btn-row,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-row > *,
.inline-actions > * {
    flex: 1 1 180px;
    min-width: 140px;
}

.hero-wrap {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe,
embed {
    width: 100%;
    max-width: 100%;
    border: 0;
    aspect-ratio: 16 / 9;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 1024px) {
    .stack-lg {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .grid-balanced {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }

    .layout-container,
    .layout-content-container {
        width: min(var(--container-max), 100% - (1.5rem * 2));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.875rem, 5vw, 2.25rem);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        line-height: 1.25;
    }

    h3 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
        line-height: 1.3;
    }

    .hero-actions,
    .cta-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-actions a,
    .cta-row a,
    .hero-actions button,
    .cta-row button {
        width: 100%;
        justify-content: center;
    }
}

/* Franchise landing page styles */
.hero-surface {
    background: linear-gradient(180deg, #0f1419 0%, #1a0a14 35%, #8b1129 85%, #c8102e 100%);
    position: relative;
    isolation: isolate;
}

.accent-blob {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 9999px;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.feature-card {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(17, 17, 17, 0.12);
}

.metric-card {
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(17, 17, 17, 0.06);
}

.metric-value {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.metric-label {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 700;
}

.metric-subtext {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.section-shell {
    width: min(1320px, 100%);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.section-heading h2 {
    letter-spacing: -0.02em;
}

.section-heading p {
    color: #4b5563;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eyebrow.dark {
    background: #f1f5f9;
    border-color: #e5e7eb;
    color: #0f172a;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.1);
    color: #991b1b;
    font-weight: 700;
}

.process-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.faq-card {
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.06);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.35), transparent);
    margin: 0 auto;
}

.cta-ghost {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    transition: all 0.25s ease;
}

.cta-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Franchise hero refinements */
.hero-banner {
    padding-block: clamp(3rem, 7vw, 6.5rem);
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 860px;
    margin-inline: auto;
}

.hero-cta-row {
    gap: 0.85rem;
    justify-content: center;
}

.hero-cta-row a {
    min-width: 210px;
}

.hero-pill-row {
    gap: 0.75rem;
}


