/* ============================================================
   ARAZI — website shared styles
   Premium blue & white. Builds on ../colors_and_type.css tokens.
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.center { text-align: center; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: var(--radius-md);
  cursor: pointer; border: 1px solid transparent; transition: all 140ms var(--ease-out); line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--marine); color: #fff; }
.btn-primary:hover { background: var(--marine-ink); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--marine); border-color: var(--marine-line); }
.btn-outline:hover { background: var(--marine-soft); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 76px; display: flex; align-items: center;
  background: rgba(252,253,254,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
/* Logo — nav */
.nav img { height: 64px; width: auto; }
/* Logo — footer */
.footer img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 120ms; }
.nav-links a:hover { color: var(--marine); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }

/* ---- hamburger toggle ---- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 200ms var(--ease-out);
}

/* ---- eyebrow with rule ---- */
.eyebrow-rule { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-rule::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* ---- pills ---- */
.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px; line-height: 1.6;
}
.pill-line  { border: 1px solid var(--line); color: var(--ink-3); }
.pill-marine { background: var(--marine-soft); color: var(--marine-ink); }
.pill-gold  { background: var(--gold); color: #fff; }
.pill-azure { background: var(--azure-soft); color: #1C5C92; }

/* ---- hero ---- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(8,23,38,0.40) 0%, rgba(8,23,38,0.15) 35%, rgba(8,23,38,0.78) 100%); }
.hero-inner { position: relative; width: 100%; padding-bottom: 64px; color: #fff; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: rgba(255,255,255,0.82); }

/* ---- project feature cards (home) ---- */
.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; background: var(--paper-soft);
  border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm);
}
.feature.flip { grid-template-columns: 0.95fr 1.05fr; }
.feature-img { position: relative; min-height: 420px; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature.flip .feature-img { order: 2; }
.feature-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-stats { display: flex; gap: 28px; margin: 24px 0 28px; flex-wrap: wrap; }
.feature-stats .v { font-family: var(--font-serif); font-size: 28px; color: var(--marine); line-height: 1; }
.feature-stats .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-top: 6px; }

/* ---- cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.card-pad { padding: 26px 26px 28px; }

/* ---- amenities ---- */
.amenity {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center;
}
.amenity img  { width: 38px; height: 38px; }
.amenity svg  { width: 34px; height: 34px; color: var(--marine); stroke-width: 1.5; }
.amenity span { font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.gallery a:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; aspect-ratio: 8/3; }

/* ---- spec table ---- */
.spec { width: 100%; border-collapse: collapse; }
.spec td { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec td:first-child { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); width: 42%; }
.spec td:last-child { color: var(--ink); font-weight: 500; }

/* ---- footer ---- */
.footer { background: var(--marine); color: rgba(255,255,255,0.85); position: relative; overflow: hidden; }
.footer-topo { position: absolute; inset: 0; background-image: url('../assets/topo-pattern.svg'); background-size: 760px auto; opacity: 0.10; pointer-events: none; }
.footer .container { position: relative; }
.footer a { color: rgba(255,255,255,0.78); font-size: 14px; transition: color 120ms; }
.footer a:hover { color: #fff; }
.footer .eyebrow { color: rgba(255,255,255,0.5); }

/* ---- form ---- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: 14px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--azure); box-shadow: var(--ring-focus);
}

/* ---- responsive ---- */
@media (max-width: 920px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 56px 0; }

  /* Nav — show hamburger, drop links into drawer */
  .nav-toggle { display: flex; }
  .nav-phone  { display: none; }
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0;
    background: rgba(252,253,254,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(12,34,54,0.10);
    padding: 8px 0 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 28px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }

  /* Layout */
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-img { order: 0; }
  .feature-img { min-height: 260px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide { grid-column: span 2; aspect-ratio: 16/7; }
  .hero { min-height: 520px; }

  /* Footer grid */
  .footer .container { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 44px 0; }

  /* Smaller hero text */
  .hero h1 { font-size: clamp(32px, 9vw, 52px) !important; line-height: 1.1 !important; }
  .hero .body-lg { font-size: 15px !important; }
  .hero-inner { padding-bottom: 40px; }

  /* Grids → single column */
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide { grid-column: span 2; }
  .feature-body { padding: 28px 20px; }
  .feature-stats { gap: 18px; }

  /* Nav button smaller */
  .nav-right .btn { padding: 9px 14px; font-size: 13px; }

  /* Spec table */
  .spec td { padding: 10px 0; font-size: 13px; }

  /* Footer */
  .footer .container { grid-template-columns: 1fr !important; gap: 24px !important; padding-top: 36px !important; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; aspect-ratio: 4/3; }
  .hero h1 { font-size: 28px !important; }
}
