/* ============================================================
   JARDINCIRELLE.SITE — Marrakech Explorer's Guide
   Editorial / Magazine Style | Navy #1B3A6B + Gold #C8A142
   ============================================================ */

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

:root {
  --navy:     #1B3A6B;
  --navy-dk:  #112549;
  --gold:     #C8A142;
  --gold-lt:  #E8C86A;
  --cream:    #FAF8F3;
  --offwhite: #F2EFE8;
  --text:     #1A1A2E;
  --muted:    #5A6072;
  --border:   #DDDACF;
  --white:    #FFFFFF;
  --font:     'Georgia', 'Times New Roman', serif;
  --sans:     'Arial', 'Helvetica Neue', sans-serif;
  --radius:   4px;
  --shadow:   0 4px 24px rgba(27,58,107,0.10);
  --shadow-hv:0 8px 40px rgba(27,58,107,0.18);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); line-height: 1.7; }

/* ---- SCROLL REVEAL (no opacity, transform only) ---- */
.reveal {
  transform: translateY(44px);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { transform: translateY(0); }

/* ---- HEADER ---- */
header {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy-dk);
  border-bottom: 3px solid var(--gold);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.header-brand {
  display: flex; align-items: center; gap: 0.6rem;
}
.header-brand .brand-line {
  width: 36px; height: 3px; background: var(--gold);
  display: block;
}
.header-brand .brand-text {
  font-family: var(--font); color: var(--gold); font-size: 1.05rem;
  letter-spacing: 0.06em; font-weight: 700;
  text-transform: uppercase;
}
nav.main-nav { display: flex; align-items: center; gap: 0.2rem; }
nav.main-nav a {
  color: #CDDAF5; text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 0.85rem; border-radius: var(--radius);
  font-weight: 600; transition: color 0.25s, background 0.25s;
}
nav.main-nav a:hover { color: var(--gold); background: rgba(200,161,66,0.10); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: background 0.2s;
}

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--navy-dk); border-top: 1px solid rgba(200,161,66,0.2);
  padding: 1rem 2rem 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #CDDAF5; text-decoration: none;
  padding: 0.6rem 0; font-size: 0.9rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold); }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  padding: 80px 2rem 90px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 420px; height: 420px;
  border: 80px solid rgba(200,161,66,0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; left: -40px; bottom: -80px;
  width: 280px; height: 280px;
  border: 50px solid rgba(200,161,66,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.hero-tag {
  display: inline-block;
  background: var(--gold); color: var(--navy-dk);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.3rem 0.9rem;
  border-radius: 2px; margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--font); font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white); line-height: 1.2; margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  color: #A8BEDE; font-size: 1.05rem; max-width: 600px;
  margin-bottom: 2rem; line-height: 1.8;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--navy-dk);
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  letter-spacing: 0.04em; transition: background 0.25s, color 0.25s;
}
.hero-cta:hover { background: var(--gold-lt); }

/* ---- SECTION WRAPPER ---- */
.section { padding: 72px 2rem; }
.section-alt { background: var(--offwhite); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  border-left: 3px solid var(--gold); padding-left: 0.6rem;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy); margin-bottom: 0.8rem; line-height: 1.3;
}
.section-lead { color: var(--muted); font-size: 1rem; max-width: 680px; margin-bottom: 3rem; }

/* ---- LANDMARK CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.card {
  background: var(--white); border-radius: var(--radius);
  border-top: 4px solid var(--gold); padding: 1.8rem;
  box-shadow: var(--shadow); transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow-hv); transform: translateY(-3px); }
.card-num {
  font-family: var(--font); font-size: 2.2rem; color: var(--gold);
  font-weight: 700; line-height: 1; margin-bottom: 0.5rem;
  opacity: 0.6;
}
.card h3 {
  font-family: var(--font); font-size: 1.2rem; color: var(--navy);
  margin-bottom: 0.7rem; line-height: 1.3;
}
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.card-badge {
  display: inline-block; margin-top: 0.8rem;
  background: rgba(200,161,66,0.12); color: var(--gold);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem; border-radius: 2px; text-transform: uppercase;
}

/* ---- FEATURE ROW (alternating) ---- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; margin-bottom: 3.5rem;
}
.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }
.feature-row:last-child { margin-bottom: 0; }
.feature-text {}
.feature-text h3 {
  font-family: var(--font); font-size: 1.4rem; color: var(--navy);
  margin-bottom: 0.8rem;
}
.feature-text p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.feature-text ul {
  margin-top: 0.8rem; padding-left: 0; list-style: none;
}
.feature-text ul li {
  color: var(--muted); font-size: 0.9rem; padding: 0.3rem 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 0.5rem;
}
.feature-text ul li::before {
  content: '—'; color: var(--gold); font-weight: 700; flex-shrink: 0;
}
.feature-panel {
  background: var(--navy); border-radius: var(--radius);
  padding: 2.5rem; color: var(--white); position: relative; overflow: hidden;
}
.feature-panel::after {
  content: '';
  position: absolute; right: -20px; bottom: -20px;
  width: 120px; height: 120px;
  border: 30px solid rgba(200,161,66,0.15); border-radius: 50%;
}
.feature-panel h4 {
  font-family: var(--font); font-size: 0.8rem; color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.feature-panel .stat {
  font-family: var(--font); font-size: 3rem; color: var(--gold);
  font-weight: 700; line-height: 1;
}
.feature-panel .stat-label {
  color: #A8BEDE; font-size: 0.85rem; margin-top: 0.3rem;
}
.feature-panel .info-list {
  list-style: none; margin-top: 1.5rem;
}
.feature-panel .info-list li {
  color: #CDDAF5; font-size: 0.88rem;
  padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ---- TIPS STRIP ---- */
.tips-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.tip-block {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.tip-block h4 {
  font-family: var(--font); color: var(--navy); font-size: 1rem;
  margin-bottom: 0.5rem;
}
.tip-block p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ---- RESOURCES ---- */
.resources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.resource-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
  border-bottom: 3px solid var(--navy);
  transition: box-shadow 0.2s;
}
.resource-card:hover { box-shadow: var(--shadow-hv); }
.resource-card h4 { font-size: 0.95rem; color: var(--navy); font-weight: 700; margin-bottom: 0.3rem; }
.resource-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }

/* ---- LEGAL / AGB ---- */
.legal-block {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
  border-left: 4px solid var(--navy);
}
.legal-block h3 { font-family: var(--font); color: var(--navy); margin-bottom: 0.8rem; }
.legal-block p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--border); background: var(--white);
  border-radius: var(--radius); margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(27,58,107,0.05);
}
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 1.2rem 1.5rem; display: flex; justify-content: space-between;
  align-items: center; text-align: left; gap: 1rem;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  color: var(--navy);
}
.faq-q .faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold); transition: background 0.2s, color 0.2s;
}
.faq-q.active .faq-icon { background: var(--gold); color: var(--white); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.5rem;
}
.faq-a.open { max-height: 400px; padding: 0 1.5rem 1.2rem; }
.faq-a p { color: var(--muted); font-size: 0.93rem; line-height: 1.75; }

/* ---- CONTACT FORM ---- */
.contact-section {
  background: var(--navy);
  padding: 72px 2rem;
}
.contact-inner { max-width: 700px; margin: 0 auto; }
.contact-inner .section-label { color: var(--gold-lt); border-color: var(--gold-lt); }
.contact-inner .section-title { color: var(--white); }
.contact-inner .section-lead { color: #A8BEDE; }

.contact-form { margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: #CDDAF5; letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(200,161,66,0.35);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--white); font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.12); }
.form-group input::placeholder { color: rgba(200,210,230,0.45); }
.form-submit {
  background: var(--gold); color: var(--navy-dk);
  border: none; border-radius: var(--radius);
  padding: 0.9rem 2.5rem; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; letter-spacing: 0.04em;
  transition: background 0.25s;
}
.form-submit:hover { background: var(--gold-lt); }
.form-success {
  display: none; margin-top: 1rem;
  background: rgba(200,161,66,0.15); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  color: var(--gold); font-size: 0.95rem; font-weight: 600;
}
.form-success.show { display: block; }

/* ---- FOOTER ---- */
footer {
  background: var(--text); color: #9AAABA; padding: 60px 2rem 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer-brand-col .footer-brand-name {
  font-family: var(--font); color: var(--gold); font-size: 1rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}
.footer-brand-col p { font-size: 0.83rem; line-height: 1.7; color: #7A8A9A; }
.footer-col h4 {
  color: var(--white); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200,161,66,0.25);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: #7A8A9A; text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.83rem; color: #7A8A9A; margin-bottom: 0.4rem; }
.footer-contact a { color: #7A8A9A; text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: #5A6472; }
.footer-bottom a { color: #5A6472; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip { direction: ltr; }
}
@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 1.5rem 70px; }
  .section { padding: 52px 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .tips-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .tips-strip { grid-template-columns: 1fr; }
}