/* ============================================================
   مطعم الرز العتيق - ملف التنسيق المشترك
   اللون الأساس: #1f5a7a | الخط: Cairo
   ============================================================ */

:root {
  --primary: #1f5a7a;
  --primary-dark: #123c54;
  --primary-soft: #e8f2f7;
  --accent: #d9a441;
  --ink: #17333f;
  --muted: #627982;
  --line: #dce7ec;
  --bg: #fbfdfe;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #1e7a52;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(31, 90, 122, 0.10);
  --shadow-hover: 0 18px 40px rgba(31, 90, 122, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(31, 90, 122, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 14px rgba(31, 90, 122, 0.25);
}

.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav a.active {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
}

.nav-toggle span {
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.btn-primary {
  background: var(--accent);
  color: #3d2a08;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}

/* ---------- الواجهة الرئيسية (Hero) ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 570px;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(115deg, rgba(18, 60, 84, 0.88), rgba(31, 90, 122, 0.55)),
    url("https://images.pexels.com/photos/14590691/pexels-photo-14590691.jpeg?auto=compress&cs=tinysrgb&w=1800");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 55px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 60px 20px 90px;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  margin: 0 auto 30px;
  max-width: 640px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #eaf3f7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- الأقسام العامة ---------- */
.section {
  padding: 78px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.eyebrow-text {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.section-title {
  margin: 6px 0 10px;
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- قسم التعريف ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.about-images {
  position: relative;
  min-height: 420px;
}

.about-images .img-main {
  width: 88%;
  height: 400px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.about-images .img-small {
  position: absolute;
  inset-inline-end: 0;
  bottom: 10px;
  width: 46%;
  height: 190px;
  object-fit: cover;
  border: 6px solid var(--bg);
  border-radius: 18px;
  box-shadow: var(--shadow-hover);
}

.about-text h2 {
  margin: 8px 0 18px;
}

.about-text p {
  color: var(--muted);
  margin: 0 0 16px;
}

.about-text .lead {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
}

.signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--primary);
  font-weight: 800;
}

.signature::before {
  content: "";
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- المميزات ---------- */
.section-tint {
  background: #f2f7fa;
}

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

.feature-card {
  padding: 30px 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.7rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- المعرض ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 260px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(transparent, rgba(18, 60, 84, 0.85));
}

/* ---------- شعار دعائي ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 54px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.cta-inner p {
  margin: 0;
  color: #dcecf3;
}

/* ---------- هيدر الصفحات الداخلية ---------- */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(110deg, rgba(18, 60, 84, 0.88), rgba(31, 90, 122, 0.6)),
    url("https://images.pexels.com/photos/38431262/pexels-photo-38431262.jpeg?auto=compress&cs=tinysrgb&w=1800");
  background-size: cover;
  background-position: center;
}

.page-hero.contact-hero {
  background-image: linear-gradient(110deg, rgba(18, 60, 84, 0.9), rgba(31, 90, 122, 0.6)),
    url("https://images.pexels.com/photos/776538/pexels-photo-776538.jpeg?auto=compress&cs=tinysrgb&w=1800");
}

.page-hero .container {
  padding: 50px 20px;
}

.page-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
}

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: #e7f1f5;
  font-size: 1.05rem;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- القائمة ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 22px;
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.filter-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-soft);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
}

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

.menu-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.menu-card-img {
  position: relative;
  height: 215px;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.06);
}

.menu-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #3d2a08;
  font-size: 0.8rem;
  font-weight: 800;
}

.menu-card-body {
  padding: 20px 22px 24px;
}

.menu-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.menu-item-head h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--primary-dark);
}

.price {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}

.menu-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.menu-note {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* ---------- التواصل ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.5rem;
}

.info-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--primary-dark);
}

.info-card p,
.info-card a {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  word-break: break-word;
}

.info-card a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.copy-btn {
  margin-inline-start: auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary-soft);
}

.info-details {
  flex: 1;
  min-width: 0;
}

.info-highlight {
  background: var(--primary-soft);
  border-color: #c6dde8;
}

.form-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin: 0 0 6px;
  color: var(--primary);
}

.form-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.94rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 90, 122, 0.10);
}

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

.field .error {
  min-height: 18px;
  margin-top: 4px;
  color: var(--danger);
  font-size: 0.8rem;
}

.field input.invalid,
.field textarea.invalid {
  border-color: var(--danger);
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  display: none;
}

.form-status.success {
  display: block;
  background: #e7f6ef;
  color: var(--success);
}

.form-status.error {
  display: block;
  background: #fdecea;
  color: var(--danger);
}

.form-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.submit-btn {
  margin-top: 18px;
}

/* ---------- الفوتر ---------- */
.site-footer {
  margin-top: 20px;
  padding: 58px 0 22px;
  background: var(--primary-dark);
  color: #d5e6ee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 36px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-mark {
  background: rgba(255, 255, 255, 0.12);
}

.footer-about p {
  margin: 16px 0 0;
  max-width: 360px;
  color: #b9d2de;
  font-size: 0.95rem;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-contact p {
  color: #b9d2de;
  font-size: 0.95rem;
}

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

.footer-contact p {
  margin: 0 0 8px;
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: #a9c6d3;
  font-size: 0.9rem;
}

/* ---------- حركة الظهور ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- الاستجابة للجوال ---------- */
@media (max-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 1.3rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 4% 18px;
    background: #fff;
    box-shadow: 0 16px 24px rgba(31, 90, 122, 0.12);
  }

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

  .nav a {
    text-align: center;
    padding: 11px 16px;
  }

  .hero {
    min-height: 520px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-images {
    min-height: 330px;
  }

  .about-images .img-main {
    width: 92%;
    height: 300px;
  }

  .about-images .img-small {
    width: 48%;
    height: 150px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 230px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .cta-inner {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 58px 0;
  }

  .features-grid,
  .menu-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .menu-card-img {
    height: 200px;
  }

  .form-card {
    padding: 22px 18px;
  }

  .info-card {
    flex-wrap: wrap;
  }

  .copy-btn {
    margin-inline-start: 70px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    max-width: 300px;
  }
}
