:root {
  --brand-900: #083b3a;
  --brand-700: #0b6b66;
  --brand-500: #12a594;
  --brand-100: #d9f2ef;
  --ink: #14212b;
  --muted: #5b6b76;
  --bg: #f7fafb;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(8, 59, 58, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Cairo", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
.container { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6edef;
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--brand-900); text-decoration: none; }
.logo strong { color: var(--brand-500); }
.logo-mark { font-size: 1.4rem; }
.main-nav { display: flex; gap: 20px; margin-inline-start: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--brand-700); }
.btn-header { padding: 8px 18px; font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 13px 28px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 6px 18px rgba(18, 165, 148, 0.35); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--brand-700); border: 2px solid var(--brand-500); }
.btn-ghost:hover { background: var(--brand-100); }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; align-self: center; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--brand-100) 0%, #fff 65%);
  padding: 64px 0 80px;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow { color: var(--brand-700); font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.3; color: var(--brand-900); }
.hero .accent { color: var(--brand-500); }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 18px 0 26px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { list-style: none; display: flex; gap: 28px; margin-top: 34px; color: var(--muted); font-size: 0.95rem; flex-wrap: wrap; }
.hero-trust strong { display: block; font-size: 1.3rem; color: var(--brand-900); }
.hero-card {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  overflow: hidden; transform: rotate(-2deg);
}
.hero-card-top { background: var(--brand-700); color: #fff; padding: 12px 20px; font-weight: 700; }
.hero-card-body { padding: 20px; }
.appt-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e6edef; }
.appt-row span { color: var(--muted); }
.appt-status { margin-top: 14px; color: var(--brand-700); font-weight: 700; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--brand-900); }
.section-sub { color: var(--muted); margin: 8px 0 36px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow); border: 1px solid #eef3f4;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 1.9rem; }
.card h3 { margin: 12px 0 6px; color: var(--brand-900); font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.why-item h3 { color: var(--brand-900); font-size: 1.1rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); }

/* Booking */
.booking-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.booking-notes { list-style: none; margin-top: 20px; color: var(--brand-900); font-weight: 600; }
.booking-notes li { padding: 4px 0; }
.booking-form {
  background: var(--card); border-radius: 20px; padding: 30px;
  box-shadow: var(--shadow); border: 1px solid #eef3f4;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--brand-900); }
.field input, .field select {
  font-family: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1.5px solid #d5e2e4; border-radius: 12px; background: #fbfdfe;
  color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(18,165,148,0.15); }
.field.invalid input, .field.invalid select { border-color: #d64545; }
.field-error { color: #d64545; font-size: 0.85rem; min-height: 1.2em; }
.form-status { font-weight: 700; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--brand-700); }
.form-status.err { color: #d64545; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.contact-line { color: var(--muted); margin-top: 10px; }
.contact-line a { color: var(--brand-700); font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--brand-900); color: var(--brand-100); padding: 24px 0; text-align: center; }

/* Responsive */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero-inner, .booking-inner, .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { transform: none; max-width: 380px; }
}
@media (max-width: 520px) {
  .cards-grid, .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 52px 0; }
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-tall { grid-row: span 2; }
.gallery-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-tall { grid-row: span 1; }
}

/* Chat widget */
.chat-fab {
  position: fixed; bottom: 22px; left: 22px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand-500); color: #fff; font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(18, 165, 148, 0.45);
  display: grid; place-items: center;
  transition: transform 0.15s ease;
}
.chat-fab:hover { background: var(--brand-700); transform: scale(1.06); }
.chat-panel {
  position: fixed; bottom: 92px; left: 22px; z-index: 50;
  width: min(360px, calc(100vw - 44px));
  max-height: min(520px, calc(100vh - 130px));
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 59, 58, 0.25);
  display: flex; flex-direction: column;
}
.chat-header {
  background: var(--brand-700); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chat-header strong { display: block; font-size: 1rem; }
.chat-header-sub { font-size: 0.75rem; opacity: 0.85; }
.chat-close { background: transparent; border: 0; color: #fff; font-size: 1rem; cursor: pointer; padding: 4px 8px; }
.chat-messages {
  padding: 14px; overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg);
  min-height: 160px;
}
.chat-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 0.92rem; line-height: 1.6; white-space: pre-line; }
.chat-msg-bot { background: #fff; color: var(--ink); border: 1px solid #e6edef; align-self: flex-start; border-start-start-radius: 4px; }
.chat-msg-user { background: var(--brand-500); color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.chat-msg.typing { opacity: 0.6; }
.chat-wa-btn {
  align-self: flex-start; background: #25d366; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.85rem; padding: 8px 16px; border-radius: 999px;
}
.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; background: #fff; border-top: 1px solid #eef3f4; }
.chat-chips:empty { display: none; }
.chat-chip {
  border: 1.5px solid var(--brand-500); background: #fff; color: var(--brand-700);
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.chat-chip:hover { background: var(--brand-100); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #eef3f4; }
.chat-input-row input {
  flex: 1; font-family: inherit; font-size: 0.95rem;
  border: 1.5px solid #d5e2e4; border-radius: 999px; padding: 9px 14px;
}
.chat-input-row input:focus { outline: none; border-color: var(--brand-500); }
.chat-send {
  border: 0; background: var(--brand-500); color: #fff; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1rem;
  transform: scaleX(-1); /* السهم يشاور شمال في RTL */
}
.chat-send:hover { background: var(--brand-700); }
@media (max-width: 520px) {
  .chat-fab { bottom: 16px; left: 16px; }
  .chat-panel { bottom: 84px; left: 16px; width: calc(100vw - 32px); }
}

.chat-panel[hidden] { display: none; }

/* Multi-page layout */
.main-nav a.active { color: var(--brand-700); border-bottom: 2.5px solid var(--brand-500); padding-bottom: 3px; }
.page-hero {
  background: linear-gradient(160deg, var(--brand-100) 0%, #fff 70%);
  padding: 48px 0;
}
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: var(--brand-900); }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.section-more { margin-top: 28px; text-align: center; }
.btn-small { padding: 9px 20px; font-size: 0.88rem; }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-100); }
.cta-banner { background: var(--brand-700); padding: 56px 0; }
.cta-inner { text-align: center; color: #fff; }
.cta-inner h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; }
.cta-inner p { opacity: 0.9; margin: 8px 0 22px; }
.service-card { display: flex; flex-direction: column; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-price { color: var(--brand-700); font-weight: 800; font-size: 1.05rem; margin: 10px 0 14px; }
.booking-alt { margin-top: 22px; color: var(--muted); }
.booking-alt a { color: var(--brand-700); font-weight: 700; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--brand-100); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.contact-page-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid #eef3f4;
}
.contact-card h3 { color: var(--brand-900); margin-bottom: 8px; }
.contact-card p { color: var(--muted); margin-bottom: 12px; }
.contact-side .btn { margin-top: 6px; }
@media (max-width: 860px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}
