/*
Theme Name: Les Cascades de Mogador
Theme URI: https://cascadesmogador.com
Author: Les Cascades de Mogador
Author URI: https://cascadesmogador.com
Description: Thème personnalisé pour le restaurant Les Cascades de Mogador, spécialisé en poissons grillés frais aux cascades de Sidi M'Barek, Essaouira, Maroc.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cascades-mogador
Tags: restaurant, food, morocco, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, responsive-layout
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: #2a2118;
  background: #fdfaf5;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

/* =============================================
   SHARED UTILITIES
============================================= */
.cdm-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a8a52;
  margin-bottom: 0.8rem;
  display: block;
}

.cdm-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #1e3018;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cdm-h2 em { font-style: italic; color: #3e6e36; }

.cdm-lead {
  font-size: 1.1rem;
  color: #4a4030;
  line-height: 1.85;
  max-width: 640px;
}

.cdm-divider {
  width: 3rem;
  height: 2px;
  background: #5a8a52;
  margin: 1.5rem 0;
}

.cdm-divider--center { margin: 1.5rem auto; }

.cdm-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cdm-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.cdm-btn--primary {
  background: #5a8a52;
  color: #fff;
  border-color: #5a8a52;
}
.cdm-btn--primary:hover { background: #4a7244; border-color: #4a7244; }

.cdm-btn--outline {
  background: transparent;
  color: #b5dba0;
  border-color: rgba(181,219,160,0.5);
}
.cdm-btn--outline:hover { border-color: #b5dba0; }

/* =============================================
   NAVIGATION
============================================= */
.cdm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cdm-nav.scrolled {
  background: rgba(20, 40, 18, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.cdm-nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.2;
}

.cdm-nav__logo span {
  display: block;
  font-size: 0.65rem;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}

.cdm-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cdm-nav__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.cdm-nav__links a:hover { color: #b5dba0; }

.cdm-nav__cta {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  background: #5a8a52;
  color: #fff !important;
  font-size: 0.75rem !important;
}

.cdm-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.cdm-nav__toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

/* =============================================
   HERO
============================================= */
.cdm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a2e22;
}

.cdm-hero__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, rgba(10,25,15,0.35) 0%, rgba(10,25,15,0.72) 100%);
  background-size: cover;
  background-position: center;
}

.cdm-hero__bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.cdm-hero__wave {
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: #fdfaf5;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.cdm-hero__content {
  position: relative;
  z-index: 2;
  width: 100%; max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 9rem;
  text-align: center;
  color: #fff;
}

.cdm-hero__eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8e8c0;
  margin-bottom: 1.2rem;
  display: block;
}

.cdm-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: #fff;
}

.cdm-hero__title em { font-style: italic; color: #b5dba0; }

.cdm-hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.01em;
}

.cdm-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.cdm-badge {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  font-weight: 700;
}

/* =============================================
   INTRO SECTION
============================================= */
.cdm-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.cdm-intro-img-wrap {
  position: relative;
}

.cdm-intro-img {
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.cdm-intro-stat {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #1e3018;
  color: #e8f5e0;
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  font-family: 'Playfair Display', serif;
}

.cdm-intro-stat strong {
  font-size: 2.2rem;
  color: #8cc47e;
  display: block;
}

.cdm-intro-stat span {
  font-size: 0.8rem;
  color: rgba(216,237,208,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

/* =============================================
   STORY SECTION (dark split)
============================================= */
.cdm-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #1e3018;
  color: #d8edd0;
}

.cdm-story__text {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cdm-story__text .cdm-label { color: #8cc47e; }
.cdm-story__text .cdm-h2 { color: #e8f5e0; }
.cdm-story__text .cdm-h2 em { color: #a8d99a; }
.cdm-story__text .cdm-divider { background: #3e6e36; }
.cdm-story__text p { color: rgba(216,237,208,0.85); line-height: 1.9; margin-bottom: 1.2rem; }

.cdm-story__visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.cdm-story__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}

.cdm-story__overlay {
  position: absolute;
  bottom: 2rem; left: 2rem;
  background: rgba(10,30,12,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  color: #fff;
  font-size: 0.88rem;
  max-width: 220px;
}

.cdm-story__overlay strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #b5dba0;
  margin-bottom: 0.2rem;
}

/* =============================================
   MENU SECTION
============================================= */
.cdm-menu-bg {
  background: #fdfaf5;
  padding: 6rem 2rem;
}

.cdm-menu-inner { max-width: 1100px; margin: 0 auto; }

.cdm-menu-header { text-align: center; margin-bottom: 4rem; }

.cdm-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cdm-menu-card {
  background: #fff;
  border: 1px solid #e0d8c8;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cdm-menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30,48,24,0.12);
}

.cdm-menu-card--featured { background: #e8f3e0; border-color: #9cc48e; }

.cdm-menu-card__icon {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  background: #eef7e8;
}

.cdm-menu-card--featured .cdm-menu-card__icon { background: #1e3018; }

.cdm-menu-card__body { padding: 1.6rem; }

.cdm-menu-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a8a52;
  margin-bottom: 0.5rem;
  display: block;
}

.cdm-menu-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #1e3018;
  margin-bottom: 0.6rem;
}

.cdm-menu-card__desc {
  font-size: 0.9rem;
  color: #6a5c48;
  line-height: 1.7;
}

.cdm-menu-items {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0d8c8;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cdm-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4a4030;
}

.cdm-menu-item::before {
  content: '—';
  color: #9cc48e;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   EXPERIENCE STRIP
============================================= */
.cdm-experience {
  background: #e8f3e0;
  padding: 5rem 2rem;
}

.cdm-experience-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.cdm-exp-item__icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

.cdm-exp-item__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #1e3018;
  margin-bottom: 0.5rem;
}

.cdm-exp-item__text { font-size: 0.88rem; color: #4a5e42; line-height: 1.7; }

/* =============================================
   LOCALITY SECTION
============================================= */
.cdm-locality { background: #fdfaf5; padding: 6rem 2rem; }

.cdm-locality-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.cdm-locality__text p { color: #4a4030; margin-bottom: 1.2rem; line-height: 1.9; }

.cdm-locality__facts { display: flex; flex-direction: column; gap: 1.2rem; }

.cdm-fact {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 1px solid #e0d8c8;
  border-radius: 12px;
}

.cdm-fact__icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 0.1rem; }
.cdm-fact__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #5a8a52; margin-bottom: 0.25rem; display: block; }
.cdm-fact__value { font-size: 0.95rem; color: #2a2118; font-weight: 400; }

/* =============================================
   GALLERY SECTION
============================================= */
.cdm-gallery { padding: 5rem 2rem; background: #1e3018; }

.cdm-gallery-inner { max-width: 1100px; margin: 0 auto; }

.cdm-gallery-header { text-align: center; margin-bottom: 3rem; }
.cdm-gallery-header .cdm-label { color: #8cc47e; }
.cdm-gallery-header .cdm-h2 { color: #e8f5e0; }
.cdm-gallery-header .cdm-h2 em { color: #a8d99a; }

.cdm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 1rem;
}

.cdm-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.cdm-gallery-item:hover { transform: scale(1.02); }

.cdm-gallery-item:first-child {
  grid-row: span 2;
  grid-column: span 1;
}

/* =============================================
   CTA SECTION
============================================= */
.cdm-cta {
  background: #1e3018;
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
}

.cdm-cta .cdm-label { color: #8cc47e; }
.cdm-cta .cdm-h2 { color: #e8f5e0; max-width: 600px; margin: 0 auto 1.5rem; }
.cdm-cta .cdm-h2 em { color: #a8d99a; }
.cdm-cta p { color: rgba(216,237,208,0.8); max-width: 520px; margin: 0 auto 2.5rem; font-size: 1rem; }

.cdm-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* =============================================
   FOOTER
============================================= */
.cdm-footer {
  background: #0f1e0d;
  color: rgba(216,237,208,0.7);
  padding: 4rem 2rem 2rem;
}

.cdm-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.cdm-footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #e8f5e0;
  margin-bottom: 0.8rem;
}

.cdm-footer__brand-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(216,237,208,0.6);
  margin-bottom: 1.5rem;
}

.cdm-footer__social { display: flex; gap: 0.8rem; }

.cdm-footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
  text-decoration: none;
}

.cdm-footer__social a:hover { border-color: #8cc47e; color: #8cc47e; }

.cdm-footer__heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8cc47e;
  margin-bottom: 1.2rem;
  display: block;
}

.cdm-footer__links { display: flex; flex-direction: column; gap: 0.6rem; }

.cdm-footer__links a {
  font-size: 0.88rem;
  color: rgba(216,237,208,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.cdm-footer__links a:hover { color: #b5dba0; }

.cdm-footer__contact-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(216,237,208,0.65);
  margin-bottom: 0.8rem;
}

.cdm-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(216,237,208,0.4);
  max-width: 1100px;
  margin: 0 auto;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .cdm-intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cdm-story { grid-template-columns: 1fr; }
  .cdm-story__text { padding: 3rem 2rem; }
  .cdm-story__visual { min-height: 320px; }
  .cdm-locality-inner { grid-template-columns: 1fr; gap: 3rem; }
  .cdm-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cdm-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cdm-gallery-item:first-child { grid-row: span 1; }
  .cdm-nav__links { display: none; }
  .cdm-nav__toggle { display: flex; }
  .cdm-nav.menu-open .cdm-nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 30, 13, 0.98);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .cdm-nav.menu-open .cdm-nav__links a { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  .cdm-gallery-grid { grid-template-columns: 1fr; }
  .cdm-footer__bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   WORDPRESS ADMIN BAR OFFSET
============================================= */
.admin-bar .cdm-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .cdm-nav { top: 46px; } }

/* =============================================
   WORDPRESS CONTENT STYLES (for pages/posts)
============================================= */
.cdm-wp-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  line-height: 1.85;
  color: #3a3028;
}

.cdm-wp-content h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: #1e3018; margin: 2.5rem 0 1rem; }
.cdm-wp-content h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #1e3018; margin: 2rem 0 0.8rem; }
.cdm-wp-content p { margin-bottom: 1.2rem; font-size: 1rem; }
.cdm-wp-content a { color: #5a8a52; text-decoration: underline; }
.cdm-wp-content ul, .cdm-wp-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.cdm-wp-content li { margin-bottom: 0.4rem; }
