/* =========================================================
   GONZALES VISION CLINIC
   MODERN OPTICAL CLINIC LANDING PAGE
========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-soft: #dbeafe;

  --navy: #0f172a;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --white: #ffffff;

  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

  --container: 1180px;
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--navy);
  background: var(--white);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.mobile-try-on-mode {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.95);

  border-bottom: 1px solid rgba(226, 232, 240, 0.85);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-container {
  width: min(var(--container), calc(100% - 40px));

  min-height: 72px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

/* =========================================================
   LOGO
========================================================= */

.nav-logo {
  min-width: 0;

  display: inline-flex;
  align-items: center;

  gap: 10px;

  color: var(--navy);

  font-size: 0.96rem;
  font-weight: 750;

  white-space: nowrap;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 6px;

  overflow: hidden;

  border-radius: 11px;

  background: var(--primary-light);

  border: 1px solid var(--primary-soft);
}

.nav-logo-icon img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.nav-logo-name {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;
}

/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {
  display: flex;
  align-items: center;

  gap: 24px;

  color: var(--slate-600);

  font-size: 0.8rem;
  font-weight: 600;
}

.nav-links > a {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links > a:hover {
  color: var(--primary);
}

.nav-portal {
  color: var(--primary);
  font-weight: 700;
}

.nav-app {
  padding: 9px 15px;

  border-radius: 9px;

  background: var(--primary);

  color: var(--white);

  font-weight: 700;

  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-app:hover {
  background: var(--primary-dark);

  color: var(--white);

  transform: translateY(-1px);

  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

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

.hero {
  position: relative;

  min-height: 620px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 95px 20px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(219, 234, 254, 0.8),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(224, 242, 254, 0.85),
      transparent 34%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero::before {
  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  top: -240px;
  right: -220px;

  border: 1px solid rgba(37, 99, 235, 0.08);

  border-radius: 50%;

  pointer-events: none;
}

.hero::after {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  left: -190px;
  bottom: -220px;

  border-radius: 50%;

  background: rgba(219, 234, 254, 0.3);

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 850px;

  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding: 7px 13px;

  margin-bottom: 22px;

  background: rgba(239, 246, 255, 0.9);

  border: 1px solid var(--primary-soft);

  border-radius: 999px;

  color: var(--primary);

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;

  flex: 0 0 7px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.hero h1 {
  max-width: 820px;

  margin: 0 auto;

  color: var(--navy);

  font-size: clamp(2.6rem, 6vw, 4.7rem);

  line-height: 1.04;

  letter-spacing: -0.055em;

  font-weight: 800;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 650px;

  margin: 24px auto 0;

  color: var(--slate-500);

  font-size: 1rem;

  line-height: 1.8;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 11px;

  margin-top: 30px;
}

.btn-hero {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.7rem 1.3rem;

  border-radius: 10px;

  font-size: 0.84rem;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
}

.btn-hero-primary {
  background: var(--primary);

  border: 1px solid var(--primary);

  color: var(--white);

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);

  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.btn-hero-outline {
  background: var(--white);

  border: 1px solid #bfdbfe;

  color: var(--primary);
}

.btn-hero-outline:hover {
  background: var(--primary-light);

  border-color: #93c5fd;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 20px;

  margin-top: 28px;
}

.hero-trust-item {
  display: flex;
  align-items: center;

  gap: 6px;

  color: var(--slate-500);

  font-size: 0.72rem;
}

.hero-trust-item span {
  color: var(--success);

  font-weight: 800;
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  width: min(var(--container), calc(100% - 40px));

  margin: 0 auto;

  padding: 82px 0;
}

.section-heading {
  max-width: 720px;

  margin: 0 auto 40px;

  text-align: center;
}

.section-eyebrow {
  margin-bottom: 9px;

  color: var(--primary);

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.section-title {
  color: var(--navy);

  font-size: clamp(1.8rem, 4vw, 2.45rem);

  line-height: 1.15;

  letter-spacing: -0.035em;

  font-weight: 780;
}

.section-sub {
  max-width: 650px;

  margin: 12px auto 0;

  color: var(--slate-500);

  font-size: 0.9rem;

  line-height: 1.75;
}

/* =========================================================
   PATIENT PORTAL
========================================================= */

.portal-section {
  background: #f8fbff;

  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.portal-section-inner {
  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  gap: 55px;

  align-items: center;
}

.portal-label {
  margin-bottom: 10px;

  color: var(--primary);

  font-size: 0.68rem;
  font-weight: 800;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.portal-content h2 {
  color: var(--navy);

  font-size: clamp(2rem, 4vw, 3rem);

  line-height: 1.08;

  letter-spacing: -0.045em;
}

.portal-content h2 span {
  color: var(--primary);
}

.portal-content p {
  max-width: 610px;

  margin-top: 17px;

  color: var(--slate-500);

  font-size: 0.9rem;

  line-height: 1.75;
}

.portal-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-top: 24px;
}

.portal-btn {
  min-height: 43px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 1rem;

  border-radius: 9px;

  font-size: 0.8rem;
  font-weight: 700;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.portal-btn:hover {
  transform: translateY(-1px);
}

.portal-btn-primary {
  background: var(--primary);

  border: 1px solid var(--primary);

  color: var(--white);
}

.portal-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.portal-btn-outline {
  background: var(--white);

  border: 1px solid #bfdbfe;

  color: var(--primary);
}

.portal-btn-outline:hover {
  background: var(--primary-light);

  border-color: #93c5fd;
}

.portal-card {
  padding: 27px;

  background: var(--white);

  border: 1px solid var(--primary-soft);

  border-radius: 18px;

  box-shadow: var(--shadow-md);
}

.portal-card-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 17px;

  border-radius: 13px;

  background: var(--primary-light);

  color: var(--primary);

  font-size: 1.3rem;
}

.portal-card h3 {
  color: var(--navy);

  font-size: 1rem;
}

.portal-card p {
  margin-top: 4px;

  color: var(--slate-500);

  font-size: 0.78rem;
}

.portal-card-list {
  display: grid;

  gap: 10px;

  margin-top: 20px;
  padding-top: 18px;

  border-top: 1px solid var(--slate-200);

  color: var(--slate-600);

  font-size: 0.76rem;
}

.portal-card-list div {
  display: flex;

  gap: 8px;
}

.portal-card-list span {
  color: var(--success);

  font-weight: 800;
}

/* =========================================================
   VIRTUAL TRY-ON CATALOG
========================================================= */

#try-on {
  background: var(--white);
}

/* =========================================================
   FILTER CONTROLS
========================================================= */

.filter-controls {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 10px;

  flex-wrap: wrap;

  margin-bottom: 20px;
}

/* DESKTOP SEARCH */

#searchInput {
  width: 100%;
  max-width: 360px;

  flex: 1 1 260px;

  min-width: 0;
  min-height: 42px;

  padding: 0 13px;

  outline: none;

  background: var(--slate-50);

  border: 1px solid var(--slate-200);

  border-radius: 9px;

  color: var(--navy);

  font-size: 0.8rem;

  line-height: 1;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#searchInput::placeholder {
  color: var(--slate-400);
}

#searchInput:hover {
  border-color: var(--slate-300);
}

#searchInput:focus {
  background: var(--white);

  border-color: #93c5fd;

  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =========================================================
   CATEGORY FILTERS
========================================================= */

.category-pills {
  min-width: 0;

  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 6px;
}

.pill-btn {
  min-height: 34px;

  padding: 6px 12px;

  background: var(--white);

  border: 1px solid var(--slate-200);

  border-radius: 999px;

  color: var(--slate-600);

  font-size: 0.69rem;
  font-weight: 650;

  white-space: nowrap;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pill-btn:hover {
  border-color: #93c5fd;

  background: var(--primary-light);

  color: var(--primary);

  transform: translateY(-1px);
}

.pill-btn.active {
  background: var(--primary);

  border-color: var(--primary);

  color: var(--white);
}

/* =========================================================
   STATUS
========================================================= */

#vto-status {
  margin-bottom: 18px;

  padding: 9px 12px;

  background: var(--slate-50);

  border: 1px solid var(--slate-200);

  border-radius: 9px;

  color: var(--slate-500);

  font-size: 0.72rem;
}

.loading-message {
  grid-column: 1 / -1;

  padding: 35px 0;

  color: var(--slate-500);

  text-align: center;
}

/* =========================================================
   FRAME GRID
========================================================= */

#frame-grid {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;

  align-items: stretch;
}

#frame-grid > * {
  min-width: 0;
}

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

#frame-grid .frame-card {
  position: relative;

  width: 100%;
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--slate-200);

  border-radius: 17px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

#frame-grid .frame-card:hover {
  transform: translateY(-4px);

  border-color: var(--primary-soft);

  box-shadow: var(--shadow-md);
}

/* =========================================================
   FRAME IMAGE
========================================================= */

#frame-grid .frame-img-box {
  position: relative;

  width: 100%;
  height: 210px;

  flex: 0 0 210px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #f8fafc;

  border-bottom: 1px solid var(--slate-200);
}

#frame-grid .frame-img-box img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: center;

  background: #f8fafc;

  transform: none;

  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

#frame-grid .frame-card:hover .frame-img-box img {
  transform: scale(1.025);
}

/* =========================================================
   FRAME INFORMATION
========================================================= */

#frame-grid .frame-card > h3,
#frame-grid .frame-card > h4 {
  margin: 0;

  padding: 13px 15px 0;

  color: var(--navy);

  font-size: 0.9rem;

  line-height: 1.3;

  font-weight: 750;

  word-break: break-word;
}

#frame-grid .frame-card > p {
  margin: 4px 0 0;

  padding: 0 15px;

  color: var(--slate-500);

  font-size: 0.7rem;

  line-height: 1.4;
}

#frame-grid .frame-card > p.price {
  margin-top: 6px;

  padding: 0 15px;

  color: var(--primary);

  font-size: 0.9rem;

  line-height: 1.2;

  font-weight: 800;
}

/* =========================================================
   FRAME ACTIONS
   FIXED ALIGNMENT
========================================================= */

#frame-grid .card-actions {
  width: 100%;

  display: flex;
  align-items: stretch;

  gap: 7px;

  padding: 10px 15px 14px;

  margin-top: auto;

  flex-shrink: 0;
}

#frame-grid .card-actions button {
  flex: 1 1 0;

  width: 0;
  min-width: 0;

  height: 34px;
  min-height: 34px;
  max-height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0 9px;

  box-sizing: border-box;

  border-radius: 8px;

  font-size: 0.66rem;

  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#frame-grid .card-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* =========================================================
   VIEW DETAILS BUTTON
========================================================= */

#frame-grid .card-actions .btn-secondary {
  background: var(--white);

  border: 1px solid var(--slate-200);

  color: var(--slate-600);
}

#frame-grid .card-actions .btn-secondary:hover {
  background: var(--slate-50);

  border-color: var(--slate-300);

  color: var(--navy);
}

/* =========================================================
   TRY ON 3D BUTTON
========================================================= */

#frame-grid .card-actions .try-on-btn {
  background: var(--primary);

  border: 1px solid var(--primary);

  color: var(--white);
}

#frame-grid .card-actions .try-on-btn:hover:not(:disabled) {
  background: var(--primary-dark);

  border-color: var(--primary-dark);

  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18);
}

#frame-grid .card-actions .try-on-btn:disabled {
  background: var(--slate-100) !important;

  border-color: var(--slate-200) !important;

  color: var(--slate-400) !important;

  cursor: not-allowed;

  box-shadow: none;

  transform: none;
}

/* =========================================================
   FEATURES
========================================================= */

.features-section {
  background: var(--slate-50);

  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.features-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.feature-card {
  padding: 25px;

  background: var(--white);

  border: 1px solid var(--slate-200);

  border-radius: 16px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);

  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 17px;

  border-radius: 12px;

  background: var(--primary-light);

  color: var(--primary);

  font-size: 1.15rem;
}

.feature-card h3 {
  margin-bottom: 7px;

  color: var(--navy);

  font-size: 0.95rem;
}

.feature-card p {
  color: var(--slate-500);

  font-size: 0.78rem;

  line-height: 1.7;
}

/* =========================================================
   DOCTOR
========================================================= */

.doctor-section {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 50px;

  align-items: center;

  padding: 28px;

  background: #f8fbff;

  border: 1px solid var(--primary-soft);

  border-radius: 20px;
}

.doctor-img-box {
  min-height: 330px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 16px;

  background: radial-gradient(circle at center, #ffffff, #eff6ff 70%, #dbeafe);
}

.doctor-image {
  width: 80%;
  max-width: 310px;

  max-height: 330px;

  display: block;

  object-fit: cover;

  border-radius: 15px;

  box-shadow: var(--shadow-md);
}

.doctor-bio h3 {
  margin-top: 5px;

  color: var(--navy);

  font-size: 1.6rem;

  line-height: 1.2;

  letter-spacing: -0.025em;
}

.doctor-credential {
  margin-top: 7px;
  margin-bottom: 15px;

  color: var(--primary);

  font-size: 0.82rem;

  font-weight: 700;
}

.doctor-description {
  margin-bottom: 19px;

  color: var(--slate-500);

  font-size: 0.82rem;

  line-height: 1.75;
}

.doctor-highlights {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-bottom: 23px;
}

.highlight-pill {
  padding: 6px 9px;

  background: var(--white);

  border: 1px solid var(--slate-200);

  border-radius: 999px;

  color: var(--slate-600);

  font-size: 0.68rem;

  font-weight: 650;
}

.doctor-book-btn {
  font-size: 0.82rem;
}

/* =========================================================
   LOCATION
========================================================= */

.location-container {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 22px;

  align-items: stretch;
}

.location-info {
  padding: 28px;

  background: #f8fbff;

  border: 1px solid var(--primary-soft);

  border-radius: 16px;
}

.location-label {
  margin-bottom: 7px;

  color: var(--primary);

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.12em;
}

.location-info h3 {
  color: var(--navy);

  font-size: 1.35rem;

  line-height: 1.25;
}

.location-info > p {
  margin-top: 12px;

  color: var(--slate-500);

  font-size: 0.8rem;

  line-height: 1.7;
}

.location-details {
  display: grid;

  gap: 14px;

  margin: 21px 0;
}

.location-details div {
  display: grid;

  gap: 2px;
}

.location-details strong {
  color: var(--navy);

  font-size: 0.72rem;
}

.location-details span {
  color: var(--slate-500);

  font-size: 0.75rem;
}

.map-wrapper {
  min-height: 390px;

  overflow: hidden;

  background: var(--slate-100);

  border: 1px solid var(--slate-200);

  border-radius: 16px;

  box-shadow: var(--shadow-sm);
}

.map-embed {
  display: block;

  width: 100%;
  height: 100%;

  min-height: 390px;

  border: 0;
}

/* =========================================================
   APP DOWNLOAD
========================================================= */

.app-banner {
  display: grid;

  grid-template-columns: 1.3fr 0.7fr;

  gap: 40px;

  align-items: center;

  padding: 38px;

  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);

  border: 1px solid var(--primary-soft);

  border-radius: 20px;
}

.app-banner-content h3 {
  margin-top: 4px;

  color: var(--navy);

  font-size: 1.65rem;

  line-height: 1.2;

  letter-spacing: -0.025em;
}

.app-banner-content p {
  max-width: 590px;

  margin-top: 11px;

  color: var(--slate-500);

  font-size: 0.8rem;

  line-height: 1.7;
}

.app-download-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  margin-top: 19px;

  padding: 10px 16px;

  border-radius: 9px;

  background: var(--primary);

  border: 1px solid var(--primary);

  color: var(--white);

  font-size: 0.78rem;

  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.app-download-btn:hover {
  background: var(--primary-dark);

  border-color: var(--primary-dark);

  transform: translateY(-1px);

  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.app-download-note {
  display: block;

  margin-top: 6px;

  color: var(--slate-400);

  font-size: 0.66rem;
}

.app-qr-box {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;
}

.app-qr-box a {
  display: block;

  padding: 9px;

  background: var(--white);

  border: 1px solid var(--slate-200);

  border-radius: 12px;

  box-shadow: var(--shadow-sm);
}

.app-qr-box img {
  display: block;

  width: 175px;
  height: 175px;

  max-width: 100%;

  object-fit: contain;
}

.app-qr-box span {
  color: var(--slate-500);

  font-size: 0.66rem;
}

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

footer {
  background: var(--navy);

  color: var(--white);
}

.footer-content {
  width: min(var(--container), calc(100% - 40px));

  margin: 0 auto;

  padding: 34px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;

  gap: 8px;

  font-size: 0.85rem;

  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 17px;

  color: #cbd5e1;

  font-size: 0.7rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-content > p {
  width: 100%;

  padding-top: 17px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: #94a3b8;

  font-size: 0.65rem;

  text-align: center;
}

/* =========================================================
   MODALS
========================================================= */

.modal {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.68);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.active,
.modal.show {
  display: flex;
}

.modal-content {
  width: min(850px, 100%);

  max-height: 90vh;

  overflow: auto;

  background: var(--white);

  border-radius: 17px;

  box-shadow: var(--shadow-lg);

  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;

    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   VTO MODAL
========================================================= */

.vto-modal-content {
  width: min(1100px, 100%);

  height: 80vh;

  max-height: 90vh;

  overflow: hidden;
}

.modal-header {
  min-height: 67px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 16px 20px;

  background: var(--white);

  border-bottom: 1px solid var(--slate-200);
}

.modal-header h2 {
  color: var(--navy);

  font-size: 1rem;

  font-weight: 750;
}

.close {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  border-radius: 8px;

  background: var(--slate-100);

  color: var(--slate-500);

  font-size: 1.3rem;

  line-height: 1;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.close:hover {
  background: #fee2e2;

  color: var(--danger);

  transform: scale(1.04);
}

/* =========================================================
   PREVIEW MODAL
========================================================= */

.preview-body {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 28px;

  padding: 24px;
}

.preview-img-holder {
  min-height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 13px;

  background: radial-gradient(circle at center, #ffffff, var(--slate-50));
}

.preview-img-holder img {
  display: block;

  max-width: 100%;
  max-height: 300px;

  object-fit: contain;
}

.preview-info {
  display: flex;
  flex-direction: column;

  justify-content: center;
}

.preview-info h3 {
  color: var(--navy);

  font-size: 1.35rem;

  line-height: 1.25;
}

.price-tag {
  margin-top: 6px;

  color: var(--primary);

  font-size: 1.15rem;

  font-weight: 800;
}

.preview-info p {
  margin-top: 14px;

  color: var(--slate-500);

  font-size: 0.8rem;

  line-height: 1.7;
}

.try-on-btn {
  align-self: flex-start;

  margin-top: 19px;

  padding: 10px 17px;

  border: 1px solid var(--primary);

  border-radius: 9px;

  background: var(--primary);

  color: var(--white);

  font-size: 0.78rem;

  font-weight: 700;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.try-on-btn:hover {
  background: var(--primary-dark);

  border-color: var(--primary-dark);

  transform: translateY(-1px);
}

/* =========================================================
   VTO CONTAINER
========================================================= */

#modal-container {
  width: 100%;
  height: calc(100% - 67px);

  overflow: hidden;

  background: #000;
}

/* =========================================================
   MOBILE TRY-ON MODE
========================================================= */

body.mobile-try-on-mode .navbar,
body.mobile-try-on-mode .hero,
body.mobile-try-on-mode #try-on,
body.mobile-try-on-mode .portal-section,
body.mobile-try-on-mode #features,
body.mobile-try-on-mode #doctor,
body.mobile-try-on-mode #location,
body.mobile-try-on-mode #download-app,
body.mobile-try-on-mode footer {
  display: none;
}

body.mobile-try-on-mode #faceFilterModal {
  display: flex;

  inset: 0;

  padding: 0;

  background: #000;
}

body.mobile-try-on-mode #faceFilterModal .modal-content {
  width: 100%;
  height: 100%;

  max-width: none;
  max-height: none;

  border: 0;

  border-radius: 0;

  box-shadow: none;
}

body.mobile-try-on-mode #faceFilterModal .modal-header {
  min-height: 56px;

  padding: 10px 14px;
}

body.mobile-try-on-mode #modal-container {
  height: calc(100% - 56px);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .nav-links {
    gap: 14px;
  }

  .portal-section-inner,
  .doctor-section,
  .location-container,
  .app-banner {
    grid-template-columns: 1fr;
  }

  .portal-card {
    max-width: 620px;
  }

  .doctor-img-box {
    min-height: 290px;
  }

  .location-info {
    order: 1;
  }

  .map-wrapper {
    order: 2;
  }

  .app-qr-box {
    align-items: flex-start;
  }

  #frame-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
  }

  #frame-grid .frame-img-box {
    height: 180px;

    flex-basis: 180px;
  }
}

/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 760px) {
  .nav-container {
    width: calc(100% - 32px);
  }

  .nav-links {
    gap: 9px;

    font-size: 0.72rem;
  }

  .nav-links .hide-mobile {
    display: none;
  }

  .nav-portal {
    display: none;
  }

  .hero {
    min-height: 570px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

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

  .preview-body {
    grid-template-columns: 1fr;
  }

  /* =======================================================
     FILTER
  ======================================================= */

  .filter-controls {
    align-items: stretch;

    gap: 8px;
  }

  #searchInput {
    max-width: 100%;

    flex: 1 1 100%;

    min-height: 40px;

    font-size: 0.76rem;
  }

  .category-pills {
    width: 100%;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  html {
    scroll-padding-top: 64px;
  }

  /* =======================================================
     NAV
  ======================================================= */

  .nav-container {
    width: calc(100% - 24px);

    min-height: 62px;

    gap: 8px;
  }

  .nav-logo {
    gap: 6px;

    font-size: 0.72rem;
  }

  .nav-logo-icon {
    width: 31px;
    height: 31px;

    flex-basis: 31px;

    padding: 4px;

    border-radius: 8px;
  }

  .nav-links {
    gap: 5px;

    font-size: 0.62rem;
  }

  .nav-app {
    padding: 6px 8px;

    border-radius: 7px;

    white-space: nowrap;
  }

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

  .hero {
    min-height: 540px;

    padding: 65px 16px;
  }

  .hero-badge {
    padding: 6px 10px;

    font-size: 0.58rem;
  }

  .hero h1 {
    font-size: 2.45rem;

    letter-spacing: -0.045em;
  }

  .hero p {
    margin-top: 17px;

    font-size: 0.8rem;

    line-height: 1.7;
  }

  .hero-btns {
    flex-direction: column;

    align-items: stretch;

    gap: 8px;

    margin-top: 23px;
  }

  .btn-hero {
    width: 100%;

    min-height: 43px;

    padding: 0.6rem 1rem;

    font-size: 0.76rem;
  }

  .hero-trust {
    flex-direction: column;

    gap: 6px;

    margin-top: 20px;
  }

  .hero-trust-item {
    font-size: 0.66rem;
  }

  /* =======================================================
     SECTIONS
  ======================================================= */

  .section {
    width: calc(100% - 28px);

    padding: 55px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

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

  .section-sub {
    font-size: 0.77rem;

    line-height: 1.65;
  }

  /* =======================================================
     PORTAL
  ======================================================= */

  .portal-content h2 {
    font-size: 1.9rem;
  }

  .portal-content p {
    font-size: 0.79rem;
  }

  .portal-buttons {
    flex-direction: column;

    gap: 7px;
  }

  .portal-btn {
    width: 100%;

    min-height: 40px;

    font-size: 0.74rem;
  }

  .portal-card {
    padding: 19px;
  }

  /* =======================================================
     CATALOG
  ======================================================= */

  #try-on {
    padding-top: 55px;
  }

  .filter-controls {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 7px;

    margin-bottom: 16px;
  }

  #searchInput {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 38px;
    min-height: 38px;

    flex: none;

    padding: 0 11px;

    border-radius: 8px;

    font-size: 0.72rem;

    line-height: 38px;

    box-shadow: none;
  }

  #searchInput:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  }

  .category-pills {
    width: 100%;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;
  }

  .pill-btn {
    min-height: 31px;

    flex: 1 1 auto;

    padding: 5px 8px;

    font-size: 0.6rem;

    line-height: 1;
  }

  #vto-status {
    margin-bottom: 14px;

    padding: 8px 10px;

    border-radius: 8px;

    font-size: 0.64rem;
  }

  /* =======================================================
     FRAME GRID
  ======================================================= */

  #frame-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    align-items: stretch;
  }

  #frame-grid .frame-card {
    min-width: 0;

    height: 100%;

    display: flex;
    flex-direction: column;

    border-radius: 12px;
  }

  #frame-grid .frame-card:hover {
    transform: translateY(-2px);
  }

  /* =======================================================
     IMAGE
  ======================================================= */

  #frame-grid .frame-img-box {
    height: 120px;

    flex: 0 0 120px;

    border-bottom: 1px solid var(--slate-200);
  }

  #frame-grid .frame-img-box img {
    object-fit: contain;
  }

  /* =======================================================
     INFO
  ======================================================= */

  #frame-grid .frame-card > h3,
  #frame-grid .frame-card > h4 {
    padding: 8px 8px 0;

    font-size: 0.69rem;

    line-height: 1.25;
  }

  #frame-grid .frame-card > p {
    margin-top: 3px;

    padding: 0 8px;

    font-size: 0.55rem;

    line-height: 1.3;
  }

  #frame-grid .frame-card > p.price {
    margin-top: 4px;

    padding: 0 8px;

    font-size: 0.7rem;
  }

  /* =======================================================
     ACTIONS
     MOBILE ALIGNMENT
  ======================================================= */

  #frame-grid .card-actions {
    width: 100%;

    display: flex;
    align-items: stretch;

    gap: 4px;

    padding: 6px 7px 7px;

    margin-top: auto;

    flex-shrink: 0;
  }

  #frame-grid .card-actions button {
    flex: 1 1 0;

    width: 0;
    min-width: 0;

    height: 26px;
    min-height: 26px;
    max-height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0 5px;

    box-sizing: border-box;

    border-radius: 6px;

    font-size: 0.5rem;

    line-height: 1;

    white-space: nowrap;
  }

  /* =======================================================
     FEATURES
  ======================================================= */

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

  .feature-card {
    padding: 19px;
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .feature-card p {
    font-size: 0.74rem;
  }

  /* =======================================================
     DOCTOR
  ======================================================= */

  .doctor-section {
    gap: 20px;

    padding: 14px;

    border-radius: 15px;
  }

  .doctor-img-box {
    min-height: 230px;
  }

  .doctor-image {
    max-height: 230px;
  }

  .doctor-bio h3 {
    font-size: 1.3rem;
  }

  .doctor-description {
    font-size: 0.75rem;
  }

  /* =======================================================
     LOCATION
  ======================================================= */

  .location-info {
    padding: 19px;
  }

  .location-info h3 {
    font-size: 1.2rem;
  }

  .location-info > p {
    font-size: 0.74rem;
  }

  .map-wrapper,
  .map-embed {
    min-height: 275px;
  }

  /* =======================================================
     APP
  ======================================================= */

  .app-banner {
    padding: 21px;

    border-radius: 16px;
  }

  .app-banner-content h3 {
    font-size: 1.25rem;
  }

  .app-banner-content p {
    font-size: 0.74rem;
  }

  .app-qr-box {
    align-items: flex-start;
  }

  .app-qr-box img {
    width: 135px;
    height: 135px;
  }

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

  .footer-content {
    width: calc(100% - 28px);

    flex-direction: column;

    align-items: center;

    text-align: center;
  }

  .footer-links {
    justify-content: center;

    gap: 12px;
  }

  /* =======================================================
     MODALS
  ======================================================= */

  .modal {
    padding: 8px;
  }

  .modal-content {
    max-height: 94vh;

    border-radius: 13px;
  }

  .preview-body {
    grid-template-columns: 1fr;

    gap: 15px;

    padding: 15px;
  }

  .preview-img-holder {
    min-height: 205px;
  }

  .preview-img-holder img {
    max-height: 205px;
  }

  .preview-info h3 {
    font-size: 1.1rem;
  }

  .preview-info p {
    font-size: 0.74rem;
  }

  .try-on-btn {
    width: 100%;

    min-height: 40px;

    font-size: 0.74rem;
  }

  .vto-modal-content {
    height: 92vh;

    max-height: 94vh;
  }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {
  .nav-container {
    width: calc(100% - 20px);
  }

  .nav-logo-name {
    max-width: 105px;

    overflow: hidden;

    text-overflow: ellipsis;
  }

  .nav-links {
    gap: 4px;

    font-size: 0.57rem;
  }

  .nav-app {
    padding: 5px 7px;

    font-size: 0.58rem;
  }

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

  .hero {
    padding-left: 13px;
    padding-right: 13px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  /* =======================================================
     SECTIONS
  ======================================================= */

  .section {
    width: calc(100% - 22px);
  }

  /* =======================================================
     SEARCH
  ======================================================= */

  #searchInput {
    height: 36px;
    min-height: 36px;

    padding: 0 10px;

    font-size: 0.68rem;

    border-radius: 7px;

    line-height: 36px;
  }

  .filter-controls {
    gap: 6px;
  }

  .pill-btn {
    min-height: 29px;

    padding: 4px 6px;

    font-size: 0.56rem;
  }

  /* =======================================================
     FRAME GRID
  ======================================================= */

  #frame-grid {
    gap: 6px;
  }

  #frame-grid .frame-img-box {
    height: 105px;

    flex-basis: 105px;
  }

  #frame-grid .frame-card > h3,
  #frame-grid .frame-card > h4 {
    padding: 7px 7px 0;

    font-size: 0.63rem;
  }

  #frame-grid .frame-card > p {
    padding: 0 7px;

    font-size: 0.51rem;
  }

  #frame-grid .frame-card > p.price {
    padding: 0 7px;

    font-size: 0.65rem;
  }

  /* =======================================================
     FRAME ACTIONS
  ======================================================= */

  #frame-grid .card-actions {
    gap: 3px;

    padding: 5px 6px 6px;
  }

  #frame-grid .card-actions button {
    height: 24px;
    min-height: 24px;
    max-height: 24px;

    padding: 0 4px;

    font-size: 0.47rem;
  }

  /* =======================================================
     MODAL
  ======================================================= */

  .modal {
    padding: 5px;
  }
}

/* =========================================================
   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;
  }
}

/* =========================================================
   FOCUS STATES
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);

  outline-offset: 2px;
}
