/* ============================================================
   iOS-Inspired Design System — Premium Gold/Black Theme
   Public Site Stylesheet
   ============================================================ */

:root {
  /* Brand */
  --gold: #d4a72c;
  --gold-light: #f4d87f;
  --gold-dark: #a67c1f;
  --gold-tint: rgba(212, 167, 44, 0.12);

  /* Base theme */
  --bg: #000000;
  --bg-soft: #1a1a1c;
  --bg-panel: #111214;
  --bg-panel-2: #17171a;
  --text: #ffffff;
  --muted: rgba(235, 235, 245, 0.6);
  --muted-2: rgba(235, 235, 245, 0.3);
  --line: rgba(84, 84, 88, 0.48);
  --line-strong: rgba(84, 84, 88, 0.65);
  --card-bg: rgba(255,255,255,0.02);
  --input-bg: rgba(255,255,255,0.04);
  --input-text: #ffffff;
  --input-placeholder: rgba(255,255,255,0.45);
  --button-dark: #1c1c1e;
  --footer-bg: #000000;
 
  /* Semantic */
  --green: #30d158;
  --tg: #0a84ff;
  --red: #ff453a;

  /* Aliases kept in sync with admin.css so both stylesheets share one
     token vocabulary and both react correctly to the light/dark theme */
  --black: var(--bg);
  --black-soft: var(--bg-panel-2);
  --black-elevated: var(--bg-panel);
  --white: var(--text);

  /* Shape (iOS continuous-corner scale) */
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(.25, .46, .45, .94);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Effects */
  --blur: saturate(180%) blur(20px);
  --shadow-s: 0 2px 10px rgba(0, 0, 0, .25);
  --shadow-m: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-gold: 0 8px 24px rgba(212, 167, 44, .25);

  /* Hero background corner (switches with theme so hero text stays readable) */
  --hero-bg-a: #1c1c1e;
  --hero-bg-b: var(--black);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(212,167,44,.14), transparent 18%),
    radial-gradient(circle at bottom left, rgba(10,132,255,.08), transparent 18%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body[data-theme="light"] {
  --bg: #f4efe7;
  --bg-soft: #f8f5f0;
  --bg-panel: #ffffff;
  --bg-panel-2: #f0eadf;
  --text: #161616;
  --muted: rgba(24, 24, 24, 0.68);
  --muted-2: rgba(24, 24, 24, 0.28);
  --line: rgba(34, 34, 34, 0.12);
  --line-strong: rgba(34, 34, 34, 0.2);
  --card-bg: rgba(255,255,255,0.68);
  --input-bg: rgba(17,17,17,0.02);
  --input-text: #111111;
  --input-placeholder: rgba(17,17,17,0.55);
  --button-dark: #f6f2ea;
  --footer-bg: #f1eadc;
  --hero-bg-a: #fdfbf7;
  --hero-bg-b: var(--bg);
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.02), transparent 40%, rgba(212,167,44,.02));
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, .72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: .5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 5% 10px;
  gap: 20px;
}
body[data-theme="light"] nav {
  background: rgba(255,255,255,.7);
  border-bottom-color: rgba(17,17,17,0.08);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; border-radius: 9px; }
.brand span {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .lang-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .lang-toggle {
  background: rgba(17,17,17,0.04);
}
.links { display: flex; gap: 6px; font-size: 14px; }
.links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r-s);
  font-weight: 600;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.links a:hover { color: var(--gold-light); background: rgba(255, 255, 255, .05); }

/* ---------- Mobile hamburger menu ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}
body[data-theme="light"] .menu-toggle { background: rgba(17,17,17,0.04); }
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 61px;
  z-index: 29;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: .5px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
body[data-theme="light"] .mobile-menu { background: rgba(255,255,255,.94); }
.mobile-menu.open { max-height: 520px; }
.mobile-menu a {
  padding: 15px 7%;
  font-weight: 600;
  color: var(--text);
  border-bottom: .5px solid var(--line);
}
.mobile-menu a:active { background: rgba(212, 167, 44, .1); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 560px;
  padding: 80px 7%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  background: radial-gradient(circle at 80% 20%, var(--hero-bg-a), var(--hero-bg-b) 60%);
  border-bottom: .5px solid var(--line);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.5px;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero h1 b {
  font-weight: 800;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 17px; max-width: 560px; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.call-panel {
  margin-top: 28px;
  padding: 18px 20px 14px;
  border: 1px solid rgba(212, 167, 44, 0.45);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  max-width: 440px;
}
.call-title {
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.call-panel a {
  display: block;
  color: var(--text);
  font-size: clamp(1.7rem, 2vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}
.call-panel a + a { margin-top: 8px; }
.call-panel a:hover { color: var(--gold-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--r-m);
  font-weight: 600;
  font-size: 15px;
  border: .5px solid var(--line);
  cursor: pointer;
  transition: transform .15s var(--spring), opacity .2s var(--ease), box-shadow .2s var(--ease);
  user-select: none;
}

.custom-file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}
.native-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-trigger {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.upload-filename {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.compact-file-upload { max-width: 100%; }
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.96); opacity: .85; }

.primary { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #1a1300; border-color: transparent; box-shadow: var(--shadow-gold); font-weight: 700; }
.dark { background: var(--black-soft); color: var(--gold-light); border-color: var(--line); }

.tg {
  background: var(--black-soft);
  color: var(--tg);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(10, 132, 255, .15);
}

.phone {
  background: var(--black-soft);
  color: var(--green);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(48, 209, 88, .15);
}

.call-trigger,
.mobile-call-trigger,
.call-option,
.call-close {
  font: inherit;
}

.call-trigger,
.mobile-call-trigger {
  border: 0;
}

.call-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 16px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 80;
}

.call-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.call-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.call-modal-panel {
  position: relative;
  width: min(100%, 420px);
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid rgba(212, 167, 44, 0.45);
  border-radius: 22px 22px 18px 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  padding: 18px 16px 16px;
  animation: callPanelIn .2s ease;
}

@keyframes callPanelIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.call-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
}

.call-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.call-option {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(212, 167, 44, 0.35);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  padding: 16px 18px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.call-option:hover,
.call-option:focus-visible {
  background: rgba(212, 167, 44, 0.12);
  transform: translateY(-1px);
}

/* New styles for the 3D canvas in the hero section */
.hero-visual {
  position: relative; /* Establish positioning context for the canvas */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%; /* Ensure it takes up available height */
  min-height: 400px; /* Or adjust as needed */
}
.hero-visual canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 55px 6%; }
  .hero-visual { order: -1; justify-content: center; padding-right: 0; min-height: 260px; }
}

/* ---------- Section shell ---------- */
section { padding: 76px 7%; }
.title { text-align: center; margin-bottom: 44px; }
.title h2 { font-size: 32px; font-weight: 800; letter-spacing: -.3px; margin: 0 0 8px; }
.title p { color: var(--muted); margin: 0; font-size: 15px; }
.gold-underline {
  width: 44px; height: 4px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
  border-radius: 10px;
}

/* ---------- Grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  border: .5px solid var(--line);
  border-radius: var(--r-l);
  padding: 26px;
  background: linear-gradient(180deg, var(--card-bg), rgba(255,255,255,.01));
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: border-color .2s var(--ease), transform .25s var(--spring), box-shadow .25s var(--ease);
}
.card:hover { border-color: rgba(212, 167, 44, .52); transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.32); }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 10px 0 2px; color: var(--gold-light); }
.small { color: var(--muted); font-size: 13px; }

.bind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bind .card h3 { margin-top: 0; color: var(--gold-light); font-weight: 700; }

/* ---------- Order ---------- */
.order { background: var(--bg-soft); border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); }
.orderbox { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.form, .calc {
  background: var(--bg-panel);
  border: .5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 600; font-size: 13.5px; display: block; margin: 14px 0 7px; color: var(--muted); }

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  font: inherit;
  font-size: 15px;
  background: var(--input-bg);
  color: var(--input-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%23d4a72c' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(212, 167, 44, 0.9);
  box-shadow: 0 0 0 4px rgba(212, 167, 44, 0.12);
  background: rgba(255,255,255,0.06);
}
input[type=file] {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--input-bg);
  color: var(--input-text);
}
input[type=file]::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}
input::placeholder, textarea::placeholder { color: var(--input-placeholder); }
option { background: #1f1f1f; color: #fff; }
option:checked { background: #0a84ff; color: #fff; }

.calc { position: sticky; top: 90px; height: max-content; }
.total { font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--gold-light); }

.calc-breakdown { margin-top: 14px; border: .5px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.calc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; font-size: 14.5px; color: var(--muted);
}
.calc-row + .calc-row { border-top: .5px solid var(--line); }
.calc-row b { color: var(--text); font-weight: 700; }
.calc-discount-note {
  margin-top: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5;
  color: var(--gold-light); background: var(--gold-tint);
  border: .5px solid rgba(212,167,44,.35); border-radius: var(--r-s);
}
.calc-disclaimer { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }

/* ---------- Info ---------- */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  border: .5px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--black-soft);
  transition: transform .25s var(--spring), box-shadow .25s var(--ease);
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.gallery-item img, .gallery-item video { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-item .gi-body { padding: 16px; }
.gallery-item h4 { margin: 0 0 6px; color: var(--gold-light); font-weight: 700; }
.gallery-item p { margin: 0; color: var(--muted); font-size: 14px; }
.empty-state { text-align: center; color: var(--muted); padding: 34px; border: 1px dashed var(--line); border-radius: var(--r-l); }

/* ---------- Announcements ---------- */
.announce-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.announce-item {
  border: .5px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-m);
  padding: 16px 20px;
  background: var(--black-soft);
  transition: background .2s var(--ease);
}
.announce-item:hover { background: var(--black-elevated); }
.announce-item .a-date { color: var(--gold-light); font-size: 12.5px; font-weight: 700; margin-bottom: 6px; letter-spacing: .2px; }
.announce-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Map (Static Image - No iframe) ---------- */
.map-static {
  position: relative;
  border: .5px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: auto; }
.faq details { border-bottom: .5px solid var(--line); padding: 18px 0; }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(-45deg);
  transition: transform .25s var(--ease);
  margin-left: 12px;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */
footer { background: var(--footer-bg); border-top: .5px solid var(--line); padding: 50px 7% calc(70px + env(safe-area-inset-bottom)); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot .brand span { font-size: 21px; }
.muted { color: var(--muted); }
footer b { color: var(--gold-light); }

/* ---------- Mobile tab bar ---------- */
.mobilebar { display: none; }

@media (max-width: 900px) {
  .links { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions > a.tg { display: none; }
  .hero { grid-template-columns: 1fr; padding: 55px 6%; }
  .hero-visual { margin-top: 10px; order: -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .bind, .info, .orderbox, .foot, .gallery { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .calc { position: static; }

  .mobilebar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 40;
    background: rgba(20, 20, 20, .78);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: .5px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobilebar a,
  .mobilebar button {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 14.5px;
    transition: transform .15s var(--spring), opacity .15s var(--ease);
    border: 0;
    cursor: pointer;
  }
  .mobilebar a:active, .mobilebar button:active { transform: scale(.94); opacity: .8; }
  .mobilebar .mobile-call-trigger {
    background: var(--black-elevated);
    color: var(--green);
    border-right: .5px solid var(--line);
  }
  .mobilebar a:last-child {
    background: var(--black-elevated);
    color: var(--tg);
    border-left: .5px solid var(--line);
  }

  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  section { padding: 40px 20px; }
}