/* ═══════════════════════════════════════════════════════════════
   RHOMBICDODECAHEDRON.COM — Shared Styles
   Theme: Ancient Future — sacred geometry meets advanced habitat
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Chakra+Petch:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600&display=swap');

:root {
  --void:     #0b0705;
  --void-2:   #15100a;
  --void-3:   #1f1710;
  --blue:     #6b4a1e;
  --blue-mid: #a8782c;
  --blue-hi:  #d4a24a;
  --cyan:     #f2c14e;
  --gold:     #d4af37;
  --gold-hi:  #f5d76e;
  --paper:    #f6ecd8;
  --paper-dim:#b6956a;
  --rule:     rgba(212,162,74,0.18);
  --rule-s:   rgba(212,162,74,0.42);
  --display:  'Orbitron', system-ui, sans-serif;
  --tech:     'Chakra Petch', system-ui, sans-serif;
  --body:     'Space Grotesk', system-ui, sans-serif;
  --nav-h:    60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Images: never let width/height attributes distort a responsive image */
img { max-width: 100%; height: auto; }

body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* DIAMOND GRID BACKGROUND */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><g fill='none' stroke='%23d4a24a' stroke-width='0.5' opacity='0.22'><polygon points='50,3 97,50 50,97 3,50'/><line x1='50' y1='3' x2='50' y2='97'/><line x1='3' y1='50' x2='97' y2='50'/></g></svg>");
  background-size: 100px 100px;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(107,74,30,0.35) 0%, transparent 60%),
              radial-gradient(ellipse at 50% 100%, rgba(242,193,78,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(11,7,5,0.88);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: var(--display); font-weight: 800;
  font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); text-decoration: none;
  text-shadow: 0 0 20px rgba(242,193,78,0.5);
}
.nav-logo span { color: var(--gold-hi); }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  font-family: var(--tech); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-dim); text-decoration: none;
  padding: 6px 12px; border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan); border-color: var(--rule);
  text-shadow: 0 0 10px rgba(242,193,78,0.5);
}
.nav-cta {
  font-family: var(--tech); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--void); background: var(--cyan);
  padding: 8px 18px; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  font-weight: 600; transition: all 0.2s;
}
.nav-cta:hover { background: var(--blue-hi); box-shadow: 0 0 20px rgba(242,193,78,0.4); }
.nav-mobile-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  color: var(--cyan); font-size: 18px; padding: 6px 10px; cursor: pointer;
}
.nav-links .nav-links-cta { display: none; }
@media (max-width: 900px) {
  .nav { padding: 0 16px; gap: 10px; }
  .nav-logo { font-size: 13px; letter-spacing: 0.14em; white-space: nowrap; }
  .nav-cta { margin-left: auto; padding: 8px 12px; font-size: 10px; letter-spacing: 0.16em; white-space: nowrap; }
  .nav-mobile-toggle { display: block; flex-shrink: 0; width: 40px; height: 40px; padding: 0; font-size: 20px; line-height: 1; }
  /* drop-down panel */
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0b0705; border-bottom: 1px solid var(--rule-s);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 16px 20px; font-size: 13px; border: none; }
  .nav-links a.active { background: rgba(242,193,78,0.08); }
  .nav-links .nav-links-cta { display: block; }
  .nav-links .nav-links-cta a { color: var(--void); background: var(--cyan); font-weight: 600; text-align: center; margin: 12px 20px 16px; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }           /* the CTA lives inside the menu on small phones */
  .nav-logo { font-size: 12px; letter-spacing: 0.1em; }
}

/* ─── LAYOUT ──────────────────────────────────────────────── */
.page { padding-top: var(--nav-h); position: relative; z-index: 1; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .page .page-hero { padding-top: 96px; padding-bottom: 40px; }
  .section-sub { font-size: 16px; margin-bottom: 32px; }
  .section-title { overflow-wrap: anywhere; }
  .btn { padding-left: 16px; padding-right: 16px; letter-spacing: 0.2em; }
}

/* ─── SECTION HEADERS ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section-label {
  font-family: var(--tech); font-weight: 500;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(242,193,78,0.4);
}
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 4vw, 52px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--paper); margin-bottom: 20px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--blue-hi));
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: 18px; color: var(--paper-dim); max-width: 60ch;
  line-height: 1.65; margin-bottom: 48px;
}

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
  border: 1px solid var(--rule);
  background: rgba(21,16,10,0.65);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: all 0.35s;
}
.card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(242,193,78,0.18);
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--tech); font-weight: 600;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 13px 26px; cursor: pointer; text-decoration: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--cyan); color: var(--void); border: none;
}
.btn-primary:hover { background: var(--blue-hi); box-shadow: 0 0 28px rgba(242,193,78,0.5); }
.btn-outline {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--rule-s);
}
.btn-outline:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(242,193,78,0.25); }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 60px 0 32px;
  background: rgba(11,7,5,0.9);
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: var(--display); font-weight: 800;
  font-size: 14px; letter-spacing: 0.18em;
  color: var(--cyan); text-shadow: 0 0 16px rgba(242,193,78,0.5);
  margin-bottom: 16px;
}
.footer-brand .logo span { color: var(--gold-hi); }
.footer-brand p { font-size: 13px; color: var(--paper-dim); line-height: 1.7; max-width: 38ch; }
.footer-col h6 {
  font-family: var(--tech); font-weight: 600;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: var(--paper-dim); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--rule); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--tech); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--paper-dim);
}
.footer-seo {
  font-size: 12px; color: rgba(122,168,212,0.5);
  line-height: 1.6; margin-top: 12px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 10px; } }

/* ─── UTILITY ─────────────────────────────────────────────── */
.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold-hi); }
.text-dim { color: var(--paper-dim); }
.divider { border: none; border-top: 1px solid var(--rule); }
.tag {
  display: inline-block;
  font-family: var(--tech); font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--rule-s);
  padding: 4px 10px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ─── SCHEMA / SEO hidden ─────────────────────────────────── */
.seo-text { font-size: 11px; color: var(--paper-dim); line-height: 1.7; margin-top: 40px; opacity: 0.6; }

/* ─── GALLERY ─────────────────────────────────────────────── */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.gallery-tab {
  font-family: var(--tech); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper-dim); background: rgba(11,7,5,0.5); border: 1px solid var(--rule);
  padding: 9px 16px; cursor: pointer; transition: all 0.25s;
}
.gallery-tab:hover { color: var(--paper); border-color: var(--rule-s); }
.gallery-tab.active { color: var(--void); background: var(--cyan); border-color: var(--cyan); }
.gallery-tab .n { opacity: 0.6; margin-left: 6px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery-item {
  position: relative; display: block; aspect-ratio: 4/3; overflow: hidden;
  background: #000; border: 1px solid var(--rule); transition: border-color 0.3s, box-shadow 0.3s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover { border-color: var(--cyan); box-shadow: 0 10px 40px rgba(242,193,78,0.18); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "\2922"; position: absolute; right: 10px; bottom: 8px; font-size: 14px; color: var(--cyan);
  opacity: 0; transition: opacity 0.3s; text-shadow: 0 0 8px rgba(0,0,0,0.8);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item[hidden] { display: none; }
.gallery-more { margin-top: 24px; text-align: center; }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(11,7,5,0.96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,0.8); border: 1px solid var(--rule); background: #000; }
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; padding: 0 70px;
  font-family: var(--tech); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--paper-dim);
}
.lb-cap b { color: var(--cyan); font-weight: 500; margin-right: 14px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border: 1px solid var(--rule-s); background: rgba(11,7,5,0.7); color: var(--cyan); font-size: 26px; line-height: 44px; text-align: center; cursor: pointer; user-select: none;
  transition: all 0.25s;
}
.lb-btn:hover { background: var(--cyan); color: var(--void); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 1px solid var(--rule-s); background: rgba(11,7,5,0.7); color: var(--paper); font-size: 18px; line-height: 42px; text-align: center; cursor: pointer; }
.lb-close:hover { color: var(--cyan); border-color: var(--cyan); }
@media (max-width: 600px) { .lb-btn { width: 40px; height: 40px; line-height: 36px; font-size: 22px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-cap { padding: 0 50px; font-size: 9px; } }
