/* =============================================================================
   Virgo God Mother — Theme CSS
   Design: light & airy, navy/gold accents, DM Serif Display + DM Sans
   Celestial accents: nav, footer, hero photo only
   ============================================================================= */

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

body {
  font-family: 'DM Sans', sans-serif;
  background: #FAFAFA;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Typography ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* --- Ghost / Outlined Buttons --------------------------------------------- */
/* Applied via WordPress 'is-style-outline' button variant */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline a.wp-block-button__link {
  background: transparent !important;
  border: 1.5px solid #1A1A1A !important;
  color: #1A1A1A !important;
  padding: 12px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0 !important;
  transition: background 0.25s, color 0.25s;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline a.wp-block-button__link:hover {
  background: #1A1A1A !important;
  color: #FAFAFA !important;
  text-decoration: none;
}

/* Navy ghost variant */
.wp-block-button.is-style-outline.vgm-btn-navy .wp-block-button__link {
  border-color: #1B2D4F !important;
  color: #1B2D4F !important;
}
.wp-block-button.is-style-outline.vgm-btn-navy .wp-block-button__link:hover {
  background: #1B2D4F !important;
  color: #FAFAFA !important;
}

/* Utility class for anchor ghost buttons outside of wp:button context */
a.vgm-btn {
  display: inline-block;
  background: transparent;
  border: 1.5px solid #1A1A1A;
  color: #1A1A1A;
  padding: 12px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.25s, color 0.25s;
}
a.vgm-btn:hover {
  background: #1A1A1A;
  color: #FAFAFA;
  text-decoration: none;
}

/* --- Navigation / Header --------------------------------------------------- */
.vgm-header {
  position: sticky !important;
  top: 0;
  z-index: 200;
  background: #FAFAFA !important;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  min-height: 68px;
  /* Constrain inner content to match page width */
  max-width: 100%;
  box-sizing: border-box;
}

/* Cap the header's flex content at the same width as the rest of the page */
.vgm-header.wp-block-group {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* When the header is full-width, wrap its content in a constrained inner div */
.vgm-header > .wp-block-group__inner-container {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vgm-header .wp-block-site-title a {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #1A1A1A !important;
  text-decoration: none;
}

/* Nav link spacing — use gap on the nav's inner list */
.vgm-header .wp-block-navigation .wp-block-navigation__container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vgm-header .wp-block-navigation,
.vgm-header .wp-block-navigation a,
.vgm-header .wp-block-navigation-item__content {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A1A1A;
  text-decoration: none;
}
.vgm-header .wp-block-navigation a:hover,
.vgm-header .wp-block-navigation-item__content:hover { color: #1B2D4F; }

/* Celestial star accent in nav */
.vgm-nav-star {
  color: #C9A84C;
  font-size: 0.6rem;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0.85;
  display: inline-block;
  position: relative;
  top: -1px;
}

/* --- Hero Section ---------------------------------------------------------- */
.vgm-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.vgm-hero .wp-block-columns {
  align-items: center;
  width: 100%;
}

.vgm-hero-overline {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 1.25rem;
  display: block;
}

.vgm-hero-title.wp-block-heading {
  font-size: clamp(2.75rem, 5vw, 4.25rem) !important;
  line-height: 1.05 !important;
  margin-bottom: 0.2em !important;
}

.vgm-hero-brand.wp-block-heading {
  font-size: clamp(1.3rem, 2.5vw, 2rem) !important;
  color: #C9A84C !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.02em;
}

.vgm-hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #4A4A4A;
  max-width: 440px;
  margin-bottom: 2.5rem !important;
}

/* Hero photo wrapper with star decorations */
.vgm-hero-photo-wrap {
  position: relative;
  display: block;
}

.vgm-hero-photo-wrap .wp-block-image,
.vgm-hero-photo-wrap .wp-block-image img {
  width: 100%;
  border-radius: 2px;
}

/* Stars positioned around the hero photo */
.vgm-star {
  position: absolute;
  color: #C9A84C;
  pointer-events: none;
  line-height: 1;
  z-index: 2;
  user-select: none;
}
.vgm-star--xl  { font-size: 1.5rem;  opacity: 0.80; }
.vgm-star--lg  { font-size: 1.15rem; opacity: 0.70; }
.vgm-star--md  { font-size: 0.9rem;  opacity: 0.60; }
.vgm-star--sm  { font-size: 0.65rem; opacity: 0.50; }

.vgm-star-a { top:  6%;  right: -26px; }
.vgm-star-b { top:  28%; right: -14px; }
.vgm-star-c { bottom: 10%; left: -24px; }
.vgm-star-d { bottom: 32%; left: -13px; }
.vgm-star-e { top: -18px; left: 38%; }

/* --- Shared Section Styles ------------------------------------------------- */
/*
 * Use layout:default on all vgm-section outer groups so WordPress does NOT
 * generate its own horizontal padding via the constrained layout algorithm.
 * Our CSS owns all padding and centering for these sections.
 */
.vgm-section {
  padding: 6rem 2rem;
}

/* Inner content containers: centered at content width */
.vgm-about-preview-grid,
.vgm-cards-section > .vgm-section-header,
.vgm-cards-section > .wp-block-query,
.vgm-cards-section > .vgm-section-cta {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.vgm-section--alt   { background: #F5F1EC; }
.vgm-section--white { background: #FFFFFF; }
.vgm-section--dark  { background: #1B2D4F; color: #FAFAFA; }

.vgm-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 0.75rem;
  display: block;
}

.vgm-section-title.wp-block-heading {
  margin-bottom: 1.25rem !important;
}

.vgm-section-center { text-align: center; }

.vgm-section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- About Preview (homepage) ---------------------------------------------- */
.vgm-about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.vgm-about-preview-text .wp-block-paragraph {
  font-size: 1.05rem;
  line-height: 1.78;
  color: #333;
}

.vgm-about-preview-text .wp-block-heading {
  margin-bottom: 1.25rem;
}

/* --- Cards (shop + blog preview) ------------------------------------------- */
.vgm-cards-section {
  padding: 6rem 2rem;
}

.vgm-cards-section .vgm-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.vgm-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1160px;
  margin: 0 auto 3rem;
}

.vgm-card {
  display: flex;
  flex-direction: column;
}

.vgm-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #E8E4DF;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.vgm-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.vgm-card:hover .vgm-card-img-wrap img { transform: scale(1.03); }

.vgm-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #AAAAAA;
  margin-bottom: 0.5rem;
  display: block;
}

.vgm-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: #1A1A1A;
}

.vgm-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.vgm-card-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A1A1A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
  margin-top: auto;
}
.vgm-card-link::after { content: '→'; }
.vgm-card-link:hover  { color: #1B2D4F; gap: 10px; }

/* --- About Page ------------------------------------------------------------ */
.vgm-about-layout {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 5rem;
  align-items: start;
  padding: 6rem 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.vgm-about-layout .wp-block-post-featured-image img {
  width: 100%;
  border-radius: 2px;
}

.vgm-about-content .wp-block-paragraph {
  font-size: 1.05rem;
  line-height: 1.78;
  color: #333;
  margin-bottom: 1.25rem;
}

/* --- Footer ---------------------------------------------------------------- */
.vgm-footer {
  border-top: 1px solid #E2C97E;
  background: #FAFAFA;
  padding: 2rem;
}

.vgm-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
}

.vgm-footer .wp-block-site-title a {
  font-family: 'DM Serif Display', serif !important;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #1A1A1A !important;
  text-decoration: none;
}

.vgm-footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.vgm-social-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s;
}
.vgm-social-link:hover { opacity: 0.7; }
.vgm-social-link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.vgm-footer-copyright {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #AAAAAA;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 26, 26, 0.07);
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.vgm-footer-star {
  color: #C9A84C;
  margin: 0 10px;
  font-size: 0.55rem;
  vertical-align: middle;
}

/* --- Generic Page ---------------------------------------------------------- */
.vgm-page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.vgm-page-title.wp-block-post-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
  .vgm-cards-grid         { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .vgm-about-preview-grid { grid-template-columns: 1fr; gap: 3rem; }
  .vgm-about-layout       { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 2rem; }
  .vgm-hero               { min-height: unset; padding: 4rem 0 3rem; }
  .vgm-star-a, .vgm-star-b { right: -12px; }
  .vgm-star-c, .vgm-star-d { left: -10px; }
}

@media (max-width: 600px) {
  .vgm-cards-grid         { grid-template-columns: 1fr; }
  .vgm-section            { padding: 4rem 1.25rem; }
  .vgm-cards-section      { padding: 4rem 1.25rem; }
  .vgm-footer             { padding: 1.5rem 1.25rem; }
  .vgm-header             { min-height: 56px; }
  .vgm-hero               { padding: 3rem 0 2rem; }
  .vgm-hero-photo-wrap    { margin-top: 2.5rem; }
  .vgm-star-a,
  .vgm-star-b,
  .vgm-star-e             { display: none; }
}
