/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: #0f1113;
  color: #e6e8eb;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   LAYOUT HELPERS
   ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #14171a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1c2024;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
}

.brand-sub {
  font-size: 12px;
  color: #a8adb4;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  font-size: 14px;
  color: #c7cbd1;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* =========================
   HERO
   ========================= */
.hero {
  padding: 48px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.lede {
  color: #b7bcc3;
  max-width: 56ch;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: 18px;
  overflow: hidden;
  background: #181c20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   FACTS
   ========================= */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding: 14px;
  border-radius: 14px;
  background: #14181c;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.facts dt {
  font-size: 12px;
  color: #a8adb4;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
}

/* =========================
   SECTIONS
   ========================= */
.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.section-sub {
  color: #b7bcc3;
  max-width: 70ch;
  margin-bottom: 24px;
}

/* =========================
   CARDS
   ========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: #15191d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #b7bcc3;
}

/* =========================
   GALLERY
   ========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.tile-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(15, 17, 19, 0.75);
  backdrop-filter: blur(6px);
}

/* =========================
   STEPS
   ========================= */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps li {
  background: #15191d;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.steps p {
  margin: 0;
  font-size: 14px;
  color: #b7bcc3;
}

/* =========================
   CONTACT
   ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: #15191d;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-link {
  font-weight: 700;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  color: #a8adb4;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

/* =========================
   BUTTONS (STONE)
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-stone {
  background: linear-gradient(180deg, #3f454c, #24282d);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

/* =========================
   MODAL
   ========================= */
.no-scroll {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.active {
  display: block;
}

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

.modal-panel {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  padding: 14px;
  background: #14171a;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-img {
  width: 100%;
  border-radius: 16px;
}

.modal-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #a8adb4;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .cards,
  .gallery,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cards,
  .gallery,
  .steps {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.back-button {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 9999;

  background: linear-gradient(145deg, #3a3f44, #2b2f33);
  color: #e6e6e6;
  text-decoration: none;

  padding: 10px 16px;
  border-radius: 12px;

  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 4px 10px rgba(0,0,0,0.45);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.back-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 6px 14px rgba(0,0,0,0.6);
}

.back-button:active {
  transform: translateY(0);
}
/* --- HERO IMAGE SIZE FIX --- */
.hero-image,
.hero-media img,
.hero img,
#hero img {
  width: 100%;
  max-width: 520px;   /* <- make smaller/larger here */
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

/* On bigger screens, let it breathe a bit */
@media (min-width: 900px) {
  .hero-image,
  .hero-media img,
  .hero img,
  #hero img {
    max-width: 640px;
  }
}
/* =========================
   ICON PAGE
========================= */

.icon-page {
  background: #121212;
  color: #eee;
  min-height: 100vh;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 2rem;
}

.icon-display {
  max-width: 360px;
  width: 90%;
  height: auto;
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 20px 40px rgba(0,0,0,0.6);
  background: #1a1a1a;
}

/* reuse your stone button */
.stone-button {
  text-decoration: none;
  color: #eee;
}
