/* ==========================================================================
   MEADOWSCHEERSQUAD — EDITORIAL AESTHETIC WITH FRAMED CANVAS CARDS
   Strict Spacing Scale: 4px, 8px, 16px, 24px, 40px, 64px
   Palette: Aegean Stone (#FAF8F5), Olive Charcoal (#22201E), Terracotta (#8C4A2F),
            Kefalotyri Gold (#D4A373), Linen Border (#E2D9CC)
   ========================================================================== */

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-surface-tint: #f3eee6;
  --color-text: #22201e;
  --color-text-muted: #5e5954;
  --color-primary: #8c4a2f;
  --color-primary-hover: #713821;
  --color-accent: #3b4d3c; /* Olive leaf */
  --color-gold: #c28b52;
  --color-border: #e2d9cc;
  --color-border-dark: #22201e;
  --color-error: #a82315;
  --color-success: #2b6e3f;

  --font-serif: "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Droid Serif", "Georgia", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-height: 64px;
}

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

html {
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Accessibility & Break Word */
h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
  overflow-wrap: anywhere;
}

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

p {
  margin-bottom: 16px;
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* Container Shell */
.page-shell {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  min-width: 0;
}

.section-padding {
  padding-top: 64px;
  padding-bottom: 64px;
}

.text-center {
  text-align: center;
}

.bg-paper {
  background-color: var(--color-surface-tint);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   HEADER (Non-Sticky, 56-64px desktop, 48-52px mobile)
   ========================================================================== */

.site-header {
  height: var(--header-height);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--color-primary);
}

.logo-mark {
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.brand-name {
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--color-primary);
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHY
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-dark);
}

.btn-secondary:hover {
  background-color: var(--color-surface-tint);
  color: var(--color-text);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-intro {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

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

.hero-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #faf8f5 0%, #f4ede3 100%);
}

.hero-content {
  max-width: 840px;
}

.hero-title {
  font-size: 3.125rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   CARD STYLE: FRAMED CANVAS
   Offset background frame, hover lift on foreground card.
   Reduced offset to 0 below 768px as required.
   ========================================================================== */

.framed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}

.canvas-card {
  position: relative;
  min-width: 0;
}

.canvas-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border-dark);
  background-color: var(--color-surface-tint);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.canvas-foreground {
  position: relative;
  z-index: 2;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.canvas-card:hover .canvas-foreground {
  transform: translate(-3px, -3px);
  box-shadow: 0 10px 24px rgba(34, 32, 30, 0.08);
}

.canvas-card:hover .canvas-frame {
  transform: translate(2px, 2px);
}

.card-media {
  position: relative;
  overflow: hidden;
  background-color: #eee;
  aspect-ratio: 4 / 3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--color-border-dark);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  margin-bottom: 24px;
}

.meta-item {
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 600;
}

.card-footer {
  margin-top: 0;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.card-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   EDITORIAL SUPPORTING SECTIONS & CALLOUTS
   ========================================================================== */

.editorial-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.editorial-title {
  font-size: 2rem;
  margin-bottom: 24px;
}

.editorial-summary {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.stone-callout {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: 24px;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.quote-cite {
  display: block;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
}

.sub-heading {
  font-size: 1.375rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.sub-heading:first-child {
  margin-top: 0;
}

/* ==========================================================================
   SUB-PAGE / ARTICLE LAYOUT
   ========================================================================== */

.guide-header {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: var(--color-surface-tint);
  border-bottom: 1px solid var(--color-border);
}

.guide-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.guide-breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.guide-breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.guide-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.guide-lead {
  font-size: 1.1875rem;
  color: var(--color-text-muted);
  max-width: 800px;
  line-height: 1.6;
}

.guide-visual-bar {
  margin-top: -20px;
  position: relative;
  z-index: 5;
}

.single-feature-canvas {
  max-width: 1000px;
  margin: 0 auto;
}

.single-feature-canvas .canvas-foreground img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 64px;
}

.article-content h2 {
  font-size: 1.75rem;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

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

.article-content h3 {
  font-size: 1.375rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.editorial-ordered-list,
.editorial-bullet-list {
  margin-left: 24px;
  margin-bottom: 24px;
}

.editorial-ordered-list li,
.editorial-bullet-list li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
  text-align: left;
}

.table-responsive {
  overflow-x: auto;
  margin: 24px 0;
}

.editorial-table th,
.editorial-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
}

.editorial-table thead th {
  background-color: var(--color-surface-tint);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text);
}

.editorial-table tbody tr:nth-child(even) {
  background-color: #faf7f2;
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px;
}

.sidebar-title {
  font-size: 1.125rem;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
}

.sidebar-specs dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-top: 12px;
}

.sidebar-specs dt:first-child {
  margin-top: 0;
}

.sidebar-specs dd {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-nav-card {
  background-color: var(--color-surface-tint);
  border: 1px solid var(--color-border-dark);
  padding: 24px;
}

.sidebar-nav-card h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.sidebar-nav-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   CONTACT PAGE & FORMS
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
}

.p-card {
  padding: 32px;
}

.form-desc {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.required-star {
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
}

.form-control.is-invalid {
  border-color: var(--color-error);
  background-color: #fffaf9;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: var(--color-error);
  margin-top: 4px;
  min-height: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 3px;
  font-size: 0.875rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background-color: #eaf5ed;
  color: var(--color-success);
  border: 1px solid #b7ddbe;
}

.form-status.is-error {
  background-color: #fdf2f1;
  color: var(--color-error);
  border: 1px solid #f1bab5;
}

.static-map-card {
  margin-top: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 16px;
}

.map-header {
  margin-bottom: 12px;
}

.map-tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.map-title {
  font-size: 1.0625rem;
}

.static-map-canvas {
  background-color: var(--color-surface-tint);
  border: 1px solid var(--color-border);
  overflow: hidden;
  border-radius: 2px;
}

.map-caption {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */

.legal-text-body {
  max-width: 820px;
}

.legal-text-body h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.legal-text-body h2:first-child {
  margin-top: 0;
}

.cookie-reset-box {
  margin: 24px 0;
  padding: 16px;
  background-color: var(--color-surface-tint);
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   FOOTER (Identical on every page)
   ========================================================================== */

.site-footer {
  background-color: #1a1817;
  color: #d1cbc4;
  border-top: 3px solid var(--color-primary);
  padding-top: 64px;
  padding-bottom: 32px;
  margin-top: 64px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-logo .brand-name {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #a8a29b;
  margin-bottom: 20px;
  max-width: 380px;
}

.company-legal-info p {
  font-size: 0.8125rem;
  color: #8c867f;
  margin-bottom: 4px;
}

.company-legal-info a {
  color: #d4a373;
  text-decoration: underline;
}

.footer-heading {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.0625rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #b8b2aa;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid #2e2b29;
  padding-top: 24px;
  font-size: 0.8125rem;
  color: #79736c;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================================
   COOKIE BANNER (Fixed Bottom, Choices: accept, reject, preferences)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #22201e;
  color: #faf8f5;
  border-top: 2px solid var(--color-primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  padding: 16px 24px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #d1cbc4;
  margin-bottom: 0;
}

.cookie-text a {
  color: var(--color-gold);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn-outline {
  color: #faf8f5;
  border-color: #55504b;
}

.cookie-actions .btn-outline:hover {
  border-color: #faf8f5;
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (down to 320px, breakpoint below 400px)
   ========================================================================== */

@media (max-width: 1024px) {
  .framed-grid {
    gap: 32px 24px;
  }

  .editorial-columns {
    gap: 40px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 52px;
  }

  /* Reduce offset frames to 0 on mobile to guarantee zero overflow */
  .canvas-frame {
    top: 0;
    left: 0;
    display: none;
  }

  .canvas-card:hover .canvas-foreground {
    transform: none;
  }

  .framed-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-title {
    font-size: 2.125rem;
  }

  .editorial-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-surface);
    flex-direction: column;
    padding: 32px 24px;
    border-top: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .nav-menu.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.125rem;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .guide-title {
    font-size: 1.75rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .cookie-actions button {
    flex: 1 1 calc(50% - 8px);
  }
}

/* Breakpoint below 400px (Rule 5) */
@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions button {
    width: 100%;
  }

  .card-body {
    padding: 16px;
  }

  .p-card {
    padding: 16px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}