/* ==========================================================================
   JAD GROUP -- GLOBAL STYLESHEET
   Foundation design system for the multi-page website.
   ========================================================================== */


/* ==========================================================================
   1. CSS RESET
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================================================
   2. CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* --- Brand Colors --- */
    --navy: #0a1628;
    --navy-light: #0f1f3a;
    --navy-mid: #162847;
    --gold: #c8963e;
    --gold-light: #d4a84f;
    --gold-dark: #b0832f;

    /* --- Neutrals --- */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --grey-light: #e9ecef;
    --grey-mid: #adb5bd;
    --grey-dark: #6c757d;

    /* --- Text --- */
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;

    /* --- Shadows --- */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.16);
    --shadow-xl: 0 16px 60px rgba(10, 22, 40, 0.20);

    /* --- Motion --- */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ==========================================================================
   3. BASE STYLES
   ========================================================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    list-style: none;
}

::selection {
    background: rgba(200, 150, 62, 0.2);
    color: var(--text-dark);
}


/* ==========================================================================
   4. CONTAINER
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   5. SECTION COMPONENTS
   ========================================================================== */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--grey-dark);
    max-width: 560px;
    line-height: 1.7;
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* --- Primary (Gold) --- */
.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 62, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(200, 150, 62, 0.25);
}

/* --- Outline (Transparent / White Border) --- */
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

/* --- Dark (Navy) --- */
.btn-dark {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-dark:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-dark:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* --- Secondary (White bg / Navy text) --- */
.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--off-white);
    border-color: var(--off-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* --- Button Sizes --- */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}


/* ==========================================================================
   7. GEOMETRIC PATTERNS
   ========================================================================== */

.geo-pattern {
    position: absolute;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.geo-grid {
    background-image:
        linear-gradient(rgba(200, 150, 62, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 150, 62, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

.geo-dots {
    background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
    background-size: 24px 24px;
}


/* ==========================================================================
   8. SCROLL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==========================================================================
   9. FORM BASE STYLES (Dark Backgrounds)
   ========================================================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select option {
    background: var(--navy);
    color: var(--white);
}

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

/* --- Light Background Form Variant --- */
.form-light .form-group label {
    color: var(--grey-dark);
}

.form-light .form-group input,
.form-light .form-group select,
.form-light .form-group textarea {
    background: var(--white);
    border: 1px solid var(--grey-light);
    color: var(--text-dark);
}

.form-light .form-group input::placeholder,
.form-light .form-group textarea::placeholder {
    color: var(--grey-mid);
}

.form-light .form-group input:focus,
.form-light .form-group select:focus,
.form-light .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.08);
}

.form-light .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.35)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.form-light .form-group select option {
    background: var(--white);
    color: var(--text-dark);
}

/* --- Form Submit --- */
.form-submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.form-submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 62, 0.35);
}

.form-submit:active {
    transform: translateY(0);
}

/* --- Form Grid --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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


/* ==========================================================================
   10. PAGE HERO COMPONENT
   ========================================================================== */

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    background: var(--navy);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(10, 22, 40, 0.92) 50%,
        rgba(10, 22, 40, 0.97) 100%
    );
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 720px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

.page-hero .section-label {
    color: var(--gold);
    margin-bottom: 20px;
}

/* Breadcrumb inside page hero */
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.page-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    transition: color var(--transition);
}

.page-hero-breadcrumb a:hover {
    color: var(--gold);
}

.page-hero-breadcrumb span {
    color: var(--gold);
}

.page-hero-breadcrumb svg {
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   11. UTILITY CLASSES
   ========================================================================== */

/* --- Text Alignment --- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* --- Text Colors --- */
.text-gold  { color: var(--gold); }
.text-white { color: var(--white); }
.text-navy  { color: var(--navy); }
.text-dark  { color: var(--text-dark); }
.text-body  { color: var(--text-body); }
.text-grey  { color: var(--grey-dark); }

/* --- Background Colors --- */
.bg-navy      { background-color: var(--navy); }
.bg-navy-light { background-color: var(--navy-light); }
.bg-white     { background-color: var(--white); }
.bg-off-white { background-color: var(--off-white); }
.bg-gold      { background-color: var(--gold); }

/* --- Margin Bottom --- */
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 64px; }

/* --- Margin Top --- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 64px; }

/* --- Padding Vertical --- */
.py-1 { padding-top: 8px;  padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 64px; padding-bottom: 64px; }

/* --- Display --- */
.d-flex    { display: flex; }
.d-grid    { display: grid; }
.d-block   { display: block; }
.d-none    { display: none; }

/* --- Flex Utilities --- */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 40px; }

/* --- Width --- */
.w-100 { width: 100%; }

/* --- Visibility --- */
.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;
}


/* ==========================================================================
   12. RESPONSIVE UTILITY CLASSES
   Replaces inline styles with classes that have mobile overrides
   ========================================================================== */

/* --- Section Padding --- */
.section-pad {
    padding: 80px 0;
}

.section-pad-top {
    padding: 80px 0 0;
}

.section-pad-bottom {
    padding: 48px 0 80px;
}

/* --- Inline Stats Grid (4-column) --- */
.inline-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

/* --- Inline Stats Grid (3-column) --- */
.inline-stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Inline Photo Grid (4-column) --- */
.inline-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.inline-photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Inline Stat Number --- */
.inline-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

/* --- Inline Stat Card --- */
.inline-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-stat-label {
    font-size: 0.88rem;
    font-weight: 600;
}


/* ==========================================================================
   13. RESPONSIVE -- BASE COMPONENTS
   ========================================================================== */

/* --- 1024px Breakpoint --- */
@media (max-width: 1024px) {

    .page-hero {
        min-height: 35vh;
    }

    .page-hero h1 {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Responsive utility overrides */
    .section-pad { padding: 64px 0; }
    .section-pad-top { padding: 64px 0 0; }
    .section-pad-bottom { padding: 40px 0 64px; }
    .inline-stats-grid { gap: 24px; }
    .inline-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 768px Breakpoint --- */
@media (max-width: 768px) {

    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .page-hero {
        min-height: 32vh;
    }

    .page-hero-content {
        padding: 60px 20px 48px;
    }

    .page-hero h1 {
        font-size: clamp(1.65rem, 5vw, 2.5rem);
    }

    .page-hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Show/hide utilities for tablet */
    .hide-tablet { display: none !important; }
    .show-tablet  { display: block !important; }

    /* Responsive utility overrides */
    .section-pad { padding: 48px 0; }
    .section-pad-top { padding: 48px 0 0; }
    .section-pad-bottom { padding: 32px 0 48px; }
    .inline-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .inline-stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .inline-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .inline-photo-grid img { height: 180px; }
    .inline-stat-number { font-size: 2rem; }
    .inline-stat-card { padding: 28px 20px; }

    /* Map iframe responsive */
    .map-section iframe { height: 300px !important; }
}

/* --- 480px Breakpoint --- */
@media (max-width: 480px) {

    .container {
        padding: 0 16px;
    }

    .section-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .section-label::before {
        width: 24px;
    }

    .section-title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        letter-spacing: -0.3px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .page-hero {
        min-height: 28vh;
    }

    .page-hero-content {
        padding: 48px 16px 40px;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .page-hero-breadcrumb {
        font-size: 0.78rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.82rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.88rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 0.85rem;
    }

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

    /* Spacing reductions on mobile */
    .mb-5 { margin-bottom: 48px; }
    .mt-5 { margin-top: 48px; }
    .py-5 { padding-top: 48px; padding-bottom: 48px; }

    /* Show/hide utilities for mobile */
    .hide-mobile { display: none !important; }
    .show-mobile  { display: block !important; }

    /* Responsive utility overrides */
    .section-pad { padding: 40px 0; }
    .section-pad-top { padding: 40px 0 0; }
    .section-pad-bottom { padding: 24px 0 40px; }
    .inline-stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .inline-stats-grid-3 { grid-template-columns: 1fr; }
    .inline-photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .inline-photo-grid img { height: 150px; }
    .inline-stat-number { font-size: 1.6rem; }
    .inline-stat-card { padding: 24px 16px; }

    /* Map iframe responsive */
    .map-section iframe { height: 250px !important; }
}
