/*
Theme Name: Maggie Theme Framework
Theme URI: https://example.com
Author: Maggie Theme
Author URI: https://example.com
Description: Lightweight WordPress theme boilerplate for landing-page projects. Styled with Tailwind via WindPress.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maggie-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, one-column
*/

/* Base styles can be defined in WindPress. */
:root {
  --maggie-cream: #f5f1ec;
  --maggie-ink: #1f1b16;
  --maggie-muted: #6f665c;
  --maggie-line: #ded6cc;
  --maggie-header-bg: #000000;
  --maggie-header-text: #ffffff;
  --maggie-main-bg: #f5f1ec;
  --maggie-main-text: #1f1b16;
  --maggie-footer-bg: #f0e9e1;
  --maggie-footer-text: #1f1b16;
}

body {
  background: var(--maggie-main-bg);
  color: var(--maggie-main-text);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
.font-display {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.maggie-outline-button {
  border: 1px solid var(--maggie-ink);
  color: var(--maggie-ink);
  border-radius: 9999px;
  padding: 0.55rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wp-block-button.maggie-outline-button .wp-block-button__link {
  background: transparent;
  border: 0;
  border-radius: inherit;
  color: inherit;
  padding: 0;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.maggie-outline-button:hover {
  background: var(--maggie-ink);
  color: #fff;
  transform: translateY(-1px);
}

.maggie-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maggie-muted);
}

.maggie-breadcrumb a {
  color: inherit;
}

.maggie-post-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.maggie-post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
}

.maggie-post-hero-ctas {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  justify-content: center;
  width: 100%;
}

.maggie-post-hero .maggie-button {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.maggie-post-hero .maggie-button.maggie-button-solid {
  background: #ffffff;
  color: #1f1b16;
  border-color: #ffffff;
}

.maggie-post-hero .maggie-button:hover {
  background: #ffffff;
  color: #1f1b16;
}

.maggie-post-hero .maggie-button.maggie-button-solid:hover {
  background: rgba(255, 255, 255, 0.85);
}

.maggie-post-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}

.maggie-post-toc {
  border: 1px solid #ded6cc;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.maggie-post-toc-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.maggie-post-toc-list li::before {
  content: attr(data-number) " ";
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6f665c;
  margin-right: 6px;
}

.maggie-post-toc-list a {
  color: #1f1b16;
  text-decoration: none;
  font-size: 0.85rem;
}

.maggie-post-toc-list .toc-h2 a {
  padding-left: 12px;
  color: #6f665c;
}

.maggie-post-toc-list .toc-h3 a {
  padding-left: 24px;
  color: #6f665c;
}

.maggie-post-toc-toggle {
  margin-top: 12px;
  border: 1px solid #1f1b16;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  background: transparent;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .maggie-post-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }

  .maggie-post-toc {
    position: sticky;
    top: 120px;
    order: 2;
  }
}

.maggie-section {
  position: relative;
}

.maggie-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.maggie-reveal .wp-block-column {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.maggie-reveal .wp-block-column:hover {
  transform: translateY(-6px);
}

.maggie-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.maggie-tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
}

.maggie-tab-button {
  border: 1px solid var(--maggie-ink);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.maggie-tab-button.is-active {
  background: var(--maggie-ink);
  color: #fff;
}

.maggie-tab-panel {
  display: none;
}

.maggie-tab-panel.is-active {
  display: block;
}

.maggie-hero-content {
  margin: 0 auto;
  max-width: 48rem;
}

.maggie-hero-pre {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.maggie-hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.15;
}

.maggie-hero-subtitle {
  margin-top: 1.2rem;
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
}

.maggie-hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.maggie-hero .maggie-button {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.maggie-hero .maggie-button.maggie-button-solid {
  background: #ffffff;
  color: #1f1b16;
  border-color: #ffffff;
}

.maggie-hero .maggie-button.maggie-button-outline {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.maggie-hero .maggie-button:hover {
  background: #ffffff;
  color: #1f1b16;
}

.maggie-hero .maggie-button.maggie-button-solid:hover {
  background: rgba(255, 255, 255, 0.85);
}

.maggie-button {
  border: 1px solid var(--maggie-ink);
  color: var(--maggie-ink);
  border-radius: 9999px;
  padding: 0.55rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.maggie-button.maggie-button-solid {
  background: var(--maggie-ink);
  color: #fff;
}

.maggie-button.maggie-button-outline {
  background: transparent;
  color: var(--maggie-ink);
}

.maggie-button:hover {
  background: var(--maggie-ink);
  color: #fff;
  transform: translateY(-1px);
}

.maggie-hero-icon {
  font-size: 0.85rem;
}

.maggie-hero-slider,
.maggie-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.maggie-hero-slider .maggie-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.maggie-hero-slider .maggie-slide.is-active {
  opacity: 1;
}

@media (max-width: 640px) {
  .maggie-hero-content {
    padding-top: 1rem;
  }

  .maggie-hero-pre {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
  }

  .maggie-hero-ctas {
    margin-top: 1.5rem;
  }

  .maggie-hero {
    min-height: 55vh;
  }
}
.maggie-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--maggie-header-text);
}

.maggie-header--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.maggie-header-inner {
  height: 64px;
}

.maggie-header.is-hovered {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.maggie-logo img {
  display: block;
  max-height: 40px;
  height: auto;
  width: auto;
}

.custom-logo-link img {
  max-height: 40px;
  height: auto;
  width: auto;
}

.maggie-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
}

.maggie-menu > li {
  position: relative;
}

.maggie-menu a {
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  color: inherit;
}

.maggie-menu > li > a::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  margin-top: 6px;
  background: currentColor;
  transition: width 0.2s ease;
}

.maggie-menu > li:hover > a::after {
  width: 100%;
}

.maggie-menu .sub-menu {
  list-style: none;
  position: absolute;
  left: 0;
  top: calc(100% + 18px);
  min-width: 220px;
  padding: 12px 0;
  background: var(--maggie-header-bg);
  color: var(--maggie-header-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.maggie-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.maggie-menu .sub-menu li {
  position: relative;
}

.maggie-menu .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: inherit;
}

.maggie-menu .sub-menu .sub-menu {
  left: calc(100% + 12px);
  top: 0;
}

.maggie-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid currentColor;
  padding: 0.55rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.maggie-cta:hover {
  background: var(--maggie-header-text);
  color: var(--maggie-header-bg);
  transform: translateY(-1px);
}

#maggie-header-cta {
  color: var(--maggie-header-text);
  border-color: var(--maggie-header-text);
}

#maggie-header-cta:hover {
  background: var(--maggie-header-text);
  color: var(--maggie-header-bg);
}

.maggie-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--maggie-header-text);
}

.maggie-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  display: block;
  transition: transform 0.2s ease;
}

.maggie-mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.maggie-mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.maggie-mobile-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(80vw, 320px);
  height: 100%;
  background: var(--maggie-main-bg);
  color: var(--maggie-main-text);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.maggie-mobile-drawer.is-open .maggie-mobile-panel {
  transform: translateX(0);
}

.maggie-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.maggie-mobile-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.maggie-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.maggie-mobile-list .sub-menu {
  list-style: none;
  padding-left: 12px;
  margin-top: 8px;
  display: grid;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0.1em;
}

.maggie-mobile-cta {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.maggie-mobile-panel .maggie-cta {
  width: auto;
  justify-content: center;
  background: var(--maggie-main-text);
  color: var(--maggie-main-bg);
  border-color: var(--maggie-main-text);
  padding: 0.6rem 1.4rem;
  letter-spacing: 0.18em;
}

.maggie-mobile-panel .maggie-cta:hover {
  background: transparent;
  color: var(--maggie-main-text);
}

.maggie-mobile-social {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
}

.maggie-mobile-social a,
.maggie-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.maggie-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--maggie-muted);
}

.maggie-footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

@media (max-width: 639px) {
  .maggie-shop-grid {
    gap: 16px;
  }

  .maggie-shop-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px;
  }

  .maggie-shop-media {
    width: 96px;
    height: 120px;
    margin: 0;
    flex-shrink: 0;
  }

  .maggie-shop-details {
    margin-top: 0;
  }

  .maggie-shop-details p {
    margin-top: 0.25rem;
  }

  .maggie-footer {
    text-align: center;
  }

  .maggie-footer .mx-auto {
    justify-items: center;
  }

  .maggie-footer-list {
    justify-items: center;
  }

  .maggie-footer form {
    width: 100%;
    align-items: center;
  }

  .maggie-footer input {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .maggie-header-inner {
    height: 54px;
  }

  .maggie-mobile-toggle {
    display: inline-flex;
  }

  .maggie-header-inner {
    position: relative;
  }

  .maggie-mobile-cta-inline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    font-size: 0.6rem;
    padding: 0.45rem 0.9rem;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 480px) {
  .maggie-header-inner {
    height: 48px;
  }

  .maggie-logo img,
  .custom-logo-link img {
    max-height: 36px;
  }
}

.maggie-header[data-scheme="dark"] .maggie-menu,
.maggie-header[data-scheme="dark"] .maggie-cta,
.maggie-header[data-scheme="dark"] .maggie-mobile-toggle span {
  color: #fff;
}

.maggie-header[data-scheme="dark"] .maggie-menu .sub-menu {
  background: #111111;
  color: #ffffff;
}

.maggie-header[data-scheme="dark"] .maggie-menu > li > a::after {
  background: #ffffff;
}

.maggie-header[data-scheme="dark"] .maggie-cta {
  border-color: #ffffff;
}

.maggie-header[data-scheme="dark"] .maggie-cta:hover {
  background: #ffffff;
  color: #111111;
}
.maggie-header a,
.maggie-footer a,
a {
  text-decoration: none;
  cursor: pointer;
}

.maggie-header a:hover,
.maggie-footer a:hover,
a:hover {
  text-decoration: none;
}
