/* ==========================================================
   YJP North Peninsula — styles
   ----------------------------------------------------------
   To tweak colors: edit the variables in :root below.
   To tweak fonts: change the font-family lines.
   ========================================================== */

:root {
  /* ----------------------------------------------------------
     YJP brand palette — Teal & Oat.
     (Variable names still say "teal" / "blush" — the values
     are deep teal + warm oat neutrals. Don't rename the
     variables; just change values here to re-skin the site.)
     ---------------------------------------------------------- */
  --color-teal: #1f5f62;         /* primary brand — logo teal */
  --color-teal-dark: #154548;    /* darker teal, for hovers */
  --color-teal-soft: #2a787c;    /* mid teal, for eyebrows + accents */
  --color-blush: #e8dfcf;        /* warm oat (was blush pink) */
  --color-blush-deep: #d6cab2;   /* deeper oat, for hovers */
  --color-cream: #faf7f1;        /* page background — soft cream */
  --color-cream-alt: #efe7d6;    /* alternating section bg — warm oat */
  --color-text: #1a1a1a;
  --color-text-soft: #4a4a4a;
  --color-border: #dccfb6;       /* warm oat border */

  /* Aliases so existing rules keep working without rename churn.
     Anywhere the CSS used to say "navy" now means deep teal.
     Anywhere it used to say "gold" now means soft teal accent. */
  --color-navy: var(--color-teal);
  --color-navy-dark: var(--color-teal-dark);
  --color-gold: var(--color-teal-soft);
  --color-gold-light: var(--color-blush);

  /* Spacing */
  --container-max: 1140px;
  --section-pad: 6rem;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold);
}

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

.centered {
  text-align: center;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 620px;
  margin-bottom: 2rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto 3rem;
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-cream);
  border-color: var(--color-navy);
}

.btn-primary:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-cream);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-cream);
}

.btn-small {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.link {
  color: var(--color-navy);
  font-weight: 600;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--color-gold);
  font-weight: 400;
  font-style: italic;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-cta {
  background: var(--color-navy);
  color: var(--color-cream) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-navy-dark);
}

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

.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-alt) 100%);
}

.hero-inner {
  max-width: 820px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

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

.section {
  padding: var(--section-pad) 0;
}

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

/* ---------- Pillars (about) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pillar {
  background: #ffffff;
  padding: 2rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31, 95, 98, 0.12);
}

.pillar-icon {
  font-size: 1.75rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.pillar p {
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

/* ---------- Events ---------- */

.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31, 95, 98, 0.12);
}

.event-date {
  flex-shrink: 0;
  width: 64px;
  height: 76px;
  background: var(--color-navy);
  color: var(--color-cream);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

.event-month {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--color-gold-light);
}

.event-day {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.event-body {
  flex: 1;
}

.event-body h3 {
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.event-body p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ---------- Stripe Buy Button ---------- */

.stripe-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* ---------- Luma calendar embed ---------- */

.luma-embed {
  max-width: 720px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 95, 98, 0.08);
}

.luma-embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

@media (max-width: 600px) {
  .luma-embed iframe {
    height: 560px;
  }
}

/* ---------- Instagram placeholder ---------- */

.instagram-placeholder {
  margin-top: 2rem;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.ig-tile {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--color-cream-alt), var(--color-border));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-gold);
  opacity: 0.5;
}

@media (max-width: 600px) {
  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ig-tile:nth-child(n+7) {
    display: none;
  }
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-teal);
  font-family: var(--font-serif);
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.testimonial cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-list strong {
  color: var(--color-navy);
  display: inline-block;
  min-width: 90px;
}

.contact-form {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

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

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------- Newsletter band ---------- */

.newsletter {
  background: var(--color-cream-alt);
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 260px;
}

.newsletter-text h3 {
  margin-bottom: 0.25rem;
}

.newsletter-text p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-form input {
  font-family: var(--font-sans);
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--color-text);
  min-width: 140px;
  transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}

@media (max-width: 720px) {
  .newsletter-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

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

.site-footer {
  background: var(--color-navy);
  color: var(--color-cream);
  padding: 3.5rem 0 2rem;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-cream);
}

.footer-tag {
  color: var(--color-gold-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-cream);
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-links a:hover {
  color: var(--color-gold-light);
  opacity: 1;
}

.footer-fine {
  width: 100%;
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 223, 207, 0.2);
  font-size: 0.85rem;
  color: var(--color-gold-light);
  opacity: 0.8;
}

/* ---------- Mobile nav fallback ---------- */

@media (max-width: 720px) {
  .nav {
    gap: 1rem;
  }
  .nav a:not(.nav-cta) {
    display: none;
  }
  :root {
    --section-pad: 4rem;
  }
}
