/*
Theme Name: Smash Residence
Theme URI: https://smashresidence.com/
Author: Smash Sporting Club
Author URI: https://smashresidence.com/
Description: Custom one-page theme for Smash Residence — a tennis academy and hotel in Cairo, Egypt. Faithful WordPress port of the original static site: navy & chartreuse palette, Anton / Cormorant Garamond / DM Sans typography, room detail modals, training packages, and an inquiry form with date pickers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smash-residence
Tags: one-column, custom-menu, custom-logo, featured-images, full-width-template, translation-ready
*/

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{--navy:#1B2A4A;--navy-deep:#0D1B2A;--navy-light:#2A3F6A;--chartreuse:#C8D530;--chartreuse-soft:#D4E04A;--cream:#FAF9F6;--warm-gray:#F0EDE8;--text:#1a1a1a;--text-light:#6B7280;--text-mid:#3D4A5C;--white:#FFFFFF;--green:#16a34a;--green-light:#f0fdf4;--edge:#E6E3DA;--ease:cubic-bezier(.2,.7,.3,1)}

/* ICONS — single-colour line drawings that inherit the surrounding text colour,
   so they look identical on every device (emoji do not). */
.smash-icon{flex:none;display:inline-block;vertical-align:-.125em}
.smash-icon-text{line-height:1}

/* FOCUS — a visible keyboard ring, dark on light grounds and chartreuse on dark. */
:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
nav :focus-visible,.hero :focus-visible,.training :focus-visible,.discounts :focus-visible,footer :focus-visible{outline-color:var(--chartreuse)}

@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;color:var(--text);background:var(--white);line-height:1.6;overflow-x:hidden}

/* NAV */
nav{position:fixed;top:0;left:0;right:0;z-index:1000;padding:1.2rem 3rem;display:flex;align-items:center;justify-content:space-between;transition:all .4s}
nav.scrolled{background:rgba(13,27,42,.95);backdrop-filter:blur(12px);padding:.8rem 3rem;box-shadow:0 2px 30px rgba(0,0,0,.15)}
/* Inner pages have no dark hero behind the navbar, so the white links and
   logo would sit on white. Give the bar its solid background from the start. */
body:not(.smash-front) nav{background:rgba(13,27,42,.95);backdrop-filter:blur(12px);box-shadow:0 2px 30px rgba(0,0,0,.15)}
.nav-logo{display:flex;align-items:center;gap:.8rem;text-decoration:none}
.nav-logo img{height:64px;width:auto}
.nav-links{display:flex;gap:2.5rem;list-style:none;align-items:center}
.nav-links a{color:rgba(255,255,255,.85);text-decoration:none;font-size:.82rem;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;transition:color .3s}
.nav-links a:hover{color:var(--chartreuse)}
.nav-cta{background:var(--chartreuse)!important;color:var(--navy-deep)!important;padding:.6rem 1.5rem;border-radius:2px;font-weight:600!important;transition:transform .2s,box-shadow .2s!important}
.nav-cta:hover{transform:translateY(-1px);background:var(--chartreuse-soft)!important;box-shadow:0 4px 14px rgba(200,213,48,.35);color:var(--navy-deep)!important}
.nav-hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:5px}
.nav-hamburger span{width:24px;height:2px;background:var(--white);transition:.3s}

/* HERO */
.hero{position:relative;height:100vh;min-height:700px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.hero-bg-img{position:absolute;inset:0;background:url('assets/images/hero-courts.jpg') center/cover no-repeat}
/* Directional scrim: protects the headline and navbar without flattening the
   whole photograph the way a single even wash does. */
.hero-bg-img::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,27,42,.80) 0%,rgba(13,27,42,.50) 42%,rgba(13,27,42,.58) 68%,rgba(13,27,42,.84) 100%)}
.hero-content{position:relative;z-index:2;max-width:800px;padding:0 2rem}
.hero-eyebrow{font-size:.8rem;letter-spacing:5px;text-transform:uppercase;color:var(--chartreuse);margin-bottom:1.5rem;font-weight:600}
.hero h1{font-family:'Anton',sans-serif;font-size:clamp(3rem,7.5vw,5.8rem);font-weight:400;color:var(--white);line-height:1;letter-spacing:1px;text-transform:uppercase;margin-bottom:1.5rem;text-shadow:0 2px 26px rgba(13,27,42,.4)}
.hero h1 em{font-style:normal;color:var(--chartreuse)}
.hero-sub{font-size:1.1rem;color:rgba(255,255,255,.7);max-width:520px;margin:0 auto 2.5rem;line-height:1.7}
.hero-cta{display:inline-block;background:var(--chartreuse);color:var(--navy-deep);padding:1rem 2.8rem;text-decoration:none;font-weight:700;font-size:.85rem;letter-spacing:2px;text-transform:uppercase;transition:background-color .25s var(--ease),transform .25s var(--ease),box-shadow .25s var(--ease)}
.hero-cta:hover{background:var(--chartreuse-soft);transform:translateY(-2px);box-shadow:0 8px 24px rgba(200,213,48,.32)}
.hero-cta:active{transform:translateY(0)}
.hero-scroll{position:absolute;bottom:2.5rem;left:50%;transform:translateX(-50%);z-index:2;color:rgba(255,255,255,.4);font-size:.7rem;letter-spacing:3px;text-transform:uppercase;text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.hero-scroll::after{content:'';width:1px;height:40px;background:linear-gradient(to bottom,rgba(200,213,48,.6),transparent);animation:scrollPulse 2s ease-in-out infinite}
@keyframes scrollPulse{0%,100%{opacity:.3;transform:scaleY(.7)}50%{opacity:1;transform:scaleY(1)}}

/* SECTIONS */
section{padding:7rem 3rem}
.section-eyebrow{font-size:.75rem;letter-spacing:4px;text-transform:uppercase;color:var(--chartreuse-soft);font-weight:600;margin-bottom:.8rem}
.section-eyebrow.dark{color:var(--navy)}
.section-title{font-family:'Cormorant Garamond',serif;font-size:clamp(2rem,4vw,3.2rem);font-weight:700;line-height:1.15;margin-bottom:1.2rem}
/* Was capped small to stay on one line, which made the site's opening statement
   read like a caption. It now carries the weight of a heading and wraps freely. */
.section-title.one-line{font-size:clamp(1.75rem,2.8vw,2.5rem);white-space:normal;letter-spacing:-.01em;text-wrap:balance}
.section-desc{color:var(--text-light);max-width:560px;font-size:1rem;line-height:1.7}
/* When hiding a section leaves two same-coloured ones touching, the second
   drops its top padding — otherwise the two paddings stack and read as a gap. */
.smash-merge-top{padding-top:0}

/* ABOUT */
.about{background:var(--cream);display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;max-width:1300px;margin:0 auto}
.about-visual{position:relative;height:450px;overflow:hidden}
.about-visual img{width:100%;height:100%;object-fit:cover}
.about-visual::after{content:'';position:absolute;bottom:-2px;right:-2px;width:100px;height:100px;background:var(--chartreuse)}
.about-stats{display:flex;gap:3rem;margin-top:2.5rem}
.stat{text-align:left}
.stat-number{font-family:'Cormorant Garamond',serif;font-size:2.8rem;font-weight:700;color:var(--navy);line-height:1}
.stat-label{font-size:.75rem;letter-spacing:1px;text-transform:uppercase;color:var(--text-light);margin-top:.3rem}

/* GALLERY STRIP */
.gallery-strip{background:var(--white);padding:0;overflow:hidden}
.gallery-row{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.gallery-row img{width:100%;height:280px;object-fit:cover;display:block;transition:transform .4s}
.gallery-row img:hover{transform:scale(1.03)}

/* ROOMS */
.rooms{background:var(--white)}
.rooms-header{text-align:center;margin-bottom:4rem}
.rooms-header .section-desc{margin:0 auto}
.rooms-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;max-width:1200px;margin:0 auto}
.room-card{background:var(--white);border:1px solid #E5E7EB;overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease);cursor:pointer;position:relative}
.room-card:hover{transform:translateY(-6px);border-color:#D9D5C9;box-shadow:0 2px 4px rgba(13,27,42,.04),0 18px 40px rgba(13,27,42,.10)}
.room-card::after{content:'View Details →';position:absolute;bottom:0;left:0;right:0;background:var(--navy);color:var(--white);text-align:center;padding:.6rem;font-size:.75rem;font-weight:600;letter-spacing:1px;text-transform:uppercase;transform:translateY(100%);transition:transform .3s}
.room-card:hover::after{transform:translateY(0)}
.room-img{height:220px;position:relative;overflow:hidden}
.room-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.room-card:hover .room-img img{transform:scale(1.05)}
.room-badge{position:absolute;top:1rem;left:1rem;background:var(--chartreuse);color:var(--navy-deep);padding:.3rem .8rem;font-size:.7rem;font-weight:700;letter-spacing:1px;text-transform:uppercase;z-index:1}
.room-body{padding:1.5rem}
.room-name{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:700;color:var(--navy);margin-bottom:.5rem}
.room-amenities{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.room-amenity{font-size:.72rem;color:var(--text-mid);background:var(--warm-gray);border:1px solid var(--edge);padding:.3rem .7rem;border-radius:2px;display:inline-flex;align-items:center;gap:.35rem}
.room-amenity .smash-icon{width:13px;height:13px;color:var(--navy);stroke-width:1.6}
.room-pricing{display:flex;align-items:baseline;justify-content:space-between;padding-top:1rem;border-top:1px solid #E5E7EB}
.room-price{font-size:1.6rem;font-weight:700;color:var(--navy)}
.room-price small{font-size:.8rem;font-weight:400;color:var(--text-light)}
.room-per-person{font-size:.8rem;color:var(--text-light)}
.rooms-note{text-align:center;margin-top:2.5rem;font-size:.85rem;color:var(--text-light)}
.rooms-note strong{color:var(--navy)}

/* ─── ROOM DETAIL MODAL ─── */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(13,27,42,.6);backdrop-filter:blur(4px);z-index:2000;justify-content:center;align-items:flex-start;padding:3rem 1.5rem;overflow-y:auto}
.modal-overlay.open{display:flex}
.modal{background:var(--white);max-width:900px;width:100%;border-radius:4px;overflow:hidden;animation:modalIn .3s ease;position:relative}
@keyframes modalIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
.modal:focus{outline:none}
.modal-close{position:absolute;top:1rem;right:1rem;z-index:10;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.5);border:none;color:var(--white);font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.modal-close:hover{background:rgba(0,0,0,.8)}

/* Photo gallery */
.modal-gallery{position:relative;height:400px;background:var(--navy-deep);overflow:hidden}
.modal-gallery img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;opacity:0;transition:opacity .4s}
.modal-gallery img.active{opacity:1}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.9);border:none;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;color:var(--navy)}
.gallery-nav:hover{background:var(--white);box-shadow:0 4px 15px rgba(0,0,0,.2)}
.gallery-prev{left:1rem}
.gallery-next{right:1rem}
.gallery-dots{position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);display:flex;gap:.5rem}
.gallery-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);border:none;cursor:pointer;transition:all .2s}
.gallery-dot.active{background:var(--white);transform:scale(1.3)}
.gallery-counter{position:absolute;top:1rem;left:1rem;background:rgba(0,0,0,.5);color:var(--white);padding:.3rem .8rem;border-radius:2px;font-size:.75rem;font-weight:600}

/* Modal body */
.modal-body{padding:2rem 2.5rem}
.modal-room-name{font-family:'Cormorant Garamond',serif;font-size:2rem;font-weight:700;color:var(--navy);margin-bottom:.3rem}
.modal-room-subtitle{font-size:.9rem;color:var(--text-light);margin-bottom:1.5rem}
.modal-section-title{font-size:.75rem;letter-spacing:2px;text-transform:uppercase;color:var(--navy);font-weight:700;margin-bottom:.8rem;padding-bottom:.5rem;border-bottom:1px solid #E5E7EB}
.modal-amenities-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem .5rem;margin-bottom:2rem}
.modal-amenity{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text);padding:.4rem 0}
.modal-amenity .check{color:var(--green);font-size:.9rem}
.modal-desc{font-size:.9rem;color:var(--text-light);line-height:1.7;margin-bottom:2rem}

/* Highlights strip */
.modal-highlights{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:2rem}
.modal-highlight{display:flex;align-items:center;gap:.45rem;font-size:.78rem;color:var(--text);background:var(--cream);padding:.4rem .8rem;border-radius:2px;border:1px solid #E5E7EB}
.modal-highlight .smash-icon{width:14px;height:14px;color:var(--navy);stroke-width:1.6}

/* Price box */
.modal-price-box{background:var(--cream);border:1px solid #E5E7EB;padding:1.5rem;margin-bottom:1.5rem}
.modal-price-guests{display:flex;align-items:center;gap:.2rem;font-size:1.1rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #E5E7EB;color:var(--navy)}
.modal-price-guests .smash-icon{width:18px;height:18px;stroke-width:1.5}
.modal-price-guests span{font-size:.75rem;letter-spacing:1px;text-transform:uppercase;font-weight:700;color:var(--text-light);margin-left:.6rem}
/* Two rate lines, one per board type: nightly price, the board it buys, then
   the weekly equivalent in brackets. Both lines carry the same weight so the
   guest can compare them at a glance. */
.modal-price-row{display:flex;align-items:baseline;gap:.7rem;margin-bottom:.65rem}
.modal-price-label{font-size:.85rem;color:var(--text-light)}
.modal-price-value{font-size:1rem;font-weight:600;color:var(--navy)}
/* The two min-widths line the brackets up between the rows without pushing
   them away from the price. Dropped on phones, where the room is needed. */
.modal-price-main{font-size:1.85rem;font-weight:700;color:var(--navy);flex:none;min-width:6.8rem}
.modal-price-main small{font-size:.85rem;font-weight:400;color:var(--text-light)}
.modal-price-plan{font-size:1.05rem;font-weight:700;color:var(--navy);letter-spacing:.3px;min-width:6.2rem}
/* Sits right after the nightly figure rather than being pushed to the far
   edge, so the two prices read as one statement. */
.modal-price-week{font-size:1rem;font-weight:600;color:var(--text-light);white-space:nowrap}
.modal-price-perks{list-style:none;margin-top:1rem;display:flex;flex-direction:column;gap:.4rem}
.modal-price-perks li{font-size:.82rem;color:var(--green);display:flex;align-items:center;gap:.5rem}
.modal-price-perks li::before{content:'✓';font-weight:700}

.modal-inquire-btn{display:block;width:100%;padding:1rem;background:var(--navy);color:var(--white);border:none;font-family:'DM Sans',sans-serif;font-size:.85rem;font-weight:700;letter-spacing:2px;text-transform:uppercase;cursor:pointer;text-align:center;text-decoration:none;transition:all .3s}
.modal-inquire-btn:hover{background:var(--navy-deep);box-shadow:0 8px 22px rgba(13,27,42,.25)}
.modal-inquire-btn:active{transform:translateY(0)}

/* TRAINING */
.training{background:var(--navy-deep);color:var(--white)}
.training-header{text-align:center;margin-bottom:4rem}
.training-header .section-title{color:var(--white)}
.training-header .section-desc{color:rgba(255,255,255,.6);margin:0 auto}
.packages-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.2rem;max-width:1200px;margin:0 auto}
.package-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:2rem 1.5rem;transition:background-color .3s var(--ease),border-color .3s var(--ease);position:relative;display:flex;flex-direction:column}
/* Cards stretch to match the tallest, so shorter ones ended in empty navy.
   This line is pinned to the bottom and closes the card off. */
.package-foot{margin-top:auto;padding-top:1.1rem;border-top:1px solid rgba(255,255,255,.09);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--chartreuse);font-weight:600}
.package-card:hover{background:rgba(255,255,255,.07);border-color:rgba(200,213,48,.3)}
.package-card.featured{border-color:var(--chartreuse)}
.package-card.featured::before{content:'MOST POPULAR';position:absolute;top:-.6rem;left:1.5rem;background:var(--chartreuse);color:var(--navy-deep);font-size:.65rem;font-weight:700;letter-spacing:1px;padding:.2rem .6rem}
.package-name{font-family:'Cormorant Garamond',serif;font-size:1.3rem;font-weight:700;margin-bottom:1.1rem}
.package-price{font-size:2rem;font-weight:700;color:var(--chartreuse);margin-bottom:1.2rem}
.package-price small{font-size:.85rem;font-weight:400;color:rgba(255,255,255,.5)}
.package-features{list-style:none;display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.35rem}
.package-features li{font-size:.85rem;color:rgba(255,255,255,.7);padding-left:1.2rem;position:relative}
.package-features li::before{content:'';position:absolute;left:0;top:.5em;width:6px;height:6px;background:var(--chartreuse);border-radius:50%}
.training-extras{max-width:1200px;margin:3rem auto 0;display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.extra-card{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);padding:1.5rem}
.extra-title{font-weight:600;font-size:.9rem;margin-bottom:.6rem;color:var(--chartreuse)}
.extra-desc{font-size:.85rem;color:rgba(255,255,255,.6);line-height:1.6}

/* FACILITIES */
.facilities{background:var(--cream)}
.facilities-header{text-align:center;margin-bottom:4rem}
.facilities-header .section-desc{margin:0 auto}
.facilities-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;max-width:1000px;margin:0 auto}
/* A last row holding a single card left two visible gaps; centre it instead. */
@media(min-width:901px){.facilities-grid>:last-child:nth-child(3n+1){grid-column:2}}
.facility-item{text-align:center;padding:2.5rem 1.5rem;background:var(--white);border:1px solid #E5E7EB;transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease)}
.facility-item:hover{transform:translateY(-4px);border-color:#D9D5C9;box-shadow:0 2px 4px rgba(13,27,42,.03),0 14px 32px rgba(13,27,42,.07)}
.facility-icon{margin-bottom:1rem;display:flex;justify-content:center;color:var(--navy)}
.facility-icon .smash-icon{width:30px;height:30px;stroke-width:1.4}
.facility-icon .smash-icon-text{font-size:2rem}
.facility-name{font-family:'Cormorant Garamond',serif;font-size:1.2rem;font-weight:700;color:var(--navy);margin-bottom:.4rem}
.facility-desc{font-size:.8rem;color:var(--text-light);line-height:1.5}

/* DISCOUNTS */
.discounts{background:var(--navy);color:var(--white);text-align:center;padding:4rem 3rem}
.discounts .section-title{color:var(--white);margin-bottom:2.5rem}
.discounts-row{display:flex;justify-content:center;gap:4rem;flex-wrap:wrap}
.discount-item{text-align:center}
.discount-percent{font-family:'Cormorant Garamond',serif;font-size:3rem;font-weight:700;color:var(--chartreuse);line-height:1}
.discount-label{font-size:.8rem;color:rgba(255,255,255,.6);margin-top:.3rem;letter-spacing:1px}

/* INQUIRY */
.inquiry{background:var(--white);max-width:700px;margin:0 auto;text-align:center}
.inquiry .section-desc{margin:0 auto 3rem}
.inquiry-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem;text-align:left}
.form-group{display:flex;flex-direction:column;gap:.4rem}
.form-group.full{grid-column:1/-1}
/* Conditional fields stay out of the layout until their trigger is chosen.
   Needed explicitly because .form-group sets display:flex, which would
   otherwise beat the browser's default styling for [hidden]. */
.form-group[hidden]{display:none}
/* A field revealed by an answer (e.g. "Type reason of stay") eases in rather than popping. */
.form-group[data-show-when]:not([hidden]){animation:fieldIn .35s var(--ease)}
@keyframes fieldIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.form-group label{font-size:.75rem;letter-spacing:1px;text-transform:uppercase;color:var(--text-light);font-weight:600}
.form-group input,.form-group select,.form-group textarea{font-family:'DM Sans',sans-serif;font-size:.95rem;padding:.85rem 1rem;border:1px solid #D1D5DB;background:var(--cream);color:var(--text);outline:none;transition:border-color .3s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--navy)}
.form-group textarea{resize:vertical;min-height:120px}

/* PASSPORT / ID UPLOAD — a drop zone in the same cream and hairline as the
   other fields. The real file input is stretched invisibly over it, so a tap
   or a dropped file both land on the browser's own control. */
.file-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:1.7rem 1rem 1.5rem;border:1px dashed #C4C9D0;background:var(--cream);text-align:center;transition:border-color .3s var(--ease),background-color .3s var(--ease)}
.file-drop:hover,.file-drop.is-drag,.file-drop:focus-within{border-color:var(--navy);background:#F6F4EF}
.form-group .file-drop input{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;opacity:0;cursor:pointer}
.file-drop-icon{width:44px;height:44px;margin-bottom:.35rem;border-radius:50%;background:var(--white);border:1px solid #E5E7EB;display:flex;align-items:center;justify-content:center;color:var(--navy);transition:transform .3s var(--ease),background-color .3s var(--ease),color .3s var(--ease)}
.file-drop-icon .smash-icon{width:20px;height:20px}
.file-drop:hover .file-drop-icon,.file-drop.is-drag .file-drop-icon{transform:translateY(-2px);background:var(--navy);color:var(--chartreuse)}
.file-drop-text{font-size:.92rem;color:var(--text)}
.file-drop-text strong{color:var(--navy);font-weight:700}
.file-drop-sub{font-size:.82rem;color:var(--text-mid);max-width:420px}
.file-drop-hint{font-size:.74rem;letter-spacing:.3px;color:var(--text-light)}
.file-list{list-style:none;display:flex;flex-direction:column;gap:.5rem;margin-top:.6rem}
.file-list:empty{display:none}
.file-item{display:flex;align-items:center;gap:.75rem;padding:.65rem .75rem .65rem .9rem;background:var(--white);border:1px solid #E5E7EB;font-size:.86rem;animation:fileIn .35s var(--ease)}
.file-item .smash-icon{width:18px;height:18px;flex:none;color:var(--navy)}
.file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.file-size{flex:none;font-size:.76rem;color:var(--text-light)}
.file-item.is-busy .file-size{color:var(--navy)}
.file-remove{flex:none;width:28px;height:28px;border-radius:50%;border:none;background:var(--warm-gray);color:var(--navy);font-size:1.05rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s}
.file-remove:hover{background:#E4E0D8}
.file-error{font-size:.8rem;color:#dc2626;margin-top:.5rem}
.file-privacy{font-size:.74rem;color:var(--text-light);margin-top:.5rem}
@keyframes fileIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.form-submit{grid-column:1/-1;margin-top:.5rem}
.form-submit button{width:100%;padding:1rem;background:var(--navy);color:var(--white);border:none;font-family:'DM Sans',sans-serif;font-size:.85rem;font-weight:700;letter-spacing:2px;text-transform:uppercase;cursor:pointer;transition:background-color .25s var(--ease),transform .25s var(--ease),box-shadow .25s var(--ease)}
.form-submit button:hover{background:var(--navy-deep);transform:translateY(-1px);box-shadow:0 8px 22px rgba(13,27,42,.25)}
.form-submit button:active{transform:translateY(0)}
.form-note{grid-column:1/-1;font-size:.78rem;color:var(--text-light);text-align:center;margin-top:.5rem}

/* Inquiry feedback messages (WordPress-side form handling) */
.form-message{grid-column:1/-1;padding:1rem 1.2rem;font-size:.88rem;border-radius:2px;margin-bottom:.5rem;text-align:left}
.form-message.success{background:var(--green-light);border:1px solid var(--green);color:var(--green)}
.form-message.error{background:#fef2f2;border:1px solid #dc2626;color:#dc2626}

/* JUMP LINKS — on phones and tablets the section padding is shorter than the
   fixed bar, so a menu jump hid each heading under it. Stop a little earlier,
   leaving the same gap below the bar as desktop has. */
@media(max-width:900px){main section[id]{scroll-margin-top:54px}}

/* INQUIRIES CLOSED — the fully booked notice. It stays until the visitor closes it. */
.closed-overlay{position:fixed;inset:0;z-index:2100;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:rgba(13,27,42,.6);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:opacity .35s var(--ease),visibility .35s}
.closed-overlay.open{opacity:1;visibility:visible}
.closed-card{position:relative;width:100%;max-width:520px;background:radial-gradient(circle at 50% 0,rgba(200,213,48,.09),transparent 62%),var(--navy-deep);color:var(--white);text-align:center;padding:3rem 2.5rem 2.6rem;border-radius:4px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35);opacity:0;transform:translateY(30px) scale(.98);transition:opacity .45s var(--ease),transform .45s var(--ease)}
.closed-overlay.open .closed-card{opacity:1;transform:none}
.closed-card:focus{outline:none}
.closed-overlay :focus-visible{outline-color:var(--chartreuse)}
.closed-close{position:absolute;top:1rem;right:1rem;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);border:none;color:var(--white);font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.closed-close:hover{background:rgba(255,255,255,.18)}
.closed-icon{width:64px;height:64px;margin:0 auto 1.4rem;border:1px solid rgba(200,213,48,.45);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--chartreuse)}
.closed-icon .smash-icon{width:28px;height:28px}
.closed-eyebrow{font-size:.75rem;letter-spacing:4px;text-transform:uppercase;color:var(--chartreuse);font-weight:600;margin-bottom:.8rem}
.closed-title{font-family:'Cormorant Garamond',serif;font-size:clamp(1.9rem,4vw,2.5rem);font-weight:700;line-height:1.15;margin-bottom:1rem}
.closed-message{font-size:.95rem;line-height:1.75;color:rgba(255,255,255,.72);max-width:420px;margin:0 auto 2rem}
.closed-btn{background:var(--chartreuse);color:var(--navy-deep);border:none;padding:.95rem 2.6rem;font-family:'DM Sans',sans-serif;font-size:.8rem;font-weight:700;letter-spacing:2px;text-transform:uppercase;cursor:pointer;transition:background-color .25s var(--ease),transform .25s var(--ease),box-shadow .25s var(--ease)}
.closed-btn:hover{background:var(--chartreuse-soft);transform:translateY(-2px);box-shadow:0 8px 24px rgba(200,213,48,.32)}
.closed-btn:active{transform:translateY(0)}
@media(max-width:640px){
    .closed-card{padding:2.6rem 1.5rem 2.3rem}
    .closed-icon{width:56px;height:56px;margin-bottom:1.1rem}
    .closed-message{font-size:.9rem;margin-bottom:1.6rem}
}

/* Flatpickr calendar - themed to match the site */
.flatpickr-calendar{box-shadow:0 10px 40px rgba(0,0,0,.15);border-radius:2px}
.flatpickr-day.selected,.flatpickr-day.selected:hover{background:var(--navy);border-color:var(--navy)}
.flatpickr-day.today{border-color:var(--chartreuse)}
.flatpickr-day:hover{background:var(--warm-gray)}
.flatpickr-months .flatpickr-month,.flatpickr-current-month .flatpickr-monthDropdown-months{background:var(--navy);color:var(--white)}
.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{fill:var(--white)}
.flatpickr-current-month input.cur-year,.flatpickr-current-month .flatpickr-monthDropdown-months{color:var(--white)}
span.flatpickr-weekday{background:var(--navy);color:rgba(255,255,255,.7)}

/* FOOTER */
footer{background:var(--navy-deep);color:rgba(255,255,255,.5);padding:4rem 3rem 2rem}
.footer-top{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:2rem;max-width:1200px;margin:0 auto;padding-bottom:2.5rem;border-bottom:1px solid rgba(255,255,255,.06)}
.footer-brand{max-width:300px}
.footer-logo{font-family:'Cormorant Garamond',serif;font-size:1.4rem;font-weight:700;color:var(--white);letter-spacing:3px;text-transform:uppercase;margin-bottom:.8rem}
.footer-logo span{color:var(--chartreuse)}
.footer-brand p{font-size:.85rem;line-height:1.6}
.footer-links{display:flex;gap:4rem}
.footer-col h4{color:var(--white);font-size:.75rem;letter-spacing:2px;text-transform:uppercase;margin-bottom:1rem}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.footer-col a{color:rgba(255,255,255,.5);text-decoration:none;font-size:.85rem;transition:color .3s}
.footer-col a:hover{color:var(--chartreuse)}
.footer-bottom{max-width:1200px;margin:1.5rem auto 0;display:flex;justify-content:space-between;align-items:center;font-size:.78rem}

/* WORDPRESS CORE / ACCESSIBILITY */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;clip-path:none;color:#21759b;display:block;font-size:.875rem;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}
.skip-link:focus{outline:2px solid var(--chartreuse)}
body.admin-bar nav{top:32px}
@media(max-width:782px){body.admin-bar nav{top:46px}}

/* Generic page/post content (fallback template) */
.page-content{max-width:800px;margin:0 auto;padding-top:2rem}
.page-content h1,.page-content h2,.page-content h3{font-family:'Cormorant Garamond',serif;color:var(--navy);margin-bottom:1rem;line-height:1.2}
.page-content p{margin-bottom:1.2rem;color:var(--text-light)}
.page-content a{color:var(--navy)}
.page-content img{max-width:100%;height:auto}
.page-content ul,.page-content ol{margin:0 0 1.2rem 1.5rem;color:var(--text-light)}
.page-hero{padding-top:10rem}
.alignleft{float:left;margin-right:1.5rem}
.alignright{float:right;margin-left:1.5rem}
.aligncenter{display:block;margin-left:auto;margin-right:auto}

/* ─── FULL-SCREEN MOBILE MENU ────────────────────────────────────────────
   A top-level element, never nested inside the navbar. Toggled with a class
   rather than display, so it can fade and so it stays out of the tab order
   while closed (visibility:hidden). */
.mobile-menu{display:none}
/* The link list is a <nav> as well, so the fixed-position navbar rules further
   up would pin it to the top of the screen. Put it back to a normal element. */
.mobile-menu-nav{
    position:static;padding:0;z-index:auto;transition:none;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2rem
}
@media(max-width:900px){
    .mobile-menu{
        display:flex;flex-direction:column;align-items:center;justify-content:center;
        position:fixed;inset:0;z-index:1500;
        background:var(--navy-deep);
        padding:5.5rem 1.5rem 3rem;
        overflow-y:auto;-webkit-overflow-scrolling:touch;
        opacity:0;visibility:hidden;
        transition:opacity .28s var(--ease),visibility .28s
    }
    .mobile-menu.open{opacity:1;visibility:visible}
    .mobile-menu-nav{display:flex;flex-direction:column;align-items:center;gap:2rem}
    .mobile-menu a{
        color:rgba(255,255,255,.9);text-decoration:none;
        font-size:1.15rem;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;
        transition:color .25s var(--ease)
    }
    .mobile-menu a:active{color:var(--chartreuse)}
    .mobile-menu a.nav-cta{
        background:var(--chartreuse);color:var(--navy-deep);
        padding:.85rem 2rem;border-radius:2px;font-weight:700;margin-top:.5rem
    }
    .mobile-menu-close{
        position:absolute;top:1.15rem;right:1.35rem;
        width:44px;height:44px;
        display:flex;align-items:center;justify-content:center;
        background:none;border:none;cursor:pointer;
        color:var(--white);font-size:2.1rem;line-height:1
    }
    .mobile-menu :focus-visible{outline-color:var(--chartreuse)}
}

/* ─── STICKY MOBILE ACTION BAR ───────────────────────────────────────────
   Hidden by default; only phones and tablets get it, and only once the
   visitor has scrolled past the hero (the .show class is added in main.js). */
.mobile-cta{display:none}
.mobile-cta-price{font-size:.78rem;color:rgba(255,255,255,.72);line-height:1.25}
.mobile-cta-price strong{display:block;color:var(--white);font-size:.95rem;font-weight:600}
.mobile-cta-btn{
    margin-left:auto;background:var(--chartreuse);color:var(--navy-deep);
    padding:.8rem 1.6rem;border-radius:2px;text-decoration:none;
    font-size:.78rem;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
    transition:background-color .25s var(--ease)
}
.mobile-cta-btn:active{background:var(--chartreuse-soft)}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────
   Three tiers: desktop grids above 900px, roomier two-up grids on tablets,
   and swipeable card rails on phones so the page stops being one endless
   column of stacked cards. */

/* TABLET & BELOW */
@media(max-width:900px){
    nav{padding:1rem 1.5rem}nav.scrolled{padding:.7rem 1.5rem}
    /* The bar's own link list is desktop-only; phones get .mobile-menu, which
       lives outside <nav> where nothing can clip it. */
    .nav-links{display:none}
    .nav-hamburger{display:flex}
    section{padding:4rem 1.5rem}
    .about{grid-template-columns:1fr;gap:2rem}.about-visual{height:300px}
    .gallery-row img{height:220px}
    .rooms-grid{grid-template-columns:repeat(2,1fr);max-width:660px}
    .packages-grid{grid-template-columns:repeat(2,1fr);max-width:660px;margin:0 auto}
    .training-extras{grid-template-columns:1fr}
    .facilities-grid{grid-template-columns:repeat(3,1fr);gap:1rem}
    .discounts-row{gap:2rem}
    .inquiry-form{grid-template-columns:1fr}
    .footer-top{flex-direction:column}.footer-links{gap:2rem}
    .footer-bottom{flex-direction:column;gap:.5rem;text-align:center}
    .modal{margin:1rem}.modal-gallery{height:280px}
    .modal-body{padding:1.5rem}
    .modal-amenities-grid{grid-template-columns:1fr}
    .modal-overlay{padding:1rem}

    /* Room of its own for the sticky bar, so it never covers the footer. */
    body{padding-bottom:4.9rem}
    .mobile-cta{
        display:flex;align-items:center;gap:.9rem;
        position:fixed;left:0;right:0;bottom:0;z-index:900;
        padding:.75rem 1.25rem;
        padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px));
        background:rgba(13,27,42,.97);backdrop-filter:blur(12px);
        border-top:1px solid rgba(255,255,255,.09);
        transform:translateY(115%);
        transition:transform .38s var(--ease)
    }
    .mobile-cta.show{transform:translateY(0)}
}

/* PHONES — swipeable rails replace stacked cards */
@media(max-width:640px){
    section{padding:3.4rem 1.25rem}

    /* Hero fills exactly the visible area. `svh` is the viewport height with the
       browser's own chrome showing, which is what a phone actually displays on
       load — plain `vh` is taller than the screen on iOS and left a blank strip
       of the next section showing under the photo. */
    .hero{height:auto;min-height:100vh;min-height:100svh;padding:7rem 1.25rem 3.5rem}
    /* Break the headline where the design does: name, then the accent line. */
    .hero h1{font-size:clamp(2.1rem,10vw,3.1rem);letter-spacing:.5px}
    .hero h1 em{display:block}
    .hero-eyebrow{font-size:.68rem;letter-spacing:3.5px;margin-bottom:1rem}
    .hero-sub{font-size:.98rem;margin-bottom:2rem}
    .hero-cta{padding:.95rem 2.4rem}

    .section-title{font-size:clamp(1.9rem,8vw,2.4rem)}
    .section-title.one-line{font-size:clamp(1.6rem,6.6vw,2rem)}
    .section-desc{font-size:.94rem}

    /* About: image shorter, the three figures kept on one line. */
    .about-visual{height:230px}
    .about-visual::after{width:64px;height:64px}
    /* Two up rather than one cramped row — stays readable whether there are
       three figures or six. */
    .about-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1.3rem 1rem;margin-top:1.9rem}
    .stat-number{font-size:2.1rem}
    .stat-label{font-size:.66rem;letter-spacing:.5px;margin-top:.25rem}

    /* Shared rail behaviour: full-bleed, snap to each card, no scrollbar. */
    .gallery-row,.rooms-grid,.packages-grid{
        display:grid;
        grid-auto-flow:column;
        grid-template-columns:none;
        overflow-x:auto;
        overscroll-behavior-x:contain;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none
    }
    .gallery-row::-webkit-scrollbar,
    .rooms-grid::-webkit-scrollbar,
    .packages-grid::-webkit-scrollbar{display:none}
    .gallery-row>*,.rooms-grid>*,.packages-grid>*{scroll-snap-align:start}

    .gallery-row{grid-auto-columns:78%;gap:4px;scroll-padding-left:0}
    .gallery-row img{height:225px}

    .rooms-grid,.packages-grid{
        grid-auto-columns:79%;
        gap:.85rem;
        max-width:none;
        margin:0 -1.25rem;
        padding:.3rem 1.25rem .6rem;
        scroll-padding-left:1.25rem
    }
    .room-img{height:200px}
    /* No hover on touch, so the "View Details" bar is shown outright and the
       card body reserves space for it. */
    .room-card::after{transform:translateY(0)}
    .room-body{padding-bottom:3.3rem}
    .rooms-note{margin-top:1.75rem;font-size:.8rem}

    /* Facilities: two up, with a lone last tile spanning the full width
       instead of leaving a gap beside it. */
    .facilities-grid{grid-template-columns:repeat(2,1fr);gap:.7rem}
    .facilities-grid>:last-child:nth-child(odd){grid-column:1/-1}
    .facility-item{padding:1.6rem .9rem}
    .facility-icon{margin-bottom:.7rem}
    .facility-icon .smash-icon{width:26px;height:26px}
    .facility-name{font-size:1.02rem}
    .facility-desc{font-size:.74rem}

    .training-header,.facilities-header,.rooms-header{margin-bottom:2.25rem}
    .training-extras{margin-top:2rem;gap:.85rem}

    /* Discounts stay on one line — three figures read as a set. */
    .discounts{padding:3rem 1.25rem}
    .discounts .section-title{margin-bottom:1.75rem}
    .discounts-row{gap:.5rem;flex-wrap:nowrap;justify-content:space-between}
    .discount-percent{font-size:2.2rem}
    .discount-label{font-size:.66rem;letter-spacing:.3px}

    .inquiry{padding-top:3.4rem}
    .inquiry .section-desc{margin-bottom:2rem}

    footer{padding:3rem 1.25rem 1.5rem}
    .modal-gallery{height:230px}
    .modal-body{padding:1.25rem}
    .modal-room-name{font-size:1.65rem}
    /* Let the rate lines wrap instead of forcing a three-column grid into a
       narrow screen. */
    .modal-price-row{flex-wrap:wrap;gap:.35rem .6rem}
    .modal-price-main,.modal-price-plan{min-width:0}
    .modal-price-main{font-size:1.6rem}
}

@media(max-width:380px){
    .rooms-grid,.packages-grid{grid-auto-columns:85%}
    .stat-number{font-size:1.75rem}
    .discount-percent{font-size:1.95rem}
}
