/* ==========================================================================
   Fluid Structure — Shared Styles
   Brand: Palette #1524 — deep teal, bright teal, off-white, yellow, amber
   ========================================================================== */

:root {
  /* Color palette — matched to Color Palette #1524 */
  --color-sage: #00a2ad;        /* bright teal */
  --color-sage-dark: #014656;   /* deep dark teal */
  --color-sage-light: #66c8ce;  /* lighter teal */
  --color-cream: #f9f7f6;       /* off-white */
  --color-cream-dark: #ece8e7;  /* deeper off-white */
  --color-clay: #f6a801;        /* golden amber */
  --color-clay-dark: #c07800;   /* deeper amber */
  --color-yellow: #fdd65d;      /* bright yellow accent */
  --color-charcoal: #014656;    /* deep teal for text/footer */
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  /* Spacing / shape */
  --radius-soft: 18px;
  --radius-pill: 999px;
  --max-width: 1140px;
  --shadow-soft: 0 12px 30px rgba(1, 70, 86, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 20px; /* 16px default × 1.25 = 20px — scales all rem/em units up 25% */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-sage-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-clay-dark);
  margin-bottom: 0.75em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background-color: var(--color-clay);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-clay-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

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

.btn-secondary:hover {
  background-color: var(--color-sage-dark);
  color: var(--color-white);
}

.btn-outline-light {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-sage-dark);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(249, 247, 246, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-cream-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 1.09rem;
  font-weight: 500;
  color: var(--color-charcoal);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-sage-dark);
}

.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--color-clay);
  margin-top: 4px;
}

.nav-links a.nav-cta.active::after {
  display: none;
}

.nav-cta {
  background-color: var(--color-sage-dark);
  color: var(--color-white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--color-sage-dark);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 0;
  text-align: center;
  background-color: var(--color-sage-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 70, 86, 0.80) 0%, rgba(0, 162, 173, 0.62) 55%, rgba(246, 168, 1, 0.50) 100%);
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

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

.hero h1 { color: var(--color-white); }

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { min-height: 520px; padding: 90px 0; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #014656 0%, #00a2ad 55%, #66c8ce 100%);
  color: var(--color-white);
}

.page-header h1 { color: #f7f4ea; }
.page-header .eyebrow { color: rgba(255,255,255,0.75); }
.page-header .lead { color: rgba(255,255,255,0.9); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }

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

.section-dark {
  background-color: var(--color-sage-dark);
  color: var(--color-white);
}

.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-intro {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}

/* ---------- Cards / Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.class-card-equal {
  display: flex;
  flex-direction: column;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-soft);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  cursor: default;
}

.card:hover {
  background: linear-gradient(135deg, #014656 0%, #00a2ad 55%, #66c8ce 100%);
  box-shadow: 0 16px 48px rgba(1, 70, 86, 0.35);
  transform: translateY(-4px);
}

.card:hover h2,
.card:hover h3,
.card:hover h4,
.card:hover p,
.card:hover li,
.card:hover .eyebrow {
  color: var(--color-white);
}

.card:hover .eyebrow {
  opacity: 0.8;
}

.card-testimonial:hover {
  background: linear-gradient(135deg, #f6a801 0%, #ec8f7c 55%, #f4b3c2 100%);
  box-shadow: 0 16px 48px rgba(236, 143, 124, 0.35);
}

.card-testimonial:hover p,
.card-testimonial:hover strong {
  color: var(--color-white) !important;
}

.card-lg p,
.card-lg li,
.card-lg .eyebrow {
  font-size: 17px;
}

.card p,
.card li {
  font-size: 17px;
}

.about-story-text p {
  font-size: 17px;
}

.card .icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  color: var(--color-clay);
}

.btn-pricing-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-white);
  background-color: var(--color-sage);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-pricing-pill:hover {
  background: linear-gradient(135deg, #f6a801 0%, #ec8f7c 55%, #f4b3c2 100%);
  transform: translateY(-2px);
}

.pricing-table tr:target td {
  background-color: rgba(246, 168, 1, 0.18);
  transition: background-color 0.4s ease;
}

.placeholder-box {
  border: 2px dashed var(--color-sage-light);
  border-radius: var(--radius-soft);
  background-color: rgba(0, 162, 173, 0.06);
  padding: 40px;
  text-align: center;
  color: var(--color-sage-dark);
  font-size: 0.95rem;
}

/* ---------- Pricing table ---------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.pricing-table th, .pricing-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-cream-dark);
  font-size: 1.25em;
}

.pricing-table td {
  font-weight: 400;
  font-size: 17px;
}

.pricing-table th {
  background-color: var(--color-sage-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5625em;
  letter-spacing: 0.02em;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-note {
  font-size: 0.85rem;
  color: var(--color-clay-dark);
  margin-top: 10px;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background-color: var(--color-white);
  border-radius: var(--radius-soft);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  font-style: italic;
}

.testimonial .who {
  margin-top: 16px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-sage-dark);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  background-color: var(--color-clay);
  color: var(--color-white);
  padding: 70px 0;
}

.cta-banner h2 { color: var(--color-white); }

/* ---------- Forms ---------- */
.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-cream-dark);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-sage-light);
}

/* ---------- Footer ---------- */
/* ---------- Shop ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.shop-card {
  background-color: var(--color-white);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
}

.shop-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.shop-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-body h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.shop-card-body p {
  color: #555;
  font-size: 17px;
  flex: 1;
}

.shop-card-body .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.shop-storefront-banner {
  background-color: var(--color-sage-dark);
  border-radius: var(--radius-soft);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.shop-storefront-banner .btn {
  flex-shrink: 0;
}

.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-grid div:first-child h4 {
  font-size: 1.25rem;
  text-align: center;
}

.footer-grid div:first-child p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 1;
  text-align: center;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; opacity: 0.85; font-size: 0.95rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }

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

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

  .nav-toggle { display: flex; }

  .story-img-float {
    float: none !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
  }
}

@media (max-width: 600px) {
  html { font-size: 16px; }

  .page-header h1 { font-size: 1.9rem; }
  .page-header .lead { font-size: 0.95rem; }

  .card-lg p,
  .card-lg li,
  .card-lg .eyebrow {
    font-size: 0.9rem;
  }

  .card-lg h3 { font-size: 1.15rem; }

  .pricing-table th,
  .pricing-table td {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}
