/* Mobile Globals (<=767px) */

/* Color + typography tokens copied from index.css to keep brand consistency */
:root {
    --primary: #111111;
    --primary-light: #333333;
    --primary-dark: #000000;
    --secondary: #E0E0E0;
    --tertiary: #D4AF37;
    --tertiary-light: #ddc062;
    --tertiary-dark: #af8f25;
    --quaternary: #d70000;
    --quaternary-light: #ff0202;
    --quaternary-dark: #ac0000;
    --text-clr: #E0E0E0;
    --dark-gray: #333333;
    --gray: #B0B0B0;
    --light-gray: #F2F2F2;

    --ff:'Figtree', sans-serif;
    --h1: bold 3rem/1.05em var(--ff);
    --h2: bold 2.25rem/1.2em var(--ff);
    --h3: bold 1.75rem/1.25em var(--ff);
    --h4: bold 1.25rem/1.4em var(--ff);
    --big: 1.1rem/1.55em var(--ff);
    --p: 0.95rem/1.55em var(--ff);
    --small: 0.75rem/1.6em var(--ff);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    font-family: var(--ff);
    background: var(--primary-dark);
    color: var(--secondary);
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 4.25rem; /* header height offset */
}

/* Reset */
* {
    box-sizing: border-box;
}

/* ===================== */
/* Mobile Header System  */
/* ===================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    height: 4.25rem;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: transform .45s ease, opacity .45s ease, background-color .35s ease;
    padding: 0 .75rem;
}

.main-header {
    background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0));
    backdrop-filter: blur(6px);
}

.main-header.hide-up {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.solid-header {
    background: var(--primary-light);
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.solid-header.show-down {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Left (logo) */
.header-left {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.logo {
    height: 6.5rem;
    width: 6.5rem;
    object-fit: contain;
}

/* Middle (nav) */
.header-middle {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Book button (optional show) */
.header-right {
    display: none; /* hide by default on small screens */
}

/* Hamburger */
.hamburger {
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger span,
.hamburger span:before,
.hamburger span:after {
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--secondary);
    border-radius: 2px;
    transition: transform .35s ease, background .3s ease, opacity .3s ease;
}

.hamburger span:before { top: -8px; }
.hamburger span:after  { top: 8px;  }

body.nav-open .hamburger span {
    background: transparent;
}
body.nav-open .hamburger span:before {
    transform: translateY(8px) rotate(45deg);
}
body.nav-open .hamburger span:after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav panel */
.header-middle nav {
    position: fixed;
    top: 4.25rem;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #0d0d0d;
    border-top: 1px solid #191919;
    box-shadow: 0 18px 34px -18px rgba(0,0,0,.7);
    display: flex;
    flex-direction: column;
    transition: max-height .5s cubic-bezier(.65,.05,.36,1);
}

body.nav-open .header-middle nav {
    max-height: 80dvh;
}

.header-middle nav ul {
    list-style: none;
    width: 100%;
    padding: .5rem 0 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.header-middle nav ul li a {
    display: block;
    padding: .9rem 1.25rem;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .3px;
    transition: background .25s ease, color .25s ease;
    border-left: 3px solid transparent;
}

.header-middle nav ul li a:hover,
.header-middle nav ul li a.navactive {
    background: #1a1a1a;
    color: var(--tertiary);
    border-left-color: var(--tertiary);
}

/* Dropdown (touch-friendly) */
.dropdown {
    position: relative;
}

.dropdown > a .dropdownarrow {
    font-size: .75em;
    margin-left: .4em;
    transition: transform .3s ease;
    display: inline-block;
}

.dropdown.open > a .dropdownarrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    flex-direction: column;
    padding: 0 .5rem .5rem;
}

.dropdown.open .dropdown-content {
    display: flex;
}

.dropdown-content li a {
    font-size: .9rem;
    padding: .65rem 1.4rem .65rem 2.2rem;
    opacity: .85;
}

.dropdown-content li a:hover {
    opacity: 1;
    color: var(--tertiary-light);
}

/* Book CTA (show inside menu for mobile) */
.book-btn a {
    display: inline-block;
    margin: .75rem 1.25rem .25rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    background: var(--tertiary-dark);
    color: var(--secondary);
    padding: .85rem 1rem;
    border-radius: 14px;
    font-size: 1rem;
    letter-spacing: .5px;
    border: 1px solid var(--tertiary-dark);
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.55);
}

.book-btn a:hover {
    background: var(--quaternary);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -10px rgba(0,0,0,.65);
}

/* Prevent background scroll when nav is open */
body.nav-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* ===================== */
/* Mobile Footer         */
/* ===================== */

footer {
    background: #0b0b0b;
    padding: 2.25rem 1.25rem 2.75rem;
    margin-top: 3rem;
    border-top: 1px solid #181818;
    padding-bottom: 4.5rem; /* increase as needed */
    /* Optional: include safe area for iOS */
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    max-width: 1150px;
    margin: 0 auto;
}

footer a {
    color: var(--tertiary);
    text-decoration: none;
    transition: color .25s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--quaternary);
}

.footer-block h2,
.footer-block h1,
.footer-title {
    font-size: 1.15rem;
    margin: 0 0 .65rem;
    letter-spacing: .5px;
    color: var(--secondary);
}

.footer-text {
    font-size: .9rem;
    line-height: 1.5;
    margin: .25rem 0;
    opacity: .85;
}

.social-media {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-top: .5rem;
}

.social-media a {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    opacity: .9;
}

.social-media a:hover {
    opacity: 1;
}

.social-icon {
    width: 1.85rem;
    height: 1.85rem;
    display: block;
    object-fit: contain;
}

.footer-cta {
    margin-top: .75rem;
}

.copyright {
    margin-top: 1.75rem;
    font-size: .7rem;
    letter-spacing: .75px;
    text-transform: uppercase;
    opacity: .55;
}

/* Utility visibility (if needed) */
.hide-mobile { display: none !important; }

/* ===================== */
/* Small Enhancements    */
/* ===================== */

@media (min-width: 540px) {
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .footer-block {
        flex: 1 1 240px;
        min-width: 200px;
    }
}

/* Optional subtle divider lines */
.footer-block + .footer-block {
    position: relative;
}
.footer-block + .footer-block:before {
    content:"";
    position:absolute;
    top:-1.1rem;
    left:0;
    width:100%;
    height:1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.08), rgba(255,255,255,0));
}

/* Improve tap targets */
header a, nav a, .hamburger, .book-btn a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus outline accessibility */
a:focus-visible, button:focus-visible, .hamburger:focus-visible {
    outline: 2px solid var(--tertiary);
    outline-offset: 3px;
}

/* Force closed baseline for dropdown on mobile */
.header-middle nav ul li.dropdown > .dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: max-height .35s ease, opacity .25s ease;
}

/* Open state (only when li has .open) */
body.nav-open .header-middle nav ul li.dropdown.open > .dropdown-content {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 0 .5rem .5rem;
}

.header-middle nav ul li.dropdown > a {
    cursor: pointer;
    position: relative;
}

.header-middle nav ul li.dropdown.open > a {
    background: #151515;
    color: var(--tertiary);
}
/* ============================= */
/* Tablet / iPad (768px–1180px)  */
/* Reuse hamburger + panel nav   */
/* ============================= */
@media (min-width:768px) {

  :root {
    --tablet-header-h: 4.5rem;
  }

  header {
    height: var(--tablet-header-h);
    padding: 0 1.25rem;
  }

  .logo {
    height: 3.3rem;
    width: auto;
  }

  /* Allow slightly wider nav panel */
  body.nav-open .header-middle nav {
    max-height: 78dvh;
  }

  .header-middle nav ul li a {
    font-size: 1.05rem;
    padding: 1rem 1.65rem;
  }

  .dropdown-content li a {
    font-size: .95rem;
    padding: .7rem 2.1rem .7rem 2.6rem;
  }

  /* Show Book button inside panel (keep hidden in header-right) */
  .book-btn a {
    margin: 1rem 1.65rem .35rem;
    font-size: 1.02rem;
    border-radius: 16px;
  }

  /* Optional: widen panel shadow */
  .header-middle nav {
    box-shadow: 0 24px 46px -22px rgba(0,0,0,.65);
  }

  /* Prevent double fixed header use if a solid-header variant exists */
  .solid-header { display: none !important; }
}

/* Tablet portrait specific tweaks */
@media (min-width:768px) and (max-width:1024px) and (orientation:portrait){
  .header-middle nav ul li a { font-size:1rem; }
  .book-btn a { font-size:1rem; }
}

/* Tablet landscape tweaks */
@media (min-width:900px) and (max-width:1180px) and (orientation:landscape){
  .header-middle nav ul li a { font-size:1.05rem; }
}

/* Safety: avoid horizontal overflow causing phantom scrollbar */
@media (max-width:1180px){
  html, body { overflow-x:hidden; }
}