/* ============================================================
   HIBA F. — PORTFOLIO STYLESHEET
   Sections:
   1.  Imports & Reset
   2.  CSS Variables
   3.  Typography
   4.  Navigation
   5.  Hero
   6.  Parallax Section
   7.  Intro Section
   8.  Process Section
   9.  Interactive Grid
   10. Inbox of Wins (Testimonials)
   11. Social Icons
   12. Footer
   13. Scroll-to-Top
   14. Animations
   15. Responsive — 1000px
   16. Responsive — 900px
   17. Responsive — 768px
   18. Responsive — 680px (inbox)
   19. Responsive — 480px
============================================================ */


/* ============================================================
   1. IMPORTS & RESET
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #E6E6E6;
    background: #1a1a1a;
    overflow-x: hidden;
}


/* ============================================================
   2. CSS VARIABLES
============================================================ */

:root {
    --gold:           #bb9940;
    --gold-dark:      #a68735;
    --gold-light:     #d4b55f;

    --bg-darkest:     #0f0f0f;
    --bg-dark:        #1a1a1a;
    --bg-medium:      #2a2a2a;
    --bg-card:        #242424;

    --text-primary:   #E6E6E6;
    --text-secondary: #B3B3B3;
    --text-muted:     #9c9f88;

    --border-subtle:  rgba(230, 230, 230, 0.08);
    --border-gold:    rgba(187, 153, 64, 0.2);
}


/* ============================================================
   3. TYPOGRAPHY
============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem);   font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; }

p {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--text-secondary);
}


/* ============================================================
   4. NAVIGATION
============================================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem;
    max-width: 100%; 
    margin: 0 2rem;
}

/* Logo */
.nav-logo h2 {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-logo-image {
    display: block;
    width: 90px;
    height: 50px;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

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

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

.nav-cta {
    color: var(--gold);
    text-decoration: none;
    border: 2px solid var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--gold);
    color: #1a1a1a;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1002;
}

.nav-hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Mobile menu logo (shown inside the open drawer) */
.nav-menu-logo {
    display: none;
}


/* ============================================================
   5. HERO
============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 3rem 4rem;
    background-image: url('/Images/Hero-background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-parallax-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    max-width: 100%;
}

.hero-second-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 auto 3rem;
    padding: 0 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* Shared CTA button style */
.hero-cta,
.intro-btn,
.process-btn {
    display: inline-block;
    background: var(--gold);
    color: #1a1a1a;
    text-decoration: none;
    border: 2px solid var(--gold);
    padding: 1.1rem 3rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-cta:hover,
.intro-btn:hover,
.process-btn:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}


/* ============================================================
   6. PARALLAX SECTION
============================================================ */

.parallax-section {
    padding: 8rem 3rem;
    background: linear-gradient(180deg, #171410 0%, #1a1a1a 40%, #1a1a1a 100%);
    min-height: 90vh;
    overflow: hidden;
}

.parallax-container {
    display: flex;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.parallax-column {
    flex: 1;
    text-align: left;
    transition: transform 0.1s ease-out;
}

.parallax-column:nth-child(1) { transform: translateY(0px); }
.parallax-column:nth-child(2) { transform: translateY(150px); }
.parallax-column:nth-child(3) { transform: translateY(300px); }

.parallax-column h3 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.parallax-column p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}


/* ============================================================
   7. INTRO SECTION
============================================================ */

.intro-section {
    background: var(--bg-dark);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 3rem;
}

.intro-content {
    max-width: 1000px;
}

.intro-content h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.8rem;
}

.intro-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.intro-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.intro-note {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.5rem;
}


/* ============================================================
   8. PROCESS SECTION
============================================================ */

.process-section {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 8rem 3rem;
    background: #111111;
    text-align: center;
    overflow: hidden;
}

.process-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.process-subtitle {
    max-width: 1200px;
    margin: 0 auto 4rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.process-step {
    text-align: left;
    transition: transform 0.1s ease-out;
}

/* Stagger offsets — JS overrides these on scroll */
.process-step:nth-child(1) { transform: translateY(0px); }
.process-step:nth-child(2) { transform: translateY(50px); }
.process-step:nth-child(3) { transform: translateY(100px); }
.process-step:nth-child(4) { transform: translateY(150px); }

.step-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.process-step h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.process-step p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.process-cta {
    text-align: center;
    margin-top: auto;
    padding: 6rem 0 2rem;
}


/* ============================================================
   9. INTERACTIVE GRID
============================================================ */

.interactive-grid {
    background: var(--bg-medium);
    padding: 8rem 3rem;
    width: 100%;
}

.grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-container {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.grid-layout {
    display: none;
}


/* ============================================================
   10. INBOX OF WINS (TESTIMONIALS)
============================================================ */

.iow {
    padding: 6rem 3rem;
    background: var(--bg-dark);
}

.iow-hdr {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.iow-hdr h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.iow-hdr p {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

/* Inbox card */
.inbox {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Top bar */
.inbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.75rem;
    border-bottom: 1px solid rgba(230, 230, 230, 0.07);
    flex-wrap: wrap;
}

.inbox-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gold);
    white-space: nowrap;
}

/* Search */
.search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 240px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(230, 230, 230, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.search svg {
    flex-shrink: 0;
    opacity: 0.45;
}

.search input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search input::placeholder {
    color: rgba(179, 179, 179, 0.4);
}

/* Inbox body */
.inbox-body {
    display: flex;
    align-items: flex-start;
    height: 468px;
    overflow: hidden;
}

/* Rows list */
#rows {
    flex: 1;
    min-width: 0;
    height: 468px;
    max-height: 468px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(187, 153, 64, 0.2) transparent;
    transition: flex 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

#rows::-webkit-scrollbar { width: 4px; }
#rows::-webkit-scrollbar-track { background: transparent; }
#rows::-webkit-scrollbar-thumb { background: rgba(187, 153, 64, 0.2); border-radius: 4px; }

.inbox-body.pane-open #rows {
    flex: 0 0 45%;
    min-width: 260px;
}

/* Row item */
.irow {
    display: grid;
    grid-template-columns: 42px 160px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(230, 230, 230, 0.05);
    cursor: pointer;
    transition: background 0.18s;
}

.irow:last-child { border-bottom: none; }
.irow:hover     { background: rgba(187, 153, 64, 0.06); }

.irow.selected {
    background: rgba(187, 153, 64, 0.1);
    border-left: 2px solid var(--gold);
    padding-left: calc(1.5rem - 2px);
}

/* Avatar */
.av {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #333;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

.av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.av-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

/* Meta */
.meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.rname {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.rtag {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Message preview */
.rmsg {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.dot.hidden { visibility: hidden; }

.mtext {
    font-size: 0.88rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right col (time + arrow) */
.rright {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.rtime {
    font-size: 0.78rem;
    color: #6b6b6b;
    white-space: nowrap;
}

.rarrow {
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(187, 153, 64, 0.4);
    transition: color 0.18s, transform 0.18s;
}

.irow.selected .rarrow {
    color: var(--gold);
    transform: rotate(90deg);
}

/* Reading pane — desktop */
.rpane {
    width: 0;
    flex-shrink: 0;
    overflow: hidden;
    align-self: stretch;
    border-left: 1px solid transparent;
    transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.32s;
}

.rpane.open {
    width: 55%;
    border-left-color: rgba(187, 153, 64, 0.15);
}

.rpane-inner {
    width: 100%;
    min-width: 280px;
    height: 100%;
    padding: 1.75rem 1.75rem 2rem;
    overflow-y: auto;
    position: relative;
}

.rpane-inner::-webkit-scrollbar { width: 4px; }
.rpane-inner::-webkit-scrollbar-track { background: transparent; }
.rpane-inner::-webkit-scrollbar-thumb { background: rgba(187, 153, 64, 0.2); border-radius: 4px; }

/* Close button */
.rpane-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(230, 230, 230, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.rpane-close:hover {
    background: rgba(187, 153, 64, 0.12);
    color: var(--gold);
}

/* Pane content */
.rpane-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.rp-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #333;
    border: 1px solid rgba(187, 153, 64, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.rp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.rp-av-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
}

.rp-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
}

.rp-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rp-tag {
    font-size: 0.75rem;
    color: var(--gold);
    background: rgba(187, 153, 64, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}

.rp-dot-sep { font-size: 0.75rem; color: #444; }
.rp-date    { font-size: 0.75rem; color: #6b6b6b; }

.rp-divider {
    height: 1px;
    background: rgba(230, 230, 230, 0.07);
    margin: 0.75rem 0 0.25rem;
}

.rp-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.85;
    color: #C8C8C8;
    text-align: justify;
}

.rp-signature {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 1.5rem;
}

.rp-sig-name, .rp-sig-tag { font-family: 'Inter', sans-serif; font-size: 0.85 rem; font-weight: 500; color: var(--text-primary); }

/* Mobile overlay (bottom sheet backdrop) */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99;
    transition: background 0.28s;
    pointer-events: none;
}

.mob-overlay.visible {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.55);
}


/* ============================================================
   11. SOCIAL ICONS
============================================================ */

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(187, 153, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gold);
    color: #1a1a1a;
    transform: translateY(-3px);
}


/* ============================================================
   12. FOOTER
============================================================ */

footer {
    background: var(--bg-darkest);
    color: var(--text-primary);
    padding: 5rem 3rem 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

/* Column headings */
.footer-col h4 {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 1.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

/* Links list */
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col ul li a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 10px;
}

/* Logo col */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover { opacity: 0.8; }
.footer-logo span { font-size: 1.8rem; font-weight: bold; color: var(--gold); letter-spacing: 1px; }

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-col p a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col p a:hover { color: var(--gold-light); }

/* Map col */
.footer-map-wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.footer-map-wrap iframe {
    display: block;
    width: 100%;
    height: 200px;
    border: 0;
}

.footer-map-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-map-link:hover { color: var(--gold-light); }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(230, 230, 230, 0.08);
    padding-top: 2.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Footer scroll-in animation */
.footer-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-col.animate {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   13. SCROLL-TO-TOP
============================================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}


/* ============================================================
   14. ANIMATIONS
============================================================ */

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}


/* ============================================================
   15. RESPONSIVE — 1000px
============================================================ */

@media (max-width: 1000px) {
    .parallax-container {
        flex-direction: column;
        gap: 4rem;
    }

    .parallax-column {
        flex: unset;
        width: 100%;
    }

    /* Reset parallax stagger on smaller screens */
    .parallax-column:nth-child(1),
    .parallax-column:nth-child(2),
    .parallax-column:nth-child(3) {
        transform: none;
    }
}


/* ============================================================
   16. RESPONSIVE — 900px
============================================================ */

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding-bottom: 300px;
    }

    .process-step:nth-child(1) { transform: translateY(0px); }
    .process-step:nth-child(2) { transform: translateY(200px); }
    .process-step:nth-child(3) { transform: translateY(0px); }
    .process-step:nth-child(4) { transform: translateY(200px); }
}


/* ============================================================
   17. RESPONSIVE — 768px
============================================================ */

@media (max-width: 768px) {

    /* Nav */
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        padding: 5rem 2.5rem 3rem;
        gap: 1.8rem;
        z-index: 1000;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu-logo {
        display: block;
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
    }

    .nav-menu-logo img {
        display: block;
        width: 80px;
        height: 45px;
        object-fit: contain;
    }

    .nav-menu-logo span {
        color: var(--gold);
        font-family: 'Inter', sans-serif;
        font-size: 0.78rem;
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .nav-link {
        font-size: 1.3rem;          
        font-weight: 300;           
        letter-spacing: 0.2px;
        color: var(--text-primary);
    }

    .nav-cta {
        display: inline-block;
        width: fit-content;
        margin-top: 0.5rem;
    }

    .mobile-hide {
        display: none;
    }

    /* Hero */
    .hero {
        background-position: center center;
        padding: 6rem 1.5rem 3rem;
    }

    .hero-subtitle {
        display: none;
    }

    .hero-cta {
        margin-top: 40px;
        padding: 1em;
    }

    /* Sections */
    .parallax-section,
    .intro-section,
    .process-section,
    .interactive-grid,
    .iow {
        padding: 5rem 2rem;
    }

    /* Process */
    .process-section {
        min-height: unset;
        height: auto;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 0;
    }

    .process-step:nth-child(1),
    .process-step:nth-child(2),
    .process-step:nth-child(3),
    .process-step:nth-child(4) {
        transform: none;
    }

    /* Footer */
    footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .footer-col ul {
        align-items: center;
    }

    .footer-col p {
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

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

    .footer-map-wrap iframe {
        height: 180px;
    }

    .footer-map-link {
        display: block;
        text-align: center;
    }

    /* Scroll-to-top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}


/* ============================================================
   18. RESPONSIVE — 680px (Inbox / bottom sheet)
============================================================ */

@media (max-width: 680px) {

    .iow {
        padding: 3rem 4% 3.5rem;
    }

    .inbox-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .search {
        width: 100%;
    }

    /* Row layout on mobile */
    .irow {
        grid-template-columns: 40px 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.85rem;
        padding: 0.9rem 1rem;
        min-height: 56px;
    }

    .irow.selected {
        padding-left: calc(1rem - 2px);
    }

    .av   { grid-row: 1 / 3; grid-column: 1; }
    .meta { grid-row: 1; grid-column: 2; flex-direction: row; align-items: center; gap: 6px; }
    .rtag { font-size: 0.72rem; }
    .rmsg { grid-row: 2; grid-column: 2; }

    .rright {
        grid-row: 1;
        grid-column: 3;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        align-self: start;
    }

    .rarrow { display: none; }
    .rtime  { font-size: 0.72rem; }
    .dot.hidden { display: none; }

    /* Pane becomes bottom sheet */
    .inbox-body.pane-open #rows {
        flex: 1;
    }

    .rpane {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 0;
        border-left: none !important;
        border-top: 1px solid rgba(187, 153, 64, 0.2);
        border-radius: 16px 16px 0 0;
        background: var(--bg-card);
        z-index: 100;
        overflow: hidden;
        transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .rpane.open {
        height: 72vh;
        width: 100%;
    }

    .rpane-inner {
        min-width: unset;
        padding: 1.25rem 1.25rem 2.5rem;
        height: 100%;
        overflow-y: auto;
    }

    .mob-overlay {
        display: block;
    }

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


/* ============================================================
   19. RESPONSIVE — 480px
============================================================ */

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    .intro-section {
        padding: 1rem 1.5rem;
    }
    .parallax-section,
    .process-section,
    .interactive-grid,
    .iow {
        padding: 4rem 1.5rem;
    }

    .parallax-container {
        gap: 3rem;
    }

    footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-map-wrap iframe {
        height: 150px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}


/* Mobile-only elements hidden by default */
.nav-cta-drawer { display: none; }
.nav-cta-bar    { display: none; }
 
@media (max-width: 768px) {
    /* Hide the desktop CTA inside the drawer */
    .nav-cta-desktop { display: none; }
 
    /* Show "Are We a Fit?" inside the open drawer */
    .nav-cta-drawer {
        display: inline-block;
        font-size: 0.82rem;          /* noticeably smaller than the links */
        font-weight: 400;
        padding: 0.4rem 1rem;
        border-radius: 20px;         /* pill */
        border: 1px solid rgba(187, 153, 64, 0.45);
        background: transparent;
        margin-top: 0.25rem;         /* small extra gap before button */
    }
 
    /* Show "Get Started" in the bar next to the hamburger */
    .nav-cta-bar {
        display: inline-block;
        /* Slightly smaller so it doesn't crowd the hamburger */
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }
}