/* =============================================================
   Veloz — global styles
   Clean, minimalist, editorial layout (Qi-style recreation).
   Palette + type are driven by CSS variables for easy rebranding.
   ============================================================= */

:root {
    --bg:           #ffffff;
    --bg-alt:       #f6f4f1;   /* warm off-white section background */
    --bg-dark:      #14181b;   /* near-black */
    --ink:          #1c1f22;   /* primary text */
    --ink-soft:     #6b7177;   /* muted text */
    --line:         #e6e2dc;   /* hairline borders */
    --accent:       #2f6f7e;   /* nautical teal accent */
    --accent-dark:  #234f5a;
    --white:        #ffffff;

    --container:    1280px;
    --gutter:       40px;
    --radius:       2px;

    --f-head:    'Work Sans', sans-serif;              /* labels, eyebrows, small caps */
    --f-body:    'DM Sans', sans-serif;                /* body copy */
    --f-display: 'Cormorant', Georgia, serif;          /* serif display for hero + logo */

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--f-head);
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 .4em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; }
p  { margin: 0 0 1.4em; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: 120px 0; }
[id] { scroll-margin-top: 90px; }   /* offset anchor jumps for the fixed header */
.section--tight { padding: 80px 0; }
.bg-alt    { background: var(--bg-alt); }
.bg-dark   { background: var(--bg-dark); color: var(--white); }
.text-center { text-align: center; }

.eyebrow {
    font-size: .8rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.2em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 18px 42px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    color: var(--ink);
    position: relative;
    overflow: hidden;
    transition: color .4s var(--ease);
    z-index: 0;
}
.btn::after {
    content: "";
    position: absolute; inset: 0;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
    z-index: -1;
}
.btn:hover { color: var(--white); }
.btn:hover::after { transform: scaleX(1); }

.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent::after { background: var(--accent); }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light::after { background: var(--white); }
.btn-light:hover { color: var(--ink); }

.link-arrow {
    display: inline-flex; align-items: center; gap: .6em;
    font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
    font-weight: 500; color: var(--ink);
}
.link-arrow::after { content: "\2192"; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(6px); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 26px 0;
    transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 6px 30px rgba(0,0,0,.07);
}
.header-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: baseline; gap: .35em; color: var(--white); }
.site-header.scrolled .logo,
.page-inner .logo { color: var(--ink); }
.logo-mark { font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; letter-spacing: .01em; }
.logo-sub  { font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; font-weight: 400; opacity: .8; }

.main-nav ul { display: flex; gap: 42px; }
.main-nav a {
    color: var(--white);
    font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
    position: relative; padding: 6px 0;
}
.site-header.scrolled .main-nav a,
.page-inner .main-nav a { color: var(--ink); }
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: var(--accent); transition: width .35s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); transition: .3s var(--ease); }
.site-header.scrolled .nav-toggle span,
.page-inner .nav-toggle span { background: var(--ink); }

/* =============================================================
   HERO (homepage slider)
   ============================================================= */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.5) 100%); }

.hero-content {
    position: relative; z-index: 2;
    height: 100%;
    max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    color: var(--white);
}
.hero-est {
    font-family: var(--f-head);            /* Work Sans */
    font-size: 11px; font-weight: 500; text-transform: uppercase;
    letter-spacing: 2.2px; line-height: 26px;
    opacity: .95; margin-bottom: .2em; padding-left: 2.2px;
}
.hero-title {
    font-family: var(--f-display);         /* Cormorant */
    font-weight: 500;
    font-size: clamp(75px, 11.5vw, 160px); /* matches original 160px desktop / 75px small */
    line-height: 1.1;
    letter-spacing: -0.025em;              /* original -4px at 160px */
    margin: 0;
}
.hero-tagline {
    font-family: var(--f-display);         /* Cormorant italic */
    font-style: italic;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    max-width: 30ch;
    opacity: .98;
    margin: 8px auto 0;
}

/* vertical social rail (left) */
.hero-social {
    position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.hero-social-icon {
    width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%;
    display: grid; place-items: center; color: var(--white);
    transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.hero-social-icon svg { width: 17px; height: 17px; }
.hero-social-icon:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.hero-social-label {
    font-family: var(--f-display); font-style: italic; font-size: 1rem; opacity: .85;
    margin-top: 14px; writing-mode: vertical-rl; letter-spacing: .05em;
}

/* numbered slide indicators (bottom-right) */
.hero-dots { position: absolute; bottom: 56px; right: calc(var(--gutter) + 10px); z-index: 3; display: flex; align-items: center; gap: 20px; }
.hero-dots button {
    font-family: var(--f-head); font-size: 1rem; letter-spacing: .05em;
    color: rgba(255,255,255,.6); transition: color .3s var(--ease);
}
.hero-dots button:hover { color: var(--white); }
.hero-dots button.active {
    color: var(--white);
    width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%;
    display: grid; place-items: center;
}

/* =============================================================
   CTA BANNER strip
   ============================================================= */
.cta-strip { background: var(--accent); color: var(--white); }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 46px; padding-bottom: 46px; flex-wrap: wrap; }
.cta-strip h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 300; margin: 0; }

/* =============================================================
   GENERIC two-column feature
   ============================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.split--reverse .split-media { order: 2; }
.split-text h2 { margin-bottom: .5em; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media { position: relative; }
.split-media .img-tall { aspect-ratio: 4/5; }

/* =============================================================
   QUOTE / testimonial
   ============================================================= */
.quote-band {
    position: relative; padding: 160px 0; color: var(--white); text-align: center;
    background-size: cover; background-position: center; background-attachment: fixed;
}
.quote-band::before { content: ""; position: absolute; inset: 0; background: rgba(15,20,24,.55); }
.quote-band .container { position: relative; z-index: 1; max-width: 900px; }
.quote-band blockquote { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.4; margin: 0 0 .8em; }
.quote-band cite { font-style: normal; letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; opacity: .85; }

/* =============================================================
   LOCATION / work grid
   ============================================================= */
.section-head { max-width: 640px; margin-bottom: 70px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: var(--bg-alt);
}
.card-img { aspect-ratio: 3/4; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 28px 26px 32px; }
.card-body h3 { font-size: 1.35rem; margin-bottom: .3em; }
.card-body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1.2em; }

/* =============================================================
   LOCATIONS list (numbered columns)
   ============================================================= */
.loc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.loc-item { padding: 46px 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .35s var(--ease); }
.loc-item:nth-child(4n) { border-right: none; }
.loc-item:hover { background: var(--white); }
.loc-num { font-size: .8rem; letter-spacing: .2em; color: var(--accent); display: block; margin-bottom: 1.4em; }
.loc-item h3 { font-size: 1.7rem; font-weight: 300; }

/* =============================================================
   FEATURE icon boxes
   ============================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; }
.feature { text-align: center; }
.feature-icon {
    width: 76px; height: 76px; margin: 0 auto 26px;
    border: 1px solid var(--line); border-radius: 50%;
    display: grid; place-items: center; color: var(--accent);
    transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.feature:hover .feature-icon { background: var(--accent); color: var(--white); border-color: var(--accent); }
.feature-icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.2rem; }
.feature p { font-size: .92rem; color: var(--ink-soft); }

/* =============================================================
   AMENITIES / expandable accordion (horizontal)
   ============================================================= */
.amenities { display: flex; gap: 14px; height: 520px; }
.amenity {
    position: relative; flex: 1; overflow: hidden; border-radius: var(--radius);
    cursor: pointer; transition: flex .6s var(--ease);
    background-size: cover; background-position: center;
}
.amenity.open { flex: 3.4; }
.amenity::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.65)); }
.amenity-label { position: absolute; z-index: 2; bottom: 30px; left: 28px; right: 28px; color: var(--white); }
.amenity-toggle {
    position: absolute; z-index: 2; top: 24px; right: 24px;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18);
    color: var(--white); font-size: 1.4rem; display: grid; place-items: center;
    backdrop-filter: blur(4px); transition: transform .4s var(--ease), background .4s var(--ease);
}
.amenity.open .amenity-toggle { transform: rotate(45deg); background: var(--accent); }
.amenity-label h3 { font-size: 1.4rem; margin-bottom: .2em; }
.amenity-label p { font-size: .92rem; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .5s var(--ease) .15s, max-height .5s var(--ease); margin: 0; }
.amenity.open .amenity-label p { opacity: .9; max-height: 120px; margin-top: .5em; }

/* =============================================================
   STATS band
   ============================================================= */
.stats-band { position: relative; color: var(--white); background-size: cover; background-position: center; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: rgba(15,20,24,.6); }
.stats-band .container { position: relative; z-index: 1; }
.stats-band .section-head { color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; text-align: center; }
.stat-num { font-family: var(--f-head); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 300; line-height: 1; }
.stat-num span { font-size: 1.1rem; letter-spacing: .1em; }
.stat-label { letter-spacing: .25em; text-transform: uppercase; font-size: .78rem; opacity: .8; margin-top: .8em; }

/* =============================================================
   BLOG / news cards
   ============================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.post-img { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post-img img { transform: scale(1.07); }
.post-meta { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .7em; }
.post h3 { font-size: 1.25rem; line-height: 1.3; }
.post h3 a:hover { color: var(--accent); }

/* =============================================================
   FOOTER CTA + FOOTER
   ============================================================= */
.footer-cta { background: var(--bg-dark); color: var(--white); text-align: center; padding: 110px 0; }
.footer-cta h2 { font-weight: 300; margin-bottom: 1em; }

.site-footer { background: #0f1316; color: #b9bdc1; font-size: .95rem; padding-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 70px; }
.footer-col h4 { color: var(--white); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.6em; font-weight: 500; }
.logo--footer { color: var(--white); margin-bottom: 1.4em; }
.footer-list li { margin-bottom: 1em; }
.footer-list span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .2em; }
.footer-list a:hover, .footer-list--links a:hover { color: var(--white); }

.social { display: flex; gap: 12px; margin-top: 24px; }
.social-link {
    width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
    display: grid; place-items: center; font-size: .62rem; letter-spacing: .05em; color: var(--white);
    transition: background .35s var(--ease), border-color .35s var(--ease);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); }

.newsletter { display: flex; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.newsletter input { flex: 1; background: none; border: none; padding: 14px 16px; color: var(--white); font-family: inherit; outline: none; }
.newsletter input::placeholder { color: var(--ink-soft); }
.newsletter button { padding: 0 20px; background: var(--accent); color: var(--white); font-size: 1.2rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* =============================================================
   INNER PAGE banner
   ============================================================= */
.page-banner {
    position: relative; min-height: 60vh; display: flex; align-items: flex-end;
    color: var(--white); background-size: cover; background-position: center;
    padding-bottom: 80px;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.6)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner .eyebrow { color: rgba(255,255,255,.85); }
.page-banner h1 { font-weight: 300; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .7em; }
.field input, .field textarea {
    width: 100%; border: none; border-bottom: 1px solid var(--line);
    padding: 12px 0; font-family: inherit; font-size: 1rem; color: var(--ink);
    background: none; outline: none; transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.info-block { margin-bottom: 40px; }
.info-block span { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .5em; }
.info-block p { font-size: 1.2rem; margin: 0; }

.form-note { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 30px; font-size: .95rem; }
.form-note--ok  { background: #e8f3ee; color: #1f6b4a; border: 1px solid #bfe0d0; }
.form-note--err { background: #fbecec; color: #9b2c2c; border: 1px solid #f0cccc; }
.form-note--err div { margin-bottom: .2em; }

/* =============================================================
   reveal-on-scroll animation
   ============================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
    .split { gap: 50px; }
    .card-grid, .blog-grid, .loc-list, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .loc-item:nth-child(4n) { border-right: 1px solid var(--line); }
    .loc-item:nth-child(2n) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .amenities { flex-direction: column; height: auto; }
    .amenity { height: 120px; }
    .amenity.open { flex: none; height: 320px; }
}

@media (max-width: 720px) {
    :root { --gutter: 22px; }
    .section { padding: 80px 0; }
    body { font-size: 16px; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 0; background: var(--bg-dark); z-index: 99;
        display: flex; align-items: center; justify-content: center;
        transform: translateX(100%); transition: transform .5s var(--ease);
    }
    .main-nav.open { transform: none; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 30px; }
    .main-nav a { color: var(--white) !important; font-size: 1.1rem; }
    body.nav-open { overflow: hidden; }

    .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .split--reverse .split-media { order: 0; }
    .card-grid, .blog-grid, .feature-grid, .stats { grid-template-columns: 1fr; }
    .loc-list { grid-template-columns: 1fr; }
    .loc-item, .loc-item:nth-child(4n) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-strip .container { flex-direction: column; align-items: flex-start; }
    .quote-band { background-attachment: scroll; }
    .hero-social { display: none; }
    .hero-dots { bottom: 32px; right: var(--gutter); gap: 14px; }
    .hero-dots button.active { width: 46px; height: 46px; }
}
