/*
Theme Name: Maple & Moon Photography
Theme URI: https://mapleandmoon.ca
Author: Gazi Mirza
Description: Custom WordPress theme for Maple & Moon Photography — a Halifax, NS photography studio. Dusk-over-the-harbour palette (golden-hour amber meets moonlit silver-blue), Fraunces + Karla type, horizon signature motif.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maple-and-moon
*/

/* ==========================================================================
   Maple & Moon Photography — style.css
   Palette: dusk over the Halifax harbour.
   maple (golden-hour amber) ←→ moon (silver-blue), on deep ink & sea fog.
   Type: Fraunces (display) + Karla (body).
   ========================================================================== */

:root {
  --ink:        #1c2531;   /* deep dusk navy */
  --ink-soft:   #2a3542;
  --fog:        #eef0ec;   /* cool sea-fog off-white */
  --fog-deep:   #e2e6df;
  --maple:      #b97a34;   /* golden-hour amber */
  --maple-deep: #98601f;
  --moon:       #a9bcca;   /* moonlit silver-blue */
  --moon-soft:  #cdd9e2;
  --slate:      #55616c;   /* secondary text on light */
  --mist:       #b9c3c9;   /* secondary text on dark */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 10px;

  --dusk: linear-gradient(105deg,
            rgba(185,122,52,.55) 0%,
            rgba(150,101,92,.42) 34%,
            rgba(72,88,110,.55) 68%,
            rgba(28,37,49,.78) 100%);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--maple-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maple); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 2px solid var(--maple);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--maple-deep);
  margin-bottom: 1rem;
}

.on-dark .eyebrow { color: var(--moon); }

.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--slate); max-width: 46ch; }

/* ---------- Signature: the horizon ----------
   A hairline horizon with a rising disc, half maple / half moon. */

.horizon {
  display: flex;
  align-items: center;
  gap: 0;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  max-width: var(--max);
  padding-inline: var(--pad);
  border: 0;
}

.horizon::before,
.horizon::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .28;
}

.horizon .disc { margin-inline: 14px; flex: none; }

.disc {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--maple) 50%, var(--moon) 50%);
  box-shadow: 0 0 0 3px rgba(185,122,52,.14);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fog) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,37,49,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin-inline: auto;
  padding: .9rem var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand .disc { width: 15px; height: 15px; box-shadow: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.brand-name em { font-style: italic; font-weight: 400; }

.brand-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo img.custom-logo {
  height: 48px;
  width: auto;
  max-width: none;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo img.custom-logo { height: 38px; }
}

.nav-links {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--maple-deep); }
.nav-links a[aria-current="page"],
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { border-bottom-color: var(--maple); color: var(--maple-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(28,37,49,.25);
  border-radius: 6px;
  padding: .45rem .6rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--fog);
    border-bottom: 1px solid rgba(28,37,49,.1);
    padding: .5rem var(--pad) 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .7rem 0; border-bottom: 0; }
  .nav-links a[aria-current="page"] { color: var(--maple-deep); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-maple { background: var(--maple); color: #fff; }
.btn-maple:hover { background: var(--maple-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(28,37,49,.35); }
.btn-ghost:hover { border-color: var(--maple); color: var(--maple-deep); }

.on-dark .btn-ghost { color: var(--fog); border-color: rgba(238,240,236,.45); }
.on-dark .btn-ghost:hover { border-color: var(--moon); color: var(--moon-soft); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  align-items: end;
  color: var(--fog);
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dusk);
  z-index: -1;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

.hero .eyebrow { color: var(--moon-soft); }

.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero h1 .amp { font-style: italic; color: var(--moon-soft); }

.hero .lede { color: rgba(238,240,236,.88); }

.hero-horizon {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
  max-width: 320px;
}
.hero-horizon::after { content: ""; flex: 1; height: 1px; background: rgba(238,240,236,.5); }
.hero-horizon .disc { margin-right: 14px; }

/* Compact hero for inner pages */

.hero-inner-page { min-height: min(52vh, 460px); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section-dark {
  background: var(--ink);
  color: var(--fog);
}

.section-dark .lede { color: var(--mist); }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split-img img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.6rem, 1.5vw, 1.1rem);
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  outline-offset: 4px;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery a:hover img { transform: scale(1.035); }

.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 8 / 5; }

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide { grid-column: span 2; }
}

/* ---------- Pull quote ---------- */

.pullquote {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) { .pullquote { grid-template-columns: 1fr; } }

.pullquote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--moon-soft);
}

.pullquote figcaption {
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}

.pullquote img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* ---------- Session cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: 2.2rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(28,37,49,.09);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -18px rgba(28,37,49,.35);
}

.card .disc { width: 13px; height: 13px; box-shadow: none; margin-bottom: .9rem; }

.card h3 { margin-bottom: .35rem; }

.card p { color: var(--slate); font-size: .98rem; margin-bottom: 0; }

.card .card-note {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--maple-deep);
}

/* ---------- Promo banner ---------- */

.promo {
  border: 1px solid rgba(185,122,52,.4);
  background: linear-gradient(100deg, rgba(185,122,52,.1), rgba(169,188,202,.14));
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.promo strong { color: var(--maple-deep); }
.promo p { margin: 0; max-width: 58ch; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: var(--ink-soft);
}

input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(28,37,49,.2);
  border-radius: 8px;
  padding: .85rem 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--maple);
  outline-offset: 1px;
  border-color: transparent;
}

textarea { min-height: 160px; resize: vertical; }

.form-note { font-size: .9rem; color: var(--slate); margin-top: 1rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }

.faq details {
  border-bottom: 1px solid rgba(28,37,49,.14);
  padding-block: .35rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: .85rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--maple-deep);
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { color: var(--slate); padding-bottom: 1rem; max-width: 62ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.site-footer .brand { color: var(--fog); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }

.footer-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-nav a:hover { color: var(--moon-soft); }

.footer-meta {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(238,240,236,.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  font-size: .85rem;
}

.footer-meta a { color: var(--moon); }

/* ---------- Reveal on scroll ---------- */

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

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .gallery img { transition: none; }
}

/* ==========================================================================
   Native block support
   Maps core Gutenberg blocks (Cover, Gallery, Details, Buttons, Media & Text)
   onto the existing brand classes, so content built directly in the block
   editor (Pages → Edit) renders with the same design system.
   ========================================================================== */

.entry-content > * {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.entry-content > .alignwide {
  max-width: 1360px;
}

.entry-content > .alignfull {
  max-width: none;
  padding-inline: 0;
}

.entry-content > .hero.alignfull { margin-block: 0; }

/* Cover block as hero */
.wp-block-cover.hero {
  min-height: min(88vh, 780px) !important;
  color: var(--fog);
}

.wp-block-cover.hero.hero-inner-page {
  min-height: min(52vh, 460px) !important;
}

.wp-block-cover.hero .wp-block-cover__inner-container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(3rem, 7vw, 5rem);
  text-align: left;
}

.wp-block-cover.hero .eyebrow { color: var(--moon-soft); }
.wp-block-cover.hero .lede { color: rgba(238,240,236,.88); max-width: 46ch; }
.wp-block-cover.hero h1 { color: var(--fog); max-width: 15ch; }

.wp-block-cover.hero .wp-block-buttons { margin-top: 1.6rem; }

/* Buttons block mapped to .btn styles via className */
.wp-block-buttons .wp-block-button.btn-maple > .wp-block-button__link {
  background: var(--maple); color: #fff; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .95rem 1.9rem;
}
.wp-block-buttons .wp-block-button.btn-maple > .wp-block-button__link:hover { background: var(--maple-deep); }

.wp-block-buttons .wp-block-button.btn-ghost > .wp-block-button__link {
  background: transparent; color: inherit; border: 1px solid rgba(238,240,236,.55);
  border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .95rem 1.9rem;
}
.wp-block-buttons .wp-block-button.btn-ghost > .wp-block-button__link:hover { border-color: var(--moon); color: var(--moon-soft); }

/* Media & Text block for split / story sections */
.wp-block-media-text.split {
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.wp-block-media-text.split .wp-media-text__media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.wp-block-media-text.split .wp-block-media-text__content { padding: 0; }

/* Gallery block */
.wp-block-gallery.gallery.has-nested-images figure.wp-block-image img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Quote block as pull quote */
.wp-block-quote.pullquote {
  border: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--moon-soft);
  padding: 0;
}
.wp-block-quote.pullquote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Details block as FAQ accordion */
.wp-block-details {
  border-bottom: 1px solid rgba(28,37,49,.14);
  padding-block: .35rem;
}
.wp-block-details summary {
  cursor: pointer;
  padding-block: .85rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
}
.wp-block-details p { color: var(--slate); padding-bottom: 1rem; max-width: 62ch; margin: 0; }

/* Section-dark groups */
.wp-block-group.section-dark {
  background: var(--ink);
  color: var(--fog);
}
.wp-block-group.section-dark .lede { color: var(--mist); }

/* Cards built from a Group of Groups */
.wp-block-group.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: 2.2rem;
}

/* Custom HTML block used for the contact form — no extra wrapper needed,
   the form-grid / label / input rules already defined above apply as-is. */
