/*
Theme Name: ZERO Token
Description: A custom WordPress theme for ZERO Token, appointment booking and queue management software for doctors, clinics, and hospitals. Converted from the ZERO Token static site design.
Author: Maxions Technologies
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zerotoken
*/

/* ==========================================================================
   The design tokens, layout, component, and responsive styles below are
   carried over unchanged from the original static ZERO Token stylesheet
   to preserve the exact appearance and responsive behavior.
   ========================================================================== */


/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
  /* Brand colours */
  --color-navy: #0b2545;
  --color-navy-light: #123a6b;
  --color-blue: #1565d8;
  --color-blue-dark: #0d4bb0;
  --color-teal: #14b8b0;
  --color-cyan: #22c1dc;
  --color-white: #ffffff;
  --color-bg-light: #f2f8fc;
  --color-bg-soft: #eaf4fb;

  /* Text */
  --color-text: #1c2b3a;
  --color-text-muted: #56728a;
  --color-text-on-dark: #eaf4fb;

  /* Borders / shadows */
  --color-border: #dce8f0;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 37, 69, 0.14);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-blue) 0%, var(--color-teal) 100%);
  --gradient-hero-bg: linear-gradient(180deg, #f2f8fc 0%, #e6f3fa 100%);
  --gradient-cta: linear-gradient(120deg, var(--color-navy) 0%, var(--color-blue) 55%, var(--color-teal) 100%);

  /* Typography */
  --font-base: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Layout */
  --container-width: 1200px;
  --header-height: 76px;

  /* Motion */
  --transition-fast: 0.18s ease;
  --transition-base: 0.3s ease;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-sm); }

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* Visible keyboard focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

section {
  padding-block: var(--space-2xl);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.section-eyebrow {
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

.section-lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--color-white);
  color: var(--color-blue-dark);
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background: #1fae5c;
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-sm);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.logo-accent {
  color: var(--color-teal);
}

.nav-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 0.4rem 0.1rem;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-blue-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: min(320px, 86vw);
  height: calc(100vh - var(--header-height));
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 499;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-md);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-link {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.mobile-nav-link.active {
  color: var(--color-blue-dark);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 498;
}

.mobile-menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
  background: var(--gradient-hero-bg);
  padding-block: var(--space-2xl) var(--space-xl);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-xl);
}

.eyebrow {
  display: inline-block;
  color: var(--color-blue-dark);
  background: rgba(21, 101, 216, 0.08);
  border: 1px solid rgba(21, 101, 216, 0.18);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.hero-headline {
  margin-bottom: var(--space-sm);
}

.hero-text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: var(--space-md);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Dashboard mockup illustration (pure CSS/HTML) */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.dashboard-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.dashboard-glow {
  position: absolute;
  inset: 8% 10%;
  background: var(--gradient-primary);
  filter: blur(70px);
  opacity: 0.22;
  border-radius: 50%;
  z-index: 0;
}

.dashboard-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem;
  z-index: 1;
  min-width: 210px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.icon-blue { background: rgba(21, 101, 216, 0.12); color: var(--color-blue-dark); }
.icon-teal { background: rgba(20, 184, 176, 0.14); color: var(--color-teal); }
.icon-navy { background: rgba(11, 37, 69, 0.10); color: var(--color-navy); }

.card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.card-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.card-status-online {
  color: #16a06a;
  font-size: 1rem;
}

.card-status-online::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a06a;
  margin-right: 6px;
}

.card-appointments { top: 4%; left: 4%; }
.card-token { top: 8%; right: 2%; }
.card-availability { bottom: 20%; left: 0; }
.card-queue { bottom: 2%; right: 8%; }

/* Subtle floating animation */
.float-1 { animation: floatY 6s ease-in-out infinite; }
.float-2 { animation: floatY 7s ease-in-out infinite; animation-delay: 0.4s; }
.float-3 { animation: floatY 6.5s ease-in-out infinite; animation-delay: 0.8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   7. Audience Strip
   ========================================================================== */
.audience-strip {
  background: var(--color-navy);
  padding-block: var(--space-md);
}

.audience-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-on-dark);
  font-weight: 600;
  font-size: 1rem;
}

.audience-icon {
  width: 24px;
  height: 24px;
  color: var(--color-teal);
  flex-shrink: 0;
}

/* ==========================================================================
   8. About Section
   ========================================================================== */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.about-point {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
}

.about-point h3 {
  color: var(--color-blue-dark);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.about-point p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   9. Services Section
   ========================================================================== */
.services {
  background: var(--color-bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   10. How It Works
   ========================================================================== */
.how-it-works {
  background: var(--color-white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: start;
  gap: var(--space-sm);
}

.step {
  text-align: center;
  padding: 0 var(--space-xs);
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.step-connector {
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-teal));
  margin-top: 26px;
  opacity: 0.4;
}

/* ==========================================================================
   11. Benefits Section
   ========================================================================== */
.benefits {
  background: var(--color-bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.benefit-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-teal);
  box-shadow: var(--shadow-sm);
}

.benefit-card h3 {
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.benefit-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.benefit-card li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.benefit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

/* ==========================================================================
   12. CTA Section
   ========================================================================== */
.cta-section {
  background: var(--gradient-cta);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 {
  color: var(--color-white);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   13. Contact Section
   ========================================================================== */
.contact {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  color: var(--color-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-detail a {
  font-weight: 600;
  color: var(--color-navy);
  transition: color var(--transition-fast);
}

.contact-detail a:hover {
  color: var(--color-blue-dark);
}

.contact-form {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.form-row input,
.form-row textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 216, 0.14);
}

.form-row.has-error input,
.form-row.has-error textarea {
  border-color: #d64545;
}

.form-error {
  color: #d64545;
  font-size: 0.82rem;
  min-height: 1.1em;
}

.form-note {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-align: center;
  margin: 0.25rem 0 0;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-xl);
}

.footer-brand .logo-text,
.footer-brand .logo-accent {
  color: var(--color-white);
}

.footer-brand .logo-accent {
  color: var(--color-teal);
}

.footer-brand p {
  color: rgba(234, 244, 251, 0.75);
  font-size: 0.92rem;
  max-width: 320px;
  margin-top: var(--space-sm);
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a,
.footer-contact a,
.footer-contact li {
  color: rgba(234, 244, 251, 0.78);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(234, 244, 251, 0.14);
  padding-block: var(--space-sm);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(234, 244, 251, 0.65);
  font-size: 0.85rem;
}

/* ==========================================================================
   15. Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fae5c;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   16. Scroll Reveal Animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   17. Responsive Breakpoints
   ========================================================================== */

/* Laptop / small desktop */
@media (max-width: 1180px) {
  :root {
    --container-width: 100%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-visual {
    min-height: 360px;
    order: -1;
  }

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

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

  .benefits-grid {
    grid-template-columns: 1fr;
  }

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

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

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

/* Tablet & mobile: hamburger nav */
@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --space-2xl: 3.5rem;
    --space-xl: 2.75rem;
  }

  .hero {
    padding-block: var(--space-xl) var(--space-lg);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .dashboard-mockup {
    min-height: 300px;
  }

  .dashboard-card {
    min-width: 0;
    width: 78%;
    padding: 0.8rem 1rem;
  }

  .card-appointments { top: 0; left: 0; }
  .card-token { top: 2%; right: 0; }
  .card-availability { bottom: 24%; left: 8%; }
  .card-queue { bottom: 0; right: 4%; }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .audience-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

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

/* Small mobile down to 360px */
@media (max-width: 400px) {
  .container {
    padding-inline: var(--space-sm);
  }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .logo-text {
    font-size: 1.05rem;
  }

  .dashboard-card {
    width: 84%;
    gap: 0.6rem;
  }

  .card-value {
    font-size: 1rem;
  }
}

/* ==========================================================================
   18. Reduced Motion & Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
