/* ============================================================
   POLITE FISH — Main Stylesheet
   ============================================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Design tokens */
:root {
  --clr-brand:        #BBDDEA;
  --clr-brand-mid:    #7ABDD4;
  --clr-brand-dark:   #2F8BA6;
  --clr-brand-deeper: #1A6882;
  --clr-accent:       #E8935A;
  --clr-accent-dark:  #C97240;

  --clr-bg:           #FFFFFF;
  --clr-bg-soft:      #F3F9FC;
  --clr-bg-section:   #EAF5FA;

  --clr-text:         #1C3648;
  --clr-text-muted:   #56788A;
  --clr-border:       #CCE8F2;

  --font-sign: 'Pacifico', cursive;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm:   0 1px 4px rgba(27, 46, 56, 0.07);
  --shadow-card: 0 2px 16px rgba(27, 46, 56, 0.09);
  --shadow-lift: 0 8px 32px rgba(27, 46, 56, 0.15);

  --radius:     14px;
  --radius-sm:  8px;
  --radius-btn: 40px;

  --nav-h:       68px;
  --max-w:       1160px;
}

/* Base */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--clr-brand-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clr-brand-deeper); }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  line-height: 1.2;
  font-weight: 700;
  color: var(--clr-text);
}

/* Utilities */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-brand-dark);
  color: #fff;
  border-color: var(--clr-brand-dark);
}
.btn-primary:hover {
  background: var(--clr-brand-deeper);
  border-color: var(--clr-brand-deeper);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 104, 130, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--clr-brand-dark);
  border-color: var(--clr-brand-dark);
}
.btn-outline:hover {
  background: var(--clr-brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-etsy {
  background: #F1641E;
  color: #fff;
  border-color: #F1641E;
}
.btn-etsy:hover {
  background: #d65219;
  border-color: #d65219;
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--clr-brand-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--clr-bg-soft);
  border-color: var(--clr-bg-soft);
  color: var(--clr-brand-deeper);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--clr-text);
}

.nav-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-brand {
  font-family: var(--font-sign);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--clr-text); }

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  text-decoration: none;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: var(--clr-bg-soft); }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: linear-gradient(170deg, var(--clr-bg-soft) 0%, var(--clr-bg) 70%);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(187,221,234,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  width: clamp(90px, 14vw, 130px);
  height: clamp(90px, 14vw, 130px);
  object-fit: contain;
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 4px 20px rgba(47, 139, 166, 0.2));
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-brand-dark);
  margin-bottom: 0.75rem;
  background: rgba(187, 221, 234, 0.35);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.hero-title {
  font-family: var(--font-sign);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  color: var(--clr-text);
}

.hero-tagline {
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--clr-brand-dark);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--clr-text-muted);
  max-width: 530px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-brand-dark);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--clr-bg);
}

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

.feature-card {
  background: var(--clr-bg-soft);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ============================================================
   PLANNERS
   ============================================================ */

.planners {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--clr-bg-section);
}

.planners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

.planner-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.planner-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
  color: inherit;
}

.planner-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-bg-soft);
}

.planner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.planner-card:hover .planner-img-wrap img { transform: scale(1.04); }

/* Placeholder for cards without images */
.planner-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.planner-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--clr-brand-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
}

.planner-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.planner-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.planner-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.planner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.chip {
  background: var(--clr-bg-soft);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  padding: 0.18rem 0.55rem;
  letter-spacing: 0.03em;
}

.planner-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--clr-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
}

/* Connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% / 3 + 1rem);
  right: calc(50% / 3 + 1rem);
  height: 1px;
  background: var(--clr-border);
  z-index: 0;
}

@media (max-width: 640px) { .steps::before { display: none; } }

.step {
  text-align: center;
  padding: 1.25rem 1rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-brand);
  color: var(--clr-brand-deeper);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid var(--clr-bg);
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--clr-brand-dark) 0%, var(--clr-brand-deeper) 100%);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #122838;
  color: rgba(255,255,255,0.65);
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.footer-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.footer-logo-text {
  font-family: var(--font-sign);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--clr-brand-dark); color: #fff; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p { font-size: 0.78rem; }

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

/* ============================================================
   PAGE HEADERS (sub-pages)
   ============================================================ */

.page-hero {
  background: linear-gradient(170deg, var(--clr-bg-soft) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--clr-text-muted);
  font-size: 1rem;
}

/* ============================================================
   CONTENT PAGES (privacy, contact)
   ============================================================ */

.content-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--clr-border);
  letter-spacing: -0.01em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.prose li {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.prose a { color: var(--clr-brand-dark); text-decoration: underline; }
.prose strong { color: var(--clr-text); font-weight: 600; }

.prose .last-updated {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  font-style: italic;
  margin-bottom: 2rem;
  display: block;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-brand-dark);
  box-shadow: 0 0 0 3px rgba(47, 139, 166, 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-info {
  background: var(--clr-bg-soft);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.info-row {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-row h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.2rem;
}

.info-row p, .info-row a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.info-row a:hover { color: var(--clr-brand-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
