/* ==========================================================================
   Pocket Marketing — website stylesheet
   Design source: Brand essence directions/Design System.dc.html + Website.dc.html
   Direction: "Frost & Rule", deep green bookends. Teal leads, lime is the
   accent on dark backgrounds only, coral is for offers/errors only.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Bitter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Core palette ---- */
  --teal: #196164;          /* primary: buttons, links, headers */
  --teal-hover: #113132;    /* hover / press state for teal */
  --lime: #C4F500;          /* accent: actions on dark backgrounds only */
  --lime-hover: #D4FF33;
  --deep-green: #113132;    /* dark bookend sections: hero, contact, footer base */
  --ink: #1B1A18;           /* body text on light */
  --slate: #76726B;         /* secondary text */
  --frost: #EBF3EE;         /* page background */
  --surface: #FFFFFF;       /* cards */
  --off-white: #F8F8F8;     /* alternate bands, table rows */
  --coral: #E25B45;         /* offers and form errors only */
  --coral-text: #B23A28;    /* coral text on light backgrounds (AA-readable) */
  --coral-tint-bg: #FDEAE7;
  --coral-tint-border: #F3C3B9;
  --green-tint-bg: #E7F3EC;
  --green-tint-border: #BEDCCB;

  /* text on colour */
  --on-teal: #DCEDE4;
  --on-deep-green: #C7DBD3;
  --on-deep-green-muted: #8FAFA6;
  --on-lime: #113132;

  /* borders */
  --border: #E4E1DA;
  --border-strong: #D7D3CA;
  --border-disabled: #D7D3CA;

  /* focus */
  --focus-ring: 0 0 0 3px rgba(25, 97, 100, 0.15);
  --focus-ring-on-dark: 0 0 0 3px rgba(196, 245, 0, 0.35);

  /* shadows */
  --shadow-card-hover: 0 6px 20px rgba(27, 26, 24, 0.08);
  --shadow-button-hover: 0 4px 12px rgba(25, 97, 100, 0.25);

  /* type */
  --font-heading: 'Rubik', system-ui, sans-serif;
  --font-body: 'Bitter', Georgia, serif;

  /* spacing */
  --space-4: 4px; --space-8: 8px; --space-12: 12px; --space-16: 16px;
  --space-24: 24px; --space-32: 32px; --space-40: 40px; --space-64: 64px; --space-80: 80px;

  --container-max: 1200px;
  --gutter: 24px;

  /* radii */
  --radius-sm: 12px;   /* buttons, inputs, chips */
  --radius-md: 16px;   /* cards, feature blocks */
  --radius-pill: 9999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; letter-spacing: -0.02em; }
p { font-family: var(--font-body); margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-80);
  padding-bottom: var(--space-80);
}
.section-tight { padding-top: var(--space-64); padding-bottom: var(--space-80); }

@media (max-width: 1024px) {
  .section, .section-tight { padding-top: var(--space-64); padding-bottom: var(--space-64); }
}
@media (max-width: 640px) {
  .section, .section-tight { padding-top: var(--space-40); padding-bottom: var(--space-40); }
}

.bg-deep-green { background: var(--deep-green); color: var(--frost); }
.bg-surface { background: var(--surface); }
.bg-teal { background: var(--teal); color: var(--on-teal); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }

/* ---- Type scale ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.bg-deep-green .eyebrow { color: var(--lime); }

.display {
  font-size: 64px; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em;
}
.headline {
  font-size: 48px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em;
}
.section-title {
  font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em;
}
.subhead { font-size: 22px; line-height: 1.35; font-weight: 600; }
.body-lg { font-family: var(--font-body); font-size: 19px; line-height: 1.75; }
.body { font-family: var(--font-body); font-size: 17px; line-height: 1.75; color: var(--ink); }
.body-muted { font-family: var(--font-body); font-size: 17px; line-height: 1.75; color: var(--slate); }
.small { font-size: 15px; line-height: 1.6; }
.caption { font-size: 13px; line-height: 1.5; color: var(--slate); }

@media (max-width: 1024px) {
  .display { font-size: 48px; }
  .headline { font-size: 38px; }
  .section-title { font-size: 28px; }
}
@media (max-width: 640px) {
  .display { font-size: 38px; }
  .headline { font-size: 32px; }
  .section-title { font-size: 26px; }
  .body-lg { font-size: 17px; }
}

/* ==========================================================================
   Site banner — hidden by default (no text = no banner); js/edit-mode.js
   decides whether to show it. Sits above the sticky header, scrolls away
   with the page.
   ========================================================================== */
.site-banner {
  background: var(--coral);
  color: #FFFFFF;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 10px 20px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.logo-link { display: flex; text-decoration: none; }
.logo-link img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  flex-wrap: wrap;
}
.nav-links a:not(.btn) {
  color: #4A4740;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 180ms var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--teal-hover); }
.nav-links a:not(.btn)[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--teal);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }
  .nav-links.is-open { display: flex; }
  .nav-row { flex-wrap: wrap; }
  .nav-links .btn { align-self: flex-start; }
  .account-menu { align-self: flex-start; }
}

/* ==========================================================================
   Account menu — customer login/signup, and (when logged in as admin) the
   edit-website toggle. Populated by js/account.js; the HTML on each page
   is just the toggle button and an empty panel.
   ========================================================================== */
.account-menu { display: inline-flex; }
.account-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.account-toggle:hover { border-color: var(--teal); color: var(--teal); }
.account-toggle svg { width: 20px; height: 20px; display: block; }

/* Positioned against .site-header (sticky, so it's a positioning context)
   rather than .account-menu itself — the toggle can sit anywhere in the
   nav, including wrapping onto its own line at in-between widths, and the
   panel still drops from the header's bottom-right edge, not wherever the
   button happened to land. */
.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: var(--gutter);
  width: 320px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 20px;
  z-index: 40;
}
.account-panel[hidden] { display: none; }

.account-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--frost);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.account-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  color: var(--slate);
}
.account-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

.account-form { display: flex; flex-direction: column; gap: 10px; }
.account-form[hidden] { display: none; }
.account-form .checkbox-field { color: var(--ink); font-size: 14px; }
.account-message { font-size: 13px; color: var(--coral-text); margin: 0; }
.account-success-message { font-size: 13px; color: var(--teal-hover); margin: 0; }
.account-resend { font-size: 13px; text-align: left; }

.account-greeting { font-weight: 600; margin: 0 0 12px; }
.account-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 12px 0;
  gap: 12px;
}
.account-loading { color: var(--slate); font-size: 14px; text-align: center; margin: 0; }

@media (max-width: 480px) {
  .account-panel { right: -60px; width: calc(100vw - 40px); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 180ms var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn-primary {
  background: var(--teal);
  color: #FFFFFF;
  padding: 13px 22px;
}
.btn-primary:hover { background: var(--teal-hover); box-shadow: var(--shadow-button-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
  padding: 12px 21px;
}
.btn-secondary:hover { background: var(--green-tint-bg); border-color: var(--teal-hover); color: var(--teal-hover); }

.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  padding: 15px 24px;
}
.btn-lime:hover { background: var(--lime-hover); transform: translateY(-1px); }
.btn-lime:focus-visible { box-shadow: var(--focus-ring-on-dark); }

.btn-outline-dark {
  background: transparent;
  border-color: #4A7370;
  color: var(--frost);
  padding: 15px 24px;
  font-weight: 500;
}
.btn-outline-dark:hover { background: var(--teal); }

.btn-lg { padding: 15px 24px; font-size: 17px; }
.btn-block { width: 100%; }

.text-link {
  color: var(--teal);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--teal-hover); border-color: var(--teal-hover); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.card-hover:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.card-dark {
  background: var(--deep-green);
  color: var(--frost);
  border-radius: var(--radius-md);
  padding: var(--space-24);
}
.card-dark p { color: var(--on-deep-green); }

.card-selected { border-color: var(--teal); position: relative; }
.pill-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.pill-badge-offer { background: var(--coral); }

.icon-tile {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--frost);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile img { width: 24px; height: 24px; border-radius: 6px; }
.card-dark .icon-tile { background: var(--teal); }

/* ---- Photo slot placeholders ---- */
.photo-slot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--frost);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--space-24);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.row {
  display: flex;
  gap: var(--space-32);
  align-items: center;
}
.row-reverse { flex-direction: row-reverse; }
@media (max-width: 780px) {
  .row, .row-reverse { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  gap: var(--space-48, 48px);
  align-items: center;
  padding-top: 72px;
  padding-bottom: var(--space-80);
}
.hero-copy { flex: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-media {
  position: relative;
  width: 340px;
  height: 400px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---- Hero banner pills (added live by js/hero-banner.js when there's
   more than one active banner) ---- */
.hero-pills {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-pill {
  width: 24px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 180ms var(--ease);
}
.hero-pill:hover { background: rgba(255, 255, 255, 0.7); }
.hero-pill.is-active { background: rgba(255, 255, 255, 0.95); }
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}
@media (max-width: 780px) {
  .hero { flex-direction: column; align-items: stretch; padding-top: var(--space-40); }
  .hero-media { width: 100%; height: 260px; }
}

.trust-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #4A4740;
  padding-top: 18px;
  padding-bottom: 18px;
}
.trust-bar .star { color: var(--teal); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: flex; gap: 12px; }
@media (max-width: 640px) { .form-row { flex-direction: column; } }

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-teal);
}
.on-light .form-label { color: var(--ink); }

.form-input,
.form-textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 16px;
  font-family: var(--font-heading);
  background: var(--teal);
  color: var(--frost);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--on-teal); opacity: 1; }
.form-textarea { min-height: 96px; resize: vertical; }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  box-shadow: var(--focus-ring-on-dark);
}

/* Light-background variant (contact / review page cards use dark hero panels,
   but any form dropped on a white card should read like the specimen sheet) */
.on-light .form-input,
.on-light .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}
.on-light .form-input::placeholder,
.on-light .form-textarea::placeholder { color: #B0ADA6; }
.on-light .form-input:focus,
.on-light .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: var(--focus-ring);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--on-deep-green);
}
.checkbox-field input {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  accent-color: var(--teal);
}

.form-note { font-size: 14px; color: var(--on-deep-green-muted); }
.on-light .form-note { color: var(--slate); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card .btn { margin-top: auto; text-align: center; }
.price-name { font-size: 22px; font-weight: 600; }
.price-amount { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--slate); }
.price-includes { font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: #4A4740; }
.price-includes span { display: block; }
.price-excludes { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--slate); }

.compare-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.compare-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-weight: 400;
}
.compare-table thead th { background: var(--off-white); font-weight: 600; }
.compare-table thead th:first-child { font-weight: 400; color: var(--slate); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-yes { color: var(--teal); }
.compare-no { color: var(--slate); }

/* ==========================================================================
   Steps
   ========================================================================== */
.step-number {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--deep-green);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--frost);
}
.cta-band p, .cta-band span { color: var(--frost); }
.cta-band .body-muted { color: var(--on-deep-green); }
@media (max-width: 640px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Badges / notices
   ========================================================================== */
.badge-offer {
  display: inline-block;
  background: var(--coral);
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.check-note {
  background: var(--coral-tint-bg);
  border: 1px solid var(--coral-tint-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #4A4740;
}
.check-flag {
  color: var(--coral-text);
  font-weight: 600;
}

/* ==========================================================================
   Blog cards
   ========================================================================== */
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.blog-card .photo-slot { border-radius: 0; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.blog-meta { font-size: 13px; color: var(--slate); }
.blog-title { font-size: 20px; font-weight: 600; line-height: 1.3; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item { display: flex; flex-direction: column; gap: 8px; }
.faq-q { font-size: 20px; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--teal); color: var(--on-teal); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-32);
  padding-top: 48px;
  padding-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.footer-col img { height: 30px; width: auto; align-self: flex-start; margin-bottom: 5px; }
.footer-col-heading { color: #FFFFFF; font-weight: 500; }
.footer-col a { color: var(--on-teal); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col a.footer-highlight { color: var(--lime); }
.footer-about { max-width: 34ch; font-family: var(--font-body); font-size: 15px; line-height: 1.75; }

.footer-bottom { background: var(--deep-green); color: var(--on-deep-green-muted); }
.footer-bottom .container {
  padding-top: 16px; padding-bottom: 16px;
  font-size: 13px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

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

/* ==========================================================================
   Utility
   ========================================================================== */
.stack { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.gap-32 { gap: 32px; }
.max-58 { max-width: 58ch; }
.max-62 { max-width: 62ch; }
.max-46 { max-width: 46ch; }
.wrap { flex-wrap: wrap; }
.mt-4 { margin-top: 4px; }

.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;
}

@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Click-to-edit (admin only — added live by js/edit-mode.js when logged in)
   ========================================================================== */
[data-key].editable-text {
  outline: 2px dashed transparent;
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
  transition: outline-color 150ms ease, background-color 150ms ease;
}
[data-key].editable-text:hover {
  outline-color: var(--lime);
  background-color: rgba(196, 245, 0, 0.12);
}
[data-key].editable-text:focus {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  background-color: rgba(25, 97, 100, 0.06);
}
[data-key].editable-saving { opacity: 0.6; }
[data-key].editable-saved { outline: 2px solid var(--teal) !important; background-color: rgba(25, 97, 100, 0.08) !important; }
[data-key].editable-error { outline: 2px solid var(--coral) !important; background-color: var(--coral-tint-bg) !important; }

/* ---- Click-to-upload photos (admin only) ---- */
.photo-slot.editable { position: relative; cursor: pointer; }
.photo-slot.editable::after {
  content: "Click to change photo";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background: rgba(17, 49, 50, 0.6);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}
.photo-slot.editable:hover::after { opacity: 1; }
.photo-slot.editable.image-uploading::after { content: "Uploading…"; opacity: 1; }
.photo-slot.editable.image-error::after { content: "Upload failed — try again"; opacity: 1; background: rgba(178, 58, 40, 0.85); }
