/* ===================================================================
   Le Petit Port — Salle des Fêtes & Restaurant en bord de mer, Oran
   ================================================================ */

:root {
  --c-bg: #FFFFFF;
  --c-cream: #F4ECDD;
  --c-cream-2: #FBF6EC;
  --c-sea: #1F4E6E;
  --c-sea-2: #143E5C;
  --c-sea-soft: #2F6383;
  --c-gold: #C9A961;
  --c-gold-2: #B89148;
  --c-ink: #1A2530;
  --c-mute: #5C6B78;
  --c-line: #E2D9C8;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(20, 62, 92, 0.07);
  --shadow-md: 0 14px 38px rgba(20, 62, 92, 0.14);

  --ff-display: "Cormorant Garamond", "Times New Roman", serif;
  --ff-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-ar-display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --ff-ar-body: "Tajawal", "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: var(--ff-ar-body);
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-gold-2); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-sea-2);
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4 { font-family: var(--ff-ar-display); }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 var(--s-2); color: var(--c-ink); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--s-3);
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-2);
  font-weight: 600;
  margin-bottom: var(--s-2);
  display: inline-block;
}

/* ---------- Header --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-2);
  gap: var(--s-3);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--ff-display);
}
.brand .brand-mark {
  font-size: 1.65rem;
  color: var(--c-sea-2);
  letter-spacing: 0.02em;
}
.brand .brand-sub {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold-2);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--c-sea-2);
}
.nav-toggle svg { width: 26px; height: 26px; }

.nav-links {
  display: flex; gap: var(--s-3);
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-sea-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a.is-active {
  color: var(--c-gold-2);
  border-bottom-color: var(--c-gold);
}

.nav-tools { display: flex; align-items: center; gap: var(--s-2); }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-sea-2);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--ff-body);
  font-weight: 600;
}
.lang-toggle:hover { background: var(--c-cream-2); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--c-sea);
  color: #fff;
}
.btn-primary:hover { background: var(--c-sea-2); color: #fff; transform: translateY(-1px); }
.btn-gold {
  background: var(--c-gold);
  color: var(--c-sea-2);
}
.btn-gold:hover { background: var(--c-gold-2); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--c-sea-2);
  border-color: var(--c-sea-2);
}
.btn-outline:hover { background: var(--c-sea-2); color: #fff; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1FB659; color: #fff; }

/* ---------- Hero ----------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
              rgba(20, 62, 92, 0.18) 0%,
              rgba(20, 62, 92, 0.08) 35%,
              rgba(20, 62, 92, 0.78) 100%);
  z-index: 1;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-block: var(--s-7) var(--s-6);
}
.hero .eyebrow { color: var(--c-gold); }
.hero h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: var(--s-2);
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  color: var(--c-gold);
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--s-3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-pillars div { color: rgba(255,255,255,0.92); }
.hero-pillars strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #fff;
  font-weight: 500;
}
.hero-pillars span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-top: 4px;
}

/* ---------- Sections ------------------------------------------- */
section { padding-block: var(--s-7); }
section.tight { padding-block: var(--s-6); }

.section-head { text-align: center; margin-bottom: var(--s-5); }
.section-head p { max-width: 56ch; margin-inline: auto; color: var(--c-mute); }

.bg-cream { background: var(--c-cream-2); }
.bg-sea { background: var(--c-sea); color: #fff; }
.bg-sea h2, .bg-sea h3 { color: #fff; }
.bg-sea p { color: rgba(255,255,255,0.86); }

/* ---------- Pillars / icon grid -------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
}
.pillar {
  background: var(--c-bg);
  padding: var(--s-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  text-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar .icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--c-cream);
  color: var(--c-gold-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-2);
}
.pillar .icon svg { width: 22px; height: 22px; }
.pillar h3 { color: var(--c-sea-2); margin-bottom: 6px; font-size: 1.25rem; }
.pillar p { color: var(--c-mute); font-size: 15px; margin: 0; }

/* ---------- Two-col / split ------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
.split.reverse { direction: rtl; }
body[dir="rtl"] .split.reverse { direction: ltr; }
.split.reverse > * { direction: ltr; }
body[dir="rtl"] .split.reverse > * { direction: rtl; }
.split img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.split .copy h2 { margin-bottom: var(--s-2); }
.split .copy p { color: var(--c-mute); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- Gallery -------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-2);
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  grid-column: span 6;
}
.gallery-grid figure.tall { grid-column: span 6; aspect-ratio: 3/4; }
.gallery-grid figure.wide { grid-column: span 12; aspect-ratio: 16/7; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

@media (max-width: 720px) {
  .gallery-grid figure { grid-column: span 12; }
  .gallery-grid figure.tall { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ---------- Capacity / spaces ---------------------------------- */
.spaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}
.space-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.space-card img { aspect-ratio: 4/3; object-fit: cover; }
.space-card .body { padding: var(--s-3); flex: 1; display: flex; flex-direction: column; }
.space-card h3 { margin-bottom: 6px; font-size: 1.4rem; }
.space-card .cap {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-2);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.space-card p { color: var(--c-mute); font-size: 15px; margin: 0; }

/* ---------- Event types ---------------------------------------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
}
.event-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.event-card:hover { transform: translateY(-2px); border-color: var(--c-gold); }
.event-card .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-cream);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-gold-2);
  margin-bottom: var(--s-2);
}
.event-card .icon svg { width: 28px; height: 28px; }
.event-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.event-card p { font-size: 14px; color: var(--c-mute); margin: 0; }

/* ---------- Social proof strip --------------------------------- */
.proof {
  background: var(--c-sea-2);
  color: #fff;
  padding-block: var(--s-5);
}
.proof .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  text-align: center;
}
.proof .stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: var(--c-gold);
  font-weight: 500;
}
.proof .stat span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
@media (max-width: 720px) {
  .proof .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonials --------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}
.testimonial {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 4px; left: 18px;
  font-family: var(--ff-display);
  font-size: 5rem;
  color: var(--c-gold);
  line-height: 1;
}
body[dir="rtl"] .testimonial::before { left: auto; right: 18px; }
.testimonial blockquote {
  margin: var(--s-3) 0 var(--s-2);
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--c-sea-2);
  line-height: 1.4;
  font-style: italic;
}
.testimonial cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 600;
}
.testimonial .stars { color: var(--c-gold); margin-bottom: var(--s-1); letter-spacing: 0.08em; }

/* ---------- CTA band ------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding-block: var(--s-7);
  overflow: hidden;
}
.cta-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,62,92,0.84), rgba(20,62,92,0.92));
  z-index: -1;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.86); max-width: 52ch; margin-inline: auto var(--s-3); }
.cta-band .actions { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-3); }

/* ---------- Map / contact -------------------------------------- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  aspect-ratio: 16/9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-4); }
.info-block h3 { margin-bottom: var(--s-2); }
.info-block ul { list-style: none; padding: 0; margin: 0; }
.info-block li {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
}
.info-block li:last-child { border-bottom: 0; }
.info-block li .ico { color: var(--c-gold-2); flex-shrink: 0; margin-top: 2px; }
.info-block li .ico svg { width: 18px; height: 18px; }

/* ---------- Form ---------------------------------------------- */
form.reservation {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
form.reservation .full { grid-column: 1 / -1; }
form.reservation label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
form.reservation input,
form.reservation select,
form.reservation textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--c-ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
form.reservation textarea { min-height: 130px; resize: vertical; }
form.reservation input:focus,
form.reservation select:focus,
form.reservation textarea:focus {
  outline: 0;
  border-color: var(--c-sea);
  box-shadow: 0 0 0 3px rgba(31,78,110,0.14);
}
form.reservation .form-status {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--c-sea-2);
  background: var(--c-cream);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: none;
}
form.reservation .form-status.show { display: block; }

@media (max-width: 600px) {
  form.reservation { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp --------------------------------- */
.fab-whatsapp {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
  z-index: 60;
  transition: transform .15s ease;
}
.fab-whatsapp:hover { transform: translateY(-2px) scale(1.04); color: #fff; }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ---------- Footer --------------------------------------------- */
.site-footer {
  background: #0F2A3F;
  color: rgba(255,255,255,0.72);
  padding-block: var(--s-6) var(--s-3);
  font-size: 14px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-4);
}
.site-footer h4 { color: #fff; font-family: var(--ff-display); font-size: 1.2rem; margin-bottom: var(--s-2); }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--c-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 6px 0; }
.site-footer .brand-mark { color: #fff; font-size: 1.45rem; }
.site-footer .brand-sub { color: var(--c-gold); margin-top: 2px; }
.site-footer .legal {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 820px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (inner pages) ---------------------------- */
.page-hero {
  position: relative;
  min-height: 44vh;
  display: flex; align-items: center;
  color: #fff;
  isolation: isolate;
  text-align: center;
}
.page-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,62,92,0.55), rgba(20,62,92,0.78));
  z-index: -1;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,0.88); max-width: 60ch; margin-inline: auto; }
.page-hero .eyebrow { color: var(--c-gold); }

/* ---------- Misc ---------------------------------------------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line), transparent);
  border: 0;
  margin-block: var(--s-5);
}

.text-center { text-align: center; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Mobile nav */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%; inset-inline-start: 0; right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: var(--s-3);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    display: none;
    gap: var(--s-2);
  }
  .nav-links.is-open { display: flex; }
  .nav-tools { gap: 8px; }
  .nav-tools .btn { display: none; }
}
