/* ============================================================
   Pixel N Sound Events — styles
   Midnight navy + gold palette
   ============================================================ */

:root {
  --bg:         #0b1422;
  --bg2:        #101d31;
  --bg3:        #15243c;
  --line:       rgba(201, 164, 92, 0.22);
  --ink:        #f3eee3;
  --muted:      rgba(243, 238, 227, 0.66);
  --faint:      rgba(243, 238, 227, 0.38);
  --gold:       #c9a45c;
  --gold-soft:  #e2c98f;
  --glow:       #7cbdff;
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-display: 'Cormorant Garamond', 'Marcellus', serif;
  --font-body:    'Jost', sans-serif;
  --font-arabic:  'Amiri', serif;
}

html[data-theme="light"] {
  --bg:         #f6f1e7;
  --bg2:        #fdfaf3;
  --bg3:        #efe7d7;
  --line:       rgba(20, 33, 58, 0.16);
  --ink:        #14213a;
  --muted:      rgba(20, 33, 58, 0.7);
  --faint:      rgba(20, 33, 58, 0.42);
  --gold:       #a87f33;
  --gold-soft:  #8a6724;
  --glow:       #2f6db3;
  --card-shadow: 0 18px 48px rgba(20, 33, 58, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; margin: 0; }

a { color: inherit; }

.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* ---------- layout ---------- */

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

section { position: relative; }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { color: var(--muted); }

/* ---------- ornament divider ---------- */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.ornament i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.55;
  list-style: none;
}

.ornament i:nth-child(2) { width: 10px; height: 10px; opacity: 0.9; }

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: min(160px, 18vw);
  background: linear-gradient(to right, transparent, var(--gold));
  opacity: 0.5;
}

.ornament::after { background: linear-gradient(to left, transparent, var(--gold)); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand b {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 51;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gold-soft); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn:hover { background: var(--gold); color: #0b1422; transform: translateY(-1px); }

.btn.solid { background: var(--gold); color: #0b1422; }
.btn.solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn.small { padding: 10px 20px; font-size: 12.5px; }

.btn.ghost { border-color: rgba(245, 240, 230, 0.4); color: #f5f0e6; }
.btn.ghost:hover { border-color: var(--gold); background: transparent; color: var(--gold-soft); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(7, 13, 23, 0.96) 0%,
      rgba(7, 13, 23, 0.90) 28%,
      rgba(7, 13, 23, 0.56) 50%,
      rgba(7, 13, 23, 0.14) 72%,
      rgba(7, 13, 23, 0.00) 95%),
    linear-gradient(to top,
      rgba(7, 13, 23, 0.95) 0%,
      rgba(7, 13, 23, 0.42) 28%,
      rgba(7, 13, 23, 0.00) 58%),
    rgba(7, 13, 23, 0.16);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 96px;
  display: grid;
  gap: 26px;
  max-width: 780px;
}

.hero-arabic {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--glow);
  text-shadow: 0 0 22px rgba(124, 189, 255, 0.55);
  text-align: left;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 88px);
  letter-spacing: 0.01em;
  color: #f5f0e6;
  text-shadow: 0 2px 30px rgba(6, 12, 22, 0.55), 0 1px 4px rgba(6, 12, 22, 0.4);
}

.hero h1 em {
  font-style: italic;
  color: #e8d6a4;
}

.hero-sub {
  max-width: 520px;
  color: rgba(245, 240, 230, 0.88);
  font-size: 18px;
  text-shadow: 0 1px 16px rgba(6, 12, 22, 0.6);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- services ---------- */

.services { padding: 110px 0 90px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg2);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.card-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px 28px 32px;
}

.service-body h3 { font-size: 27px; }

.service-body .ar {
  font-family: var(--font-arabic);
  font-size: 15px;
  color: var(--gold);
  opacity: 0.85;
}

.service-body p {
  font-size: 15.5px;
  color: var(--muted);
}

.text-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-link::after { content: "→"; transition: transform 0.2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- portfolio ---------- */

.portfolio { padding: 110px 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.chip {
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.chip:hover { border-color: var(--gold); color: var(--gold-soft); }

.chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b1422;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tile {
  display: grid;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tile.hidden { display: none; }

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

.tile-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.tile-caption b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.tile-caption span {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- story ---------- */

.story {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 110px 0;
}

.story-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
}

.founder-img {
  display: block;
  width: 320px;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
}

.story-copy { display: grid; gap: 20px; }
.story-copy h2 { font-size: clamp(30px, 3.6vw, 44px); }
.story-copy p { color: var(--muted); }

.story-sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-soft);
}

/* ---------- contact ---------- */

.contact { padding: 110px 0 90px; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info { display: grid; gap: 22px; }
.contact-info h2 { font-size: clamp(32px, 4vw, 48px); }
.contact-info p { color: var(--muted); }

.contact-detail {
  display: grid;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-detail b {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-detail a { text-decoration: none; color: var(--ink); }
.contact-detail a:hover { color: var(--gold-soft); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a45c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }

.field input.invalid,
.field textarea.invalid { border-color: #c4604f; }

.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.form-success {
  grid-column: 1 / -1;
  display: none;
  text-align: center;
  padding: 36px 20px;
}

.form-success h3 { font-size: 30px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }
.form-success .ar {
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.form.sent > *:not(.form-success) { display: none; }
.form.sent .form-success { display: block; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--bg2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand { display: grid; gap: 10px; }

.footer-tagline {
  display: flex;
  gap: 16px;
  align-items: baseline;
  color: var(--muted);
  font-size: 15px;
}

.footer-tagline .arabic { color: var(--gold); font-size: 17px; }

.footer-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.footer-links a {
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--gold-soft); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive: tablet ---------- */

@media (max-width: 980px) {
  .wrap { width: min(1180px, calc(100% - 32px)); }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
    z-index: 49;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 15px;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.06em;
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-links .btn {
    margin-top: 12px;
    justify-content: center;
    width: 100%;
  }

  .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .story-inner { grid-template-columns: 1fr; gap: 44px; }
  .founder-img { width: 100%; height: 340px; }
}

/* ---------- responsive: mobile ---------- */

@media (max-width: 600px) {
  .wrap { width: min(1180px, calc(100% - 24px)); }

  .gallery { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-content { padding-bottom: 72px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 40px; }
  .services { padding: 80px 0 60px; }
  .portfolio { padding: 80px 0; }
  .story { padding: 80px 0; }
  .contact { padding: 80px 0 60px; }
}
