/* ============================================================
   [BUSINESS NAME] -- Main Stylesheet
   Design System: Dark Luxury / Editorial / Georgian Bay
   Fonts: Freight Display Pro feel via "Libre Baskerville" +
          "Outfit" for UI body text
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---- TOKENS ---- */
:root {
  /* Core palette */
  --ink:       #0a0f14;
  --deep:      #0d1b2a;
  --navy:      #102a43;
  --slate:     #1b3a52;
  --steel:     #2e5f7e;
  --water:     #00b4d8;
  --foam:      #90e0ef;
  --mist:      #caf0f8;
  --sand:      #e8dcc8;
  --warm:      #f5f0e8;
  --chalk:     #fafaf8;

  /* Text */
  --text-primary:   #f0ede8;
  --text-secondary: rgba(240,237,232,.75);
  --text-muted:     rgba(240,237,232,.55);
  --text-dark:      #0d1b2a;

  /* UI */
  --accent:     #00b4d8;
  --accent-dim: rgba(0,180,216,.15);
  --accent-glow:rgba(0,180,216,.35);
  --success:    #22c55e;
  --warning:    #f59e0b;
  --danger:     #ef4444;

  /* Spacing */
  --gap-xs:  8px;
  --gap-sm:  16px;
  --gap-md:  32px;
  --gap-lg:  64px;
  --gap-xl:  120px;

  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-ui:      'Outfit', system-ui, sans-serif;

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  40px;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(0,0,0,.25);
  --shadow-md:  0 8px 32px rgba(0,0,0,.35);
  --shadow-lg:  0 24px 64px rgba(0,0,0,.5);
  --shadow-glow:0 0 40px rgba(0,180,216,.2);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-ui);
  background: var(--ink);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-ui); cursor: pointer; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -2px;
  font-weight: 700;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 700;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.2;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.body-lg  { font-size: 19px; line-height: 1.75; font-weight: 300; }
.body-md  { font-size: 17px; line-height: 1.7; }
.body-sm  { font-size: 15px; line-height: 1.6; }
.body-xs  { font-size: 13px; line-height: 1.5; }

em { font-style: italic; color: var(--foam); }
strong { font-weight: 600; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-md);
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gap-md);
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

.section { padding: var(--gap-xl) 0; }
.section-sm { padding: var(--gap-lg) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }

/* ---- NAVIGATION ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px var(--gap-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .4s var(--ease);
}
.site-nav.scrolled {
  padding: 16px var(--gap-md);
  background: rgba(10, 15, 20, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--chalk);
  letter-spacing: -.3px;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--text-secondary);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--chalk); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--chalk);
  border-radius: 2px;
  transition: all .3s;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  padding: 14px 30px;
}
.btn-primary:hover {
  background: var(--foam);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--chalk);
  padding: 13px 29px;
  border: 1px solid rgba(255,255,255,.2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 0;
  gap: 8px;
}
.btn-ghost:hover { color: var(--chalk); }

.btn-lg { font-size: 16px; padding: 18px 40px; }
.btn-sm { font-size: 13px; padding: 10px 20px; }

.btn-danger { background: var(--danger); color: #fff; padding: 10px 20px; }
.btn-success { background: var(--success); color: #fff; padding: 10px 20px; }
.btn-success:hover { background: #16a34a; transform: translateY(-1px); }

/* ---- CARDS ---- */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .35s var(--ease);
}
.card:hover {
  border-color: rgba(0,180,216,.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.card-body { padding: var(--gap-md); }

/* ---- FORMS ---- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-control {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--chalk);
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,180,216,.05);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.form-hint { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--danger); }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 20px;
  padding: 5px 14px;
}
.badge-accent  { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(0,180,216,.25); }
.badge-success { background: rgba(34,197,94,.15); color: #4ade80; }
.badge-warning { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-danger  { background: rgba(239,68,68,.15); color: #f87171; }
.badge-muted   { background: rgba(255,255,255,.07); color: var(--text-secondary); }

/* ---- DIVIDER ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  margin: var(--gap-md) 0;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-up   { transform: translateY(28px); }
.reveal-left { opacity: 0; transform: translateX(-28px); }
.reveal-left.in-view { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(28px); }
.reveal-right.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- SELECTION ---- */
::selection { background: var(--accent); color: var(--ink); }

/* ---- ALERTS ---- */
.alert {
  border-radius: var(--r-md);
  padding: var(--gap-sm) var(--gap-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25);  color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.25);  color: #86efac; }
.alert-info    { background: rgba(0,180,216,.1);   border: 1px solid rgba(0,180,216,.25);  color: var(--foam); }
.alert-warning { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); color: #fcd34d; }

/* ---- SPINNER ---- */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- NOISE TEXTURE OVERLAY ---- */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- WATER RIPPLE ANIMATION ---- */
@keyframes ripple {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--foam) 0%, var(--accent) 50%, var(--foam) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root {
    --gap-xl: 72px;
    --gap-lg: 48px;
    --gap-md: 24px;
  }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--ink);
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 24px; letter-spacing: 0; }
  .nav-toggle { display: flex; z-index: 1001; position: relative; }

  .display-xl { letter-spacing: -1px; }
  .section { padding: var(--gap-lg) 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { font-size: 15px; padding: 15px 28px; }
}
