/* ==========================================================================
   Metro Gold Custom Premium Design System & Stylesheet - Maroon Redesign
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Core Settings
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --maroon: #7A1020;
    /* Primary brand color - Deep Maroon */
    --maroon-dark: #580B16;
    /* Dark Maroon for hover states */
    --maroon-light: #9B1F34;
    /* Light Maroon for overlays */
    --gold: #D4AF37;
    /* Rich Gold accent color */
    --gold-hover: #F3E5AB;
    /* Light Gold for hover states */
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-dim: rgba(212, 175, 55, 0.15);

    /* Layout Backgrounds & Texts */
    --bg-main: #FAF8F3;
    /* Warm White background */
    --bg-card: #FFFFFF;
    /* Pure White for cards and segments */
    --text-main: #222222;
    /* Charcoal main text */
    --text-muted: #666666;
    /* Muted Charcoal for secondary subtitles */
    --text-light: #FFFFFF;
    /* White text inside Maroon areas */
    --text-light-muted: rgba(250, 248, 243, 0.75);

    /* Layout Details */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 24px;

    /* Typography */
    --font-headings: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Animations & Transitions */
    --transition-speed: 0.4s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all var(--transition-speed) var(--transition-curve);

    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(122, 16, 32, 0.05);
    --shadow-hover: 0 15px 40px rgba(122, 16, 32, 0.1);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
}

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

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    color: var(--text-main);
    font-weight: 600;
}

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

ul {
    list-style: none;
}

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

/* --------------------------------------------------------------------------
   2. Typography & Globals
   -------------------------------------------------------------------------- */
.gold-text {
    color: var(--gold);
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #AA7C11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.w-100 {
    width: 100%;
}

.font-bold {
    font-weight: 700;
}

.section-padding {
    padding: 100px 20px;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--maroon);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto 30px;
}

.gold-divider.left-align {
    margin-left: 0;
}

/* --------------------------------------------------------------------------
   3. Navigation Bar (Maroon transparent scroll states)
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* Scrolled state for Header - turns solid deep maroon with blur */
.navbar.scrolled {
    background: rgba(122, 16, 32, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link,
.footer-logo-link {
    display: inline-block;
    transition: var(--transition-smooth);
}

.nav-logo-link:hover,
.footer-logo-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 5px;
}

/* Screen reader only utility to keep DOM text scripts working without errors */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    /* Always white on header background state */
    padding: 8px 0;
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

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

.nav-socials {
    display: flex;
    gap: 15px;
}

.header-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.header-social-icon svg {
    width: 18px;
    height: 18px;
}

.header-social-icon:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   4. Buttons (Accented Rich Gold)
   -------------------------------------------------------------------------- */
.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
    color: var(--maroon-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
    color: var(--maroon-dark);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 13px 27px;
    border-radius: var(--border-radius);
    border: 1.5px solid var(--gold);
    cursor: pointer;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--maroon-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

/* Shimmer Button Animation */
.shimmer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.shimmer-btn:hover::before {
    left: 150%;
}

/* --------------------------------------------------------------------------
   5. Hero Section (Deep Maroon Background)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--maroon);
    padding-top: var(--header-height);
    overflow: hidden;
    color: var(--text-light);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 50%, rgba(212, 175, 55, 0.15) 0%, rgba(122, 16, 32, 0) 75%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--gold);
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light-muted);
    margin-bottom: 40px;
    max-width: 540px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-portrait-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Portrait Framing with Luxury Accent */
.md-frame-container {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.md-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(122, 16, 32, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(10px);
}

.md-frame-border {
    padding: 12px;
    background: linear-gradient(135deg, #D4AF37 0%, rgba(122, 16, 32, 0.8) 50%, #AA7C11 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-gold);
}

.md-frame-inner {
    border-radius: calc(var(--border-radius-lg) - 8px);
    overflow: hidden;
    background-color: var(--maroon-dark);
    aspect-ratio: 4 / 5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-curve);
}

.md-frame-container:hover .md-image {
    transform: scale(1.05);
}

/* Uploader Image Placeholder Styles */
.md-upload-placeholder {
    width: 100%;
    height: 100%;
    padding: 30px;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: calc(var(--border-radius-lg) - 12px);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    opacity: 0.8;
    color: var(--gold);
    transition: var(--transition-smooth);
}

.placeholder-text-main {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 400;
}

.placeholder-text-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 4px;
    margin-top: 10px;
    transition: var(--transition-smooth);
}

.md-upload-placeholder:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-hover);
}

.md-upload-placeholder:hover .placeholder-icon {
    transform: translateY(-3px);
}

.md-upload-placeholder:hover .placeholder-text-sub {
    background: var(--gold);
    color: var(--maroon-dark);
}

.md-info-card {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--maroon-dark);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    padding: 12px 35px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.md-name {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-light);
}

.md-title {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

/* --------------------------------------------------------------------------
   6. Branches Section (Warm White Layout with White Cards)
   -------------------------------------------------------------------------- */
.branches-section {
    background-color: var(--bg-main);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.branch-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid rgba(122, 16, 32, 0.06);
    box-shadow: var(--shadow-soft);
}

.branch-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-hover);
}

.branch-image-placeholder {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 0.85;
}

.branch-card:hover .branch-img {
    transform: scale(1.08);
    opacity: 0.95;
}

.branch-fallback-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--maroon);
    opacity: 0.4;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.branch-fallback-placeholder svg {
    width: 32px;
    height: 32px;
}

.branch-location-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--maroon);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.branch-details {
    padding: 30px;
}

.branch-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.branch-address {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 300;
    min-height: 45px;
}

.branch-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(122, 16, 32, 0.08);
    padding-top: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: var(--maroon);
}

.branch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.branch-btn {
    padding: 12px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.branch-btn.btn-outline-gold {
    color: var(--maroon);
    border-color: var(--maroon);
}

.branch-btn.btn-outline-gold:hover {
    background-color: var(--maroon);
    color: var(--text-light);
    border-color: var(--maroon);
}

/* --------------------------------------------------------------------------
   7. Live Gold Rate Section (Pulse dot animation changed to Gold glow)
   -------------------------------------------------------------------------- */
.gold-rate-section {
    background-color: var(--bg-main);
    position: relative;
    border-top: 1px solid rgba(122, 16, 32, 0.05);
}

.rate-status {
    display: inline-flex;
    align-items: center;
    background: rgba(122, 16, 32, 0.04);
    border: 1px solid rgba(122, 16, 32, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    margin-top: 15px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    /* Swapped from green to match logo scheme */
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    animation: pulse 1.6s infinite;
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
}

.gold-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Skeleton Loading Cards */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid rgba(122, 16, 32, 0.06);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: loading-shimmer 1.5s infinite;
}

.skeleton-line {
    background: rgba(122, 16, 32, 0.05);
    border-radius: 4px;
}

.skeleton-line.title {
    width: 60%;
    height: 16px;
}

.skeleton-line.price {
    width: 80%;
    height: 36px;
    margin-top: 10px;
}

@keyframes loading-shimmer {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* API Error state layout */
.rate-error-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1.5px dashed rgba(122, 16, 32, 0.15);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.error-icon {
    width: 48px;
    height: 48px;
    color: var(--maroon);
}

.error-message {
    font-size: 1.25rem;
    font-family: var(--font-headings);
    color: var(--text-main);
    font-weight: 500;
}

/* White Solid Cards with Soft Shadows */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(122, 16, 32, 0.06);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-hover);
}

.rate-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
}

.rate-card.gold-border {
    border-color: var(--gold);
    background: var(--bg-card);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(122, 16, 32, 0.02) 0%, transparent 60%);
    pointer-events: none;
    transition: transform 0.5s ease;
}

.card-glow.primary {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 65%);
}

.glass-card:hover .card-glow {
    transform: translate(10%, 10%);
}

.rate-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.gold-karat {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.gold-karat.highlight {
    color: var(--maroon);
    font-weight: 600;
}

.gold-weight {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: var(--text-main);
}

.rate-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-headings);
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   8. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
    background-color: var(--bg-main);
    border-top: 1px solid rgba(122, 16, 32, 0.05);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid rgba(122, 16, 32, 0.06);
    box-shadow: var(--shadow-soft);
}

.stars {
    display: flex;
    gap: 5px;
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 300;
    font-style: italic;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A1020 0%, #D4AF37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.reviewer-meta h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.reviewer-status {
    font-size: 0.75rem;
    color: var(--maroon);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
    background-color: var(--bg-main);
    border-top: 1px solid rgba(122, 16, 32, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-card {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid rgba(122, 16, 32, 0.06);
    box-shadow: var(--shadow-soft);
}

.contact-detail-card h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    border-bottom: 1.5px solid rgba(122, 16, 32, 0.08);
    padding-bottom: 15px;
    color: var(--text-main);
}

.detail-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(122, 16, 32, 0.06);
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 18px;
    height: 18px;
}

.detail-text p {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 300;
}

/* Dynamic Social Redirect Buttons inside Contact Section */
.contact-social-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #20ba59;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
}

.btn-instagram-social {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.2);
}

.btn-instagram-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
    color: var(--white);
}

.instagram-icon {
    width: 18px;
    height: 18px;
}

/* Map frame layout replacement for forms */
.map-frame-container {
    padding: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid rgba(122, 16, 32, 0.06);
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius);
}

.map-frame-container iframe {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    min-height: 340px;
}

/* --------------------------------------------------------------------------
   10. Footer (Deep Maroon Background)
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--maroon);
    border-top: 1.5px solid rgba(212, 175, 55, 0.25);
    padding-top: 80px;
    color: var(--text-light);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-light);
}

.footer-tagline {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-muted);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 500;
    color: var(--text-light);
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
    background: var(--gold);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-text {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 20px;
}

.footer-bottom-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light-muted);
    font-size: 0.8rem;
    font-weight: 300;
}

.footer-legal {
    display: flex;
    gap: 15px;
}

.footer-legal a:hover {
    color: var(--gold);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   11. Transitions & Dynamic Scrolling Animations
   -------------------------------------------------------------------------- */
/* Fade in UP */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--transition-curve) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Scroll reveal items */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s var(--transition-curve);
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* --------------------------------------------------------------------------
   12. Responsive Adaptations (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .gold-rate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .navbar {
        background: rgba(122, 16, 32, 0.98);
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }

    /* Toggle Mobile Navigation Menu */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--maroon-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateY(-120%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    /* Mobile Menu Toggle Animation */
    .mobile-menu-btn.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-socials {
        display: none;
        /* Hide header social icons in small devices to fit logo */
    }

    .gold-rate-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .branches-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-links {
        align-items: center;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .branch-actions {
        grid-template-columns: 1fr;
    }

    .contact-detail-card {
        padding: 25px 20px;
    }

    .contact-social-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-social-buttons a {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Floating Social Action Button (FAB)
   -------------------------------------------------------------------------- */
.floating-social-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Main floating button */
.fab-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4), var(--shadow-soft);
    position: relative;
    z-index: 1002;
    transition: var(--transition-smooth);
    outline: none;
}

/* Gold glow effect around main button */
.fab-main-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0.4;
    animation: fab-glow-pulse 2s infinite;
    pointer-events: none;
}

.fab-main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6), var(--shadow-soft);
}

.fab-trigger-icon {
    width: 24px;
    height: 24px;
    color: var(--white);
    transition: transform 0.3s ease;
}

/* Rotate icon when menu is open */
.floating-social-container.active .fab-trigger-icon {
    transform: rotate(135deg);
}

/* Floating child menu container */
.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s;
    z-index: 1001;
}

/* Expand menu state */
.floating-social-container.active .fab-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Child action buttons */
.fab-child-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    color: var(--white);
}

.fab-child-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fab-icon {
    width: 22px;
    height: 22px;
}

.fab-whatsapp {
    background-color: #25D366;
}

.fab-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@keyframes fab-glow-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.12);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0.4;
    }
}