/* ═══════════════════════════════════════════════
   FRATELLI — Shared Stylesheet
   Golf & Leisure · Est. MMXXVI
═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bone:     #F5F1E8;
  --cream:    #FAF8F3;
  --stone:    #D6D0C4;
  --stone-lt: #E8E4DC;
  --navy:     #1C2A39;
  --dark:     #131E29;
  --forest:   #283828;
  --oxblood:  #5A1E2C;
  --gold:     #C2A96A;
  --gold-lt:  #D4BC85;
  --gold-dk:  #A8904E;
  --serif: 'Italiana', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  overflow-x: hidden;
}

/* ── Eyebrow label utility ── */
.eyebrow {
  font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase; font-weight: 300;
  color: rgba(28,42,57,0.45);
}
/* ── Colored frame border utilities ── */
.frame-navy   { border: 1px solid rgba(28,42,57,0.18); }
.frame-gold   { border: 1px solid rgba(194,169,106,0.35); }
.accent-navy   { border-left: 3px solid var(--navy); }
.accent-oxblood{ border-left: 3px solid var(--oxblood); }
.accent-forest { border-left: 3px solid var(--forest); }
.accent-gold   { border-left: 3px solid var(--gold); }
/* ── Top frame bar ── */
.topbar-navy    { border-top: 2px solid var(--navy); }
.topbar-oxblood { border-top: 2px solid var(--oxblood); }
.topbar-forest  { border-top: 2px solid var(--forest); }
.topbar-gold    { border-top: 2px solid var(--gold); }
img, svg { display: block; }
a { text-decoration: none; color: inherit; }
.serif { font-family: var(--serif); }
.label { font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 300; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Loader ── */
#loader {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 9000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  transition: opacity 0.9s var(--expo), visibility 0.9s;
}
#loader.out { opacity: 0; visibility: hidden; pointer-events: none; }
.ld {
  fill: transparent;
  stroke: rgba(245,241,232,0.6); stroke-width: 1;
  stroke-dasharray: 220; stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.8s var(--expo), fill 0.5s ease 0.8s;
}
.ld.go { stroke-dashoffset: 0; fill: rgba(245,241,232,0.9); }
.ld:nth-child(2) { transition-delay: 0.18s, 0.95s; }
.ld:nth-child(3) { transition-delay: 0.36s, 1.1s; }
.loader-word {
  font-family: var(--serif);
  font-size: 18px; letter-spacing: 0.32em;
  color: rgba(245,241,232,0);
  transition: color 0.7s ease 1s;
}
.loader-word.go { color: rgba(245,241,232,0.45); }

/* Custom cursor removed — system default cursor active */

/* ── Progress bar ── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 1px; background: var(--gold);
  width: 0%; z-index: 200;
  transition: width 0.1s linear;
}

/* ── Reveal system ── */
[data-reveal] { opacity: 0; transition: opacity 1s var(--expo), transform 1s var(--expo); }
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.32s; }
[data-delay="4"] { transition-delay: 0.46s; }
[data-delay="5"] { transition-delay: 0.62s; }

/* ── Navigation ── */
nav#mainNav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 56px;
  z-index: 500;
  background: rgba(245,241,232,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(28,42,57,0.07);
  transition: box-shadow 0.4s ease;
}
nav#mainNav.scrolled {
  box-shadow: 0 2px 24px rgba(28,42,57,0.06);
}
nav#mainNav.solid {
  box-shadow: 0 2px 24px rgba(28,42,57,0.06);
}
/* Nav logo mark: navy diamonds on light nav */
.nav-mark polygon:nth-child(1) { fill: var(--navy) !important; }
.nav-mark polygon:nth-child(2) { fill: none !important; stroke: var(--navy) !important; stroke-width: 0.9px; opacity: 0.7; }
.nav-mark polygon:nth-child(3) { fill: var(--navy) !important; opacity: 0.28; }
.nav-logo {
  justify-self: start;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.65; }
.nav-mark { flex-shrink: 0; display: block; }
.nav-divider { display: block; width: 1px; height: 18px; background: rgba(28,42,57,0.12); flex-shrink: 0; }
.nav-wordmark {
  font-family: var(--serif);
  font-size: 17px; letter-spacing: 0.2em;
  color: var(--navy); line-height: 1;
}
.nav-links {
  justify-self: center;
  display: flex; gap: 48px; list-style: none;
}
.nav-links a {
  font-size: 8px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(28,42,57,0.48);
  text-decoration: none; font-weight: 300;
  position: relative; padding-bottom: 4px;
  transition: color 0.28s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.32s var(--expo);
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 28px; }
.nav-est { font-size: 7.5px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(28,42,57,0.28); font-weight: 200; }
.nav-hamburger {
  display: none; background: none; border: none;
   padding: 6px;
  flex-direction: column; gap: 5px; align-items: center;
}
.nav-hamburger span { display: block; width: 20px; height: 1px; background: rgba(28,42,57,0.55); transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ── Mobile nav ── */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(12,19,27,0.98); backdrop-filter: blur(24px);
  z-index: 499;
  flex-direction: column; align-items: center; justify-content: center;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: clamp(32px,7vw,48px);
  color: rgba(245,241,232,0.75); text-decoration: none;
  letter-spacing: 0.1em; padding: 18px 0;
  transition: color 0.28s;
}
.mobile-nav a:hover { color: var(--bone); }
.mobile-nav-est { margin-top: 48px; font-size: 7px; letter-spacing: 0.32em; color: rgba(245,241,232,0.2); text-transform: uppercase; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--cream);
  padding: 140px 56px 72px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--stone);
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-label { font-size: 8px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(28,42,57,0.35); margin-bottom: 20px; }
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(40px,7vw,84px);
  color: var(--navy); letter-spacing: 0.1em; line-height: 0.95;
}
.page-hero-sub { font-size: clamp(13px,1.4vw,15px); color: rgba(28,42,57,0.48); font-weight: 200; margin-top: 20px; letter-spacing: 0.04em; font-style: italic; max-width: 520px; }
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 56px;
}
.page-hero-bg svg { opacity: 0.05; }
.page-hero-bg svg polygon { stroke: var(--navy) !important; }

/* ── Trust bar ── */
#trust-bar {
  background: var(--navy); padding: 16px 52px;
  display: flex; align-items: center; justify-content: center;
}
.trust-items { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item-icon { opacity: 0.55; flex-shrink: 0; }
.trust-item-icon polygon, .trust-item-icon circle, .trust-item-icon rect, .trust-item-icon path { stroke: var(--bone) !important; }
.trust-item-text { font-size: 7.5px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(245,241,232,0.65); font-weight: 300; }
.trust-sep { width: 1px; height: 14px; background: rgba(245,241,232,0.15); flex-shrink: 0; }

/* ── Footer ── */
footer {
  background: var(--bone);
  border-top: 1px solid var(--stone);
  padding: 80px 52px 36px;
  position: relative; overflow: hidden;
}
.footer-orb { display: none; }
.footer-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.footer-top { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 48px; }
.footer-logotype {
  font-family: var(--serif);
  font-size: clamp(36px,7vw,80px);
  color: rgba(28,42,57,0.06); letter-spacing: 0.18em; line-height: 1; margin-bottom: 24px; user-select: none;
}
.footer-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-mark-line { flex: 1; max-width: 80px; height: 1px; background: rgba(28,42,57,0.12); }
.footer-mark svg polygon { fill: var(--gold) !important; stroke: var(--gold) !important; }
.footer-tagline { font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(28,42,57,0.32); }
.footer-nav {
  display: flex; justify-content: center; gap: 44px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.footer-nav a {
  font-size: 8px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(28,42,57,0.4); text-decoration: none; font-weight: 300;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--navy); }
.footer-email { text-align: center; margin-bottom: 40px; }
.footer-email a { font-family: var(--serif); font-size: clamp(16px,2vw,22px); letter-spacing: 0.08em; color: rgba(28,42,57,0.5); text-decoration: none; transition: color 0.3s; }
.footer-email a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(28,42,57,0.08);
}
.footer-bottom p { font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(28,42,57,0.28); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: rgba(245,241,232,0.85);
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 32px; z-index: 1000;
  opacity: 0; transition: opacity 0.4s, transform 0.4s var(--expo);
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Section spacing ── */
.section-pad { padding: 144px 56px; }
.section-pad-sm { padding: 96px 56px; }
.max-w { max-width: 1160px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }

/* ── Responsive shared ── */
@media (max-width: 768px) {
  nav#mainNav { grid-template-columns: 1fr auto; padding: 0 24px; height: 64px; }
  .nav-links { display: none !important; }
  .nav-est   { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero { padding: 120px 24px 72px; }
  .section-pad { padding: 88px 24px; }
  .section-pad-sm { padding: 64px 24px; }
  footer { padding: 72px 24px 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  #trust-bar { padding: 14px 24px; }
  .trust-sep { display: none; }
  .trust-items { gap: 20px; }
}
@media (max-width: 480px) {
  .nav-divider { display: none; }
}
