/* ═══════════════════════════════════════
   A.L.O.N.E. — Global Stylesheet
   Font stack: Playfair Display + DM Sans
   Fully responsive — 320px → 1920px
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* Colors */
  --gold:   #e8b84b;
  --gold-l: #f5d06e;
  --gold-d: #c49a32;
  --gold-x: #8a6a1e;
  --bg:     #080810;
  --bg2:    #0e0e1c;
  --bg3:    #151528;
  --cream:  #ede8d8;
  --muted:  #a09070;
  --dim:    #5a5040;
  --bdr:    rgba(232,184,75,.1);
  --bdr2:   rgba(232,184,75,.06);
  --ok:     #52c48a;
  --warn:   #e8a84b;
  --err:    #e05c4a;
  --gct:    15; /* GCT % */

  /* Typography — loaded from Google Fonts, no fallback pixel issues */
  --f-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --pad:  clamp(16px, 5vw, 72px);
  --gap:  clamp(12px, 3vw, 32px);
  --r-sm: clamp(16px, 3vw, 40px);
  --r-md: clamp(40px, 7vw, 96px);
  --r-lg: clamp(64px, 10vw, 140px);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button {
  font-family: inherit;
  -webkit-appearance: none;
  border-radius: 0;
}
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--f-heading); font-weight: 500; line-height: 1.1; }
h4, h5, h6 { font-family: var(--f-body); font-weight: 600; line-height: 1.3; }

/* Fluid type scale */
.t-hero    { font-family: var(--f-display); font-size: clamp(40px, 9vw, 110px); letter-spacing: clamp(2px, .8vw, 10px); line-height: 1; }
.t-xl      { font-family: var(--f-heading); font-size: clamp(30px, 5.5vw, 72px); line-height: 1.06; font-weight: 400; }
.t-lg      { font-family: var(--f-heading); font-size: clamp(22px, 3.5vw, 48px); line-height: 1.1; font-weight: 400; }
.t-md      { font-family: var(--f-heading); font-size: clamp(18px, 2.5vw, 30px); line-height: 1.2; font-weight: 400; }
.t-label   { font-family: var(--f-body); font-size: clamp(9px, 1.2vw, 11px); font-weight: 600; letter-spacing: clamp(2px, .6vw, 5px); text-transform: uppercase; color: var(--gold-d); }
.t-body    { font-family: var(--f-body); font-size: clamp(14px, 1.8vw, 17px); line-height: 1.82; font-weight: 300; }
.t-small   { font-family: var(--f-body); font-size: clamp(11px, 1.4vw, 13px); line-height: 1.65; }

/* Gold headings */
.gold     { color: var(--gold); }
.gold-dim { color: var(--gold-d); }
.muted    { color: var(--muted); }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--r-md) var(--pad); }
.section-lg { padding: var(--r-lg) var(--pad); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── DECORATIVE ── */
.gold-line { width: 40px; height: 1px; background: linear-gradient(to right, transparent, var(--gold-d), transparent); margin: 20px 0; }
.gold-line.center { margin-left: auto; margin-right: auto; }
.border-top { border-top: 1px solid var(--bdr); }
.border-bottom { border-bottom: 1px solid var(--bdr); }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2.5vw, 22px) var(--pad);
  background: linear-gradient(to bottom, rgba(8,8,16,.97) 0%, rgba(8,8,16,.0) 100%);
  transition: background .3s;
}
.site-nav.scrolled { background: rgba(8,8,16,.98); backdrop-filter: blur(16px); }
.nav-logo {
  font-family: var(--f-display);
  font-size: clamp(18px, 3.5vw, 26px);
  letter-spacing: clamp(4px, 1vw, 8px);
  color: var(--gold);
  white-space: nowrap;
}
.nav-logo small {
  display: block;
  font-family: var(--f-body);
  font-size: clamp(7px, 1vw, 9px);
  font-weight: 600;
  letter-spacing: clamp(2px, .5vw, 4px);
  text-transform: uppercase;
  color: var(--gold-d);
  margin-top: 2px;
  opacity: .75;
}
.nav-links { display: none; align-items: center; gap: clamp(18px, 3vw, 40px); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-family: var(--f-body);
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .55;
  transition: opacity .25s, color .25s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--gold); transition: all .28s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile menu */
.mob-menu {
  position: fixed; inset: 0; background: rgba(8,8,16,.98);
  z-index: 850; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(16px, 3vh, 28px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mob-menu.open { opacity: 1; pointer-events: all; }
.mob-menu a {
  font-family: var(--f-display);
  font-size: clamp(26px, 7vw, 48px);
  letter-spacing: 4px;
  color: var(--cream);
  transition: color .25s;
}
.mob-menu a:hover { color: var(--gold); }
.mob-menu .mob-divider {
  width: 32px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-d), transparent);
  margin: 4px 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body);
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 600;
  letter-spacing: clamp(1.5px, .4vw, 3px);
  text-transform: uppercase;
  padding: clamp(12px, 1.8vw, 16px) clamp(20px, 3.5vw, 40px);
  border: none; transition: all .28s; white-space: nowrap; text-decoration: none;
}
.btn-gold    { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); }
.btn-gold:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid rgba(232,184,75,.35); }
.btn-outline:hover { border-color: var(--gold); background: rgba(232,184,75,.06); }
.btn-ghost  { background: transparent; color: var(--cream); border: 1px solid var(--bdr); }
.btn-ghost:hover { border-color: rgba(232,184,75,.3); color: var(--gold); }
.btn-sm { font-size: 10px; letter-spacing: 2px; padding: 9px 18px; }
.btn-full { width: 100%; }

/* ── FORM ELEMENTS ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-body); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold-d); opacity: .85;
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(232,184,75,.12);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: clamp(14px, 1.8vw, 15px);
  font-weight: 300;
  line-height: 1.5;
  padding: clamp(11px, 1.6vw, 14px) clamp(12px, 2vw, 16px);
  outline: none; width: 100%;
  transition: border-color .28s, background .28s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(232,184,75,.42);
  background: rgba(255,255,255,.055);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c49a32' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { background: #0e0e1c; color: var(--cream); }
.field textarea { resize: vertical; min-height: 110px; }
.field-err { font-size: 12px; color: var(--err); display: none; margin-top: -2px; }
.field-err.show { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 20px); }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

/* Toggle */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-sl { position: absolute; inset: 0; background: rgba(255,255,255,.08); border: 1px solid var(--bdr); cursor: pointer; transition: .28s; }
.toggle-sl::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: var(--dim); transition: .28s; }
.toggle input:checked + .toggle-sl { background: rgba(232,184,75,.18); border-color: rgba(232,184,75,.45); }
.toggle input:checked + .toggle-sl::before { transform: translateX(20px); background: var(--gold); }
.toggle-label { font-family: var(--f-body); font-size: 13px; font-weight: 300; color: var(--cream); opacity: .7; }

/* ── BADGES ── */
.badge { font-family: var(--f-body); font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 3px 9px; display: inline-block; }
.badge-ok   { background: rgba(82,196,138,.12); border: 1px solid rgba(82,196,138,.28); color: #72e8aa; }
.badge-warn { background: rgba(232,168,75,.1);  border: 1px solid rgba(232,168,75,.28); color: var(--gold); }
.badge-info { background: rgba(100,130,240,.1); border: 1px solid rgba(100,130,240,.28); color: #a4b8fc; }
.badge-err  { background: rgba(224,92,74,.1);   border: 1px solid rgba(224,92,74,.28);  color: #f09a8a; }
.badge-grey { background: rgba(150,140,120,.1); border: 1px solid rgba(150,140,120,.2);  color: #a09070; }

/* ── CARDS ── */
.card { background: rgba(255,255,255,.025); border: 1px solid var(--bdr2); transition: background .3s, border-color .3s; }
.card:hover { background: rgba(255,255,255,.045); border-color: rgba(232,184,75,.18); }
.card-pad { padding: clamp(20px, 3.5vw, 40px); }

/* ── TABLES (scrollable on mobile) ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 540px; width: 100%; border-collapse: collapse; }
.table-wrap th {
  font-family: var(--f-body); font-size: 9px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold-d);
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--bdr);
  white-space: nowrap;
}
.table-wrap td {
  font-family: var(--f-body); font-size: 13px; font-weight: 300;
  color: var(--cream); padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.03); vertical-align: middle;
}
.table-wrap tr:hover td { background: rgba(255,255,255,.018); }

/* ── GCT TAG ── */
.gct-tag {
  font-family: var(--f-body); font-size: 8px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 2px 7px; background: rgba(100,130,240,.1);
  border: 1px solid rgba(100,130,240,.28); color: #a4b8fc;
  display: inline-block;
}

/* ── MODAL ── */
.modal-ov {
  position: fixed; inset: 0; background: rgba(8,8,16,.9);
  z-index: 800; display: none; align-items: flex-start;
  justify-content: center; overflow-y: auto;
  padding: clamp(16px, 4vw, 48px);
  backdrop-filter: blur(8px);
}
.modal-ov.open { display: flex; }
.modal-box { background: var(--bg2); border: 1px solid var(--bdr); width: 100%; max-width: 660px; margin: auto; }
.modal-head {
  padding: clamp(16px, 3vw, 24px) clamp(18px, 3.5vw, 32px);
  border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-family: var(--f-heading); font-size: clamp(18px, 2.5vw, 24px); font-weight: 400; color: var(--gold); }
.modal-close { width: 30px; height: 30px; border: 1px solid var(--bdr); background: transparent; color: var(--cream); font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color .25s; }
.modal-close:hover { border-color: rgba(232,184,75,.3); }
.modal-body { padding: clamp(16px, 3.5vw, 32px); }
.modal-actions { padding: clamp(14px, 2.5vw, 20px) clamp(18px, 3.5vw, 32px); border-top: 1px solid var(--bdr); display: flex; gap: 8px; flex-wrap: wrap; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast-item {
  background: var(--bg2); border: 1px solid rgba(232,184,75,.28);
  padding: 13px 18px; font-family: var(--f-body); font-size: 13px; font-weight: 400;
  color: var(--cream); width: clamp(240px, 50vw, 340px);
  transform: translateX(120%); opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
  pointer-events: none;
}
.toast-item.show { transform: translateX(0); opacity: 1; pointer-events: all; }
.toast-item.t-ok   { border-color: rgba(82,196,138,.35); color: #72e8aa; }
.toast-item.t-warn { border-color: rgba(232,184,75,.35); color: var(--gold); }
.toast-item.t-err  { border-color: rgba(224,92,74,.35);  color: #f09a8a; }

/* ── INVOICE STYLES ── */
.inv-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.inv-brand { font-family: var(--f-display); font-size: clamp(18px, 3vw, 24px); letter-spacing: 5px; color: var(--gold); }
.inv-brand p { font-family: var(--f-body); font-size: 11px; font-weight: 300; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.inv-meta { text-align: right; font-family: var(--f-body); font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.9; }
.inv-meta strong { color: var(--cream); font-weight: 500; display: block; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.inv-parties h4 { font-family: var(--f-body); font-size: 9px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-d); margin-bottom: 8px; }
.inv-parties p { font-family: var(--f-body); font-size: 13px; font-weight: 300; color: var(--cream); opacity: .75; line-height: 1.75; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.inv-table th { font-family: var(--f-body); font-size: 9px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-d); opacity: .7; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--bdr); }
.inv-table td { font-family: var(--f-body); font-size: 13px; font-weight: 300; color: var(--cream); padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.03); }
.inv-totals { border-top: 1px solid var(--bdr); padding-top: 12px; }
.inv-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-family: var(--f-body); font-size: 13px; color: var(--cream); }
.inv-row span { font-weight: 300; color: var(--muted); }
.inv-row.grand { border-top: 1px solid var(--bdr); margin-top: 8px; padding-top: 10px; }
.inv-row.grand span, .inv-row.grand strong { color: var(--gold); }
.inv-row strong { font-family: var(--f-heading); font-size: clamp(16px, 2.5vw, 20px); font-weight: 400; }
.inv-gct-note { font-family: var(--f-body); font-size: 11px; color: #a4b8fc; opacity: .8; margin-top: 4px; }
.inv-notice { margin-top: 18px; padding: 12px 14px; background: rgba(82,196,138,.06); border: 1px solid rgba(82,196,138,.18); font-family: var(--f-body); font-size: 12px; font-weight: 300; color: #72e8aa; line-height: 1.6; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--bdr); padding: clamp(28px, 5vw, 52px) var(--pad); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .logo { font-family: var(--f-display); font-size: clamp(20px, 3vw, 26px); letter-spacing: 6px; color: var(--gold); opacity: .75; display: block; margin-bottom: 10px; }
.footer-brand p { font-family: var(--f-body); font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-family: var(--f-body); font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-d); margin-bottom: 14px; }
.footer-col a { display: block; font-family: var(--f-body); font-size: 13px; font-weight: 300; color: var(--muted); margin-bottom: 8px; transition: color .25s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: clamp(20px, 3vw, 32px); padding-top: clamp(16px, 2.5vw, 24px); border-top: 1px solid var(--bdr2); display: flex; flex-direction: column; gap: 8px; font-family: var(--f-body); font-size: 12px; font-weight: 300; color: var(--dim); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── SCROLL INDICATOR ── */
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint span { font-family: var(--f-body); font-size: 9px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-d); }
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold-d), transparent); animation: lineDown 2s ease infinite; }
@keyframes lineDown { 0%, 100% { opacity: .3; transform: scaleY(.8); } 50% { opacity: 1; transform: scaleY(1); } }
