/*
Theme Name: Maersd Dulci
Theme URI: https://maersddulci.com
Author: Yuliia
Author URI: https://maersddulci.com
Description: Custom, modern, lightweight WordPress theme for Maersd Dulci – improved layout and readability, based on original site content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maersd-dulci
*/

/* Base reset & typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222222;
  background-color: #faf7f5;
  line-height: 1.7;
}

a {
  color: #c21f30;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 247, 245, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  display: block;
}

.brand-logo img {
  height: 46px;
  width: auto;
  display: block;
}

/* brand-text no longer used – kept for safety */

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.primary-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  position: relative;
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: #c21f30;
  transition: width 0.2s ease;
}

.primary-menu a:hover::after,
.primary-menu a:focus::after,
.primary-menu .current-menu-item > a::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.lang-switch button.is-active {
  background: #c21f30;
  color: #fff;
}

.header-toggle {
  display: none;
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
}

.header-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 999px;
  position: relative;
}

.header-toggle span::before,
.header-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 999px;
}

.header-toggle span::before {
  top: -7px;
}

.header-toggle span::after {
  top: 7px;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background: radial-gradient(circle at top left, #ffe9e9, transparent 55%),
    radial-gradient(circle at bottom right, #f6eee5, transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c21f30;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-title span.highlight {
  color: #c21f30;
}

.hero-lead {
  font-size: 1rem;
  color: #555;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #c21f30;
  color: #fff;
  box-shadow: 0 14px 34px rgba(194, 31, 48, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(194, 31, 48, 0.32);
}

.btn-outline {
  background: #fff;
  color: #c21f30;
  border-color: rgba(194, 31, 48, 0.3);
}

.hero-media {
  position: relative;
}

.hero-card {
  border-radius: 1.8rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(0, 0, 0, 0.35), transparent 40%);
}

.hero-card-content {
  position: absolute;
  bottom: 1.6rem;
  left: 1.6rem;
  right: 1.6rem;
  color: #fff;
}

.hero-badge {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-card-title {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0.3rem 0 0.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  font-size: 0.77rem;
  opacity: 0.85;
}

/* Content sections */
.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c21f30;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: 1.6rem;
  margin: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.content-rich p {
  margin: 0 0 1.1rem;
}

.content-rich p:last-child {
  margin-bottom: 0;
}

.content-callout {
  padding: 1.2rem 1.3rem;
  border-left: 3px solid #c21f30;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.9rem;
  font-size: 0.9rem;
  color: #555;
}

/* Gallery preview */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #111;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  transform: scale(1.02);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.92;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.gallery-item-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem 1rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.85rem;
}

/* Lightbox */
.md-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.md-lightbox.is-open {
  display: flex;
}

.md-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.md-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.md-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.md-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.md-lightbox-open {
  overflow: hidden;
}

/* Scroll reveal */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.js-reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.js-reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

/* Contact */
.contact-card {
  padding: 1.6rem 1.7rem;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #888;
}

.contact-value {
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem 0 2rem;
  font-size: 0.85rem;
  color: #777;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: inherit;
}

/* Generic content styles */
.page-header {
  padding: 3rem 0 1rem;
}

.page-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.page-subtitle {
  color: #666;
  font-size: 0.95rem;
}

.page-content {
  padding-bottom: 3rem;
}

.page-content p {
  margin: 0 0 1rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 1rem;
  }

  .primary-nav {
    position: fixed;
    inset: 60px 0 auto 0;
    background: rgba(250, 247, 245, 0.97);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-toggle {
    display: block;
  }

  .lang-switch {
    margin-left: 0;
  }
}

