/* style.css   was brand.css
 * Core Styles and Framing Architecture for ENGINE-ëëring
 * Production Version: July 2026
 */

/* ==========================================================================
   1. CORE MOBILE-FIRST RESETS & FRAMING SYSTEM
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #000000;
    --gold-primary: rgba(212, 175, 55, 0.45);
    --gold-dim: rgba(212, 175, 55, 0.2);
    --gold-glow: rgba(212, 175, 55, 0.6);
    --text-light: #FFFFFF;
    --text-dim: #8E8E8E;
    --font-title: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
    --gold: #c8a84b;
    --gold-light: #f0d080;
    --gold-dark: #a07830;
    --green: #4a6741;
    --green-dark: #2e3d2a;
    --cream: #faf7f0;
    --cream-dark: #f0ebe0;
    --brand-accent: #c8a84b; /* Safe fallback declaration for active links */
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    min-height: 100vh;
}
header {
    top: 0;
}
body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 6vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
    padding-bottom: 120px;
}

.site-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    pointer-events: none; 
    z-index: 999;
}

/* --- MOBILE-FIRST VERTICAL FRAME LINES --- */
.site-frame::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.45));
    background: 
        linear-gradient(to right, rgba(212, 175, 55, 0.28) 1.5px, transparent 2px) no-repeat 4% 0 / 100% 100%,
        linear-gradient(to right, rgba(212, 175, 55, 0.15) 1px, transparent 2px) no-repeat 5.5% 0 / 100% 100%,
        linear-gradient(to left, rgba(212, 175, 55, 0.28) 1.5px, transparent 2px) no-repeat calc(100% - 4%) 0 / 2px 100%,
        linear-gradient(to left, rgba(212, 175, 55, 0.15) 1px, transparent 2px) no-repeat calc(100% - 5.5%) 0 / 2px 100%;
}

/* --- MOBILE-FIRST HORIZONTAL FRAME LINES --- */
.site-frame::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 3.5%;
    bottom: 3.5%;
    pointer-events: none;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.45));
}

/* ==========================================================================
   2. HEADER & UNIFIED GRADIENT TYPOGRAPHY WITH EMBOSSING
   ========================================================================== */
header {
    text-align: center;
    margin-bottom: clamp(2rem, 8vw, 4rem);
    width: 100%;
    max-width: 800px;
    margin-left: auto;  
    margin-right: auto; 
    padding: 0 0.5rem;
}

.brand-sub {
    font-family: var(--font-title);
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    letter-spacing: clamp(0.08rem, 1.1vw, 0.11rem);
    color: var(--gold-dark); /*
    text-transform: uppercase; */
    margin-bottom: 0.5rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(160, 120, 48, 0.33);
}
/* .brand-sub a {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    letter-spacing: clamp(0.08rem, 1.1vw, 0.11rem);
    color: var(--gold-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(160, 120, 48, 0.33);
} */
.brand-sub .nav-logo {
      font-family: 'Playfair Display', serif;
      background: linear-gradient(135deg, var(--gold), var(--gold-light));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-decoration: none;
      font-size: 1.2rem;
      text-transform: lower-case;
}

.brand-sub .nav-logo .ten {
            position: absolute;
            z-index: 3;
            font-family: 'Playfair Display', serif;

            background: linear-gradient(135deg, var(--gold), var(--gold-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-decoration: none; 
            font-size: 1.65rem;
            text-align: center;
            line-height: 1.65;
            white-space: nowrap;
            filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
            display: inline-block;
            transform: scaleY(1.65);
            transform-origin: center;
        }


.brand-sub .nav-logo .luxury-x {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(0.65rem, 2.4vw, 1.5rem);
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
    letter-spacing: 1.8px;
    display: inline-block;
    line-height: 1.1;          
    padding-left: 0.15em;      
    padding-right: 0.15em;     
    padding-top: 0.1em;        
    padding-bottom: 0.1em;     
}        

h1 {
    font-family: inherit;
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    letter-spacing: 0.15rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg,
        var(--gold-primary) 0%,
        #a07830 10%, 
        #c8a84b 25%, 
        #f0d080 50%, 
        #a07830 75%,
        #c8a84b 100% 
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: 
        drop-shadow(-.65px -.65px 0px rgba(255, 255, 255, 0.85))
        drop-shadow(0.88px 0.88px 0px rgba(0, 0, 0, 0.95))
        drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.6));
}

h1 .engine-part {
    font-family: 'Cinzel', serif;
    font-size: 3.3rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

h1 .eering-part {
    text-transform: lowercase !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; 
    font-style: normal;
    vertical-align: middle;
    display: inline-block;
    padding: 0 2px;
    font-weight: 400; 
}

/* ==========================================================================
   3. MANIFESTO & INTERACTION MODULES
   ========================================================================== */
.control-room-wrapper {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding-bottom: 250px; /* 🔑 THIS IS THE EXTRA SCROLLING BUFFER FOR BAY 05 */
}

.manifesto {
    border: 1px solid var(--gold-dim);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: linear-gradient(180deg, rgba(20,20,20,0.5) 0%, rgba(0,0,0,1) 100%);
    margin: 0 auto clamp(2rem, 8vw, 4rem) auto;
    text-align: center;
    width: 100%;
    max-width: 800px;
    border-radius: 0px; 
}

.manifesto p {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
    font-style: normal;
    max-width: 100%;
    margin: 0 auto 1.5rem auto;
    color: var(--text-light);
}

.manifesto strong {
    color: var(--gold-primary);
    font-weight: 500;
}

.gate-action {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.plan-selectors {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
    font-family: var(--font-title);
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.plan-option input:checked + span {
    color: #f0d080;
    text-shadow: 0 0 4px rgba(212,175,55,0.4);
}

.btn-subscribe {
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-family: var(--font-title);
    padding: 0.8rem 2rem;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    letter-spacing: 0.2rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    max-width: 100%;
    margin-top: 0.5rem;
}

.btn-subscribe:hover {
    background-color: var(--gold-primary);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* ==========================================================================
   4. ENGINE BAYS GRID SYSTEM
   ========================================================================== */
/* ==========================================================================
   4. ENGINE BAYS GRID SYSTEM (PERFECT SCALE)
   ========================================================================== */
.control-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 1rem;
}

.engine-bay {
    background: rgba(10, 10, 10, 0.8);
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    transition: all 0.5s ease;
}

.engine-bay.locked {
    border: 2px double rgba(212, 175, 55, 0.08);
}

.engine-bay.locked .bay-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) opacity(0.4);
    transition: all 0.5s ease;
}

.engine-bay.locked .bay-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.engine-bay.locked .bay-status {
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    color: var(--text-dim);
    font-family: var(--font-body);
}

.engine-bay.active {
    border: 2px solid #f0d080;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.15), 0 0 10px rgba(212, 175, 55, 0.1);
}

/* 🔑 This keeps your logos exactly 70px so they do not blow up when active */
.engine-bay.active .bay-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    filter: grayscale(0%) opacity(100%) drop-shadow(0 0 8px var(--gold-glow));
    transition: all 0.5s ease;
}

.engine-bay.active .bay-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.engine-bay.active .bay-status {
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    color: #55ff55;
    font-weight: bold;
    font-family: var(--font-body);
}

.tracking-status {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #f0d080;
    text-decoration: underline;
    cursor: pointer;
}
/* ==========================================================================
   5. LUXURY FOOTER ARCHITECTURE (SCROLL STABLE)
   ========================================================================== */
/* Luxury Footer */
footer {
    position: fixed;
    bottom: 0;
    left: clamp(5%, 8vw, 100px);
    right: clamp(5%, 8vw, 100px);
    width: auto;
    margin-top: 5px;
    background: #000;
    text-align: center;
    color: var(--gold);
    padding: 20px 15px; 
    border-top: 1px solid rgba(160, 120, 48, 0.65);
    border-bottom: 1px solid rgba(160, 120, 48, 0.65);
    box-sizing: border-box;
    z-index: 1000; 
}

footer::before {
    content: "";
    position: absolute;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    top: -20px; 
    height: 1px;
    background: rgba(212, 175, 55, 0.15);
    filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.45));
    pointer-events: none;
}

.footer-logo {
    font-family: 'Cinzel Decorative', serif;
    background: linear-gradient(
        135deg,
        var(--gold-dark) 0%,
        var(--gold-dark) 12%,
        var(--gold) 42%,
        var(--gold-light) 65%,
        var(--gold) 83%,
        var(--gold-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(160, 120, 48, 0.42);
    padding-bottom: 6px;
}

.footer-tagline {
    font-family: "Cormorant", serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-brands {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 30px; 
    row-gap: 5px;     
    font-family: "Cormorant", serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-brand {
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    white-space: nowrap; 
}

.footer-brand:hover {
    border-bottom: 1px solid var(--brand-accent);
}

.footer-copy {
    margin-top: 10px;
    font-size: 0.65rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-copy .luxury-x, .footer .luxury-x {
    font-family: 'Cinzel Decorative', serif;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.footer-copy .luxury-x {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    margin-bottom: 1rem;
    line-height: 0.8;
}

.footer .luxury-x {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    margin-top: 1rem;
}

/* ── Luxury Gateway Styles ── */
.luxury-gateway-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 20, 10, 0.95);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  animation: gatewayFadeIn 0.35s ease;
}
.luxury-gateway-overlay.open {
  display: flex;
}
@keyframes gatewayFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.luxury-gateway-card {
  width: 90%;
  max-width: 550px;
  background: #161616;
  border: 1px solid rgba(184,115,51,0.4);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 30px rgba(184,115,51,0.15);
}
.luxury-gateway-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #b87333;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.luxury-gateway-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #e8c97a;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.luxury-gateway-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #f5edd6;
  background: rgba(184,115,51,0.08);
  border-left: 2px solid #b87333;
  border-right: 2px solid #b87333;
  padding: 20px;
  margin-bottom: 20px;
}
.luxury-gateway-desc {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 30px;
  line-height: 1.5;
}
.luxury-gateway-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.luxury-btn-enter {
  background: linear-gradient(135deg, #804A00, #b87333, #804A00);
  color: #fff;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(184,115,51,0.3);
}
.luxury-btn-enter:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 25px rgba(184,115,51,0.5);
}
.luxury-btn-close {
  background: transparent;
  color: #d4943e;
  border: 1px solid rgba(184,115,51,0.3);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}
.luxury-btn-close:hover {
  background: rgba(184,115,51,0.1);
  border-color: #b87333;
}

/* ==========================================================================
   5. HARDWARE ADAPTATION OVERRIDES
   ========================================================================== */
@media (min-width: 768px) {
    .site-frame::before {
        background: 
            linear-gradient(to right, rgba(212, 175, 55, 0.28) 1.5px, transparent 2px) no-repeat 0.75in 0 / 100% 100%,
            linear-gradient(to right, rgba(212, 175, 55, 0.15) 1px, transparent 2px) no-repeat 0.80in 0 / 100% 100%,
            linear-gradient(to left, rgba(212, 175, 55, 0.28) 1.5px, transparent 2px) no-repeat calc(100% - 0.75in) 0 / 2px 100%,
            linear-gradient(to left, rgba(212, 175, 55, 0.15) 1px, transparent 2px) no-repeat calc(100% - 0.80in) 0 / 2px 100%;
    }
    .site-frame::after {
        top: 0.25in;
        bottom: 0.25in;
    }
}
/* ==========================================================================
   7. MOBILE-ONLY FOOTER COMPRESSION OVERRIDES
   ========================================================================== */
@media (max-width: 767px) {
    footer {
        padding: 10px 10px; /* Tightens the box padding on mobile screens */
        line-height: 1.1;   /* Flattens container text stacking */
    }

    .footer-logo {
        font-size: 1.4rem;  /* Slightly scales down the logo text for small screens */
        line-height: 1.0;   /* Pulls the layout boundary up tight */
        margin-bottom: 1px;
    }

    .footer-tagline {
        font-size: 1.0rem;  /* Compresses the slogan scale */
        line-height: 1.1;
        margin-bottom: 1px;
    }

    .footer-brands {
        line-height: 1.2;   /* Ensures multiple wrapped text lines sit close together */
        column-gap: 5px;   /* Pulls links closer horizontally */
    }

    .footer-copy {
        margin-top: 1px;
        line-height: 1.1;
    }
}
