/* --------------------
       CORE RESET & LAYOUT
       -------------------- */
:root {
  --max-w: 1150px;
  --gap: 20px;

  /* color tokens */
  --bg: #0f1724;
  --surface: #0b1220;
  --muted: #9aa7b8;
  --text: #e6eef8;

  --primary: #e07a5f;
  /* warm terracotta */
  --secondary: #2a9d8f;
  /* accent green */
  --accent-grad: linear-gradient(135deg, var(--primary), #ffb4a2);

  --glass: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.04);
  --radius: 12px;
  --shadow: 0 10px 34px rgba(2, 6, 23, 0.6);

  --nav-height: 74px;
}

body.light {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --muted: #5b6b7a;
  --text: #0b1220;
  --glass: rgba(10, 16, 32, 0.03);
  --card-border: rgba(10, 16, 32, 0.06);
  --shadow: 0 10px 30px rgba(12, 20, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

/* absolutely prevent horizontal scroll */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(
      900px 500px at 10% 10%,
      rgba(224, 122, 95, 0.03),
      transparent
    ),
    radial-gradient(
      700px 400px at 92% 88%,
      rgba(42, 157, 143, 0.02),
      transparent
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.45;
  transition: background 0.35s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------
       HEADER & NAV
       -------------------- */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1400;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0)
  );
  border-bottom: 1px solid var(--card-border);
  transition: transform 0.28s ease, background 0.25s;
  will-change: transform;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-info {
  line-height: 1;
}

.brand-info .title {
  font-weight: 800;
  font-size: 1rem;
}

.brand-info .sub {
  font-size: 12px;
  color: var(--muted);
}

nav.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

nav.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s ease;
  white-space: nowrap;
}

nav.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

nav.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(224, 122, 95, 0.12);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  padding: 8px;
  border-radius: 8px;
}

/* --------------------
       MOBILE SLIDE-DOWN MENU (Option A)
       -------------------- */
/* menu container when opened (pushes content down) */
#mobileMenu {
  display: none;
  width: 100%;
  position: fixed;
  left: 0;
  top: var(--nav-height);
  z-index: 1300;
  background: var(--surface);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
  transform-origin: top;
  overflow: hidden;
}

#mobileMenu .menu-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px;
}

#mobileMenu .menu-inner a {
  display: block;
  padding: 12px 8px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
}

#mobileMenu.show {
  display: block;
  animation: slideDown 0.28s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------
       HERO / SECTIONS
       -------------------- */
main {
  padding-top: calc(var(--nav-height) + 18px);
}

.hero {
  padding: 48px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 28px;
  align-items: center;
}

.kicker {
  color: var(--primary);
  font-weight: 700;
}

.headline {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.02;
  margin: 10px 0 12px;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  max-width: 70%;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.012),
    rgba(255, 255, 255, 0)
  );
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.gallery .item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  height: 220px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.28s, box-shadow 0.28s;
}

.gallery .item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* cards + services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--card-border);
  transition: transform 0.28s, box-shadow 0.28s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

/* contact/form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  margin-top: 18px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--glass);
  color: var(--text);
  font-family: inherit;
}

.price-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* footer */
footer {
  padding: 48px 0;
  margin-top: 40px;
  border-top: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1600;
  background: rgba(2, 6, 23, 0.75);
  padding: 18px;
}

.lightbox.active {
  display: flex;
}

.lightbox .inner {
  max-width: 1100px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.lightbox img {
  width: 100%;
  height: auto;
  display: block;
}

/* reveal util */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* --------------------
       RESPONSIVE RULES
       -------------------- */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr 360px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  nav.nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .actions .btn-ghost,
  .actions .btn-primary {
    display: none;
  }

  /* keep header slim on mobile */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .gallery .item {
    height: 160px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  #mobileMenu .menu-inner {
    padding: 12px;
  }
}

* {
  word-wrap: break-word;
  hyphens: auto;
}
