/*
Theme Name: Modern Woman Daily
Theme URI: https://modernwoman.com
Description: Child theme του Hello Elementor για το Modern Woman Daily
Author: Falcore Media
Template: hello-elementor
Version: 2.7.1
Text Domain: modern-woman-daily
*/

/* ---------- Brand details ---------- */
.mwd-gold-em em { color: #E2C48B; font-style: italic; }
::selection { background: #E2C48B; color: #2A0A1E; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Section cards ---------- */
.mwd-card { transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease; will-change: transform; }
.mwd-card:hover, .mwd-card:focus-visible { transform: translateY(-8px); box-shadow: 0 30px 60px -25px rgba(60,14,42,.35) !important; }
.mwd-card .mwd-card-img { overflow: hidden; width: 100%; }
.mwd-card .mwd-card-img img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); display: block; }
.mwd-card:hover .mwd-card-img img { transform: scale(1.07); }

/* ---------- Post cards ---------- */
.elementor-posts .elementor-post__card { transition: transform .5s ease, box-shadow .5s ease; }
.elementor-posts .elementor-post__card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(60,14,42,.3); }
.elementor-posts .elementor-post__thumbnail img { transition: scale 1.2s cubic-bezier(.2,.7,.2,1); }
/* zoom with the separate 'scale' property so Elementor's centring transform is kept */
.elementor-posts .elementor-post__card:hover .elementor-post__thumbnail img { scale: 1.06; }

/* ---------- Article content (single post) ---------- */
.mwd-article { font-size: 17px; line-height: 1.8; color: #4A3A45; }
.mwd-article h2, .mwd-article h3 { font-family: "Cormorant Garamond", serif; color: #3C0E2A; line-height: 1.2; margin: 1.6em 0 .5em; }
.mwd-article h2 { font-size: 30px; } .mwd-article h3 { font-size: 24px; }
.mwd-article p { margin-bottom: 1.3em; }
.mwd-article a { color: #83642B; text-decoration: underline; text-underline-offset: 3px; }
.mwd-article blockquote { border-left: 2px solid #C9A15E; margin: 1.8em 0; padding: .4em 0 .4em 1.4em; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 23px; color: #3C0E2A; }
.mwd-article img { border-radius: 16px; height: auto; }
.mwd-article ul, .mwd-article ol { margin: 0 0 1.3em 0; padding-left: 1.3em; }
.mwd-article li { margin-bottom: .4em; }
@media (max-width: 767px) {
  .mwd-article { font-size: 16px; }
  .mwd-article h2 { font-size: 25px; } .mwd-article h3 { font-size: 21px; }
  .mwd-article blockquote { font-size: 20px; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
.elementor-button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #C9A15E !important; outline-offset: 3px !important; border-radius: 4px;
}
.skip-link.screen-reader-text:focus { background: #2A0A1E; color: #E2C48B; padding: 12px 18px; z-index: 100000; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .elementor-invisible { visibility: visible !important; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 767px) {
  .elementor-nav-menu--dropdown a { padding-top: 16px !important; padding-bottom: 16px !important; }
  .mwd-card:hover { transform: none; }
}

/* ---------- Extra brand details ---------- */
.mwd-gold-em-dark em { color: #9C7A3C; font-style: italic; }

/* ---------- Newsletter (Hostinger Reach) ---------- */
.mwd-newsletter form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mwd-newsletter input[type="email"], .mwd-newsletter input[type="text"] {
  flex: 1 1 260px; min-height: 52px; border-radius: 40px !important; border: 1px solid #C9A15E !important;
  padding: 0 22px !important; font-family: "Jost", sans-serif; font-size: 15px; background: #fff; color: #3C0E2A;
}
.mwd-newsletter button, .mwd-newsletter input[type="submit"] {
  min-height: 52px; border-radius: 40px !important; padding: 0 32px !important; border: 0 !important;
  background: #E2C48B !important; color: #2A0A1E !important; font-family: "Jost", sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px; font-size: 13px; cursor: pointer; transition: background .3s ease;
}
.mwd-newsletter button:hover, .mwd-newsletter input[type="submit"]:hover { background: #C9A15E !important; color: #fff !important; }
.mwd-newsletter label { color: #F3E6D3; }
@media (max-width: 767px) { .mwd-newsletter button, .mwd-newsletter input[type="submit"] { flex: 1 1 100%; } }

/* ---------- Ken Burns: slow, gentle zoom in / out on hero photos ---------- */
.mwd-kb { position: relative; overflow: hidden; isolation: isolate; }
.mwd-kb::after {
  content: ""; position: absolute; inset: -8%; z-index: -2;
  background-image: inherit; background-size: cover; background-repeat: no-repeat;
  background-position: inherit;
  transform-origin: 62% 35%;
  animation: mwdKenBurns 18s ease-in-out infinite;
  backface-visibility: hidden;
}
.mwd-kb::before { z-index: -1 !important; }
/* sharp zoom: the layer is drawn 16% larger and scaled down, so it is never upscaled (no blur) */
@keyframes mwdKenBurns { 0%,100% { transform: scale(.88); } 50% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mwd-kb::after { animation: none; } }

/* ---------- Card photos: gentle breathing zoom ---------- */
.mwd-card .mwd-card-img img { animation: mwdBreath 18s ease-in-out infinite alternate; }
.mwd-card:hover .mwd-card-img img { animation-play-state: paused; }
@keyframes mwdBreath { from { transform: scale(1); } to { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .mwd-card .mwd-card-img img { animation: none; } }

/* ---------- Article extras ---------- */
.mwd-article .mwd-toc{background:#fff;border:1px solid #EADFC9;border-radius:16px;padding:18px 22px;margin:0 0 1.6em}
.mwd-article .mwd-toc strong{font-family:"Cinzel",serif;font-size:13px;letter-spacing:2px;text-transform:uppercase;color:#83642B}
.mwd-article .mwd-toc ol{margin:.6em 0 0 0;padding-left:1.3em}
.mwd-article .mwd-keypoints{background:#F4E9E6;border-radius:16px;padding:18px 22px;margin:1.6em 0}
.mwd-article .mwd-sources{font-size:14px;color:#6B5A66;border-top:1px solid #E5D6BE;padding-top:1em;margin-top:2em}
.mwd-article .mwd-sources a{color:#6B5A66}
.mwd-legal{max-width:820px;margin:0 auto}
.mwd-legal h2{font-size:26px!important}
.mwd-legal h3{font-size:20px!important}
.mwd-placeholder{background:#FFF3C4;padding:0 4px;border-radius:3px}

/* ===== v2.1 Page cover (About, Contact, legal pages) ===== */
.mwd-page-hero{position:relative;overflow:hidden;isolation:isolate}
.mwd-page-hero::before{content:"";position:absolute;inset:auto!important;top:-8%!important;left:-8%!important;width:116%!important;height:116%!important;z-index:-2;background:url(assets/mwd-hero-desktop-2x.jpg) 72% 28%/cover no-repeat;transform-origin:72% 30%;animation:mwdKenBurns 18s ease-in-out infinite}
.mwd-page-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(42,10,30,.96) 0%,rgba(42,10,30,.88) 45%,rgba(60,14,42,.72) 100%)}
.mwd-page-emblem{background:url(/wp-content/uploads/2026/11/mwd-emblem.png) center/contain no-repeat;filter:drop-shadow(0 8px 22px rgba(0,0,0,.35))}
@media (max-width:767px){.mwd-page-hero::before{background-position:62% center}.mwd-page-hero::after{background:rgba(42,10,30,.86)}}
@media (prefers-reduced-motion:reduce){.mwd-page-hero::before{animation:none}}
.mwd-a11y-contrast .mwd-page-hero::before,.mwd-a11y-contrast .mwd-page-hero::after{display:none}

/* v2.2 */
.mwd-article .mwd-keypoints ul{margin-bottom:0}
@media (max-width:767px){.mwd-article .mwd-toc,.mwd-article .mwd-keypoints{padding:16px 16px}}
@media (min-width:1025px){.mwd-mobile-only{display:none!important}}
/* v2.5.0 contrast (WCAG AA) */
.mwd-legal a{color:#83642B}
.skip-link.screen-reader-text:focus{background:#2A0A1E;color:#fff}

/* ===== v2.4 Sharp vertical hero photos on mobile ===== */
@media (max-width:767px){
  body.page-id-10 .mwd-kb{background-image:url(/wp-content/uploads/2026/11/mwd-hero-mobile-home-v2.jpg)!important;background-position:56% 6%!important}
  body.page-id-11 .mwd-kb{background-image:url(/wp-content/uploads/2026/11/mwd-hero-mobile-beauty.jpg)!important;background-position:62% 8%!important}
  body.page-id-12 .mwd-kb{background-image:url(/wp-content/uploads/2026/11/mwd-hero-mobile-nutrition.jpg)!important;background-position:66% 8%!important}
  body.page-id-13 .mwd-kb{background-image:url(/wp-content/uploads/2026/11/mwd-hero-mobile-mom.jpg)!important;background-position:58% 8%!important}
  .mwd-kb::after{transform-origin:65% 25%}
  .mwd-page-hero::before{background-image:url(/wp-content/uploads/2026/11/mwd-hero-mobile-home-v2.jpg);background-position:50% 15%}
}

/* ---------- Fast first paint: hero text visible immediately (no entrance fade on above-the-fold) ---------- */
.mwd-kb .elementor-invisible, .mwd-page-hero .elementor-invisible { visibility: visible !important; }
.mwd-kb .elementor-element.animated, .mwd-page-hero .elementor-element.animated,
.mwd-kb .elementor-element[data-settings*="_animation"], .mwd-page-hero .elementor-element[data-settings*="_animation"] { animation: none !important; opacity: 1 !important; }

/* Home desktop hero: sharp 2560px photo, face fully visible on the right */
@media (min-width: 768px) {
  body.page-id-10 .mwd-kb { background-image: url(assets/mwd-hero-desktop-2x.jpg) !important; background-position: 70% 22% !important; background-size: cover !important; }
  body.page-id-10 .mwd-kb::after { transform-origin: 72% 25%; }
}

/* Section pages (desktop): wide photos made for a short, wide banner, faces fully in frame */
@media (min-width: 768px) {
  body.page-id-11 .mwd-kb { background-image: url(assets/mwd-hero-desktop-beauty.jpg) !important; background-position: 75% 41% !important; background-size: cover !important; }
  body.page-id-12 .mwd-kb { background-image: url(assets/mwd-hero-desktop-nutrition.jpg) !important; background-position: 70% 40% !important; background-size: cover !important; }
  body.page-id-13 .mwd-kb { background-image: url(assets/mwd-hero-desktop-mom.jpg) !important; background-position: 75% 57% !important; background-size: cover !important; }
  body.page-id-11 .mwd-kb::after, body.page-id-12 .mwd-kb::after, body.page-id-13 .mwd-kb::after { transform-origin: 74% 45%; }
}
/* Never stretch photos: fill their frame without distortion */
.elementor-widget-image img, .elementor-post__thumbnail img, .elementor-widget-theme-post-featured-image img { object-fit: cover; }
.elementor-widget-theme-post-featured-image img { object-position: center 35%; }

/* Tablet: keep hero text in the left half so it never runs over the person */
@media (min-width: 768px) and (max-width: 1180px) {
  .mwd-kb > .e-con, .mwd-kb > .e-con-inner > .e-con { max-width: 54% !important; }
}
