/* =========================
   ABOUT PAGE (scoped)
   File: css/about.css
   Safe: styles only under .page-about
========================= */

/* Base layout */
.page-about #main {
  background: #fff;
}

/* ---------- Hero ---------- */
.page-about .about-hero {
  background:
    radial-gradient(80rem 60rem at 110% -10%, rgba(183,110,75,0.10), transparent 60%),
    radial-gradient(60rem 40rem at -20% 10%, rgba(91,61,30,0.08), transparent 55%),
    #fff;
  border-bottom: 1px solid #eee;
}

.page-about .about-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 48px 0 36px;
}

.page-about .about-hero__text {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.page-about .about-title {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ja-ink, #5b3d1e);
}

.page-about .about-sub {
  font-size: 1.06rem;
  color: var(--muted, #555);
  margin: 0 0 18px;
  line-height: 1.7;
}

/* Buttons (reusing your theme colors if present) */
.page-about .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.page-about .btn.primary {
  background: var(--accent, #b76e4b);
  color: #fff;
}
.page-about .btn.primary:hover { filter: brightness(.98); }

/* ---------- Story Cards Section ---------- */
.page-about .about-section {
  padding: 36px 0 12px;
}

.page-about .about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-about .about-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.page-about .about-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--ja-ink, #5b3d1e);
}

.page-about .about-card p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: #222;
}

.page-about .about-list {
  padding-inline-start: 18px;
  margin: 0;
}
.page-about .about-list li { margin: 6px 0; }

/* ---------- Quote ---------- */
.page-about .about-quote { padding: 22px 0 32px; }

.page-about .about-quote blockquote {
  margin: 0;
  padding: 18px 22px;
  font-style: italic;
  text-align: center;
  border-inline-start: 4px solid var(--accent, #b76e4b);
  background: #fffdfb;
  border-radius: 12px;
}

/* ---------- CTA ---------- */
.page-about .about-cta { padding: 16px 0 48px; }

.page-about .about-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.page-about .about-cta h3 { margin: 0 0 6px; }
.page-about .about-cta p  { margin: 0; color: var(--muted, #666); }

/* =========================
   RTL SUPPORT
========================= */
html[dir="rtl"] .page-about .about-list {
  padding-inline-start: 0;
  padding-inline-end: 18px;
}
html[dir="rtl"] .page-about .about-quote blockquote {
  border-inline-start: 0;
  border-inline-end: 4px solid var(--accent, #b76e4b);
}
html[dir="rtl"] .page-about .about-cta__inner {
  direction: rtl; /* keep layout natural in Arabic */
}

/* Optional: tiny header nudge on info pages (Arabic titles can sit higher) */
.page-about .brand-title { margin-top: 2px; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .page-about .about-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-about .about-hero__inner { padding: 36px 0 26px; }
  .page-about .about-grid { grid-template-columns: 1fr; }
  .page-about .about-cta__inner { flex-direction: column; align-items: stretch; }
}
/* Style for nav links in about.html */
.ja-menu a {
  margin-right: 1.5rem;   /* spacing between links */
  font-weight: 500;
  color: #5b3d1e;         /* almond-brown tone (matches your brand) */
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.ja-menu a:last-child {
  margin-right: 0; /* no margin after the last link */
}

.ja-menu a:hover {
  color: #b76e4b;   /* lighter almond/golden on hover */
  text-decoration: underline;
}
/* Navigation links on About page */
.ja-menu {
  display: flex;
  gap: 2rem; /* space between links */
}

.ja-menu a {
  font-size: 1.1rem;   /* slightly bigger */
  font-weight: 600;    /* bold */
  color: #5b3d1e;      /* almond brown */
  text-decoration: none;
  transition: color 0.2s ease;
}

.ja-menu a:hover {
  color: #b76e4b;      /* golden hover */
  text-decoration: underline;
}
/* --- HEADER LAYOUT (About page only) --- */
.page-about .ja-banner__inner {
  /* remove any fixed height from earlier */
  height: auto;
  padding: 18px 0 8px;   /* pushes everything down a bit */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.page-about .ja-left {
  display: flex;
  flex-direction: column;  /* nav on top, brand under it */
  align-items: flex-start;
  gap: 12px;               /* space between links and brand title */
}

/* Nav links: bold, slightly bigger, nice spacing */
.page-about .ja-menu {
  display: flex;
  gap: 2rem;               /* space between Home / Our Cakes */
}

.page-about .ja-menu a {
  font-size: 1.1rem;       /* a bit bigger */
  font-weight: 700;        /* bold */
  color: #5b3d1e;
  text-decoration: none;
  transition: color .2s ease;
}

.page-about .ja-menu a:hover {
  color: #b76e4b;
  text-decoration: underline;
}
/* ---- Mobile & tablet: center brand and show nav ---- */
@media (max-width: 991px) {
  .ja-banner__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    height: auto;
    padding: 10px 0 12px;
    text-align: center;
  }

  /* BRAND — force true center regardless of desktop rules */
  .ja-banner__inner > .ja-brand {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    justify-content: center !important;
  }
  /* If brand text is inside an <a> or <h1>, center that too */
  .ja-banner__inner > .ja-brand > * {
    display: inline-block;
    text-align: center !important;
  }

  /* LANGUAGES / TOOLS */
  .ja-tools {
    order: 2;
    display: flex !important;
    gap: 10px;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }

  /* NAV — visible inline (no burger) */
  #ja-burger { display: none !important; }

  nav.ja-menu {
    order: 3;
    position: static !important;
    display: flex !important;
    gap: 14px;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    max-height: none !important;
  }
  nav.ja-menu[aria-hidden="true"] { display: flex !important; }

  nav.ja-menu a {
    font-weight: 700;
    font-size: 1rem;
  }
}

/* Keep center even in RTL */
html[dir="rtl"] .ja-banner__inner > .ja-brand { text-align: center !important; }
