/* Mafateil brand styles: paste into Appearance > Editor > Styles > Additional CSS */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cormorant+Garamond:wght@500;600&family=Jost:wght@400;500&family=Tajawal:wght@400;500&display=swap');

:root {
  --mf-maroon: #4A140E;   /* logo ink */
  --mf-deep:   #4C0E04;   /* dark background */
  --mf-rose:   #BA9D8F;   /* rose-taupe accent */
  --mf-cream:  #FFF9F0;   /* page background */
  --mf-sand:   #F4E9DD;   /* soft section background */
  --mf-text:   #3A2A26;
}
body { background: var(--mf-cream); color: var(--mf-text); font-family: 'Jost', system-ui, sans-serif; line-height: 1.7; }
h1, h2, h3, .wp-block-heading { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--mf-maroon); font-weight: 600; letter-spacing: .01em; }
:lang(ar) body, body:lang(ar) { font-family: 'Tajawal', system-ui, sans-serif; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .wp-block-heading { font-family: 'Amiri', serif; letter-spacing: 0; }
a { color: var(--mf-maroon); }

/* Buttons */
.wp-block-button__link { background: var(--mf-maroon); color: var(--mf-cream); border-radius: 999px; padding: .8em 1.8em; border: 1px solid var(--mf-maroon); }
.wp-block-button__link:hover { background: var(--mf-deep); color: var(--mf-cream); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--mf-maroon); }
.is-style-outline .wp-block-button__link:hover { background: var(--mf-maroon); color: var(--mf-cream); }

/* Hero */
.mf-hero { background: var(--mf-deep); color: var(--mf-cream); text-align: center; padding: clamp(64px, 10vw, 130px) 24px; margin-block: 0 !important; }
.mf-hero h1 { color: var(--mf-cream); font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.15; margin: .2em auto; }
.mf-hero .mf-lead { color: #EADBD2; max-width: 640px; margin-inline: auto; font-size: 1.15rem; }
.mf-hero .wp-block-buttons { justify-content: center; margin-top: 28px; }
.mf-hero .wp-block-button__link { background: var(--mf-rose); color: var(--mf-deep); border-color: var(--mf-rose); }
.mf-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--mf-cream); border-color: var(--mf-rose); }
.mf-kicker { color: var(--mf-rose); text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; }
:lang(ar) .mf-kicker { letter-spacing: 0; text-transform: none; font-size: 1rem; }

/* Sections */
.mf-section { padding: clamp(44px, 6vw, 80px) 24px; }
.mf-intro + .mf-section { padding-top: 0; }
.mf-section > h2, .mf-intro { text-align: center; }
.mf-section > h2, .mf-intro h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; }
.mf-intro p { max-width: 720px; margin-inline: auto; font-size: 1.1rem; }
.mf-page-head { background: var(--mf-sand); text-align: center; padding: clamp(48px, 7vw, 90px) 24px; }
.mf-page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.mf-lead { max-width: 680px; margin-inline: auto; font-size: 1.1rem; }

/* Cards */
.mf-cards { gap: 24px; margin-top: 24px; }
.mf-cards-item { background: #fff; border: 1px solid #EADFD6; border-radius: 18px; padding: 28px; }
.mf-cards-item h3 { font-size: 1.5rem; margin-top: 0; }
.mf-cards-item ul { padding-inline-start: 1.2em; color: var(--mf-text); }
.mf-cards-item li::marker { color: var(--mf-rose); }

/* Steps */
.mf-steps { background: var(--mf-sand); }
.mf-steps-row { gap: 24px; margin-top: 24px; }
.mf-step-no { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--mf-rose); margin: 0; line-height: 1; }
.mf-steps-row h3 { font-size: 1.35rem; margin: .4em 0; }

/* Call to action */
.mf-cta { background: var(--mf-maroon); color: var(--mf-cream); text-align: center; padding: clamp(56px, 8vw, 96px) 24px; margin-block: 0 !important; }
.mf-cta h2 { color: var(--mf-cream); font-size: clamp(2rem, 4.5vw, 3rem); }
.mf-cta p { color: #EADBD2; }
.mf-cta .wp-block-buttons { justify-content: center; }
.mf-cta .wp-block-button__link { background: var(--mf-rose); color: var(--mf-deep); border-color: var(--mf-rose); }

/* Contact */
.mf-contact { gap: 40px; }
.mf-contact h3 { font-size: 1.1rem; margin-bottom: 0; color: var(--mf-rose); }
.mf-contact p { margin-top: .2em; }

/* Placeholders (remove once real content is in) */
.mf-placeholder { border: 2px dashed var(--mf-rose); border-radius: 14px; padding: 20px; color: #7a5c52; background: #fff; }

/* Artwork */
.mf-hero { text-align: start !important; }
.mf-hero-row { align-items: center; gap: 48px; }
.mf-hero .mf-lead { margin-inline: 0 !important; }
.mf-hero .wp-block-buttons { justify-content: flex-start !important; }
.mf-hero-art svg { width: 100%; max-width: 420px; height: auto; display: block; margin-inline: auto; }
.mf-icon svg { width: 56px; height: 56px; display: block; margin-bottom: 8px; }
@media (max-width: 781px) {
  .mf-hero { text-align: center !important; }
  .mf-hero .wp-block-buttons { justify-content: center !important; }
  .mf-hero .mf-lead { margin-inline: auto !important; }
  .mf-hero-art svg { max-width: 280px; }
}


/* Mashrabiya pattern backgrounds */
.mf-hero, .mf-cta { background-image: url("../img/art/pattern-on-dark.svg"); background-size: 80px 80px; }
.mf-steps, .mf-page-head { background-image: url("../img/art/pattern-on-light.svg"); background-size: 80px 80px; }

/* ---------- static site layout ---------- */
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
.wp-block-group > *, .mf-wrap { max-width: 1100px; margin-inline: auto; }
.wp-block-columns { display: flex; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 260px; min-width: 0; }
.mf-steps-row .wp-block-column { flex-basis: 200px; }
.wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.wp-block-button__link, .mf-btn { display: inline-block; text-decoration: none; cursor: pointer; font: inherit; }
ul.wp-block-list { margin: .5em 0 0; }

.site-head { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px clamp(16px, 4vw, 40px); background: rgba(255,249,240,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #EADFD6; }
.brand img { height: 60px; width: auto; display: block; }
.site-head nav { display: flex; gap: 24px; align-items: center; }
.site-head nav a { color: var(--mf-maroon); text-decoration: none; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current=page] { border-bottom-color: var(--mf-rose); }
.site-head nav a.lang { color: var(--mf-rose); }
.menu-btn { display: none; background: none; border: 1px solid #EADFD6; border-radius: 10px; font-size: 1.3rem; padding: 6px 12px; color: var(--mf-maroon); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .site-head { flex-wrap: wrap; }
  .site-head nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .site-head nav.open { display: flex; }
  .site-head nav a { padding: 12px 4px; border-bottom: 1px solid #EADFD6; }
  .brand img { height: 50px; }
}
.site-foot { background: var(--mf-deep); color: var(--mf-rose); text-align: center; padding: 40px 20px 28px; }
.site-foot img { height: 70px; width: auto; }
.site-foot .copy { font-size: .85rem; opacity: .8; }

/* gallery */
.mf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.mf-tile, .mf-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.mf-tile { background: var(--mf-sand); display: flex; align-items: center; justify-content: center; border: 1px solid #EADFD6; }
.mf-tile img { width: 72px; height: 72px; opacity: .7; }
.mf-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mf-photo:hover img { transform: scale(1.04); }
.mf-soon { text-align: center; margin-top: 40px; }
.mf-soon-p { text-align: center; max-width: 560px; margin-inline: auto; }

/* contact + WhatsApp form */
.mf-contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 781px) { .mf-contact-grid { grid-template-columns: 1fr; } }
.mf-form { background: #fff; border: 1px solid #EADFD6; border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.mf-form label { display: grid; gap: 6px; font-size: .92rem; color: var(--mf-maroon); }
.mf-form input, .mf-form select, .mf-form textarea { font: inherit; padding: 12px; border: 1px solid #DCCFC6; border-radius: 10px; background: var(--mf-cream); color: var(--mf-text); width: 100%; }
.mf-form input:focus, .mf-form select:focus, .mf-form textarea:focus { outline: 2px solid var(--mf-rose); outline-offset: 1px; }
.mf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .mf-form-row { grid-template-columns: 1fr; } }
.mf-btn { background: var(--mf-maroon); color: var(--mf-cream); border: 0; border-radius: 999px; padding: .9em 1.8em; font-size: 1rem; justify-self: start; }
.mf-btn:hover { background: var(--mf-deep); }
.mf-hint { font-size: .85rem; color: #7a5c52; margin: 0; }

/* ---------- WordPress fixes ---------- */
body.mafateil { margin: 0; padding: 0; background: var(--mf-cream); }
.mafateil main { display: block; }
.mafateil .wp-block-columns { flex-wrap: wrap !important; }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
.mf-center { text-align: center; margin-top: 32px; }
.mf-photos-sec > *, .mf-gallery-sec > *, .mf-ig-sec > * { max-width: 1100px; margin-inline: auto; }

/* ================= Photo-led design (v2) ================= */

/* Hero: full-width event photo with a maroon veil (falls back to the pattern when there is no photo yet) */
.mf-hero-photo { display: flex; flex-direction: column; justify-content: center; min-height: min(78vh, 760px); }
.mf-hero-photo > * { width: 100%; }
body:not(.mf-has-photo) .mf-hero-photo { text-align: center !important; }
body:not(.mf-has-photo) .mf-hero-photo .mf-lead { margin-inline: auto !important; }
body:not(.mf-has-photo) .mf-hero-photo .wp-block-buttons { justify-content: center !important; }
.mf-has-photo .mf-hero-photo {
  background: linear-gradient(90deg, rgba(38, 7, 2, .88) 0%, rgba(38, 7, 2, .62) 48%, rgba(38, 7, 2, .18) 100%), var(--mf-photo) center / cover no-repeat;
}
[dir=rtl] .mf-has-photo .mf-hero-photo {
  background: linear-gradient(270deg, rgba(38, 7, 2, .88) 0%, rgba(38, 7, 2, .62) 48%, rgba(38, 7, 2, .18) 100%), var(--mf-photo) center / cover no-repeat;
}
.mf-has-photo .mf-hero-photo { padding-inline: max(24px, calc((100% - 1100px) / 2)) !important; }
.mf-has-photo .mf-hero-photo > * { margin-inline: 0 !important; max-width: 620px; }
.mf-has-photo .mf-hero-photo h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.mf-has-photo .mf-hero-photo .mf-lead { max-width: 520px; }
@media (max-width: 781px) {
  .mf-hero-photo { min-height: 72vh; }
  .mf-has-photo .mf-hero-photo, [dir=rtl] .mf-has-photo .mf-hero-photo {
    background: linear-gradient(0deg, rgba(38, 7, 2, .92) 0%, rgba(38, 7, 2, .55) 60%, rgba(38, 7, 2, .3) 100%), var(--mf-photo) center / cover no-repeat;
    justify-content: flex-end;
  }
  .mf-has-photo .mf-hero-photo > * { margin-inline: auto !important; }
}

/* Service page header with its photo */
.mf-has-photo .mf-svc-head {
  background: linear-gradient(0deg, rgba(38, 7, 2, .85), rgba(38, 7, 2, .35)), var(--mf-photo) center / cover no-repeat;
  min-height: min(52vh, 520px); display: flex; flex-direction: column; justify-content: flex-end;
}
.mf-has-photo .mf-svc-head h1 { color: var(--mf-cream); }
.mf-has-photo .mf-svc-head .mf-lead { color: #EADBD2; }
.mf-svc-body { text-align: center; }
.mf-svc-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0; }
.mf-svc-body ul { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 8px auto 0; }
.mf-svc-body li { background: #fff; border: 1px solid #EADFD6; border-radius: 999px; padding: .5em 1.1em; }
.mf-crumbs { max-width: 1100px; margin: 0 auto; padding: 12px 24px; font-size: .88rem; color: #7a5c52; }
.mf-crumbs a { color: #7a5c52; text-decoration: none; }
.mf-crumbs a:hover { color: var(--mf-maroon); text-decoration: underline; }

/* Service cards with photos */
.mf-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 24px; margin-top: 28px; }
.mf-svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #EADFD6; border-radius: 18px; overflow: hidden;
  color: var(--mf-text); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.mf-svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(74, 20, 14, .45); }
.mf-svc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mf-sand); }
.mf-svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mf-svc-card:hover .mf-svc-media img { transform: scale(1.05); }
.mf-svc-card.no-photo .mf-svc-media { display: flex; align-items: center; justify-content: center;
  background-image: url("../img/art/pattern-on-light.svg"); background-size: 80px 80px; }
.mf-svc-icon img { width: 76px !important; height: 76px !important; object-fit: contain !important; }
.mf-svc-text { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.mf-svc-text h3 { font-size: 1.55rem; margin: 0 0 .3em; }
.mf-svc-text p { margin: 0 0 .8em; }
.mf-svc-text ul { padding-inline-start: 1.2em; margin: 0 0 1em; font-size: .95rem; }
.mf-svc-text li::marker { color: var(--mf-rose); }
.mf-more { margin-top: auto; color: var(--mf-maroon); font-weight: 500; letter-spacing: .02em; }

/* Photo grid (gallery + service pages) */
.mf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(47%, 250px), 1fr)); gap: 12px; margin-top: 24px; }
.mf-grid .mf-photo { aspect-ratio: 1; border-radius: 12px; background: var(--mf-sand); }
.mf-grid .mf-photo[hidden] { display: none; }
.mf-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.mf-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-photos-sec h2, .mf-ig-sec h2, .mf-ig-sec .mf-kicker { text-align: center; }
.mf-ig-sec .mf-kicker { margin-bottom: 0; }
.mf-photos-sec h2, .mf-ig-sec h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; }
.mf-link { color: var(--mf-maroon); font-weight: 500; }

/* Category filter */
.mf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mf-chip { font: inherit; font-size: .95rem; cursor: pointer; background: #fff; color: var(--mf-maroon);
  border: 1px solid #DCCFC6; border-radius: 999px; padding: .55em 1.2em; transition: background .2s, color .2s; }
.mf-chip:hover { border-color: var(--mf-maroon); }
.mf-chip.on { background: var(--mf-maroon); color: var(--mf-cream); border-color: var(--mf-maroon); }

/* Instagram strip */
.mf-ig-sec { background: #fff; border-top: 1px solid #EADFD6; }
.mf-ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
@media (max-width: 700px) { .mf-ig-grid { grid-template-columns: repeat(2, 1fr); } }
.mf-ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--mf-sand); }
.mf-ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mf-ig-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(74, 20, 14, .45); opacity: 0; transition: opacity .25s; }
.mf-ig-over .mf-ig-icon { width: 34px; height: 34px; }
.mf-ig-tile:hover .mf-ig-over, .mf-ig-tile:focus-visible .mf-ig-over { opacity: 1; }
.mf-ig-tile:hover img { transform: scale(1.05); }
.mf-btn-ig { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--mf-maroon); color: var(--mf-maroon);
  border-radius: 999px; padding: .7em 1.6em; text-decoration: none; transition: background .2s, color .2s; }
.mf-btn-ig:hover { background: var(--mf-maroon); color: var(--mf-cream); }
.mf-ig-icon { flex: none; }

/* Footer links */
.site-foot .foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
.site-foot .foot-links a { color: var(--mf-rose); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-foot .foot-links a:hover { color: var(--mf-cream); }

/* Lightbox */
.mf-box { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.mf-box::backdrop { background: rgba(20, 4, 2, .92); }
.mf-box[open] { display: flex; align-items: center; justify-content: center; }
.mf-box figure { margin: 0; max-width: 92vw; text-align: center; }
.mf-box img { max-width: 92vw; max-height: 80vh; border-radius: 8px; display: block; margin: 0 auto; }
.mf-box figcaption { color: #EADBD2; margin-top: 12px; font-size: .95rem; max-width: 720px; margin-inline: auto; }
.mf-box figcaption a { color: var(--mf-rose); }
.mf-box button { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px;
  font-size: 1.8rem; line-height: 1; cursor: pointer; }
.mf-box button:hover { background: rgba(255, 255, 255, .25); }
.mf-box-x { top: 16px; inset-inline-end: 16px; }
.mf-box-prev { left: 12px; top: 50%; }
.mf-box-next { right: 12px; top: 50%; }
