/* =========================================================
   Handwriting for Friends — style.css
   Mobile-first layout. Deep blue + warm yellow palette.
   Sections alternate light and dark for easy scanning.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --blue-950: #061a33;
  --blue-900: #0a2444;
  --blue-800: #0e2f57;
  --blue-700: #144272;
  --yellow: #ffc94a;
  --yellow-600: #f0b52c;
  --yellow-soft: #ffe6ad;
  --paper: #f6f7fb;
  --white: #ffffff;
  --ink: #0d1b2a;
  --ink-soft: #3e4c59;
  --line: rgba(13, 27, 42, 0.12);
  --shadow: 0 10px 24px rgba(6, 26, 51, 0.10);
  --shadow-lg: 0 18px 44px rgba(6, 26, 51, 0.20);
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 64px;
  --maxw: 1080px;
}

/* ---------- Base reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Sections sit under the sticky header when jumped to */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

/* Global focus ring — visible on both light and dark sections */
:focus-visible {
  outline: 3px solid var(--yellow-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.section--dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--yellow);
  color: var(--blue-950);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 18px;
}

.section { padding: clamp(2.5rem, 8vw, 4.75rem) 0; }
.section--tight { padding-block: clamp(2rem, 6vw, 3.25rem); }

.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--blue-900); color: #eaf0f8; }

.section-head { max-width: 44rem; margin-bottom: 1.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1rem;
}
.section--dark .section-lede { color: rgba(234, 240, 248, 0.82); }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 201, 74, 0.18);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow--dark {
  background: rgba(20, 66, 114, 0.10);
  color: var(--blue-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.92rem; }

.btn--yellow {
  background: var(--yellow);
  color: var(--blue-950);
  box-shadow: 0 8px 18px rgba(255, 201, 74, 0.28);
}
.btn--yellow:hover { background: var(--yellow-600); }

.btn--outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: transparent;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.10); border-color: #ffffff; }

.btn--blue {
  background: var(--blue-700);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(20, 66, 114, 0.28);
}
.btn--blue:hover { background: var(--blue-800); }

/* ---------- 1. Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 32, 63, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  max-width: 58%;
}
.brand-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.18);
}

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(20, 66, 114, 0.85) 0%, transparent 60%),
    linear-gradient(180deg, var(--blue-900) 0%, var(--blue-950) 100%);
}
.hero-glow {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 74, 0.30) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: clamp(2.25rem, 9vw, 4.25rem) clamp(2.25rem, 8vw, 4rem);
  max-width: 48rem;
}
.hero-title {
  font-size: clamp(1.75rem, 7vw, 3.05rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 1rem;
}
.hero-sub {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-950);
  font-weight: 700;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  box-shadow: 0 10px 22px rgba(255, 201, 74, 0.22);
}
.hero-text {
  color: rgba(234, 240, 248, 0.88);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(234, 240, 248, 0.75);
}
.hero-points li { display: flex; align-items: center; gap: 0.4rem; }
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ---------- 3. Service cards ---------- */
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--yellow-soft);
  font-size: 1.35rem;
}
.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.card-text {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}
.card-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.price-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--blue-900);
  font-weight: 700;
  font-size: 0.95rem;
}
.price-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- 4. Branch badges ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.15rem;
}
.badge {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
}
.branches-note {
  text-align: center;
  color: rgba(234, 240, 248, 0.78);
  font-size: 0.93rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* ---------- 5. Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.shot { margin: 0; }

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

/* Placeholder "paper" visual — no images needed, loads instantly */
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 27, 42, 0.10);
  background-color: #fffdf6;
  background-image:
    linear-gradient(90deg, transparent 0 34px, rgba(200, 90, 90, 0.22) 34px 35px, transparent 35px),
    repeating-linear-gradient(180deg, transparent 0 24px, rgba(20, 66, 114, 0.13) 24px 25px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot-btn:hover .ph { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(6, 26, 51, 0.14); }

.ph-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ph-label {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(10, 36, 68, 0.82);
  color: #ffffff;
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: center;
}
.ph--large { aspect-ratio: 4 / 5; width: 100%; max-height: 60vh; }
.ph--large .ph-label { font-size: 0.85rem; padding: 0.45rem 0.9rem; }

.shot-caption {
  display: block;
  padding: 0.55rem 0.15rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}

.gallery-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 201, 74, 0.22);
  border: 1px solid rgba(240, 181, 44, 0.5);
  color: var(--blue-900);
  font-size: 0.92rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 26, 51, 0.9);
  overflow-y: auto;
}
.lightbox[hidden] { display: none; }

.lightbox-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-lg);
}
.lightbox-title {
  font-size: 1.05rem;
  padding-right: 2.5rem;
  margin-bottom: 0.75rem;
}
.lightbox-caption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-900);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--blue-700); }

/* ---------- 6. Pricing ---------- */
.price-list {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.price-row__label {
  font-weight: 500;
  font-size: 0.97rem;
  color: #ffffff;
}
.price-row__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(234, 240, 248, 0.7);
}
.price-row__value {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--yellow);
  text-align: right;
  white-space: nowrap;
}
.price-row__value small {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(234, 240, 248, 0.75);
}

.fixed-note {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 1.02rem;
  line-height: 1.45;
}
.fixed-sub {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(234, 240, 248, 0.78);
}

/* ---------- 7. Steps ---------- */
.steps {
  display: grid;
  gap: 0.9rem;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 3.6rem;
  box-shadow: var(--shadow);
}
.step-num {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-950);
  font-weight: 700;
}
.step-title {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.step-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- 8. Areas ---------- */
.area-chips {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.area-chip {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
}
.area-copy p { color: rgba(234, 240, 248, 0.86); font-size: 0.97rem; }
.area-copy strong { color: var(--yellow); }
.area-small {
  margin-top: 0.7rem;
  font-size: 0.87rem;
  color: rgba(234, 240, 248, 0.68);
}

/* ---------- 9. Reviews ---------- */
.reviews { display: grid; gap: 0.9rem; }
.review-card {
  background: var(--white);
  border: 1px dashed rgba(240, 181, 44, 0.9);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.review-badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(20, 66, 114, 0.10);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.review-text {
  font-size: 0.97rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.review-meta { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- 10. FAQ accordion ---------- */
.faq { display: grid; gap: 0.6rem; }
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.faq-heading { margin: 0; font-size: 1rem; }
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.faq-btn:hover { background: rgba(255, 255, 255, 0.06); }
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-950);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-btn[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-panel {
  padding: 0 1rem 1rem;
}
.faq-panel p {
  font-size: 0.94rem;
  color: rgba(234, 240, 248, 0.84);
}

/* ---------- 11. Order form ---------- */
.order-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field input,
.field select,
.form-fallback textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c6d0db;
  border-radius: 12px;
  background: #fdfdff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem; /* keeps iOS from zooming on focus */
}
.field input::placeholder { color: #7b8895; }
.field input:focus,
.field select:focus,
.form-fallback textarea:focus {
  border-color: var(--blue-700);
  outline: 3px solid rgba(20, 66, 114, 0.22);
  outline-offset: 0;
}
.form-actions { margin-top: 0.25rem; }
.form-actions .btn { width: 100%; }
.form-hint {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-align: center;
}
.form-status {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-700);
  min-height: 0;
}
.form-status:empty { display: none; }
.form-status.is-warn { color: #8a4b00; }
.form-fallback {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.form-fallback[hidden] { display: none; }
.form-fallback label { font-size: 0.88rem; font-weight: 600; }
.form-fallback textarea { font-size: 0.92rem; resize: vertical; line-height: 1.5; }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--blue-950);
  color: rgba(234, 240, 248, 0.82);
  padding: 2.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner { display: grid; gap: 0.45rem; }
.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}
.footer-text { font-size: 0.9rem; }
.footer-line { font-size: 0.95rem; }
.footer-line a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 201, 74, 0.5);
}
.footer-line a:hover { border-bottom-color: var(--yellow); }
.footer-areas { font-size: 0.87rem; color: rgba(234, 240, 248, 0.7); }
.footer-copy { font-size: 0.85rem; margin-top: 0.35rem; }

/* ---------- Floating mobile order button ---------- */
.fab {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-950);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(6, 26, 51, 0.35);
}

/* Keep the floating button from covering footer text on phones */
@media (max-width: 720px) {
  .site-footer { padding-bottom: 6.5rem; }
}

/* ---------- Reveal-on-scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .order-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.6rem; }
  .form-actions,
  .form-status,
  .form-fallback { grid-column: 1 / -1; }
  .form-actions .btn { width: auto; }
  .form-hint { text-align: left; }
}

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
  .shot-caption { font-size: 0.92rem; }
  .hero-actions .btn { min-height: 52px; }
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding: 3.5rem 1.1rem 1.15rem; }
  .step-num { top: 1.1rem; left: 1.1rem; }
  .price-row { align-items: center; }
  .fab { display: none; } /* the header button covers desktop */
  .site-header .btn { min-height: 46px; }
}

/* ---------- Reduced motion: no animation, no smooth scroll ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .shot-btn:hover .ph { transform: none; }
}
