/* ============================================================
   Byblos Plaza — Landing Page Styles
   Luxury dark-marble & gold aesthetic
   ============================================================ */

:root {
  --navy:       #071127;
  --navy-2:     #0c1a38;
  --navy-3:     #122448;
  --black:      #071127;  /* deep navy (kept name for compatibility) */
  --charcoal:   #0c1a38;  /* navy section */
  --charcoal-2: #122448;  /* navy card */
  --marble:     #f4f1ea;
  --stone:      #cbd0dc;
  --gold:       #c9a25a;
  --gold-lt:    #e3c98a;
  --gold-dk:    #a9853f;
  --ink:        #132441;  /* navy ink for text on light */
  --muted:      #707a8f;
  --line:       rgba(201,162,90,0.28);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--marble);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-lt);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--gold-dk); }

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}
.h2--light { color: var(--marble); }

.section { padding: clamp(64px, 9vw, 130px) 0; }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.h2--light + .section__lead { color: var(--stone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 16px 38px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold) 45%, var(--gold-dk));
  color: #1a1408;
  box-shadow: 0 10px 30px rgba(201,162,90,0.28);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(201,162,90,0.4); }
.btn--block { width: 100%; text-align: center; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.nav.is-scrolled {
  background: rgba(7,17,39,0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--serif); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.04em;
}
.nav__name {
  font-family: var(--serif); color: var(--marble);
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0.04em;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  color: var(--stone); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.06em; font-weight: 400;
  transition: color .3s var(--ease);
}
.nav__links a:hover { color: var(--gold-lt); }
.nav__cta {
  border: 1px solid var(--gold); color: var(--gold-lt) !important;
  padding: 9px 22px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem !important;
  transition: background .3s var(--ease), color .3s var(--ease) !important;
}
.nav__cta:hover { background: var(--gold); color: #1a1408 !important; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--marble); transition: .3s var(--ease); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}
.hero__bg {
  position: absolute; inset: 0;
  background-color: #0c1a36;
  background-image:
    linear-gradient(rgba(6,14,32,0.30), rgba(6,14,32,0.45)),
    url('assets/byblos-hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,14,32,0.60) 0%, rgba(6,14,32,0.30) 35%, rgba(6,14,32,0.82) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 22px; max-width: 900px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0.05em;
  color: var(--marble);
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
  margin-bottom: 18px;
}
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  color: var(--stone);
  font-weight: 400; font-style: italic;
  margin-bottom: 40px;
}
.hero__note {
  margin-top: 26px;
  color: var(--stone);
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero .eyebrow { position: relative; display: inline-block; }
.hero .eyebrow::before,
.hero .eyebrow::after {
  content: ""; position: absolute; top: 50%; width: 46px; height: 1px;
  background: var(--line);
}
.hero .eyebrow::before { right: calc(100% + 18px); }
.hero .eyebrow::after  { left: calc(100% + 18px); }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid var(--line); border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; background: var(--gold-lt); border-radius: 3px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0%{opacity:0;top:8px} 40%{opacity:1} 80%{opacity:0;top:22px} 100%{opacity:0} }

/* ============ ABOUT ============ */
.about { background: var(--marble); }
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__text p { color: #45506a; margin-bottom: 18px; font-size: 1.02rem; }
.about__text strong { color: var(--ink); }
.about__stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.stat { border-left: 2px solid var(--gold); padding-left: 16px; }
.stat__num { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.stat__label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.about__img {
  aspect-ratio: 4 / 5;
  background-color: #d8d3c8;
  background-image: url('assets/byblos-hero.jpg');
  background-size: cover; background-position: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  position: relative;
}
.about__img::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,0.35); pointer-events: none;
}

/* ============ SPACES ============ */
.spaces { background: var(--charcoal); color: var(--stone); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: linear-gradient(180deg, var(--charcoal-2), #0d1c3b);
  border: 1px solid rgba(201,162,90,0.14);
  padding: 44px 34px;
  border-radius: 3px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 24px 50px rgba(0,0,0,0.45); }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  color: var(--gold-lt); font-size: 1.3rem;
  border: 1px solid var(--line); border-radius: 50%;
  margin-bottom: 24px;
}
.card__title { font-family: var(--serif); font-size: 1.5rem; color: var(--marble); font-weight: 600; margin-bottom: 12px; }
.card p { color: #9aa3ba; font-size: 0.98rem; }

/* ============ INVESTMENT ============ */
.invest { background: var(--marble); }
.invest__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--marble); padding: 44px; transition: background .4s var(--ease); }
.feature:hover { background: #fbf9f4; }
.feature__no { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); font-weight: 600; display: block; margin-bottom: 10px; line-height: 1; }
.feature__title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.98rem; }

/* ============ GALLERY ============ */
.gallery { background: var(--black); }
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery__item {
  aspect-ratio: 16 / 10;
  background-color: #10203f;
  background-size: cover; background-position: center;
  border-radius: 3px; overflow: hidden;
  position: relative;
  transition: transform .6s var(--ease);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.4));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery__item:hover { transform: scale(1.015); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 1.95 / 1; }

/* ============ INQUIRE ============ */
.inquire {
  background: linear-gradient(150deg, #081428 0%, #0e1f42 55%, #16294c 100%);
  color: var(--stone);
}
.inquire__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.inquire__intro { position: sticky; top: 110px; }
.inquire__lead { color: var(--stone); font-size: 1.05rem; margin-bottom: 26px; }
.inquire__points { list-style: none; display: grid; gap: 14px; }
.inquire__points li { position: relative; padding-left: 28px; color: #b3bccb; }
.inquire__points li::before {
  content: "\2726"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 0.9rem;
}

.form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,90,0.22);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 46px);
  backdrop-filter: blur(6px);
}
.form-wrap__title { font-family: var(--serif); font-size: 1.7rem; color: var(--marble); font-weight: 600; margin-bottom: 26px; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.req { color: var(--gold-lt); }
.opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(201,162,90,0.22);
  color: var(--marble);
  font-family: var(--sans); font-size: 0.98rem;
  padding: 13px 15px;
  border-radius: 2px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: #7a8296; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(0,0,0,0.4);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a25a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field select option { background: #0e1f42; color: var(--marble); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #d9534f; }
.hint { font-size: 0.75rem; color: var(--muted); }
.form__status { font-size: 0.9rem; margin-top: 4px; min-height: 1.2em; }
.form__status.is-success { color: var(--gold-lt); }
.form__status.is-error { color: #e08a86; }

/* ============ FOOTER ============ */
.footer { background: var(--black); color: var(--muted); padding: 56px 0 40px; border-top: 1px solid rgba(201,162,90,0.14); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { font-family: var(--serif); color: var(--marble); font-size: 1.3rem; font-weight: 600; }
.footer__tag { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dk); }
.footer__addr { color: var(--stone); font-size: 0.92rem; }
.footer__copy { font-size: 0.82rem; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 460px; }
  .cards { grid-template-columns: 1fr; }
  .invest__grid { grid-template-columns: 1fr; }
  .inquire__grid { grid-template-columns: 1fr; }
  .inquire__intro { position: static; }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(78vw, 320px); height: 100vh;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 0 34px;
    background: rgba(7,17,39,0.98); backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.05rem; }
  .nav__toggle { display: flex; z-index: 60; }
  .nav.is-menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form__row { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .about__stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
