/* ==========================================================================
   Vows for Life — design tokens
   Warm neutrals + terracotta, per the client's chosen direction.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Color */
  --cream: #fbf6ef;
  --cream-deep: #f1e4d3;
  --ink: #3b2a22;
  --ink-soft: #6b5847;
  --terracotta: #c1592b;   /* decorative: large type, icons, backgrounds */
  --rust: #9c4420;         /* AA-safe on cream: buttons, links, small text */
  --rust-hover: #7e3618;
  --line: #e4d5c1;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --content-width: 1120px;
  --prose-width: 68ch;
  --radius: 14px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }

body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

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

button { font: inherit; background: none; border: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
h3 { font-size: 1.375rem; }

p { max-width: var(--prose-width); }

a {
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}

.rings-icon { color: var(--terracotta); flex-shrink: 0; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

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

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

.section.alt {
  background: var(--cream-deep);
}

.section > .container > h2,
.section > .container > .eyebrow {
  max-width: var(--prose-width);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rust);
  color: var(--cream);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: var(--rust-hover);
}

.button:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.header-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.logo span {
  color: var(--rust);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
}

.nav-links a.nav-cta {
  background: var(--rust);
  color: var(--cream);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border-bottom: none;
}

.nav-links a.nav-cta:hover {
  background: var(--rust-hover);
  border-bottom: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle-bars { top: 19px; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero (home page)
   ========================================================================== */

.hero {
  position: relative;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) 1.5rem clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 220px;
  background-image:
    radial-gradient(circle, transparent 58%, var(--terracotta) 59%, var(--terracotta) 63%, transparent 64%),
    radial-gradient(circle, transparent 58%, var(--terracotta) 59%, var(--terracotta) 63%, transparent 64%);
  background-size: 190px 190px, 190px 190px;
  background-position: 0 0, 110px 0;
  background-repeat: no-repeat;
  opacity: 0.12;
  transform: rotate(-8deg);
}

.hero h1 {
  font-style: italic;
  max-width: 16ch;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero .button {
  margin-top: 2rem;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-header {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 1rem;
}

.page-header h1 {
  max-width: 20ch;
}

.page-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.section.alt .card {
  background: var(--cream);
}

.card h3 { color: var(--ink); }

/* Services page cards sit directly under the page h1 with no intervening
   h2 section label, so their titles are h2 for correct heading order —
   but visually they should match the same compact size as h3 cards. */
.card h2 { color: var(--ink); font-size: 1.375rem; }

.card .price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--rust);
  margin-top: -0.25rem;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}

.card ul li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.4px solid var(--terracotta);
}

.card a {
  color: var(--rust);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

.card a:hover { text-decoration: underline; }

.card .button { margin-top: 0.5rem; align-self: flex-start; }

/* .card a (above) is meant for plain text links like "See what's included →".
   It was also matching .button anchors and overriding their text to rust —
   invisible against the button's own rust background until hover darkened it.
   This wins on specificity and restores the intended cream button text. */
.card a.button {
  color: var(--cream);
}

/* ==========================================================================
   Prose sections (About, FAQ intro copy)
   ========================================================================== */

.prose p,
.prose ul {
  margin-top: 1.25rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  max-width: var(--prose-width);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.prose h2 {
  margin-top: 2.5rem;
}

.about-intro {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.about-intro p {
  flex: 1;
  min-width: 260px;
}

.about-photo-placeholder {
  width: 220px;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: var(--cream-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
}

.about-photo-placeholder svg {
  color: var(--terracotta);
  opacity: 0.6;
}

.about-photo-placeholder span {
  font-size: 0.875rem;
  font-weight: 600;
}

.prose .button {
  margin-top: 2rem;
}

.note {
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 1.25rem;
}

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

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

.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--rust);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

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

.faq-list details p {
  margin-top: 0.85rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.request-form {
  margin-top: 2.5rem;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.request-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--rust);
}

.request-form .button {
  align-self: flex-start;
  border: none;
}

/* ==========================================================================
   CTA section
   ========================================================================== */

.cta-section {
  text-align: left;
}

.cta-section .container,
.cta-section {
  max-width: var(--content-width);
}

.cta-section h2 { margin-bottom: 0.5rem; }
.cta-section p { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--cream-deep);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
}

.footer-logo span {
  color: var(--terracotta);
  font-style: italic;
}

.footer-brand p:last-child {
  margin-top: 0.75rem;
  color: #c9b8a8;
  max-width: 32ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a,
.footer-contact a {
  text-decoration: none;
  color: var(--cream-deep);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--terracotta);
}

.footer-copy {
  text-align: center;
  padding: 1.25rem 1.5rem 2rem;
  font-size: 0.875rem;
  color: #a89680;
  border-top: 1px solid rgba(251, 246, 239, 0.1);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a.nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
    border-bottom: none;
  }

  .header-inner { position: relative; }

  .hero::before { display: none; }

  .about-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo-placeholder {
    width: 100%;
    max-width: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}
