/*
Theme Name: Miela Meraki
Theme URI: https://mielamerakiphotography.co.za/
Author: Miela Meraki Photography
Description: A lightweight Elementor-first theme for Miela Meraki Photography.
Version: 1.4.0
Text Domain: miela-meraki
*/

:root {
  --mm-ink: #2b2725;
  --mm-paper: #f8f6f2;
  --mm-white: #ffffff;
  --mm-muted: #9b918a;
  --mm-line: #ded8d2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--mm-ink);
  background: var(--mm-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.mm-site-main { min-height: 60vh; }
.mm-elementor-template:empty { display: none; }
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 { margin: 0; }
.elementor-widget-heading .elementor-heading-title {
  color: #534b47;
  font-family: "Forum", Georgia, serif !important;
  font-weight: 400 !important;
}
.elementor-widget-text-editor { font-family: "Cormorant Garamond", Georgia, serif !important; }
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 0;
}

/* Navigation template */
.mm-site-header-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.admin-bar .mm-site-header-shell { top: 32px; }
.mm-header {
  background: rgba(43, 39, 37, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(20, 17, 15, .12);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.mm-header .elementor-container {
  min-height: 100px;
  transition: min-height .25s ease;
}
.mm-header .elementor-nav-menu--main .elementor-item,
.mm-header .elementor-widget-text-editor a,
.mm-header .elementor-widget-html a {
  display: inline-block;
  color: #e8e3df;
  font-family: "Forum", Georgia, serif;
  font-size: 14.08px;
  font-weight: 400;
  letter-spacing: 2.96px;
  line-height: 25.77px;
  padding: 3px 13.66px;
  text-transform: uppercase;
  text-decoration: none;
}
.mm-header .elementor-widget-html { color: #fff; }
.mm-menu-toggle { display: none; }
.mm-header .elementor-widget-html nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  line-height: 2.8;
}
.mm-header .elementor-column:last-child .elementor-widget-html { text-align: right; }
.mm-header .elementor-nav-menu--main .elementor-item:hover,
.mm-header .elementor-nav-menu--main .elementor-item.elementor-item-active { color: #d6cec6; }
.mm-header .elementor-nav-menu--dropdown { background: var(--mm-ink); }
.mm-logo img {
  width: 205px;
  filter: brightness(0) invert(1);
  transition: width .25s ease;
}
.mm-site-header-shell.is-compact .mm-header { background: rgba(43, 39, 37, .82); }
.mm-site-header-shell.is-compact .mm-header .elementor-container { min-height: 72px; }
.mm-site-header-shell.is-compact .mm-logo img { width: 155px; }

/* Use the same solid, in-flow navigation on every page. */
.mm-about-hero,
.mm-about-hero .elementor-container { min-height: 633px; }
.mm-about-hero { text-align: center; }
.mm-about-hero .elementor-widget-wrap {
  align-content: flex-end;
  padding-bottom: 64px !important;
  transform: none;
}
.mm-about-hero .elementor-heading-title { color: #fff !important; text-transform: uppercase; }

/* Shared editorial styling */
.mm-kicker { color: var(--mm-muted); letter-spacing: .3em; text-transform: uppercase; }
.mm-display .elementor-heading-title,
.mm-display { font-family: "Forum", Georgia, serif !important; font-weight: 400 !important; line-height: 1.15 !important; }
.mm-uppercase .elementor-heading-title { letter-spacing: .16em; text-transform: uppercase; }
.mm-welcome-title .elementor-heading-title {
  color: #756a65 !important;
  font-family: "Forum", Georgia, serif !important;
  font-size: 21.74px !important;
  font-weight: 400 !important;
  letter-spacing: .24em;
  line-height: 31.52px !important;
  text-transform: uppercase;
}
.mm-welcome-copy { color: #6c6c6c; font-size: 17.91px; line-height: 1.75; }
.mm-welcome-copy p { margin: 0; }
.mm-welcome-copy p + p { margin-top: 24px; }
.mm-about-panel { background: #45403d; color: #fff; min-height: 1044px; }
.mm-about-panel .elementor-heading-title,
.mm-about-panel .elementor-widget-text-editor { color: #fff !important; }
.mm-about-panel .elementor-widget-text-editor { font-family: "Forum", Georgia, serif !important; font-size: 33.08px; line-height: 1.4; }
.mm-about-panel .elementor-button { color: #fff; }
.mm-about-photo img { display: block; width: 100% !important; height: 1044px !important; object-fit: cover; object-position: center; }
.mm-home-quote .elementor-heading-title {
  color: #8c817b !important;
  font-family: "Forum", Georgia, serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: .15em;
  line-height: 20.02px !important;
  text-align: center;
  text-transform: uppercase;
}
.mm-cta-photo img { display: block; width: 100% !important; height: 633px !important; object-fit: cover; object-position: center 62%; }
.mm-cta-panel { min-height: 633px; background: #f4f2ef; text-align: center; }
.mm-cta-panel .elementor-widget-wrap { align-content: center; }
.mm-cta-panel .elementor-heading-title { color: #8a7c75 !important; }
.mm-cta-panel .mm-kicker .elementor-heading-title {
  font-family: "Forum", Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 4.48px;
  line-height: 1.63 !important;
}
.mm-copy { max-width: 680px; }
.mm-button .elementor-button {
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #74605a !important;
  font-family: "Forum", Georgia, serif !important;
  font-size: 14.08px !important;
  font-weight: 400 !important;
  letter-spacing: 2.96px !important;
  line-height: 24px !important;
  padding: 0 0 7px !important;
  text-transform: uppercase;
  box-shadow: none !important;
}
.mm-button .elementor-button:hover,
.mm-button .elementor-button:focus { background: transparent !important; color: #74605a !important; }
.mm-about-panel .mm-button .elementor-button { color: #fff !important; }
.mm-about-panel .mm-button .elementor-button:hover,
.mm-about-panel .mm-button .elementor-button:focus { color: #fff !important; }
.mm-elephant-hero {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.mm-elephant-hero > .elementor-container { min-height: inherit; }
.mm-portrait img { width: 100% !important; height: 720px !important; object-fit: cover; }
.mm-editorial-image img { width: 100% !important; height: 520px !important; object-fit: cover; }
.mm-terms-photo img { display: block; width: 100% !important; height: 768px !important; object-fit: cover; }
.mm-quote .elementor-heading-title { max-width: 1040px; margin: 0 auto; }
.mm-package { min-height: 560px; overflow: hidden; }
.mm-package .elementor-background-overlay { background: rgba(20,17,15,.27); }
.mm-package .elementor-widget-wrap { align-content: flex-end; padding: 48px !important; }
.mm-package .elementor-heading-title, .mm-package .elementor-widget-text-editor { color: white; }
.mm-gallery img { width: 100% !important; aspect-ratio: 4/5; object-fit: cover; }

/* Forms */
.elementor-field-group label { color: var(--mm-ink); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.elementor-field-group .elementor-field {
  border: 0;
  border-bottom: 1px solid var(--mm-line);
  border-radius: 0;
  background: transparent;
  color: var(--mm-ink);
  padding: 12px 0;
}
.elementor-field-type-submit .elementor-button { border-radius: 0; background: var(--mm-ink); letter-spacing: .2em; text-transform: uppercase; }

/* Footer template */
.mm-footer { background: #fff; color: #9a8a82; }
.mm-footer a { color: #b0a19a; text-decoration: none; }
.mm-footer .elementor-heading-title { color: #74605a !important; font-family: "Forum", Georgia, serif !important; font-size: 33.08px !important; font-weight: 400 !important; line-height: 1.4 !important; }
.mm-footer .elementor-column { text-align: center; }
.mm-footer .elementor-widget-text-editor { color: #aaa09a; font-family: "Forum", Georgia, serif !important; font-size: 14.08px; letter-spacing: 0; line-height: 20.13px; text-transform: uppercase; }
.mm-footer-links a { display: block; font-size: 11px; letter-spacing: .16em; line-height: 2.2; text-transform: uppercase; }
.mm-footer .mm-back-to-top { margin: 0 0 12px; text-align: center; }
.mm-footer .mm-back-to-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #aaa09a;
  font-family: "Forum", Georgia, serif;
  font-size: 20px;
  line-height: 1;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.mm-footer .mm-back-to-top a:hover,
.mm-footer .mm-back-to-top a:focus-visible {
  border-color: #ded8d2;
  color: #74605a;
  transform: translateY(-2px);
}
.mm-footer .mm-back-to-top a:focus-visible { outline: 2px solid #74605a; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.mm-package-row { min-height: 714px; border-top: 1px solid #ded8d2; overflow: hidden; }
.mm-package-row > .elementor-container > .elementor-column { width: 50%; }
.mm-package-row > .elementor-container > .elementor-column + .elementor-column { border-left: 1px solid #ded8d2; }
.mm-package-title { margin-bottom: 4px !important; }
.mm-package-title .elementor-heading-title { color: #796b64 !important; font-size: 33.08px !important; line-height: 46.31px !important; text-align: center; text-transform: uppercase; }
.mm-package-carousel .swiper,
.mm-package-carousel .swiper-container,
.mm-package-carousel .swiper-slide { height: 543px; }
.mm-package-carousel .swiper-slide a { display: block; height: 100%; }
.mm-package-carousel .swiper-slide-image {
  display: block;
  width: 100% !important;
  height: 543px !important;
  object-fit: cover;
}
.mm-package-carousel .elementor-swiper-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(43, 39, 37, .28);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mm-package-carousel .elementor-swiper-button svg { width: 18px; height: 18px; }
.mm-package-details { text-align: center; color: #8d817a; }
.mm-package-details .mm-uppercase .elementor-heading-title { font-size: 14px !important; line-height: 20.02px !important; }

/* About-page name story */
.mm-name-section,
.mm-name-section .elementor-container { min-height: 551px; }
.mm-name-section .elementor-widget-wrap { align-content: center; }
.mm-name-art img { display: block; width: 399px !important; max-height: 403px; object-fit: contain; margin: 0 auto; }
.mm-name-panel { padding-left: 6px; }
.mm-name-panel .elementor-heading-title { font-size: 33.08px !important; line-height: 46.31px !important; text-transform: uppercase; }
.mm-name-copy { color: #373737; font-family: "Forum", Georgia, serif !important; font-size: 14.08px; line-height: 20.13px; text-transform: uppercase; }
.mm-name-copy .mm-name-definition { display: grid; grid-template-columns: 90px 1fr; column-gap: 13px; margin-top: 22px; }
.mm-name-copy .mm-name-definition p { margin: 0; }
.mm-name-copy .mm-name-quote { max-width: 501px; margin: 10px 0 0; }
.mm-name-copy .mm-name-miela { display: grid; grid-template-columns: 90px 1fr; column-gap: 13px; margin-top: 35px; }
.mm-name-copy .mm-name-miela p { margin: 0; }

@media (max-width: 1024px) {
  .mm-header .elementor-container { min-height: 86px; }
  .mm-header .elementor-widget-html nav { gap: 0; }
  .mm-header .elementor-widget-html a { font-size: 12px; padding-inline: 9px; }
  .mm-logo img { width: 165px; }
  .mm-portrait img { height: 560px; }
}

@media (max-width: 767px) {
  .admin-bar .mm-site-header-shell { top: 46px; }
  .mm-header { padding-inline: 18px !important; }
  .mm-header .elementor-container { min-height: 72px; flex-direction: row; flex-wrap: nowrap; }
  .mm-header .elementor-column:first-child { width: 60%; }
  .mm-header .elementor-column:last-child { width: 40%; position: static; }
  .mm-header .elementor-widget-html { position: static; }
  .mm-logo img { width: 142px; }
  .mm-menu-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: "Forum", Georgia, serif;
    font-size: 12px;
    letter-spacing: .2em;
    padding: 8px 0 8px 18px;
    text-transform: uppercase;
  }
  .mm-menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
  .mm-header .elementor-widget-html nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 18px;
    background: rgba(43, 39, 37, .96);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 28px rgba(20,17,15,.18);
    line-height: 1.4;
    text-align: left;
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
  }
  .is-menu-open .mm-header .elementor-widget-html nav { display: flex; }
  .mm-header .elementor-widget-html a { display: block; font-size: 13px; letter-spacing: 2px; padding: 11px 4px; }
  .mm-site-header-shell.is-compact .mm-header .elementor-container { min-height: 60px; }
  .mm-site-header-shell.is-compact .mm-logo img { width: 118px; }
  .mm-elephant-hero { background-attachment: scroll !important; min-height: calc(100svh - 72px); }
  .mm-home-welcome { padding: 52px 24px 58px !important; }
  .mm-welcome-title .elementor-heading-title { font-size: 18px !important; line-height: 1.45 !important; letter-spacing: .16em; }
  .mm-home-about .mm-about-panel > .elementor-element-populated { padding: 52px 26px !important; }
  .mm-home-quote-section { padding: 56px 25px !important; }
  .mm-portrait img, .mm-editorial-image img { height: 460px !important; }
  .mm-package { min-height: 460px; }
  .mm-package-row { padding: 0 !important; min-height: 0; }
  .mm-package-row > .elementor-container { flex-direction: column; }
  .mm-package-row > .elementor-container > .elementor-column { width: 100%; }
  .mm-package-row > .elementor-container > .elementor-column + .elementor-column { border-top: 1px solid #ded8d2; border-left: 0; }
  .mm-package-details > .elementor-element-populated { padding: 32px 20px 40px !important; }
  .mm-package-title .elementor-heading-title { font-size: 28px !important; line-height: 1.18 !important; }
  .mm-package-carousel .swiper,
  .mm-package-carousel .swiper-container,
  .mm-package-carousel .swiper-slide,
  .mm-package-carousel .swiper-slide-image { height: 390px !important; }
  .mm-package .elementor-widget-wrap { padding: 28px !important; }
  .mm-display .elementor-heading-title { font-size: 42px !important; }
  .mm-about-panel { min-height: auto; }
  .mm-about-photo img { height: 520px !important; min-height: 0; }
  .mm-terms-copy > .elementor-element-populated { padding: 52px 24px !important; }
  .mm-terms-photo img { height: 440px !important; object-position: center; }
  .mm-about-panel .elementor-widget-text-editor { font-size: 23px; }
  .mm-cta-photo img { height: 520px !important; }
  .mm-cta-panel { min-height: 440px; }
  .mm-about-hero,
  .mm-about-hero .elementor-container { min-height: 560px; }
  .mm-about-hero .elementor-widget-wrap { padding: 0 24px 34px !important; }
  .mm-about-hero .mm-display .elementor-heading-title { font-size: 38px !important; line-height: 1.05 !important; }
  .mm-about-hero .mm-uppercase .elementor-heading-title { font-size: 11px !important; line-height: 1.5 !important; letter-spacing: .12em; }
  .mm-about-story .elementor-column:first-child > .elementor-element-populated,
  .mm-about-bio .elementor-column:last-child > .elementor-element-populated { padding: 52px 24px !important; }
  .mm-name-section,
  .mm-name-section .elementor-container { min-height: auto; }
  .mm-name-section { padding: 42px 24px 52px !important; }
  .mm-name-panel { padding-left: 0; }
  .mm-name-copy .mm-name-definition,
  .mm-name-copy .mm-name-miela { grid-template-columns: 76px 1fr; }
  .mm-gallery-intro { padding: 48px 24px 34px !important; }
  .mm-contact-intro { padding: 68px 24px !important; }
  .mm-contact-info > .elementor-element-populated { padding: 52px 24px 30px !important; }
  .mm-contact-form > .elementor-element-populated { padding: 26px 24px 58px !important; }
  .elementor-field-group { width: 100% !important; }
  .mm-footer-links-section { padding: 42px 20px 18px !important; }
  .mm-footer-links-section > .elementor-container { flex-direction: row; flex-wrap: wrap; }
  .mm-footer-links-section .elementor-column { width: 50%; }
  .mm-footer-links-section .elementor-element-populated { padding: 12px 6px 24px !important; }
  .mm-footer .elementor-heading-title { font-size: 25px !important; line-height: 1.25 !important; }
  .mm-footer .elementor-widget-text-editor { font-size: 11px; line-height: 1.65; }
  .mm-footer-meta { padding: 10px 20px 36px !important; }
  .mm-footer-meta .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
}
