/*
Theme Name: Moroccan Gate
Author: Moroccan Gate
Description: Warm emerald and ivory travel theme, with native Elementor page layouts supplied by the companion importer. Requires Elementor Free for the imported designs.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moroccan-gate
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root{--mg-green:#123d35;--mg-ivory:#faf6ef;--mg-sand:#e8d8c0;--mg-ink:#202a27}*{box-sizing:border-box}body{margin:0;background:var(--mg-ivory);color:var(--mg-ink);font:16px/1.7 Arial,sans-serif}a{color:var(--mg-green);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}h1,h2,h3{font-weight:500;line-height:1.2;letter-spacing:-.035em}.mg-header{display:flex;align-items:center;justify-content:space-between;padding:25px 5%;gap:25px}.mg-brand{display:flex;align-items:center;gap:12px;font-size:17px;letter-spacing:.1em;text-transform:uppercase}.mg-header nav,.mg-header nav ul{display:flex;gap:24px;list-style:none;padding:0;margin:0;font-size:13px}.mg-header-end{display:flex;gap:20px;align-items:center}.mg-button,.elementor-button{background:var(--mg-green);color:var(--mg-ivory);padding:14px 22px;border-radius:3px;font-size:13px;text-decoration:none}.mg-language{position:relative;font-size:12px}.mg-language summary{cursor:pointer}.mg-language>div{position:absolute;z-index:100;background:#fffdf8;padding:15px;box-shadow:0 5px 25px #0002;min-width:120px}.mg-language a{display:block;padding:7px}.mg-footer{padding:65px 7% 20px;background:var(--mg-green);color:var(--mg-ivory);display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px}.mg-footer a{display:block;color:#d5dfd3;font-size:14px;padding:5px 0}.mg-footer h3{font-size:16px}.mg-footer h2{font-size:28px}.mg-footer p{color:#c3d1c4}.mg-copyright{grid-column:1/-1;border-top:1px solid #ffffff30;padding-top:20px;font-size:12px}.mg-plain{padding:70px 7%;max-width:1200px;margin:auto;min-height:50vh}.mg-skip{position:absolute;top:-100px;background:white;padding:15px;z-index:1000}.mg-skip:focus{top:0}:focus-visible{outline:3px solid #b85c38;outline-offset:4px}.mg-hero .elementor-heading-title,.mg-hero .elementor-widget-text-editor,.mg-cta .elementor-heading-title,.mg-cta .elementor-widget-text-editor{color:#faf6ef!important}.mg-hero .mg-herocopy{max-width:780px}.mg-hero .elementor-widget-text-editor{max-width:550px}.mg-caption{font-size:10px;letter-spacing:.15em}.mg-eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase}.mg-card img{height:240px;width:100%;object-fit:cover;border-radius:4px}.mg-card{border:1px solid #dfdfd5;border-radius:5px}.mg-card .elementor-heading-title{font-size:24px}.mg-cardfoot{border-top:1px solid #d9dfd6}.mg-tourphoto img{width:100%;max-height:480px;object-fit:cover}.mg-splitimage,.mg-splitcopy{flex:1;min-width:280px}.mg-splitimage img{height:550px;object-fit:cover;border-radius:220px 220px 4px 4px}.mg-art{padding:50px;background:#e8d8c0;text-align:center;min-height:200px}.mg-quote{background:#eee8dc;padding:28px!important;border-radius:5px;max-width:360px}.mg-tourheading>div:first-child{flex:2;min-width:280px}.mg-tourheading>div:last-child{flex:1}.mg-tourdetails>div:first-child{flex:2;min-width:280px}.mg-tourdetails>div:last-child{flex:1}.mg-steps>div{flex:1;min-width:220px}.mg-faqsection>div{flex:1;min-width:280px}.mg-journalitem{border-bottom:1px solid #d7ddd1;padding:25px 0}.mg-narrow{max-width:980px!important;margin:auto}.elementor-widget-text-editor p{line-height:1.8}html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3{letter-spacing:0}html[dir=rtl] .mg-header,html[dir=rtl] .mg-footer,html[dir=rtl] .mg-page{direction:rtl}html[dir=rtl] .elementor-widget-text-editor,html[dir=rtl] .elementor-heading-title{text-align:right}
@media(max-width:900px){.mg-header{flex-wrap:wrap}.mg-header nav{order:3;width:100%;justify-content:space-between}.mg-header-end>.mg-button{display:none}}@media(max-width:767px){.mg-header{padding:20px 5%}.mg-brand{font-size:14px}.mg-header nav{gap:12px;font-size:12px}.mg-footer{grid-template-columns:1fr;gap:20px}.mg-hero{min-height:550px!important}.mg-splitimage img{height:370px}.mg-quote{max-width:none}.mg-card{width:100%!important}}

/* Keep quote buttons aligned across excursion cards. */
.mg-tour-grid{align-items:stretch}.mg-tour-grid>.mg-tour-card{display:flex;flex-direction:column;align-items:stretch;height:100%}.mg-tour-grid>.mg-tour-card>a:first-child{display:block;flex:0 0 auto}.mg-tour-grid>.mg-tour-card>p:last-of-type{margin-bottom:24px}.mg-tour-grid>.mg-tour-card>.mg-button:last-child{margin-top:auto;align-self:flex-start;flex:0 0 auto}

/* Center destination links and give every language a clear branded button. */
.elementor .mg-destination>.elementor-widget-button{width:100%;text-align:center!important;margin-top:auto!important;align-self:center!important}.elementor .mg-destination .elementor-button-wrapper{text-align:center!important}.elementor .mg-destination .elementor-button{display:inline-flex;align-items:center;justify-content:center;background-color:#282D29!important;color:#FFFFFF!important;border:1px solid #282D29;border-radius:8px;padding:12px 20px;min-height:46px;max-width:100%;text-align:center;text-decoration:none;transition:background-color .2s,color .2s,border-color .2s}.elementor .mg-destination .elementor-button:hover,.elementor .mg-destination .elementor-button:focus-visible{background-color:#BB9932!important;border-color:#BB9932;color:#242424!important}

/* Moroccan Gate warm responsive design — October 2026 */
:root{--mg-green:#a6462d;--mg-ivory:#fff9ef;--mg-sand:#ead2af;--mg-ink:#38271f;--e-global-color-primary:#a6462d;--e-global-color-accent:#b67a25}
html body{background:#fff9ef!important;color:#38271f;font-family:'DM Sans',Arial,sans-serif;font-size:16px;line-height:1.75}body h1,body h2,body h3,body .elementor-heading-title{font-family:'Playfair Display',Georgia,serif!important;letter-spacing:-.025em;font-weight:500!important}body p,body .elementor-widget-text-editor{font-family:'DM Sans',Arial,sans-serif;font-size:16px;line-height:1.8}body .elementor h2.elementor-heading-title{font-size:clamp(30px,3.4vw,48px)!important;line-height:1.2}body .elementor h3.elementor-heading-title{font-size:25px!important;line-height:1.3}body .mg-kicker,body .mg-eyebrow{font-size:12px!important;letter-spacing:.16em;color:#a6462d!important}.mg-menu-toggle{display:none}.mg-header{background:#fff9ef!important;min-height:100px;border-bottom:1px solid #e8d5bf;padding:16px 5%!important;gap:24px}.mg-header .mg-brand-logo img{max-height:72px;width:auto;max-width:160px;object-fit:contain}.mg-header nav a{min-height:44px;display:inline-flex;align-items:center;font-size:15px;color:#563b2b}.mg-header nav a:hover{color:#a6462d}.mg-language{font-size:15px}.mg-language summary{padding:12px 4px;min-height:44px}.mg-language>div{border-radius:12px;border:1px solid #e8d5bf}
body .mg-button,body .elementor .elementor-button,body button[type=submit]{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:14px 24px;border-radius:24px 24px 10px 10px!important;font-size:15px!important;font-weight:600;background:#a6462d!important;color:#fff9ef!important;border:1px solid #a6462d;box-shadow:0 6px 18px #60301d14;transition:background .2s,transform .2s,box-shadow .2s;line-height:1.5;text-align:center;white-space:normal}body .mg-button:hover,body .elementor .elementor-button:hover,body button[type=submit]:hover{background:#84351f!important;transform:translateY(-2px);box-shadow:0 8px 24px #60301d24;text-decoration:none}body .elementor .mg-destination .elementor-button{background:#a6462d!important;border-color:#a6462d!important;color:white!important}
body .elementor .mg-hero{margin:20px 24px 0;width:calc(100% - 48px);border-radius:16px 16px 70px 16px;overflow:hidden;min-height:640px!important;background-position:center!important;background-size:cover!important}body .elementor .mg-hero:before{background:linear-gradient(180deg,#48231338,#3b2119b5 75%,#432314b8)!important;opacity:1!important}body .mg-hero>.e-con-inner{justify-content:center!important;align-items:center!important;padding:80px 32px 100px!important}body .mg-hero .mg-herocopy{max-width:900px!important;width:100%!important;align-items:center!important;text-align:center!important}body .mg-hero h1.elementor-heading-title{font-size:clamp(42px,5.5vw,78px)!important;line-height:1.12;text-align:center!important;text-shadow:0 3px 24px #24130a30}body .mg-hero .elementor-widget-text-editor{max-width:650px!important;text-align:center!important}body .mg-hero .mg-lead{font-size:18px!important;color:#fff1df!important}body .mg-hero .mg-kicker{color:#ffe0a9!important}body .mg-hero .mg-actions{justify-content:center!important}body .mg-hero .elementor-button{background:#fff0d4!important;color:#783822!important;border-color:#fff0d4}body .mg-hero .elementor-button:hover{background:#edd0a0!important}
body .elementor .mg-discovery{position:relative;z-index:2;margin-top:-32px!important;background:transparent!important;padding-top:0!important}body .mg-discovery>.e-con-inner{background:#fffdf8!important;box-shadow:0 18px 50px #613b2017;border:1px solid #e8d5bf;border-radius:20px;padding:30px!important}body .mg-v2-finder{background:#fffdf8!important;border:0!important;box-shadow:none!important;gap:24px!important;padding:0!important}body .mg-v2-finder label{min-width:0;color:#6e3e29;font-size:14px}body .mg-v2-finder select{font-size:16px!important;min-height:48px;background:#fff9ef!important;border:1px solid #dfc8aa!important;border-radius:9px!important;width:100%;max-width:100%}
body .elementor .mg-cards{align-items:stretch!important;gap:28px!important}body .elementor .mg-card,body .mg-tour-card{background:#fffdf8!important;border:1px solid #e8d5bf!important;border-radius:18px!important;box-shadow:0 8px 25px #58331b0b;overflow:hidden;transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column}body .mg-card:hover,body .mg-tour-card:hover{transform:translateY(-5px);box-shadow:0 18px 36px #58331b18}body .mg-card img,body .mg-tour-card img{width:100%!important;height:255px!important;object-fit:cover!important;object-position:center;border-radius:12px!important;transition:transform .4s}body .mg-card .elementor-widget-image{overflow:hidden;border-radius:12px}body .mg-card:hover img{transform:scale(1.04)}body .mg-card>.elementor-widget-button{margin-top:auto!important}body .mg-card .elementor-button{width:100%}body .mg-card .elementor-widget-text-editor{font-size:15px!important}body .mg-tour-card .mg-button{margin-top:auto}
body .elementor .mg-destination-section{background-color:#f6ebdb!important;background-image:repeating-conic-gradient(from 45deg,#ad713209 0% 25%,transparent 0% 50%)!important;background-size:32px 32px}body .elementor .mg-destinations{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px!important}body .elementor .mg-destination{width:100%!important;min-width:0!important;background:#fff9ef!important;border:1px solid #e6cfb2!important;padding:16px!important;border-radius:150px 150px 18px 18px!important;overflow:hidden;box-shadow:0 8px 24px #58331b0a}body .mg-destination img{width:100%!important;height:260px!important;object-fit:cover!important;border-radius:130px 130px 10px 10px!important;transition:transform .5s}body .mg-destination:hover img{transform:scale(1.05)}body .mg-destination .elementor-heading-title{text-align:center!important;font-size:25px!important}body .mg-destination figcaption{font-size:11px;line-height:1.4}body .mg-destination figure{margin:0}
body .elementor .mg-qualities{gap:22px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))}body .elementor .mg-quality{width:100%!important;min-width:0!important;background:#f4e6d1!important;border:1px solid #e8d5bf!important;padding:28px!important;border-radius:18px!important}body .mg-quality:before{content:'✧';font-size:32px;line-height:1;color:#a6462d;display:block}body .elementor .mg-process{background:#fff9ef!important}body .elementor .mg-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px!important}body .elementor .mg-step{position:relative;width:100%!important;min-width:0!important;border:1px solid #e8d5bf;background:#fffdf8!important;padding:28px!important;border-radius:18px!important}body .mg-step>.elementor-widget-text-editor:first-child{width:62px;height:72px;display:grid;place-items:center;border-radius:36px 36px 12px 12px;background:#f1dfc4;color:#a6462d!important;font-size:28px!important}body .mg-step>.elementor-widget-text-editor:first-child p{font-family:Georgia,serif;font-size:28px!important;margin:0;color:#a6462d!important}body .mg-step:not(:last-child):after{content:'→';position:absolute;right:-23px;top:48px;color:#b67a25;font-size:27px;z-index:1;animation:mg-warm-drift 3s ease-in-out infinite}body .mg-google-review-card{background:#fffdf8!important;border:1px solid #e8d5bf!important;border-radius:20px!important;padding:32px!important;box-shadow:0 8px 30px #58331b12}body .mg-google-review-card p{font-size:18px;font-family:'Playfair Display',Georgia,serif}body .mg-google-summary{background:#f2e1c5!important;border-radius:18px!important;padding:24px!important}body .elementor .mg-review-note{background:#f7eedf!important}
body .elementor .mg-cta{background-color:#7d3828!important;background-image:linear-gradient(135deg,#713020ed,#a95632ed),repeating-conic-gradient(from 45deg,#f7d49c30 0% 25%,transparent 0% 50%)!important;background-size:auto,38px 38px;border-radius:24px;margin:24px;width:calc(100% - 48px)}body .mg-cta .elementor-widget-text-editor p{color:#f9e6d2!important}body .mg-cta .elementor-button{background:#fff0d4!important;border-color:#fff0d4!important;color:#783822!important}body .mg-cta .mg-actions{justify-content:center}body .mg-contact-section{background:#fff9ef!important}body .mg-v2-contact{background:#fffdf8!important;border:1px solid #e8d5bf!important;border-radius:20px!important;padding:32px!important;box-shadow:0 12px 35px #58331b0a}body .mg-v2-contact label{font-size:15px!important}body .mg-v2-contact input:not([type=checkbox]):not([type=hidden]),body .mg-v2-contact select,body .mg-v2-contact textarea{width:100%;max-width:100%;min-height:50px;font-size:16px!important;border:1px solid #d6bea1!important;border-radius:9px!important;background:#fff9ef!important;color:#38271f;padding:12px!important}body .mg-v2-contact input[type=checkbox]{width:22px;height:22px;vertical-align:middle;accent-color:#a6462d}body .mg-v2-contact .mg-fields>*{min-width:0}
body .mg-footer{background:#40291f!important;color:#fff6e7!important;padding:65px 7% 28px!important;gap:40px}body .mg-footer h2,body .mg-footer h3{color:#efc78e!important}body .mg-footer a,body .mg-footer p{color:#e3cebb!important;font-size:15px}body .mg-footer a{min-height:44px;overflow-wrap:anywhere}body .mg-copyright{font-size:13px!important;color:#d5bca7!important}body .mg-quote{background:#f3e3cc!important;border:1px solid #e8d5bf;border-radius:35px 35px 14px 14px!important}body .mg-tourphoto img{border-radius:20px!important;object-fit:cover}body .mg-plain select,body .mg-plain input,body .mg-plain textarea{max-width:100%;min-height:48px;font-size:16px!important}body .mg-plain input[type=checkbox]{min-height:0}body .mg-plain .mg-tour-grid{gap:28px}body .mg-tour-grid .mg-tour-card{height:auto}body .mg-card,body .mg-destination,body .mg-step,body .mg-quality{min-width:0}
@keyframes mg-warm-drift{50%{transform:translateX(4px)}}
@media(max-width:1024px){body .elementor .mg-destinations{grid-template-columns:repeat(2,minmax(0,1fr))}body .elementor .mg-steps{grid-template-columns:repeat(2,minmax(0,1fr))}body .mg-step:after{display:none}body .mg-header nav{gap:16px}body .elementor .mg-qualities{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){body .mg-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:12px!important;padding:12px 5%!important;min-height:88px}.mg-header .mg-brand-logo img{max-height:62px;max-width:110px}body .mg-header-end{grid-column:2;grid-row:1}.mg-header-end>.mg-button{display:none!important}body .mg-menu-toggle{grid-column:3;grid-row:1;display:grid!important;place-items:center;width:46px;height:46px;background:#f5e6d2;color:#733a25;border:1px solid #d8bea0;border-radius:12px;font-size:25px;cursor:pointer}body .mg-header nav{display:none!important;grid-column:1/-1;order:initial;width:100%;padding-top:12px;border-top:1px solid #e8d5bf}body .mg-header nav.mg-menu-open,body .mg-header nav.mg-menu-open ul{display:flex!important;flex-direction:column;gap:0}body .mg-header nav a{display:flex;padding:10px 12px;min-height:48px;font-size:16px}.mg-header .mg-language{font-size:14px}.mg-header .mg-language>div{right:0;min-width:120px}body .elementor .mg-hero{margin:10px 12px 0;width:calc(100% - 24px);min-height:550px!important;border-radius:14px 14px 42px 14px}body .mg-hero>.e-con-inner{padding:58px 24px 75px!important}body .mg-hero h1.elementor-heading-title{font-size:clamp(36px,9.5vw,56px)!important}body .mg-hero .mg-lead{font-size:17px!important}body .elementor .mg-actions{flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:12px!important}body .mg-actions>.elementor-widget-button,body .mg-actions .elementor-button{width:100%!important}body .mg-discovery{margin-top:-15px!important}body .mg-discovery>.e-con-inner{padding:24px!important;margin-inline:6px}body .mg-v2-finder{display:flex!important;flex-direction:column!important;gap:16px!important}body .mg-v2-finder>*{width:100%;min-width:0}body .elementor .mg-cards,body .elementor .mg-qualities,body .elementor .mg-steps{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important}body .elementor .mg-card,body .elementor .mg-step,body .elementor .mg-quality{width:100%!important;min-width:0!important}body .mg-card img,body .mg-tour-card img{height:auto!important;aspect-ratio:1.5;object-fit:cover!important}body .elementor .mg-destinations{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}body .elementor .mg-destination{padding:10px!important;min-width:0!important}body .mg-destination img{height:190px!important}body .mg-destination h3.elementor-heading-title{font-size:21px!important}body .mg-destination .elementor-button{font-size:14px!important;padding:12px!important;min-height:48px}body .mg-cta{margin:12px!important;width:calc(100% - 24px)!important}body .mg-v2-contact{padding:22px!important}body .mg-v2-contact .mg-fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important}body .mg-footer{grid-template-columns:minmax(0,1fr)!important;padding:50px 6% 24px!important;gap:28px}body .mg-quote,body .mg-tourheading>div,body .mg-tourdetails>div{min-width:0!important;max-width:100%!important}body .mg-tourheading,body .mg-tourdetails{flex-direction:column!important}body .mg-plain{padding:50px 6%}body .mg-tour-grid{grid-template-columns:minmax(0,1fr)!important}body .mg-google-review-card{padding:26px!important}body .mg-quality,body .mg-step{padding:26px!important}body .mg-step:after{display:none}body .elementor .e-con{min-width:0}body .elementor .e-con-boxed>.e-con-inner{max-width:100%}body .mg-tourphoto img{height:auto!important;max-height:none;aspect-ratio:1.4}body .mg-header nav ul{width:100%}}
@media(max-width:359px){body .elementor .mg-destinations{grid-template-columns:1fr!important}body .mg-destination img{height:280px!important}}
@media(prefers-reduced-motion:reduce){body *,body *:before,body *:after{animation:none!important;transition:none!important}}

/* Final layout refinements after desktop and 320px preview checks. */
body .elementor .mg-hero{padding:0!important}body .mg-hero .mg-herocopy{margin-inline:auto!important;padding:0!important}body .elementor .mg-journalitem{background:#fffdf8!important;border:1px solid #e8d5bf!important;border-radius:18px!important;overflow:hidden;box-shadow:0 8px 25px #58331b0b;display:flex;flex-direction:column}body .mg-journalitem img{width:100%!important;height:240px!important;object-fit:cover!important;border-radius:12px!important}body .mg-journalitem>.elementor-widget-button{margin-top:auto!important}body .mg-quality:before{position:static!important;align-self:flex-start;margin-bottom:8px}body .mg-steps .mg-step>.elementor-widget-text-editor:first-child{align-self:flex-start}body .mg-destination figure{width:100%}body .mg-card img[alt*="Ourika"]{object-position:center 65%}body .mg-footer .mg-google-badge,body .mg-footer [class*="google-review"]{color:#38271f!important}body .mg-footer .mg-google-badge *{color:#38271f!important}body .mg-footer~nav,body .mg-footer~details{background:#40291f!important}html[dir=rtl] .mg-hero h1,html[dir=rtl] .mg-hero .elementor-widget-text-editor{text-align:center!important}
@media(max-width:767px){body .mg-hero>.e-con-inner{padding:48px 20px 65px!important}body .mg-hero .mg-herocopy{padding:0!important}body .mg-journalitem img{height:auto!important;aspect-ratio:1.5}body .elementor .mg-hero{min-height:550px!important}body .elementor .mg-hero h1{font-size:clamp(34px,9.5vw,50px)!important}body .mg-header nav.mg-menu-open{z-index:100;position:relative}body .elementor .mg-quality:before{position:static!important}}

/* Prevent Elementor overlay pseudo-elements from occupying feature-card layout space. */
body .elementor .mg-quality{padding-top:76px!important;flex-wrap:nowrap!important;align-items:stretch!important}body .elementor .mg-quality:before{position:absolute!important;top:24px!important;left:28px!important;right:auto!important;bottom:auto!important;width:32px!important;height:32px!important;pointer-events:none;background:none!important;opacity:1!important}body .elementor .mg-quality>.elementor-widget{max-width:100%;overflow-wrap:anywhere}body .elementor .mg-step{flex-wrap:nowrap!important}
