/* ==========================================================================
   GoldMoney — Təminatlı Maliyyə Xidməti
   Islamic Finance & Ethical Banking Inspired Premium Design System
   ========================================================================== */

:root {
    /* Islamic Finance & Ethical Banking Color Palette */
    --islamic-green-950: #042E23;
    --islamic-green-900: #075B46; /* Deep Islamic Green */
    --islamic-green-800: #0A6D54;
    --emerald-600:       #118568; /* Emerald Green */
    --emerald-500:       #179C7B;
    --emerald-400:       #2BB894;
    --emerald-100:       #E6F5F0;
    --emerald-50:        #F2FAF7;
    
    --royal-navy-950:    #0A162B;
    --royal-navy-900:    #102242;
    --royal-navy-800:    #142D52; /* Royal Navy Blue */
    --royal-navy-700:    #1E3D6B;
    
    --sky-blue-500:      #78B3CE;
    --sky-blue-200:      #CBE4F0;
    --sky-blue-100:      #EAF4F8; /* Soft Sky Blue */
    --sky-blue-50:       #F3F9FC;
    
    --gold-300:          #F3E5C8;
    --gold-400:          #DCBF85;
    --gold-500:          #C6A66B; /* Champagne Gold */
    --gold-600:          #A88647;
    --gold-700:          #88672E;
    
    --ivory-50:          #FDFBF7;
    --ivory-100:         #FAF8F3; /* Warm Ivory */
    --ivory-200:         #F3EFE6;
    
    --slate-300:         #CBD5E1;
    --slate-400:         #94A3B8;
    --slate-500:         #64748B;
    --slate-600:         #475569;
    --slate-700:         #334155;
    
    --white:             #FFFFFF;
    --black:             #03090F;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Subtle Islamic Geometric Pattern Data URI */
    --pattern-islamic: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L49 19L70 10L61 31L80 40L61 49L70 70L49 61L40 80L31 61L10 70L19 49L0 40L19 31L10 10L31 19Z' fill='none' stroke='%23C6A66B' stroke-width='0.75' stroke-opacity='0.08'/%3E%3Ccircle cx='40' cy='40' r='14' fill='none' stroke='%23C6A66B' stroke-width='0.5' stroke-opacity='0.05'/%3E%3C/svg%3E");
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(7, 91, 70, 0.06);
    --shadow-md: 0 8px 24px rgba(7, 91, 70, 0.08);
    --shadow-lg: 0 16px 40px rgba(20, 45, 82, 0.12);
    --shadow-emerald: 0 8px 26px rgba(17, 133, 104, 0.28);
    --shadow-emerald-hover: 0 12px 34px rgba(17, 133, 104, 0.42);
    --shadow-gold: 0 8px 24px rgba(198, 166, 107, 0.24);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--slate-700);
    background-color: var(--ivory-100);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

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

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--royal-navy-900);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--emerald-600);
    margin-bottom: 16px;
}

.eyebrow-dark {
    color: var(--gold-400);
}

.eyebrow::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--royal-navy-900);
}

.section-title-white {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--slate-500);
    max-width: 620px;
    margin-bottom: 48px;
}

.section-subtitle-white {
    color: var(--slate-300);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 36px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-smooth);
    text-align: center;
    white-space: nowrap;
}

/* Primary CTA: Emerald Green Gradient with Subtle Gold Accent */
.btn-primary {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--islamic-green-900) 100%);
    color: var(--white);
    font-weight: 700;
    border: 1px solid rgba(198, 166, 107, 0.45);
    box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    box-shadow: var(--shadow-emerald-hover);
    transform: translateY(-2px);
    color: var(--white);
    border-color: var(--gold-400);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--royal-navy-800);
    border: 1.5px solid rgba(20, 45, 82, 0.22);
}

.btn-secondary:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-600);
    background: rgba(17, 133, 104, 0.06);
}

.btn-secondary-white {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1.5px solid rgba(198, 166, 107, 0.4);
    backdrop-filter: blur(6px);
}

.btn-secondary-white:hover {
    border-color: var(--gold-300);
    color: var(--gold-300);
    background: rgba(198, 166, 107, 0.14);
}

.btn-portal {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ivory-100);
    border: 1px solid rgba(198, 166, 107, 0.3);
    font-size: 0.875rem;
    padding: 10px 18px;
}

.btn-portal:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--gold-300);
    border-color: var(--gold-400);
}

.btn-full {
    width: 100%;
}

/* Header & Sticky Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(4, 46, 35, 0.96) 0%, rgba(7, 91, 70, 0.96) 50%, rgba(20, 45, 82, 0.96) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(198, 166, 107, 0.3);
    transition: all var(--transition-fast);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Brand Wordmark */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-monogram {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--islamic-green-900) 50%, var(--royal-navy-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(198, 166, 107, 0.5);
    box-shadow: 0 4px 14px rgba(7, 91, 70, 0.35);
    position: relative;
    overflow: hidden;
}

.brand-monogram svg {
    width: 24px;
    height: 24px;
    color: var(--gold-400);
}

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

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    display: flex;
    align-items: center;
    line-height: 1.1;
}

.brand-name span {
    color: var(--gold-400);
}

.brand-desc {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-300);
    opacity: 0.9;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    padding: 6px 0;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
}

/* Hero Section: Emerald Green to Royal Navy Gradient with Islamic Geometry */
.hero-section {
    background-color: var(--islamic-green-950);
    background-image: 
        radial-gradient(circle at 85% 20%, rgba(198, 166, 107, 0.18) 0%, transparent 55%),
        var(--pattern-islamic),
        linear-gradient(135deg, var(--islamic-green-950) 0%, var(--islamic-green-900) 40%, var(--royal-navy-800) 100%);
    background-repeat: no-repeat, repeat, no-repeat;
    background-size: auto, 80px 80px, cover;
    color: var(--white);
    padding-top: 76px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(198, 166, 107, 0.25);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 60%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-trust-list {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(198, 166, 107, 0.22);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hero-trust-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(17, 133, 104, 0.35);
    border: 1px solid rgba(198, 166, 107, 0.5);
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Media Column */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(4, 46, 35, 0.45);
    border: 1.5px solid rgba(198, 166, 107, 0.45);
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.04);
}

/* Floating Trust Badge */
.hero-floating-card {
    position: absolute;
    bottom: -24px;
    left: -28px;
    background: rgba(7, 91, 70, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(198, 166, 107, 0.45);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    max-width: 320px;
}

.hero-floating-icon {
    width: 44px;
    height: 44px;
    background: rgba(198, 166, 107, 0.2);
    border: 1px solid rgba(198, 166, 107, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-300);
    flex-shrink: 0;
}

.hero-floating-text h4 {
    font-size: 0.9375rem;
    color: var(--white);
    margin-bottom: 2px;
}

.hero-floating-text p {
    font-size: 0.775rem;
    color: var(--slate-300);
    line-height: 1.4;
}

/* Benefits Section: Soft Sky Blue Background */
.benefits-section {
    background-color: var(--sky-blue-50);
    background-image: var(--pattern-islamic);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.benefit-card {
    background: var(--white);
    border: 1px solid rgba(20, 45, 82, 0.08);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--transition-fast);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(17, 133, 104, 0.4);
}

.benefit-card:hover::before {
    background: linear-gradient(90deg, var(--emerald-600), var(--gold-500));
}

.benefit-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(17, 133, 104, 0.12) 0%, rgba(20, 45, 82, 0.08) 100%);
    border: 1px solid rgba(17, 133, 104, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 22px;
}

.benefit-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--royal-navy-900);
}

.benefit-text {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
}

/* How it Works: Pure White with Soft Emerald Accents */
.steps-section {
    background-color: var(--white);
    border-top: 1px solid rgba(7, 91, 70, 0.08);
    border-bottom: 1px solid rgba(7, 91, 70, 0.08);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius-md);
    background: var(--ivory-50);
    border: 1px solid rgba(7, 91, 70, 0.1);
    transition: all var(--transition-smooth);
}

.step-card:hover {
    background: var(--white);
    border-color: var(--emerald-600);
    box-shadow: 0 10px 28px rgba(7, 91, 70, 0.1);
    transform: translateY(-3px);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--royal-navy-900);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.6;
}

/* Interactive Calculator Section */
.calculator-section {
    background-color: var(--sky-blue-50);
    background-image: 
        var(--pattern-islamic),
        linear-gradient(180deg, var(--sky-blue-100) 0%, var(--ivory-100) 100%);
    background-repeat: repeat, no-repeat;
    background-size: 80px 80px, cover;
}

.calc-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.calc-info-box {
    background: var(--white);
    border: 1px solid rgba(17, 133, 104, 0.15);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.calc-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.calc-info-item:last-child {
    margin-bottom: 0;
}

.calc-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(17, 133, 104, 0.1);
    border: 1px solid rgba(17, 133, 104, 0.25);
    color: var(--emerald-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calc-info-text h4 {
    font-size: 1.05rem;
    color: var(--royal-navy-900);
    margin-bottom: 4px;
}

.calc-info-text p {
    font-size: 0.875rem;
    color: var(--slate-600);
}

/* Calculator Card: Royal Navy to Deep Islamic Green */
.calc-card {
    background: linear-gradient(145deg, var(--royal-navy-900) 0%, var(--islamic-green-950) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(4, 46, 35, 0.3);
    border: 1.5px solid rgba(198, 166, 107, 0.35);
    position: relative;
    overflow: hidden;
}

.calc-card::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(198, 166, 107, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.calc-field-group {
    margin-bottom: 28px;
}

.calc-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
}

/* Purity Pills */
.purity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.purity-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    text-align: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.purity-btn:hover {
    border-color: var(--emerald-400);
    background: rgba(17, 133, 104, 0.2);
}

.purity-btn.active {
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--islamic-green-900) 100%);
    color: var(--white);
    border-color: var(--gold-400);
    box-shadow: 0 4px 14px rgba(17, 133, 104, 0.4);
}

/* Weight Slider & Input */
.calc-weight-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.calc-weight-input-wrap {
    position: relative;
    width: 140px;
    flex-shrink: 0;
}

.calc-number-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 12px 34px 12px 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.calc-number-input:focus {
    border-color: var(--emerald-400);
}

.calc-weight-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-300);
}

/* Custom Range Slider */
.calc-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-400);
    border: 2px solid var(--white);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-400);
    border: 2px solid var(--white);
    cursor: pointer;
}

/* Result Box */
.calc-result-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(198, 166, 107, 0.35);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 32px;
    margin-bottom: 24px;
}

.calc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calc-result-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-300);
    font-weight: 700;
}

.calc-result-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(17, 133, 104, 0.3);
    color: var(--emerald-400);
    border: 1px solid rgba(17, 133, 104, 0.4);
}

.calc-result-amount {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.calc-result-amount .currency {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-400);
}

.calc-result-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8125rem;
    color: var(--slate-300);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-disclaimer {
    font-size: 0.775rem;
    color: var(--slate-300);
    line-height: 1.45;
    margin-top: 16px;
    text-align: center;
}

/* Editorial Gold Feature Section: Deep Islamic Green to Royal Blue */
.editorial-section {
    background-color: var(--islamic-green-950);
    background-image: 
        var(--pattern-islamic),
        linear-gradient(135deg, var(--islamic-green-950) 0%, var(--royal-navy-900) 100%);
    background-repeat: repeat, no-repeat;
    background-size: 80px 80px, cover;
    color: var(--white);
    padding-top: 96px;
    padding-bottom: 96px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(198, 166, 107, 0.25);
    border-bottom: 1px solid rgba(198, 166, 107, 0.25);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.editorial-media {
    position: relative;
}

.editorial-img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid rgba(198, 166, 107, 0.45);
    box-shadow: 0 20px 50px rgba(4, 46, 35, 0.5);
}

.editorial-img-frame img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.editorial-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.editorial-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 32px;
}

.editorial-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.editorial-feat-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.editorial-feat-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(17, 133, 104, 0.35);
    border: 1px solid rgba(198, 166, 107, 0.5);
    color: var(--gold-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.editorial-feat-icon svg {
    width: 16px;
    height: 16px;
}

.editorial-feat-item h5 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.editorial-feat-item p {
    font-size: 0.85rem;
    color: var(--slate-300);
    line-height: 1.45;
}

/* Customer Portal Promotion: Soft Sky Blue Backdrop */
.portal-section {
    background-color: var(--sky-blue-100);
    background-image: var(--pattern-islamic);
    position: relative;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.portal-list {
    list-style: none;
    margin-bottom: 36px;
}

.portal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: var(--slate-700);
}

.portal-list-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(17, 133, 104, 0.15);
    border: 1px solid rgba(17, 133, 104, 0.35);
    color: var(--emerald-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.portal-mockup-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1.5px solid rgba(17, 133, 104, 0.2);
}

.portal-mockup-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* Application Form Section */
.apply-section {
    background: var(--white);
    position: relative;
}

.apply-container-box {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(17, 133, 104, 0.2);
    border-radius: var(--radius-xl);
    padding: 56px 60px;
    box-shadow: 0 16px 40px rgba(7, 91, 70, 0.1);
    position: relative;
}

.apply-container-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-600), var(--gold-500), var(--royal-navy-800));
    border-radius: 4px 4px 0 0;
}

.apply-header {
    text-align: center;
    margin-bottom: 40px;
}

.apply-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--royal-navy-900);
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(20, 45, 82, 0.16);
    border-radius: var(--radius-sm);
    background: var(--ivory-50);
    color: var(--royal-navy-900);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--emerald-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(17, 133, 104, 0.16);
}

.form-input.is-invalid {
    border-color: #E53E3E;
    background: #FFF5F5;
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--slate-600);
    line-height: 1.45;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--emerald-600);
    cursor: pointer;
}

.form-message-state {
    display: none;
    padding: 24px;
    border-radius: var(--radius-md);
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    text-align: center;
    margin-top: 24px;
}

.form-message-state.active {
    display: block;
}

/* FAQ Section */
.faq-section {
    background-color: var(--sky-blue-50);
    background-image: var(--pattern-islamic);
}

.faq-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(20, 45, 82, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item.active {
    border-color: rgba(17, 133, 104, 0.4);
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--royal-navy-900);
    gap: 16px;
}

.faq-trigger:hover {
    color: var(--emerald-600);
}

.faq-icon {
    width: 22px;
    height: 22px;
    color: var(--emerald-600);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    padding: 0 26px;
}

.faq-item.active .faq-content {
    padding-bottom: 22px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.65;
    border-top: 1px solid rgba(20, 45, 82, 0.06);
    padding-top: 14px;
}

/* Final Conversion Section: Islamic Green to Royal Navy Gradient */
.final-cta-section {
    background-color: var(--islamic-green-950);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(198, 166, 107, 0.16) 0%, transparent 65%),
        var(--pattern-islamic),
        linear-gradient(135deg, var(--islamic-green-950) 0%, var(--islamic-green-900) 45%, var(--royal-navy-800) 100%);
    background-repeat: no-repeat, repeat, no-repeat;
    background-size: auto, 80px 80px, cover;
    color: var(--white);
    padding-top: 110px;
    padding-bottom: 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(198, 166, 107, 0.3);
}

.final-cta-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -0.025em;
}

.final-cta-text {
    font-size: 1.15rem;
    color: var(--slate-300);
    margin-bottom: 38px;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* Footer: Deep Royal Navy & Islamic Green */
.footer {
    background: linear-gradient(180deg, var(--royal-navy-950) 0%, #031510 100%);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 80px;
    padding-bottom: 36px;
    border-top: 1px solid rgba(198, 166, 107, 0.25);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand-desc {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.65;
    margin-top: 18px;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--gold-500);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--slate-400);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: var(--slate-400);
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: var(--slate-400);
    flex-wrap: wrap;
    gap: 16px;
}

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

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

/* Modal Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 46, 35, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    padding: 36px 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 6px;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--royal-navy-900);
}

/* Desktop default for mobile nav item */
.mobile-nav-cta-item {
    display: none;
}

/* ==============================================================
   RESPONSIVE DESIGN SYSTEM (Desktop -> Tablet -> Mobile)
   ============================================================== */

/* 1. Large Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

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

    .hero-visual {
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-image {
        height: 380px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .calc-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .editorial-img-frame img {
        height: 360px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* 2. Tablets & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .section-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    /* Sticky Header */
    .header-container {
        height: 66px;
    }

    .brand-monogram {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-desc {
        font-size: 0.58rem;
    }

    .header-actions {
        gap: 10px;
    }

    #headerCtaBtn {
        padding: 9px 15px;
        font-size: 0.8125rem;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(198, 166, 107, 0.3);
    }

    .mobile-toggle svg {
        width: 22px;
        height: 22px;
    }

    /* Mobile Drawer */
    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, var(--islamic-green-950) 0%, var(--royal-navy-950) 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 16px 28px 16px;
        gap: 6px;
        border-bottom: 1px solid rgba(198, 166, 107, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        transform: translateY(-120%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

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

    .nav-link {
        font-size: 1rem;
        padding: 12px 14px;
        border-radius: 8px;
        display: block;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(17, 133, 104, 0.25);
        color: var(--gold-400);
    }

    .mobile-nav-cta-item {
        display: block;
        margin-top: 14px;
        padding-top: 10px;
        border-top: 1px solid rgba(198, 166, 107, 0.2);
    }

    .mobile-nav-cta-item .btn {
        width: 100%;
        padding: 14px;
        font-size: 0.95rem;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .hero-lead {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 28px;
    }

    .hero-ctas .btn {
        width: 100%;
        padding: 14px 20px;
    }

    .hero-trust-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 18px;
        width: 100%;
    }

    .hero-trust-item {
        font-size: 0.8125rem;
    }

    .hero-visual {
        width: 100%;
        max-width: 100%;
    }

    .hero-image {
        height: 260px;
    }

    .hero-floating-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 14px;
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    /* Steps */
    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .step-card {
        padding: 20px 18px;
    }

    /* Calculator */
    .calc-card {
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    .purity-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .purity-btn {
        padding: 8px 4px;
        font-size: 0.8125rem;
    }

    .calc-weight-controls {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .calc-weight-input-wrap {
        width: 110px;
    }

    .calc-number-input {
        padding: 10px 28px 10px 10px;
        font-size: 1rem;
    }

    .calc-result-box {
        padding: 18px 16px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .calc-result-amount {
        font-size: 2.15rem;
    }

    .calc-result-meta {
        flex-direction: column;
        gap: 4px;
    }

    /* Editorial */
    .editorial-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .editorial-content h2 {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .editorial-text {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .editorial-features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 28px;
    }

    .editorial-img-frame img {
        height: 240px;
    }

    /* Application Form */
    .apply-container-box {
        padding: 28px 16px;
        border-radius: var(--radius-lg);
    }

    .apply-container-box::before {
        left: 20px;
        right: 20px;
    }

    .apply-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-input, .form-select, .form-textarea {
        font-size: 16px; /* Prevents auto zoom on mobile */
        padding: 12px 14px;
    }

    /* FAQ */
    .faq-trigger {
        padding: 16px 14px;
        font-size: 0.95rem;
    }

    .faq-content {
        padding: 0 14px;
    }

    .faq-item.active .faq-content {
        padding-bottom: 16px;
    }

    .faq-answer {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    /* Final CTA */
    .final-cta-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .final-cta-title {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .final-cta-text {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .final-cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .final-cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding-top: 50px;
        padding-bottom: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 16px;
    }
}

/* 3. Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-container {
        height: 60px;
    }

    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    /* Hide descriptor on very small screens to avoid header crowding */
    .brand-desc {
        display: none;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    #headerCtaBtn {
        display: none; /* Mobile CTA is prominently inside mobile drawer */
    }

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

    .hero-image {
        height: 220px;
    }

    .calc-card {
        padding: 20px 14px;
    }

    .purity-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .purity-btn {
        padding: 7px 2px;
        font-size: 0.775rem;
    }

    .calc-result-amount {
        font-size: 1.85rem;
    }

    .final-cta-title {
        font-size: 1.65rem;
    }
}
