/* ============================================================
   GOOGLE FONTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Afacad:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Fraunces:wght@700;900&display=swap');


/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Brand */
  --plum:         #4A2060;
  --plum-dark:    #311440;
  --plum-light:   #6B3A82;
  --gold:         #C9991A;
  --gold-light:   #F5E6B0;
  --gold-muted:   #E8D48A;

  /* Surfaces */
  --bg:           #FAF7FB;
  --bg-warm:      #FFFDF8;
  --surface:      #FFFFFF;
  --surface-tint: #F7F0FC;

  /* Text */
  --text:         #1C1028;
  --text-body:    #3B3047;
  --muted:        #7C6E8A;

  /* Borders */
  --line:         #E8E0EE;
  --line-strong:  #D0C4DC;

  /* Status */
  --green-bg:     #EDFAF3;
  --green-text:   #166534;
  --amber-bg:     #FFFBEA;
  --amber-border: #E8C84A;
  --amber-text:   #7A5700;

  /* Sizing */
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-pill:  999px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(30, 10, 50, .06);
  --shadow-md:    0 6px 24px rgba(30, 10, 50, .09);
  --shadow-lg:    0 12px 40px rgba(30, 10, 50, .13);

  /* Typography */
  --font-body:    'Nunito', Arial, Helvetica, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: body fills full viewport height, content
     area grows to push the footer to the bottom naturally */
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Wraps everything between the header and footer so it
   can flex-grow and push the footer down on short pages */
.page-body {
  flex: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--plum);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--plum-light);
}

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


/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */

.site-header {
  background: var(--plum-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(20, 5, 40, .35);
}

/* Logo link in the sticky header — shows the hanger icon only */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* The hanger icon PNG: black art on white background.
   filter converts it to white so it reads on the dark header. */
.logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Full logo displayed on the homepage, centered above the hero */
.home-logo {
  display: flex;
  justify-content: center;
  padding: 32px 48px 42px;
  background: linear-gradient(145deg, #f0e8f8 0%, var(--bg-warm) 50%, #fdf5da 100%);
}

.home-logo img {
  /* Render at a generous size — wide enough to be fully legible,
     but capped so it doesn't dominate on large screens */
  width: min(480px, 65vw);
  height: auto;
}

/* Primary nav */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .18s ease, background .18s ease;
  position: relative;
  text-decoration: none;
  letter-spacing: .01em;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

/* Active page indicator — add class="active" to the matching <a> in page_header() */
nav a.active {
  color: var(--gold-muted);
}

nav a.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold-muted);
  border-radius: 2px;
}

/* "Create Account" pill in nav */
nav a.button.small {
  background: var(--gold);
  color: var(--plum-dark);
  font-weight: 900;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background .18s ease, transform .15s ease;
}

nav a.button.small:hover {
  background: var(--gold-muted);
  color: var(--plum-dark);
  transform: translateY(-1px);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .18s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .12);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* Animated hamburger → X */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 48px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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


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

.hero {
  background: linear-gradient(145deg, #f0e8f8 0%, var(--bg-warm) 50%, #fdf5da 100%);
  padding: 48px 48px 72px;
  border-bottom: 1px solid var(--line);
}

/* When .home-logo sits directly above the hero, reduce the gap
   so the two sections read as one continuous band */
.home-logo + .hero {
  padding-top: 32px;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  max-width: 1180px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero-eyebrow .pill {
  margin: 0;
  padding: 10px 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--text);
}

.hero p {
  color: var(--text-body);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero .button + .button {
  margin-left: 10px;
}


/* ============================================================
   CARD
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow .2s ease;
}

.card:last-child {
  margin-bottom: 0;
}

/* Inside a grid, spacing comes from `gap`, not margins. A trailing
   margin on the last card also breaks equal-height stretch. */
.grid .card {
  margin-bottom: 0;
}

/* A card that follows a grid (e.g. the details card on the listing page)
   gets no automatic top spacing — match the grid gap to stay consistent. */
.grid + .card {
  margin-top: 24px;
}

/* Breathing room between a cover image and the section heading below it
   inside a card (e.g. "Performance Media" on the listing page). */
.card img + h3 {
  margin-top: 16px;
}


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

.button,
button,
input[type=submit] {
  background: var(--plum);
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 13px 22px;
  text-decoration: none;
  transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
}

.button:hover,
button:hover,
input[type=submit]:hover {
  background: var(--plum-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 32, 96, .3);
}

.button.secondary,
button.secondary {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--text);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--surface-tint);
  border-color: var(--plum-light);
  color: var(--plum);
  box-shadow: none;
}

.button.small {
  font-size: .85rem;
  padding: 9px 16px;
}

/* Logout button that sits in the nav (invisible button wrapping a link-like element) */
.nav-logout-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: inline;
  transform: none;
  box-shadow: none;
  letter-spacing: inherit;
}

.nav-logout-btn:hover {
  background: none;
  transform: none;
  box-shadow: none;
}


/* ============================================================
   FORMS
   ============================================================ */

input:not([type=submit]):not([type=file]),
select,
textarea {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 6px 0 20px;
  padding: 12px 16px;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
}

input:not([type=submit]):not([type=file]):focus,
select:focus,
textarea:focus {
  border-color: var(--plum-light);
  box-shadow: 0 0 0 3px rgba(107, 58, 130, .15);
}

input[type=file] {
  display: block;
  margin: 6px 0 20px;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--muted);
}

/* Remove native select styling so padding applies uniformly */
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A2060' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .9rem;
  color: var(--text);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.help {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}


/* ============================================================
   BROWSE FILTERS
   ============================================================ */

.browse-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

/* Fields that should span the full width of the filter grid */
.browse-filters .field-full {
  grid-column: 1 / -1;
}

/* Row spacing comes from the grid gap, so drop the default input bottom margin */
.browse-filters input:not([type=submit]),
.browse-filters select {
  margin: 6px 0 0;
}

/* Budget slider: full width, custom thumb with a clear dark outline so the handle
   reads distinctly against the track */
.browse-filters input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--line-strong);
  border-radius: 999px;
  padding: 0;
  border: 0;
  margin: 16px 0 0;
  cursor: pointer;
}
.browse-filters input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--plum);
  border: 2px solid var(--text);
  cursor: pointer;
}
.browse-filters input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--plum);
  border: 2px solid var(--text);
  cursor: pointer;
}
.browse-filters input[type=range]::-moz-range-track {
  height: 6px;
  background: var(--line-strong);
  border-radius: 999px;
}

/* Filters that work together (ZIP + distance) sit in one labeled box */
.filter-group {
  grid-column: 1 / -1;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  padding: 14px 16px;
}

.filter-group-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.filter-group-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

@media (max-width: 640px) {
  .browse-filters,
  .filter-group-fields {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   FLASH MESSAGE
   ============================================================ */

.flash {
  background: var(--amber-bg);
  border-bottom: 1px solid var(--amber-border);
  color: var(--amber-text);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 14px 28px;
  text-align: center;
  font-size: .95rem;
}

.flash a {
  color: var(--amber-text);
  text-decoration: underline;
}


/* ============================================================
   LISTING CARDS
   ============================================================ */

a.listing-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.listing-card {
  overflow: hidden;
  padding: 0;
  transition: box-shadow .22s ease, transform .22s ease;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.listing-card img {
  background: var(--surface-tint);
  display: block;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.listing-card-body {
  padding: 20px;
}

.listing-card-body h3 {
  font-size: 1.05rem;
  margin: 6px 0 8px;
}

.listing-card-body p {
  margin: 0 0 4px;
  font-size: .9rem;
}

.listing-card-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--plum);
  margin: 2px 0 6px;
}

.listing-card-contact {
  font-weight: 700;
  font-size: .95rem;
  color: var(--muted);
  margin: 2px 0 6px;
}

.pill {
  background: var(--surface-tint);
  border-radius: var(--radius-pill);
  color: var(--plum);
  display: inline-block;
  font-family: 'Afacad', Arial, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 6px 8px 0;
  padding: 5px 12px;
  border: 1px solid rgba(74, 32, 96, .15);
}

/* ============================================================
   HEADER ENVELOPE / MESSAGES INDICATOR
   ============================================================ */

.nav-envelope {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .78);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: color .18s ease, background .18s ease;
}

.nav-envelope:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-envelope svg { display: block; }

.nav-envelope-label { display: none; }

.nav-dot {
  display: none;
  position: absolute;
  top: 5px;
  right: 6px;
  width: 9px;
  height: 9px;
  background: #E5484D;
  border: 2px solid var(--plum-dark);
  border-radius: 50%;
}

.nav-envelope.has-unread .nav-dot { display: block; }


/* ============================================================
   CONVERSATIONS & MESSAGES
   ============================================================ */

.conversation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.conversation-row:last-child { border-bottom: none; }
.conversation-row:hover { background: var(--bg); }

.conversation-main { min-width: 0; }

.conversation-title { font-weight: 800; color: var(--text); }

.conversation-snippet {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-meta {
  flex-shrink: 0;
  text-align: right;
  font-size: .8rem;
  color: var(--muted);
}

.conversation-unread {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  margin-bottom: 4px;
  background: #E5484D;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
}

.conversation-row.is-unread .conversation-title { color: var(--plum); }

.thread { margin: 8px 0 20px; }

.bubble {
  max-width: 78%;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  line-height: 1.55;
}

.bubble .bubble-meta {
  display: block;
  font-size: .72rem;
  margin-top: 6px;
  opacity: .7;
}

.bubble.them {
  background: var(--surface-tint);
  color: var(--text);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble.me {
  background: var(--plum);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.bubble.me a { color: var(--gold-light); }


/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: center;
     gap: 6px;
     margin-top: 18px;
   }

.pagination .page {
  display: inline-block;
  min-width: 38px;
  padding: 7px 11px;
  text-align: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 800;
  font-size: .88rem;
  text-decoration: none;
  background: var(--surface);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.pagination .page:hover { border-color: var(--plum-light); color: var(--plum); }

.pagination .page.active {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}

.pagination .page.disabled {
  opacity: .4;
  pointer-events: none;
}

@media (max-width: 768px) {
  .nav-envelope { padding: 12px 14px; }
  .nav-envelope-label { display: inline; margin-left: 10px; font-weight: 700; font-size: 1rem; }
  .nav-dot { top: 14px; right: auto; left: 26px; }
}

/* ============================================================
   PRICING
   ============================================================ */

.price-box {
  background: var(--surface-tint);
  border: 1px solid rgba(74, 32, 96, .12);
  border-radius: var(--radius-md);
  margin: 0 0 36px 0;
  padding: 20px 22px;
}

.price-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: .97rem;
}

.price-total {
  border-top: 1px solid var(--line-strong);
  font-size: 1.3rem;
  font-weight: 900;
  margin-top: 8px;
  padding-top: 14px;
  color: var(--text);
}

/* Listing detail — info column spacing */
.listing-title {
  margin-bottom: 12px;
}

.listing-meta {
  margin: 0 0 20px;
}

/* Seller's asking price on the listing detail page */
.asking-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum);
  margin: 4px 0 8px;
}

/* Size breakdown on the listing detail page — two-column list, one size per row */
.size-breakdown-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 6px;
}

.size-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}

.size-breakdown-count {
  font-weight: 800;
  color: var(--text);
}

@media (max-width: 480px) {
  .size-breakdown-list {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   TABLE
   ============================================================ */

.table {
  border-collapse: collapse;
  width: 100%;
  font-size: .95rem;
}

.table th {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  text-align: left;
}

.table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  color: var(--text-body);
}

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

.table tr:hover td {
  background: var(--bg);
}


/* ============================================================
   BADGES & WARNINGS
   ============================================================ */

.badge {
  background: var(--green-bg);
  border-radius: var(--radius-pill);
  color: var(--green-text);
  display: inline-block;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin: 0 4px 4px 0;
}

.warning {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  color: var(--amber-text);
  font-weight: 700;
  font-size: .92rem;
  padding: 14px 18px;
  margin: 14px 0;
  line-height: 1.55;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

main h2 {
  margin-top: 48px;
  margin-bottom: 20px;
}

main h2:first-child {
  margin-top: 0;
}


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

.footer {
  background: var(--plum-dark);
  color: rgba(255, 255, 255, .55);
  padding: 36px 28px;
  text-align: center;
  font-size: .88rem;
}

.footer a {
  color: rgba(255, 255, 255, .7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: #fff;
}


/* ============================================================
   RESPONSIVE — 900px (tablet)
   ============================================================ */

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 24px 48px;
  }

  .home-logo {
    padding: 32px 24px 20px;
  }

}


/* ============================================================
   RESPONSIVE — 768px (mobile nav breakpoint)
   ============================================================ */

@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-toggle {
    display: flex;
  }

  /* Collapse nav into a drawer below the header */
  nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--plum-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    box-shadow: 0 8px 24px rgba(20, 5, 40, .35);
    z-index: 99;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  nav a.active::after {
    display: none;
  }

  nav a.active {
    background: rgba(255, 255, 255, .08);
  }

  nav a.button.small {
    margin-top: 8px;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .site-header {
    position: sticky;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 32px 28px;
  }

  .hero {
    padding: 32px 28px 36px;
  }

  .home-logo {
    padding: 24px 28px 20px;
  }

  .hero .button + .button {
    margin-left: 0;
    margin-top: 10px;
  }
}


/* ============================================================
   RESPONSIVE — 480px (small mobile)
   ============================================================ */

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }

  .card {
    padding: 20px 18px;
  }
}


/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}