/* miniskips.co.za styles. Mobile first. Tokens from design/design.md. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --brand: #0F766E;
  --brand-dark: #0B5F58;
  --cta: #F5B301;
  --cta-dark: #DDA100;
  --ink: #111827;
  --body: #374151;
  --muted: #6B7280;
  --border: #E5E7EB;
  --field-border: #9CA3AF;
  --tint: #F0FDFA;
  --surface: #F8FAFC;
  --radius: 16px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Sticky top: sale banner and header stay visible; breadcrumbs scroll as normal */
.site-top { position: sticky; top: 0; z-index: 50; background: #fff; }
html { scroll-padding-top: 96px; }

/* Sale banner */
.sale-banner {
  background: var(--ink); color: #fff;
  font-size: 14px; text-align: center; padding: 7px 16px;
}
.sale-banner a { color: var(--cta); font-weight: 600; }
@media (max-width: 479px) {
  .sale-banner { font-size: 13px; padding: 5px 8px; white-space: nowrap; }
  .sb-long { display: none; }
}

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.wordmark-text { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.wordmark-text span { font-weight: 600; color: var(--brand); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--body); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--brand); text-decoration: underline; }

/* Breadcrumb */
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 14px 0 0; font-size: 14px; color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lead { font-size: 18px; }
.small { font-size: 14px; color: var(--muted); }
.prose > p, .prose > ul, .prose > ol, .prose > h1, .prose > h2, .prose > h3, .prose > .faq-item, .prose > form { max-width: 760px; }
.prose ul { padding-left: 1.2em; }
.prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }

/* Hero: copy, then form, then points on mobile. Two columns on desktop. */
.hero { background: var(--tint); padding: 32px 0 40px; }
.hero-grid { display: grid; gap: 24px; grid-template-areas: "copy" "form" "points"; }
.hero-copy { grid-area: copy; }
.hero-copy p { font-size: 18px; margin-bottom: 0; }
.hero-copy > p + *, .hero-copy > hr + * { margin-top: 20px; }
.hero-copy img { display: block; }
.hero-form { grid-area: form; }
.hero-side { grid-area: points; align-self: start; min-width: 0; }
.hero-side > * { margin: 0; }
.hero-side > * + * { margin-top: 20px; }
.hero-side img { display: block; }
.hero-points { list-style: none; padding: 0; margin: 0; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.hero-points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 20px 20px; }

/* Cards and grids */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.steps .step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.size-card .price { font-size: 20px; font-weight: 700; color: var(--brand); margin: 0; }

.city-links a {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px;
  font-size: 18px; font-weight: 600; text-decoration: none; min-height: 56px;
}
.city-links a:hover { border-color: var(--brand); background: var(--tint); }

.accept-list h3 { font-size: 18px; }

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
/* Comparison table: stacked cards on phones so every column stays visible */
@media (max-width: 599px) {
  .header-inner { padding-top: 4px; padding-bottom: 4px; gap: 0 16px; }
  .wordmark { min-height: 40px; }
  .wordmark-text { font-size: 20px; }
  .site-nav { gap: 0 16px; font-size: 14px; }
  .site-nav a { padding: 6px 0; }
  html { scroll-padding-top: 126px; }
  table.stack { min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: block; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 4px 0; }
  table.stack th[scope="row"], table.stack td { display: grid; grid-template-columns: 120px 1fr; gap: 8px; border: 0; padding: 8px 14px; }
  table.stack th[scope="row"] { font-size: 18px; }
  table.stack [data-label]::before { content: attr(data-label); font-weight: 600; font-size: 14px; color: var(--muted); }
}
th { color: var(--ink); font-weight: 600; background: var(--surface); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 6px; }
.faq-item p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 12px;
  font: 700 17px var(--font); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--cta); color: var(--ink); border: 0; width: 100%; }
.btn-primary:hover { background: var(--cta-dark); color: var(--ink); }
.btn-secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); font-weight: 600; }
.btn-auto { width: auto; min-width: 200px; }

/* Forms */
.quote-form, .offer-form { border-radius: 20px; box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08); }
.quote-form h2 { font-size: 22px; margin-bottom: 4px; }
.quote-form > p { font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--field-border); border-radius: 10px;
  font: 400 16px var(--font); color: var(--ink); background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: #D1D5DB; font-size: 14px; padding: 40px 0; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-links, .footer-cities { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 16px; }
.footer-links a, .footer-cities a { padding: 8px 0; }
.site-footer .footer-sale { color: var(--cta); }
.footer-disclaimer { max-width: 760px; }
.site-footer p { margin-bottom: 8px; }

/* Tablet and up */
@media (min-width: 720px) {
  .container { padding: 0 24px; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .section { padding: 72px 0; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
  .card { padding: 28px; }
}

/* Desktop */
@media (min-width: 1000px) {
  h1 { font-size: 48px; }
  .hero { padding: 56px 0; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    grid-template-areas: "copy form" "points form";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
  }
  .hero-copy { padding-top: 24px; }
  .quote-form { padding: 32px; }
}
.prose > h2:not(:first-child) { margin-top: 40px; }

/* Spacing utilities (used in editable page content instead of inline styles) */
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }

/* Images added in the admin editor */
main img { max-width: 100%; height: auto; border-radius: 12px; }

/* Horizontal lines added in the admin editor */
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* Back to top button (shown by assets/js/site.js after scrolling one screen) */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); color: #fff; }
@media (min-width: 1000px) { .to-top { right: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
