/* ============================
   ZenPath – style.css
   Elegant & soft • centered • rounded • responsive
   Palette: blush + lavender + champagne accents
============================ */

/* Google Fonts (headings serif + body sans) */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;600;700&display=swap");

/* CSS Reset (modern, minimal) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25rem; }

/* Color System */
:root {
  /* Core */
  --bg: #fffdfd;               /* near-white */
  --bg-alt: #fff7fb;            /* blush tint */
  --surface: #ffffff;           /* cards */
  --border: #eadff2;            /* soft lavender border */
  --shadow: 0 6px 24px rgba(60, 30, 90, 0.06);

  /* Text */
  --text: #3a3642;              /* deep soft charcoal */
  --muted: #6f6977;             /* muted grey-mauve */

  /* Brand */
  --primary: #b78acb;           /* dusty lavender/mauve */
  --primary-600: #a876c3;
  --primary-700: #9a66bb;
  --secondary: #e8c6d9;         /* blush */
  --accent: #e7d8a6;            /* soft champagne gold */

  /* States */
  --focus: #c7a7dd;
  --success: #68b899;
  --warning: #f2c078;
  --danger:  #e89aa2;

  /* Radius & Layout */
  --radius: 16px;               /* soft rounded corners */
  --radius-pill: 999px;
  --container: 1120px;          /* centered container width */
  --gutter: 1.25rem;
}

/* Base Typography */
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 400;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; margin-bottom: .75rem; }
h3 { font-size: clamp(1.125rem, 2.2vw, 1.375rem); font-weight: 600; margin-bottom: .5rem; }
p  { color: var(--text); }

.muted { color: var(--muted); }

/* Links */
.link {
  color: var(--primary-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:hover { color: var(--primary); }

/* Containers & Layout */
.container {
  width: min(100% - 2*var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 253, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-text {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-weight: 700; letter-spacing: .3px;
  font-size: 1.25rem;
}

.site-nav .nav-list {
  display: flex; align-items: center; gap: 1rem;
  list-style: none; padding: 0; margin: 0;
}
.site-nav a {
  padding: .5rem .85rem;
  border-radius: var(--radius-pill);
  color: var(--text);
}
.site-nav a:hover { background: var(--secondary); }
.site-nav a.active { background: var(--primary); color: white; }

/* Hero (Home only) */
.hero {
  position: relative; overflow: clip;
  min-height: clamp(380px, 46vw, 560px);
  display: grid; place-items: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(90%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 70% 25%, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.15) 60%, transparent 100%),
    linear-gradient(180deg, rgba(238, 225, 244, .55) 0%, rgba(255, 247, 251, .75) 60%, rgba(255,255,255,.95) 100%);
}
.hero-content {
  position: relative; text-align: center;
  padding: 3rem 0;
}
.hero-content h1 {
  color: #2f2735;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
  margin-bottom: .75rem;
}
.hero-content p {
  color: #4a4151;
  max-width: 64ch; margin-inline: auto;
  margin-bottom: 1.25rem;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Page Title (non-hero pages) */
.page-title {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, #fffdfd 0%, #fff7fb 100%);
  border-bottom: 1px solid var(--border);
}
.page-title h1 { margin-bottom: .4rem; }
.page-title p  { color: var(--muted); }

/* Grids & Cards */
.grid {
  display: grid; gap: 1.25rem;
}
.two-col {
  grid-template-columns: 1fr;
}
.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1rem 1rem 1.2rem; }
.card-body p { color: var(--muted); margin-top: .3rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff; border: 1px solid transparent;
  font-weight: 600; letter-spacing: .2px;
  transition: transform .06s ease, background .2s ease;
}
.btn:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary {
  background: #fff; color: var(--primary-700);
  border: 1px solid var(--primary-600);
}
.btn-secondary:hover { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-small { padding: .5rem .9rem; font-size: .95rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Images */
.rounded { border-radius: var(--radius); overflow: hidden; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #fff7fb 0%, #f7f1ff 100%);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid; gap: 1rem; align-items: center;
  grid-template-columns: 1fr auto; padding: 1.25rem 0;
}
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer-nav .nav-list { display: flex; flex-wrap: wrap; gap: .75rem 1rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { padding: .25rem .5rem; border-radius: var(--radius-pill); }
.footer-nav a:hover { background: var(--secondary); }
copyright, .copyright { color: var(--muted); font-size: .95rem; grid-column: 1 / -1; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { justify-self: center; }
}

/* Forms */
.contact-form {
  display: grid; gap: .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 3px solid var(--focus);
  border-color: var(--primary-600);
  background: #fff;
}
.form-note { color: var(--muted); font-size: .95rem; }

.contact-side .stack > * + * { margin-top: .5rem; }

/* Prose (privacy, long text) */
.prose {
  max-width: 70ch;
}
.prose h2 { margin-top: 1.25rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { margin: .6rem 0 1rem; }

/* Utilities */
.grid.two-col {
  grid-template-columns: 1.2fr .8fr;
}
@media (max-width: 900px) {
  .grid.two-col { grid-template-columns: 1fr; }
}

.cards-3 { gap: 1.1rem; }
.cards-4 { gap: 1.1rem; }

/* Focus & Accessibility */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Optional: subtle selection color */
::selection {
  background: #f0e3ff;
  color: #2e2540;
}
