/* Pilina — design system, verified against Branding Guideline 2025 (PDF).
   COLOR — Core: #001f3d deep blue · #fa9939 orange accent · #e8e8e8 neutral.
           Supporting: #e87a00 secondary orange · #b29e84 camel.
           Additional (sparingly): #4d4d4d gray · #365739 forest · #4a726d sage.
           Soft white #fdfcfa for elegance / simplicity / balance.
   TYPE  — Headers: Roboto Light (Google spec; Segoe UI Light fallback for Word).
           Subheaders & body: Montserrat / Montserrat Light.
   Layout stays light and airy per the guideline; orange used sparingly. */
:root {
  --blue: #001F3D;        /* CORE — deep blue: headers, nav, footer, major background */
  --orange: #FA9939;      /* CORE — highlight/accent: buttons, icons, CTAs (use sparingly) */
  --neutral: #E8E8E8;     /* CORE — neutral base: light section backgrounds */
  --orange-deep: #E87A00; /* SUPPORTING — secondary orange: hovers, small accents */
  --camel: #B29E84;       /* SUPPORTING — camel: soft sections, dividers, testimonials */
  --camel-tint: #F4EFE7;  /* derived light wash of --camel */
  --gray: #4D4D4D;        /* ADDITIONAL — neutral dark: secondary elements (sparingly) */
  --forest: #365739;      /* ADDITIONAL — deep green (sparingly) */
  --green: #4A726D;       /* ADDITIONAL — sage green (sparingly) */
  --paper: #FDFCFA;       /* soft white — elegance, simplicity, balance */
  --ink: #33373D;         /* body text — near-black for readability */
  --ink-soft: #4D4D4D;    /* secondary text — brand neutral dark (#4d4d4d) */
  --line: rgba(0, 31, 61, .12);
  --head: 'Roboto', 'Segoe UI', Arial, sans-serif;  /* weight 300 */
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.75; font-size: 16px; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); }

h1, h2, h3 { font-family: var(--head); font-weight: 300; color: var(--blue); line-height: 1.14; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: .55em; }
h3 { font-size: 1.28rem; margin-bottom: .35em; font-weight: 400; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }

.btn {
  display: inline-block; background: var(--orange); color: var(--blue); text-decoration: none;
  padding: 15px 38px; border-radius: 999px; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; transition: background .25s, color .25s, transform .25s;
  border: none; cursor: pointer;
}
.btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-light { background: var(--orange); color: var(--blue); }
.btn-light:hover { background: #fff; color: var(--blue); }

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(253, 252, 250, .94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 28px; max-width: 1240px; margin: 0 auto; }
.brand { display: inline-block; line-height: 0; text-decoration: none; }
.brand img { height: 118px; width: auto; margin: -20px 0; }
nav.links { display: flex; gap: 30px; align-items: center; }
nav.links a, .drop-btn {
  text-decoration: none; color: var(--blue); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--sans); font-weight: 500; cursor: pointer;
}
nav.links a.active, nav.links a:hover, .drop-btn:hover, .drop-btn.active { color: var(--orange-deep); border-bottom-color: var(--orange); }
nav.links a.nav-cta {
  background: var(--orange); border-radius: 999px; padding: 11px 24px; color: var(--blue); border-bottom: none;
}
nav.links a.nav-cta:hover { background: var(--blue); color: #fff; }
.dropdown { position: relative; }
.caret { font-size: .7em; }
.drop-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: -14px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 0; min-width: 250px;
  box-shadow: 0 18px 44px rgba(0, 31, 61, .14);
}
.drop-menu a { display: block; padding: 10px 22px !important; border-bottom: none !important; }
.dropdown:hover .drop-menu, .dropdown.open .drop-menu { display: block; }
.menu-btn { display: none; background: none; border: none; font-size: 1.6rem; color: var(--blue); cursor: pointer; }

/* ---------- Hero (V4: centered white text over full photo) ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 0; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,31,61,.22) 0%, rgba(0,31,61,.40) 52%, rgba(0,31,61,.66) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 16ch; color: #fff; text-shadow: 0 2px 30px rgba(0,18,38,.42); }
.hero p { max-width: 56ch; margin: 24px 0 38px; font-size: 1.05rem; color: rgba(255,255,255,.9); text-shadow: 0 1px 16px rgba(0,18,38,.45); }
.hero .eyebrow { color: var(--orange); }
.hero .eyebrow::after { content: ''; display: block; width: 48px; height: 2px; background: var(--orange); margin: 16px auto 0; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.65); }
.btn-outline:hover { background: #fff; color: var(--blue); }
.scroll-hint { margin-top: 64px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.65); position: relative; padding-top: 34px; }
.scroll-hint::before { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 26px; background: rgba(255,255,255,.5); }

/* ---------- Eyebrow labels ---------- */
.eyebrow { display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; margin-bottom: 18px; }

/* ---------- Page header ---------- */
.page-header { position: relative; overflow: hidden; background: var(--neutral); text-align: center; padding: 108px 24px 88px; border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 24ch; margin: 0 auto; }
.page-header p { color: var(--ink-soft); margin: 18px auto 0; font-size: 1.05rem; max-width: 62ch; }
/* quiet-luxury header (Aman/Auberge feel) — large hero with one restrained word,
   then the title + subtitle breathing on clean space below (never over the photo) */
/* clean, full-bleed image hero — no text over the photo */
.page-hero { position: relative; height: 76vh; min-height: 500px; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,20,40,.04), rgba(0,14,30,.16)); }
/* solid, elegant title block carried below the hero */
.page-intro { background: var(--paper); text-align: center; padding: clamp(68px, 8.5vw, 128px) 24px clamp(56px, 6vw, 90px); border-bottom: 1px solid var(--line); }
.page-intro .ph-eyebrow { display: block; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 22px; }
.page-intro .ph-rule { width: 54px; height: 2px; background: var(--orange); margin: 0 auto 30px; display: block; }
.page-intro h1 { color: var(--blue); max-width: 20ch; margin: 0 auto; font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.12; }
.page-intro p { color: var(--ink-soft); max-width: 60ch; margin: 24px auto 0; font-size: 1.08rem; }
@media (max-width: 760px) { .page-hero { height: 60vh; min-height: 360px; } }

/* ---------- Stats ---------- */
.stats-section { padding: 54px 0; border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; text-align: center; }
.stat strong { display: block; font-family: var(--head); font-weight: 300; font-size: 2.4rem; color: var(--orange-deep); line-height: 1.15; }
.stat span { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }

/* ---------- Text ---------- */
.text-section .container { max-width: 760px; text-align: center; }
.text-section p, .ti-grid p { white-space: pre-line; color: var(--ink-soft); }

/* ---------- Text + image ---------- */
.ti-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.ti-grid img { border-radius: 6px; aspect-ratio: 9/7; object-fit: cover; width: 100%; box-shadow: 0 34px 64px -34px rgba(0,31,61,.5); transition: transform .5s ease; }
.ti-fig:hover img { transform: translateY(-4px); }
.ti-fig { position: relative; margin: 0; }
.ti-fig figcaption {
  position: absolute; bottom: -14px; left: 24px; background: #fff; border: 1px solid var(--line);
  padding: 8px 18px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue);
}
.quote-line { font-family: var(--head); font-weight: 300; font-size: 1.15rem; color: var(--orange-deep); margin-bottom: 16px; }
.text-link {
  display: inline-block; margin-top: 20px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 4px;
}
.text-link:hover { color: var(--orange-deep); }

/* ---------- Cards ---------- */
.cards-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards-intro { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.cards-intro p { color: var(--ink-soft); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 30px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,31,61,.1); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .card-body { padding: 28px; }
.card p { font-size: .93rem; color: var(--ink-soft); }
.card.no-img .card-body { padding: 32px 28px; }
.card.no-img h3::before { content: ''; display: block; width: 34px; height: 3px; background: var(--orange); margin-bottom: 16px; }
.card-link { display: inline-block; margin-top: 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-weight: 600; color: var(--blue); border-bottom: 2px solid var(--orange); padding-bottom: 3px; }
.card-link:hover { color: var(--orange-deep); }
.kicker { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; margin-bottom: 10px; }
.card-img { position: relative; }
.card-num { position: absolute; top: 12px; left: 14px; z-index: 2; color: #fff; font-size: .75rem; letter-spacing: .1em; opacity: .85; }
.cards-footnote { text-align: center; margin-top: 44px; }
.cards-footnote a { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 3px; }
.cards-footnote a:hover { color: var(--orange-deep); }

/* ---------- Steps ---------- */
.steps-section { background: var(--camel-tint); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px; }
.step { position: relative; padding-top: 14px; }
.step-num { font-family: var(--head); font-weight: 300; font-size: 2.5rem; color: var(--orange); line-height: 1; display: block; margin-bottom: 12px; }
.step p { font-size: .93rem; color: var(--ink-soft); }
/* dark variant — V4 "Our advantage" navy band */
.steps-dark { background: var(--blue); }
.steps-dark h2, .steps-dark h3 { color: #fff; }
.steps-dark .cards-intro p { color: rgba(255,255,255,.72); }
.steps-dark .step p { color: rgba(255,255,255,.68); }
.steps-dark .eyebrow { color: var(--orange); }
.step-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-bottom: 16px; }

/* ---------- Quote ---------- */
.quote-section { text-align: center; background: var(--camel-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-section blockquote { font-family: var(--head); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.45; max-width: 32ch; margin: 0 auto 26px; color: var(--blue); }
.quote-section cite { font-style: normal; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; }
/* full-bleed image quote band — an elegant emotional beat, resort-style */
.quote-photo { position: relative; overflow: hidden; text-align: center; border: none; padding: clamp(96px, 13vw, 168px) 0; }
.quote-photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,20,40,.60), rgba(0,16,34,.74)); }
.quote-photo .container { position: relative; z-index: 2; max-width: 900px; }
.quote-photo .q-mark { display: block; font-family: var(--head); font-weight: 300; font-size: 4rem; line-height: .4; color: var(--orange); margin-bottom: 26px; }
.quote-photo blockquote { font-family: var(--head); font-weight: 300; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.5; max-width: 30ch; margin: 0 auto 26px; color: #fff; text-shadow: 0 2px 26px rgba(0,8,20,.45); }
.quote-photo cite { font-style: normal; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); font-weight: 600; }

/* ---------- Scroll reveal (progressive enhancement; hidden only when JS is active) ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .hero.reveal, .js-anim .page-hero.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- Team ---------- */
.team-section { background: #fff; border-top: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 34px; margin-top: 30px; }
.member img { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: 6px; margin-bottom: 18px; }
.member h3 { margin-bottom: 2px; }
.member .role { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); display: block; margin-bottom: 10px; font-weight: 600; }
.member p { font-size: .9rem; color: var(--ink-soft); }
.member-contact { margin-top: 10px; font-size: .84rem !important; }
.member-contact a { text-decoration: none; }

/* ---------- Gallery / editorial grid ---------- */
.gallery-section h2 { margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.gallery-item { position: relative; border-radius: 6px; overflow: hidden; margin: 0; }
.gallery-item img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-size: .82rem;
  background: linear-gradient(transparent, rgba(0,31,61,.72));
}
/* full-bleed editorial strip — V4 image band */
.gallery-fullbleed { padding: 0; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery-strip .gallery-item { border-radius: 0; }
.gallery-strip .gallery-item img { aspect-ratio: 4/5; }

/* ---------- CTA ---------- */
.cta-section { background: var(--blue); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-section h2 { color: #fff; }
.cta-section p { max-width: 56ch; margin: 0 auto 34px; color: rgba(255,255,255,.78); }
.cta-section .eyebrow { color: var(--orange); }
.cta-photo { padding: 140px 0; }
.cta-photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-photo::after { content: ''; position: absolute; inset: 0; background: rgba(0,31,61,.62); }
.cta-photo .container { position: relative; z-index: 2; }
.cta-contact { font-size: .92rem; }
.cta-contact a { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-details p { margin-bottom: 16px; color: var(--ink-soft); }
.contact-details strong { color: var(--blue); display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
form.contact-form { background: #fff; padding: 38px; border: 1px solid var(--line); border-radius: 6px; }
form.contact-form label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 20px 0 6px; font-weight: 600; }
form.contact-form label:first-child { margin-top: 0; }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--sans); font-size: .95rem; background: var(--paper);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form .btn { margin-top: 26px; }

/* ---------- Footer (V4: light, columned) ---------- */
footer.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 72px 28px 32px; }
.foot-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 44px; align-items: start; }
.foot-brand .brand img { height: 132px; margin: -26px 0; }
footer p.tagline { color: var(--ink-soft); font-family: var(--head); font-weight: 300; font-size: 1rem; margin-top: 16px; }
.foot-col h4 { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 16px; font-weight: 600; }
.foot-col a, .foot-col span { display: block; font-size: .86rem; color: var(--ink); text-decoration: none; margin-bottom: 10px; }
.foot-col a:hover { color: var(--orange-deep); }
.foot-bottom { max-width: 1140px; margin: 52px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  nav.links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 12px 28px 22px; border-bottom: 1px solid var(--line); align-items: stretch; }
  nav.links.open { display: flex; }
  nav.links a, .drop-btn { padding: 12px 0; text-align: left; }
  .drop-menu { position: static; box-shadow: none; border: none; background: transparent; display: block; padding: 0 0 0 18px; }
  nav.links a.nav-cta { text-align: center; margin-top: 10px; }
  .menu-btn { display: block; }
  .brand img { height: 72px; margin: -8px 0; }
  .ti-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 64px 0; }
  .hero { min-height: 74vh; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
