/* ==========================================================================
   Dr. Robot Systems & Technologies
   Main stylesheet

   Beginner edit guide:
   - This file controls the look of every page.
   - Shared styles are near the top: colors, header, buttons, cards, forms,
     footer, and general layout.
   - Page-specific styles are grouped by page name: Home, Store, Repair,
     Trade-In, B2B, Projects, and Contact.
   - Responsive/mobile styles are at the bottom.
   - To change colors safely, edit the variables in :root first.
   ========================================================================== */

/* ==========================================================================
   1) Site Colors And Reusable Values
   These variables keep colors and shadows consistent across the site.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-strong: #eef4f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #5f6b7a;
  --primary: #0b7fab;
  --primary-dark: #075f82;
  --accent: #f2b84b;
  --border: #d7e2ec;
  --topbar: #101827;
  --footer: #0a111d;
  --success: #1f9d58;
  --danger: #b42318;
  --shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 24px 60px rgba(17, 24, 39, 0.14);
}

/* Dark mode values are activated by the header theme toggle. */
html.dark-mode,
body.dark-mode {
  color-scheme: dark;
  --bg: #0c111c;
  --surface: #111827;
  --surface-strong: #151d2b;
  --card: #151d2b;
  --text: #edf2f7;
  --muted: #a6b2c1;
  --primary: #38a8d5;
  --primary-dark: #1f8bb6;
  --border: #273246;
  --topbar: #070b12;
  --footer: #070b12;
}

html.dark-mode .btn-secondary,
html.dark-mode .btn-light,
body.dark-mode .btn-secondary,
body.dark-mode .btn-light {
  background: var(--card);
  color: var(--text);
}

html.dark-mode .home-feature-section,
html.dark-mode .standards-section,
html.dark-mode .b2b-cta-section,
html.dark-mode .projects-cta-section,
html.dark-mode .repair-device-selector,
html.dark-mode .repair-form-section,
html.dark-mode .page-b2b .services-section,
html.dark-mode .projects-showcase-section,
html.dark-mode .contact-page-section,
body.dark-mode .home-feature-section,
body.dark-mode .standards-section,
body.dark-mode .b2b-cta-section,
body.dark-mode .projects-cta-section,
body.dark-mode .repair-device-selector,
body.dark-mode .repair-form-section,
body.dark-mode .page-b2b .services-section,
body.dark-mode .projects-showcase-section,
body.dark-mode .contact-page-section {
  background: var(--bg);
}

html.dark-mode .hero::after,
html.dark-mode .repair-hero::after,
html.dark-mode .content-hero::after,
body.dark-mode .hero::after,
body.dark-mode .repair-hero::after,
body.dark-mode .content-hero::after {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 96%, transparent));
}

html.dark-mode .service-box,
html.dark-mode .product-card,
html.dark-mode .project-card,
html.dark-mode .home-path-card,
html.dark-mode .standard-card,
html.dark-mode .device-card,
html.dark-mode .repair-picker-card,
html.dark-mode .form-panel,
html.dark-mode .contact-details-panel,
html.dark-mode .contact-form-panel,
html.dark-mode .cart-summary-card,
html.dark-mode .cart-confirm-card,
html.dark-mode .repair-next-card,
html.dark-mode .repair-picker-panel,
body.dark-mode .service-box,
body.dark-mode .product-card,
body.dark-mode .project-card,
body.dark-mode .home-path-card,
body.dark-mode .standard-card,
body.dark-mode .device-card,
body.dark-mode .repair-picker-card,
body.dark-mode .form-panel,
body.dark-mode .contact-details-panel,
body.dark-mode .contact-form-panel,
body.dark-mode .cart-summary-card,
body.dark-mode .cart-confirm-card,
body.dark-mode .repair-next-card,
body.dark-mode .repair-picker-panel {
  background: linear-gradient(180deg, var(--card), var(--surface));
}

html.dark-mode .home-path-card,
body.dark-mode .home-path-card {
  background: var(--card);
}

html.dark-mode .home-path-card img,
body.dark-mode .home-path-card img {
  border-bottom: 1px solid var(--border);
}

html.dark-mode .product-media,
html.dark-mode .device-circle,
html.dark-mode .repair-picker-media,
html.dark-mode .cart-item-thumb,
body.dark-mode .product-media,
body.dark-mode .device-circle,
body.dark-mode .repair-picker-media,
body.dark-mode .cart-item-thumb {
  border-color: var(--border);
  background: radial-gradient(circle at center, rgba(56, 168, 213, 0.1), transparent 58%), var(--surface-strong);
}

html.dark-mode .home-path-card span,
html.dark-mode .service-box > span:first-child,
html.dark-mode .product-tag,
html.dark-mode .project-card-body span,
html.dark-mode .standard-card span,
body.dark-mode .home-path-card span,
body.dark-mode .service-box > span:first-child,
body.dark-mode .product-tag,
body.dark-mode .project-card-body span,
body.dark-mode .standard-card span {
  background: color-mix(in srgb, var(--primary) 18%, var(--surface));
  color: #bde8f8;
}

html.dark-mode .home-path-card .service-btn,
html.dark-mode .store-filter,
html.dark-mode .product-page-btn,
html.dark-mode .home-feature-list span,
html.dark-mode .project-card-body a,
html.dark-mode .repair-form-note span,
html.dark-mode .tradein-quick-steps span,
html.dark-mode .contact-method,
html.dark-mode .contact-socials a,
html.dark-mode .cart-pill,
html.dark-mode .cart-row,
html.dark-mode .cart-summary-total,
html.dark-mode .cart-confirm-card .muted,
html.dark-mode .repair-next-card .muted,
body.dark-mode .home-path-card .service-btn,
body.dark-mode .store-filter,
body.dark-mode .product-page-btn,
body.dark-mode .home-feature-list span,
body.dark-mode .project-card-body a,
body.dark-mode .repair-form-note span,
body.dark-mode .tradein-quick-steps span,
body.dark-mode .contact-method,
body.dark-mode .contact-socials a,
body.dark-mode .cart-pill,
body.dark-mode .cart-row,
body.dark-mode .cart-summary-total,
body.dark-mode .cart-confirm-card .muted,
body.dark-mode .repair-next-card .muted {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

html.dark-mode .store-filter.active,
html.dark-mode .store-filter:hover,
body.dark-mode .store-filter.active,
body.dark-mode .store-filter:hover {
  border-color: var(--primary);
  background: var(--primary-dark);
  color: #ffffff;
}

html.dark-mode .home-path-card .service-btn:hover,
html.dark-mode .product-page-btn.active,
html.dark-mode .project-card-body a:hover,
body.dark-mode .home-path-card .service-btn:hover,
body.dark-mode .product-page-btn.active,
body.dark-mode .project-card-body a:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

html.dark-mode .product-gallery-controls,
html.dark-mode .cart-qty-controls,
html.dark-mode .remove-item,
body.dark-mode .product-gallery-controls,
body.dark-mode .cart-qty-controls,
body.dark-mode .remove-item {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
}

html.dark-mode .cart-line-price,
body.dark-mode .cart-line-price {
  background: color-mix(in srgb, var(--primary) 18%, var(--surface));
  color: #bde8f8;
}

html.dark-mode .page-tradein .form-panel,
body.dark-mode .page-tradein .form-panel {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
}

html.dark-mode .page-tradein .form-panel h1,
body.dark-mode .page-tradein .form-panel h1 {
  color: var(--text);
}

html.dark-mode .home-feature-gallery img,
body.dark-mode .home-feature-gallery img {
  border-color: var(--border);
}

html.dark-mode .contact-strip-inner,
html.dark-mode .store-strip-inner,
html.dark-mode .repair-trust-inner,
html.dark-mode .b2b-strip-inner,
html.dark-mode .projects-strip-inner,
body.dark-mode .contact-strip-inner,
body.dark-mode .store-strip-inner,
body.dark-mode .repair-trust-inner,
body.dark-mode .b2b-strip-inner,
body.dark-mode .projects-strip-inner {
  background: var(--card);
}

html.dark-mode select,
html.dark-mode input,
html.dark-mode textarea,
body.dark-mode select,
body.dark-mode input,
body.dark-mode textarea {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--text);
}

/* ==========================================================================
   2) Browser Reset And Base Page Styles
   This removes inconsistent browser spacing and sets the site font.
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.btn:focus-visible,
.login-link:focus-visible,
.nav-bar a:focus-visible,
.store-filter:focus-visible,
.product-page-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 32%, transparent);
}

/* ==========================================================================
   3) Top Bar, Header, Logo, And Navigation
   This section controls the strip at the very top and the main menu.
   ========================================================================== */
.top-bar {
  background: var(--topbar);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  text-align: center;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(18px);
}

.header-row {
  width: min(1240px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

/* Header logo: this is the full brand artwork shown in the navigation. */
.main-header .logo img,
.header-row .logo img {
  width: clamp(150px, 14vw, 190px);
  max-height: 54px;
  object-fit: contain;
}

.nav-bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, var(--bg));
}

.nav-bar a {
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-bar a:hover,
.nav-bar a.active {
  background: var(--card);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.login-link {
  width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, var(--card));
  color: var(--primary-dark);
  line-height: 1;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.login-link:hover,
.login-link.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.login-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The hamburger button appears on smaller screens only. */
.hamburger {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  padding: 11px 15px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.theme-toggle {
  flex: 0 0 auto;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #f5b400;
  animation: themeFlash 1.45s ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(245, 180, 0, 0.48));
}

.theme-ray {
  animation: themeRayFlash 1.45s ease-in-out infinite;
  transform-origin: center;
}

@keyframes themeFlash {
  0%,
  100% {
    opacity: 0.72;
    filter: drop-shadow(0 0 4px rgba(245, 180, 0, 0.28));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 13px rgba(245, 180, 0, 0.74));
  }
}

@keyframes themeRayFlash {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

html.dark-mode .theme-toggle,
body.dark-mode .theme-toggle {
  background: var(--surface-strong);
}

html.dark-mode .theme-icon,
body.dark-mode .theme-icon,
html.dark-mode .theme-ray,
body.dark-mode .theme-ray {
  animation: none;
  filter: none;
}

html.dark-mode .theme-icon,
body.dark-mode .theme-icon {
  color: #bde8f8;
}

html.dark-mode .theme-ray,
body.dark-mode .theme-ray {
  opacity: 0.55;
}

html.dark-mode .login-link,
body.dark-mode .login-link {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: color-mix(in srgb, var(--primary) 18%, var(--surface-strong));
  color: #bde8f8;
}

html.dark-mode .login-link:hover,
html.dark-mode .login-link.active,
body.dark-mode .login-link:hover,
body.dark-mode .login-link.active {
  background: var(--primary-dark);
  color: #ffffff;
}

body.auth-modal-open {
  overflow: hidden;
}

body.auth-modal-open > :not(.auth-modal-root) {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.auth-modal-root {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal-root[hidden],
.auth-modal-form[hidden],
.auth-modal-tabs[hidden],
.auth-modal-signed-in[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 15, 0.68);
  backdrop-filter: blur(9px);
}

.auth-modal-card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: #171717;
  color: #f4f4f5;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  overflow-y: auto;
}

.auth-modal-head {
  position: relative;
  display: grid;
  justify-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 56px 18px;
  text-align: center;
}

.auth-modal-head .eyebrow {
  color: #38a8d5;
}

.auth-modal-head h2 {
  margin-top: 4px;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.16;
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.auth-modal-close:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.auth-modal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 28px 0;
}

.auth-modal-tabs,
.auth-modal-form,
.auth-modal-signed-in {
  max-width: 440px;
  margin-right: auto;
  margin-left: auto;
}

.auth-modal-tab {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #202020;
  color: #a1a1aa;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-modal-tab.active {
  border-color: rgba(56, 168, 213, 0.45);
  background: rgba(56, 168, 213, 0.16);
  color: #bde8f8;
}

.auth-modal-form {
  display: none;
  gap: 14px;
  padding: 20px 28px 6px;
}

.auth-modal-form.active {
  display: grid;
}

.auth-register-form.active {
  max-width: 500px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 13px;
}

.auth-register-form .auth-submit {
  grid-column: 1 / -1;
}

.auth-modal-copy {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.auth-modal-form label {
  display: grid;
  gap: 7px;
}

.auth-modal-form label > span {
  color: #c4c4cc;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.auth-field {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #1f1f1f;
  padding: 0 14px;
}

.auth-field:focus-within {
  border-color: #38a8d5;
  box-shadow: 0 0 0 3px rgba(56, 168, 213, 0.16);
}

.auth-field input {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.98rem;
  outline: 0;
  padding: 0;
}

.auth-field input:focus,
.auth-field input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.auth-field input::placeholder {
  color: #777782;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 0 0 1000px #1f1f1f inset;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-field-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #d4d4d8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-submit {
  min-height: 46px;
  border: 1px solid #07945a;
  border-radius: 8px;
  background: #057a49;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  margin-top: 4px;
}

.auth-submit:hover {
  background: #06995b;
}

.auth-form-row {
  display: flex;
  justify-content: center;
  margin-top: -5px;
}

.auth-link-button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bde8f8;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 8px;
}

.auth-link-button:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-wide-action {
  width: 100%;
}

.auth-modal-tab:focus-visible,
.auth-modal-close:focus-visible,
.auth-submit:focus-visible,
.auth-secondary-action:focus-visible,
.auth-link-button:focus-visible {
  outline: 3px solid #38a8d5;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(56, 168, 213, 0.22);
}

.auth-modal-message {
  max-width: 440px;
  min-height: 22px;
  margin: 6px auto 20px;
  padding: 0 28px;
  color: #a1a1aa;
  font-size: 0.9rem;
  text-align: center;
}

.auth-modal-message[data-tone="ok"] {
  color: #65d99c;
}

.auth-modal-message[data-tone="danger"] {
  color: #ff9b90;
}

.auth-modal-signed-in {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 28px 8px;
  text-align: center;
}

.auth-signed-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(56, 168, 213, 0.16);
  color: #bde8f8;
}

.auth-signed-avatar .auth-field-icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.auth-modal-signed-in span {
  color: #a1a1aa;
}

.auth-signed-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.auth-secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #202020;
  color: #f4f4f5;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-secondary-action:hover {
  border-color: rgba(56, 168, 213, 0.5);
  color: #bde8f8;
}

/* ==========================================================================
   4) Shared Buttons, Labels, And Common Text
   These classes are reused on many pages.
   ========================================================================== */
.btn,
.service-btn,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  padding: 11px 18px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover,
.service-btn:hover,
.panel-link:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #0789bd;
  color: #ffffff;
}

.btn-primary:hover {
  background: #056f99;
}

.btn-secondary {
  background: #ffffff;
  color: #101827;
}

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

.btn-whatsapp {
  background: var(--success);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #18874b;
}

.btn-whatsapp[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.eyebrow,
.panel-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.repair-hero .eyebrow,
.content-hero .eyebrow,
.hero .panel-label,
.repair-hero .panel-label,
.content-hero .panel-label {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

/* ==========================================================================
   5) Shared Sections And Cards
   Use these for page sections, headings, cards, grids, and form panels.
   ========================================================================== */
.section-heading {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading h2,
.form-panel h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
}

.section-intro {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
}

.services-section,
.products,
.cart-section,
.form-section,
.contact-page-section,
.home-path-section,
.home-feature-section,
.standards-section,
.home-cta-section,
.b2b-cta-section,
.projects-cta-section {
  padding: 74px 20px;
}

.services-section,
.products,
.cart-section,
.form-section,
.home-path-section,
.contact-page-section {
  background: var(--surface);
}

.home-feature-section,
.standards-section,
.b2b-cta-section,
.projects-cta-section {
  background: #ffffff;
}

.service-box,
.product-card,
.project-card,
.standard-card,
.form-panel,
.contact-details-panel,
.contact-form-panel,
.cart-summary-card,
.cart-confirm-card,
.repair-next-card,
.repair-picker-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--shadow);
}

.services-grid,
.product-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 24px;
}

/* ==========================================================================
   6) Shared Hero Styles
   This controls the large first section on each page.
   ========================================================================== */
.hero,
.repair-hero,
.content-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 96px 20px 110px;
  color: #ffffff;
  text-align: left;
}

.hero::after,
.repair-hero::after,
.content-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, rgba(246, 248, 251, 0.98));
  content: "";
  pointer-events: none;
}

.hero-layout,
.repair-hero-inner,
.content-hero > div,
.store-hero-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-layout,
.repair-hero-inner,
.store-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: center;
  gap: 25px;
}

.hero h1,
.repair-hero-copy h1,
.content-hero h1 {
  max-width: 820px;
  margin: 8px 0 18px;
  font-size: clamp(2.85rem, 6.5vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span,
.store-hero-copy h1 span {
  color: var(--accent);
}

.hero p:not(.eyebrow),
.repair-hero-copy p:not(.eyebrow),
.content-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #edf7fb;
  font-size: 1.1rem;
}

.hero-buttons,
.repair-hero-actions,
.b2b-hero-actions,
.projects-hero-actions,
.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Proof chips: compact category labels under selected page hero buttons. */
.b2b-proof,
.projects-proof,
.contact-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Glass panels sit inside dark hero sections. */
.hero-panel,
.repair-hero-card,
.store-order-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(13, 28, 44, 0.66);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.hero-panel h2,
.repair-hero-card h2,
.store-order-card h2 {
  margin: 8px 0 18px;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.2;
}

.hero-panel ul,
.repair-hero-card ul,
.store-order-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li,
.repair-hero-card li,
.store-order-card li {
  position: relative;
  padding-left: 40px;
  color: #edf7fb;
}

.hero-panel li::before,
.repair-hero-card li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #101827;
  content: "✓";
  font-size: 0.68rem;
  font-weight: 900;
}

.store-order-card ol {
  counter-reset: store-step;
}

.store-order-card li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #101827;
  counter-increment: store-step;
  content: counter(store-step);
  font-size: 0.76rem;
  font-weight: 900;
}

.panel-link {
  width: 100%;
  margin-top: 24px;
  background: var(--success);
  color: #ffffff;
}

/* ==========================================================================
   7) Shared Info Strips
   These strips overlap below hero sections and show quick facts.
   ========================================================================== */
.contact-strip,
.store-strip,
.repair-trust-strip,
.b2b-strip,
.projects-strip {
  position: relative;
  z-index: 2;
  background: var(--surface);
  padding: 0 20px;
}

.contact-strip-inner,
.store-strip-inner,
.repair-trust-inner,
.b2b-strip-inner,
.projects-strip-inner {
  width: min(1080px, 100%);
  margin: -40px auto 0;
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
  overflow: hidden;
}

.contact-strip-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-strip-inner,
.repair-trust-inner,
.b2b-strip-inner,
.projects-strip-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-strip-inner {
  width: min(920px, 100%);
}

.repair-trust-inner,
.b2b-strip-inner,
.projects-strip-inner {
  width: min(980px, 100%);
}

.contact-strip-inner > *,
.store-strip-inner > *,
.repair-trust-inner > *,
.b2b-strip-inner > *,
.projects-strip-inner > * {
  display: grid;
  gap: 3px;
  padding: 18px 22px;
  text-decoration: none;
}

.contact-strip-inner > * + *,
.store-strip-inner > * + *,
.repair-trust-inner > * + *,
.b2b-strip-inner > * + *,
.projects-strip-inner > * + * {
  border-left: 1px solid var(--border);
}

.contact-strip-inner span,
.store-strip-inner span,
.b2b-strip-inner span,
.projects-strip-inner span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.repair-trust-inner strong,
.contact-strip-inner strong,
.store-strip-inner strong,
.b2b-strip-inner strong,
.projects-strip-inner strong {
  color: var(--text);
}

.contact-strip-inner a strong {
  color: var(--primary-dark);
}

.repair-trust-inner span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   8) Forms And Inputs
   This controls all input, select, and textarea styling.
   ========================================================================== */
select,
input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d6e2ec;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 12px;
}

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

.form-panel {
  width: min(620px, 100%);
  padding: 34px;
}

.form-panel form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-helper {
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
}

.form-panel .btn,
.contact-form .btn,
.product-card .btn {
  width: 100%;
}

/* ==========================================================================
   9) Footer
   The footer is shared by every page.
   ========================================================================== */
.footer {
  display: grid;
  grid-template-columns:
    minmax(22px, 1fr)
    minmax(230px, 340px)
    minmax(130px, 190px)
    minmax(230px, 280px)
    minmax(250px, 310px)
    minmax(22px, 1fr);
  column-gap: 42px;
  row-gap: 34px;
  background: #0d1624;
  color: #ffffff;
  padding: 48px 0 0;
  text-align: left;
}

.footer-inner {
  display: contents;
}

/* Footer brand column: logo, short service summary, and social links. */
.footer-brand {
  grid-column: 2;
}

/* Footer company column: navigation links shared across every page. */
.footer-links {
  grid-column: 3;
}

/* Footer contact column: phone, email, hours, and service area. */
.footer-contact {
  grid-column: 4;
}

/* Footer disclaimer column: compact legal/trademark notice card. */
.footer-disclaimer {
  grid-column: 5;
}

.footer h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-logo {
  display: inline-flex;
  width: min(170px, 100%);
  margin-bottom: 14px;
  text-decoration: none;
}

/* Footer logo: same full brand artwork, scaled for the footer. */
.footer-logo img {
  width: 100%;
  height: auto;
  background: #ffffff;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.footer-brand p,
.footer-contact p {
  color: #d6e0ea;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-brand p {
  max-width: 330px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-socials a,
.contact-socials a {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.footer-socials a:hover,
.contact-socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 184, 75, 0.46);
  background: rgba(242, 184, 75, 0.14);
}

.footer-socials img,
.contact-socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links a,
.footer-contact a {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

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

.footer-contact span {
  display: block;
  margin-bottom: 2px;
  color: #8ea2b8;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-disclaimer {
  max-height: 190px;
  margin: 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #d6e0ea;
  padding: 16px;
  scrollbar-color: rgba(255, 255, 255, 0.72) transparent;
  scrollbar-width: thin;
}

.footer-disclaimer::-webkit-scrollbar {
  width: 8px;
}

.footer-disclaimer::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.footer-disclaimer strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-disclaimer p {
  max-width: none;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-bottom {
  grid-column: 2 / 6;
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #aebccc;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 14px 0 18px;
}

/* ==========================================================================
   10) Home Page
   Styles for index.html only.
   ========================================================================== */
.page-home .hero-home {
  background:
    linear-gradient(115deg, rgba(7, 95, 130, 0.94), rgba(16, 24, 39, 0.95)),
    url("../images/services/screen-repair.jpg") center / cover;
}

.home-hero-title span {
  display: block;
}

.home-quick-actions {
  display: none;
}

.home-path-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-path-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-path-card:hover,
.service-box:hover,
.product-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
  box-shadow: var(--shadow-strong);
}

.home-path-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface);
}

.home-path-card span,
.service-box > span:first-child,
.product-tag,
.project-card-body span {
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, #ffffff);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 6px 11px;
  text-transform: uppercase;
}

.home-path-card span {
  margin: 22px 22px 12px;
}

.home-path-card h3 {
  margin: 0 22px 8px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.home-path-card p {
  flex: 1;
  margin: 0 22px 22px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.home-path-card .service-btn {
  width: fit-content;
  margin: 0 22px 24px;
  background: color-mix(in srgb, var(--primary) 10%, #ffffff);
  color: var(--primary-dark);
}

.home-feature-section {
  background: linear-gradient(90deg, rgba(246, 248, 251, 0.92) 0%, #ffffff 46%, #ffffff 100%);
}

.home-feature-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 42px;
}

.home-feature-copy h2 {
  max-width: 560px;
  margin: 8px 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.08;
}

.home-feature-copy > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
}

.home-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 28px;
}

.home-feature-list span {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 750;
  padding: 12px 14px;
}

.home-feature-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 215px;
  gap: 14px;
}

.home-feature-gallery img {
  width: 100%;
  height: 100%;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
}

.home-feature-gallery .feature-large {
  grid-row: span 2;
}

.standards-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.standard-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.standard-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, #ffffff);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.standard-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.standard-card p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.home-cta-panel,
.b2b-cta-panel,
.projects-cta-panel {
  width: min(1060px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 127, 171, 0.24), rgba(242, 184, 75, 0.09)), #101827;
  color: #ffffff;
  padding: 34px;
  box-shadow: var(--shadow);
}

.home-cta-panel .eyebrow,
.b2b-cta-panel .eyebrow,
.projects-cta-panel .eyebrow {
  color: var(--accent);
}

.home-cta-panel h2,
.b2b-cta-panel h2,
.projects-cta-panel h2 {
  max-width: 720px;
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.home-cta-panel p:not(.eyebrow),
.b2b-cta-panel p:not(.eyebrow),
.projects-cta-panel p:not(.eyebrow) {
  max-width: 740px;
  color: #d7e0eb;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   11) Store Page
   Product catalogue, cart, and order confirmation.
   ========================================================================== */
.page-store .store-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 184, 75, 0.16), transparent 30%),
    linear-gradient(115deg, rgba(7, 95, 130, 0.93), rgba(16, 24, 39, 0.94)),
    url("../images/store/typec-c(w1).webp") center / cover;
}

.store-toolbar {
  width: min(1180px, 100%);
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.store-filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 7px 12px;
}

.store-filter.active,
.store-filter:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.product-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.page-store .product-grid {
  width: min(1120px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-store .product-card.is-hidden-page {
  display: none;
}

.page-store .product-card.is-filter-hidden {
  display: none;
}

.product-pagination {
  width: min(1120px, 100%);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.product-page-btn {
  display: inline-grid;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-color: #dbe6ef;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fbfdff 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-media {
  position: relative;
  height: 255px;
  display: grid;
  place-items: center;
  padding: 34px 38px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid #e4ebf2;
  border-radius: 0;
  background:
    radial-gradient(circle at center, rgba(7, 127, 171, 0.05), transparent 58%),
    #ffffff;
  overflow: hidden;
}

.product-media img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  object-position: center;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.product-tag {
  margin-bottom: 8px;
  font-size: 0.6rem;
  padding: 4px 8px;
}

.product-card h3 {
  min-height: 2.35em;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-desc {
  min-height: 1.45em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.price {
  margin: 0;
  color: var(--success);
  font-size: 1rem;
  font-weight: 850;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.product-options {
  display: none;
}

.product-option {
  min-width: 0;
}

.product-option span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.product-option select,
.product-option input {
  min-height: 34px;
  border-color: #d8e1ea;
  color: #5d6876;
  font-size: 0.74rem;
  font-weight: 650;
}

.product-option select {
  appearance: auto;
}

.product-option select.option-color {
  display: none;
}

.product-option-hidden {
  display: none;
}

.product-gallery-controls {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(215, 226, 236, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.product-gallery-btn {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.product-favorite {
  display: none;
}

.product-favorite.active {
  background: #e43148;
  color: #ffffff;
}

.product-qty-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-card .add-to-cart {
  width: auto;
  min-height: 34px;
  gap: 5px;
  border-radius: 8px;
  background: var(--primary);
  padding: 7px 9px;
  font-size: 0.68rem;
  white-space: nowrap;
}

.cart-icon {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cart-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: stretch;
  gap: 24px;
}

.cart-summary-card,
.cart-confirm-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
}

.cart-summary-card::before,
.cart-confirm-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  content: "";
}

.cart-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.cart-summary-head h3,
.cart-confirm-card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, #ffffff);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 850;
  padding: 7px 11px;
}

/* Small number bubble used by the store cart button and cart summary. */
.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1;
}

#cart-items {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cart-empty {
  display: grid;
  gap: 4px;
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.045);
  padding: 14px;
}

.cart-row::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--primary);
  content: "";
}

.cart-item-thumb {
  width: 76px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e1ebf3;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #eef4fa);
  overflow: hidden;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #cddbea;
  border-radius: 999px;
  overflow: hidden;
}

.cart-qty-controls span {
  min-width: 34px;
  color: var(--text);
  font-weight: 850;
  text-align: center;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--surface);
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

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

.cart-line-price {
  min-width: 70px;
  border-radius: 999px;
  background: #eef8fc;
  color: var(--primary-dark);
  font-weight: 850;
  padding: 8px 12px;
  text-align: center;
}

.remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  background: #ffffff;
  color: #66758a;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 7px 10px;
}

.remove-item:hover {
  border-color: color-mix(in srgb, #ef4444 42%, #d9e5ef);
  background: #fff7f7;
  color: var(--danger);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid #d9e5ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbfe, #eef5fa);
  padding: 16px;
  font-size: 1.15rem;
}

.cart-summary-total strong {
  color: var(--text);
  font-size: 1.35rem;
}

.cart-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
}

.cart-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-confirm-card ol,
.repair-next-card ol {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.cart-confirm-card li,
.repair-next-card li {
  position: relative;
  min-height: 36px;
  padding: 5px 0 5px 42px;
}

.cart-confirm-card li::before,
.repair-next-card li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  counter-increment: step;
  content: counter(step);
  font-size: 0.74rem;
  font-weight: 900;
}

.cart-confirm-card .muted,
.repair-next-card .muted {
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 6%, #ffffff);
  padding: 14px;
  font-size: 0.92rem;
}

/* ==========================================================================
   12) Repair Page
   Device selector, dynamic picker, and repair form.
   ========================================================================== */
.page-repair .repair-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 184, 75, 0.16), transparent 30%),
    linear-gradient(115deg, rgba(7, 95, 130, 0.93), rgba(16, 24, 39, 0.94)),
    url("../images/services/charging-port.jpg") center / cover;
}

.repair-device-selector {
  padding: 68px 20px 48px;
  background: radial-gradient(circle at 50% 0%, rgba(11, 127, 171, 0.08), transparent 32%), linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
}

.device-selector-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.device-selector-heading {
  width: min(820px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}

.device-selector-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.device-selector-heading span {
  color: var(--primary);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(108px, 1fr));
  gap: 14px;
}

/* Device selector cards: first-step repair category buttons with simple icons. */
.device-card {
  min-height: 168px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 14px 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.device-card:hover,
.device-card.is-selected {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 20px 42px rgba(11, 127, 171, 0.14);
}

.device-circle {
  width: clamp(78px, 7vw, 100px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--primary) 60%, #ffffff);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--primary) 7%, #ffffff));
  overflow: hidden;
}

.repair-picker-media {
  width: min(132px, 100%);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.device-circle img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.repair-picker-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-label {
  max-width: 126px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.16;
}

.repair-picker {
  margin-top: 28px;
}

/* Repair picker panel: dynamic card area shown after a device is selected. */
.repair-picker-panel {
  padding: 26px;
}

.repair-picker-heading {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.repair-picker-heading h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.15;
}

.repair-picker-heading p:not(.eyebrow) {
  color: var(--muted);
}

.repair-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

/* Repair picker cards: series, model, and fault choices rendered by repair.html. */
.repair-picker-card {
  min-height: 160px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 16px 12px;
  text-align: center;
}

.repair-picker-card:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: color-mix(in srgb, var(--primary) 7%, #ffffff);
}

/* Label below each repair icon. Keep these words short so the cards stay neat. */
.repair-picker-label {
  color: var(--text);
  line-height: 1.15;
}

.repair-picker-fault {
  min-height: 118px;
}

.repair-picker-back,
.repair-picker-back-models {
  border-style: dashed;
  color: var(--primary-dark);
}

.repair-picker-back .repair-picker-media,
.repair-picker-back-models .repair-picker-media {
  display: none;
}

.repair-form-section {
  padding-top: 54px;
  background: radial-gradient(circle at 28% 0%, rgba(242, 184, 75, 0.09), transparent 30%), linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.repair-form-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.85fr);
  gap: 24px;
}

.repair-request-panel {
  width: 100%;
  padding: 36px;
}

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

.repair-form-grid textarea,
.repair-form-grid button {
  grid-column: 1 / -1;
}

.repair-form-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 6px;
}

.repair-form-note span {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 11px 13px;
}

.repair-next-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(135deg, rgba(11, 127, 171, 0.08), rgba(242, 184, 75, 0.05)), #ffffff;
}

/* ==========================================================================
   13) Trade-In Page
   Valuation form and guide panel.
   ========================================================================== */
.page-tradein .tradein-form-section {
  position: relative;
  min-height: auto;
  padding: 72px 20px 86px;
  background:
    radial-gradient(circle at 22% 16%, rgba(242, 184, 75, 0.14), transparent 28%),
    linear-gradient(115deg, rgba(7, 95, 130, 0.9), rgba(16, 24, 39, 0.9)),
    url("../images/services/deviceunlock.jpg") center / cover;
}

.page-tradein .tradein-form-section::after {
  position: absolute;
  inset: auto 0 0;
  height: 94px;
  background: linear-gradient(180deg, transparent, rgba(10, 17, 29, 0.98));
  content: "";
  pointer-events: none;
}

.tradein-form-layout {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  display: block;
}

.page-tradein .form-panel {
  width: 100%;
  max-width: none;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  padding: 34px;
}

.page-tradein .form-panel h1 {
  max-width: 560px;
  margin-bottom: 0;
  color: #111827;
  font-size: clamp(2.2rem, 4.8vw, 3.3rem);
  line-height: 1.04;
}

.page-tradein .form-helper {
  max-width: 540px;
}

.tradein-quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.tradein-quick-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #d8e5ef;
  border-radius: 8px;
  background: #f7fbfd;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 9px 10px;
}

.tradein-quick-steps strong {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
}

.page-tradein .form-panel form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.page-tradein .form-panel #tmodel,
.page-tradein .form-panel textarea,
.page-tradein .form-panel button {
  grid-column: 1 / -1;
}

.tradein-small-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ==========================================================================
   14) B2B, Projects, And Contact Pages
   These pages use the shared content hero plus their own cards/strips.
   ========================================================================== */
.page-b2b .content-hero {
  min-height: 52vh;
  padding-top: 82px;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 184, 75, 0.16), transparent 30%),
    linear-gradient(115deg, rgba(7, 95, 130, 0.92), rgba(16, 24, 39, 0.94)),
    url("../images/store/sata-usb.jpg") center / cover;
}

.page-b2b .content-hero > div {
  max-width: 780px;
}

.page-b2b .content-hero h1 {
  max-width: 740px;
}

.page-b2b .content-hero p:not(.eyebrow) {
  max-width: 650px;
}

.page-b2b .b2b-hero-actions {
  margin-top: 24px;
}

.b2b-proof span,
.projects-proof span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 12px;
}

.page-projects .content-hero {
  min-height: 52vh;
  padding-top: 82px;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 82% 58%, rgba(242, 184, 75, 0.16), transparent 22%),
    linear-gradient(115deg, rgba(7, 95, 130, 0.91), rgba(16, 24, 39, 0.94)),
    url("../images/projects/bg.jpg") center / cover;
}

.page-projects .content-hero > div {
  max-width: 790px;
}

.page-projects .content-hero h1 {
  max-width: 780px;
}

.page-projects .content-hero p:not(.eyebrow) {
  max-width: 670px;
}

.page-projects .projects-hero-actions {
  margin-top: 24px;
}

.page-contact .content-hero {
  min-height: 52vh;
  padding-top: 82px;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 184, 75, 0.16), transparent 30%),
    linear-gradient(115deg, rgba(7, 95, 130, 0.92), rgba(16, 24, 39, 0.94)),
    url("../images/store/sata-usb.jpg") center / cover;
}

.page-contact .content-hero > div {
  max-width: 790px;
}

.page-contact .content-hero h1 {
  max-width: 780px;
}

.page-contact .content-hero p:not(.eyebrow) {
  max-width: 650px;
}

.page-contact .contact-hero-actions {
  margin-top: 24px;
}

.contact-proof span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 12px;
}

.page-b2b .services-section,
.projects-showcase-section,
.contact-page-section {
  background: radial-gradient(circle at 50% 0%, rgba(11, 127, 171, 0.08), transparent 32%), linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
}

.page-contact .contact-strip-inner {
  width: min(980px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-b2b .services-section {
  padding-top: 64px;
  padding-bottom: 68px;
}

.page-projects .projects-showcase-section {
  padding-top: 66px;
  padding-bottom: 68px;
}

.page-b2b .services-grid {
  gap: 20px;
}

.page-projects .projects-grid {
  gap: 20px;
}

.service-box {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-box > span:first-child {
  margin-bottom: 14px;
}

.service-box h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.service-box p {
  margin-bottom: 18px;
  color: var(--muted);
}

.service-points {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.service-points li {
  position: relative;
  padding-left: 18px;
}

.service-points li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.projects-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--surface);
}

.project-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.project-card-body span {
  margin-bottom: 14px;
}

.project-card-body h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.project-card-body p {
  margin-bottom: 16px;
  color: var(--muted);
}

.project-card-body a {
  width: fit-content;
  margin-top: auto;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 10%, #ffffff);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
}

.project-card-body a:hover {
  background: var(--primary);
  color: #ffffff;
}

.contact-page-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
}

.contact-details-panel,
.contact-form-panel {
  padding: 30px;
}

.contact-details-panel h2,
.contact-form-panel h2 {
  margin: 6px 0 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
}

.contact-helper {
  margin-top: -6px;
  color: var(--muted);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contact-method {
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7fbfd;
  padding: 14px;
  text-decoration: none;
}

.contact-method span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-method strong,
.contact-method[href] strong {
  color: var(--primary-dark);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-socials a {
  border-color: var(--border);
  background: #ffffff;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.contact-form #contactTopic,
.contact-form textarea,
.contact-form button {
  grid-column: 1 / -1;
}

/* ==========================================================================
   15) Customer Account
   Customer login and request tracking once Supabase is connected.
   ========================================================================== */
.account-section {
  padding-top: 72px;
}

.account-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.account-auth-panel,
.account-dashboard {
  padding: 30px;
}

.account-auth-panel h2,
.account-dashboard h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.account-form {
  display: none;
}

.account-form.active {
  display: grid;
}

.account-link-action {
  grid-column: 1 / -1;
  justify-self: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 4px 8px;
}

.account-link-action:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-request-form {
  padding-top: 8px;
}

.account-request-form select,
.account-request-form textarea,
.account-request-form button {
  grid-column: 1 / -1;
}

.account-request-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.account-request-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.account-request-card p {
  margin: 8px 0;
  color: var(--muted);
}

.form-helper[data-tone="ok"] {
  color: var(--success);
}

.form-helper[data-tone="danger"] {
  color: var(--danger);
}

/* ==========================================================================
   16) Tablet Layout
   These rules apply when the screen is 900px wide or smaller.
   ========================================================================== */
@media (max-width: 900px) {
  .header-row {
    width: min(760px, calc(100% - 36px));
    gap: 14px;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-bar {
    position: fixed;
    top: 87px;
    right: 18px;
    width: min(280px, calc(100vw - 36px));
    display: grid;
    justify-items: stretch;
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-strong);
    transform: translateX(120%);
    transition: transform 0.24s ease;
  }

  .nav-bar.active {
    transform: translateX(0);
  }

  .nav-bar a {
    border-radius: 8px;
    padding: 13px 14px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero,
  .repair-hero,
  .content-hero,
  .page-tradein .tradein-form-section {
    min-height: auto;
    padding: 58px 18px 78px;
  }

  .page-b2b .content-hero {
    min-height: auto;
    padding: 58px 18px 70px;
  }

  .page-projects .content-hero {
    min-height: auto;
    padding: 58px 18px 70px;
  }

  .page-contact .content-hero {
    min-height: auto;
    padding: 58px 18px 70px;
  }

  .hero-layout,
  .repair-hero-inner,
  .store-hero-layout,
  .content-hero > div,
  .tradein-form-layout,
  .home-feature-grid,
  .repair-form-layout,
  .contact-page-grid,
  .account-shell,
  .cart-shell {
    width: min(760px, 100%);
    grid-template-columns: 1fr;
  }

  .hero h1,
  .repair-hero-copy h1,
  .content-hero h1,
  .page-tradein .form-panel h1 {
    font-size: clamp(2.6rem, 7vw, 3.7rem);
  }

  .page-tradein .form-panel h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .contact-strip-inner,
  .store-strip-inner,
  .repair-trust-inner,
  .b2b-strip-inner,
  .projects-strip-inner {
    width: min(760px, 100%);
  }

  .contact-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .home-path-grid,
  .standards-grid,
  .projects-grid,
  .product-grid {
    width: min(760px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-store .product-grid {
    width: min(760px, 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .device-grid {
    width: min(760px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .home-cta-panel,
  .b2b-cta-panel,
  .projects-cta-panel {
    width: min(760px, 100%);
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns:
      minmax(18px, 1fr)
      minmax(0, 330px)
      minmax(0, 330px)
      minmax(18px, 1fr);
    gap: 28px;
    padding-top: 38px;
  }

  .footer-brand {
    grid-column: 2;
  }

  .footer-links {
    grid-column: 3;
  }

  .footer-contact {
    grid-column: 2;
  }

  .footer-disclaimer {
    grid-column: 3;
    max-height: 180px;
  }

  .footer-bottom {
    grid-column: 2 / 4;
  }
}

/* ==========================================================================
   16) Mobile Layout
   These rules apply when the screen is 560px wide or smaller.
   ========================================================================== */
@media (max-width: 560px) {
  .top-bar {
    font-size: 0.7rem;
    line-height: 1.25;
    padding: 7px 10px;
  }

  .header-row {
    width: calc(100% - 24px);
    min-height: 60px;
    gap: 8px;
  }

  .main-header .logo img,
  .header-row .logo img {
    width: 138px;
    max-height: 46px;
  }

  .nav-bar {
    top: 75px;
    right: 5px;
    width: calc(100vw - 24px);
  }

  .theme-toggle {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .header-actions {
    gap: 7px;
  }

  .login-link {
    width: 38px;
    min-height: 38px;
  }

  .login-icon,
  .theme-icon {
    width: 16px;
    height: 16px;
  }

  .hamburger {
    padding: 10px 12px;
  }

  .hero,
  .repair-hero,
  .content-hero,
  .page-tradein .tradein-form-section {
    padding: 38px 12px 50px;
  }

  .page-b2b .content-hero {
    padding: 34px 8px 44px;
  }

  @media (max-width: 420px) {
    .main-header .logo img,
    .header-row .logo img {
      width: 120px;
    }

    .login-link {
      width: 38px;
    }
  }

  .auth-modal-root {
    padding: 14px;
  }

  .auth-modal-head {
    padding: 20px 52px 16px;
  }

  .auth-modal-tabs,
  .auth-modal-form,
  .auth-modal-signed-in {
    padding-right: 20px;
    padding-left: 20px;
  }

  .auth-register-form.active {
    grid-template-columns: 1fr;
  }

  .auth-modal-message {
    padding-right: 20px;
    padding-left: 20px;
  }

  .auth-signed-actions {
    grid-template-columns: 1fr;
  }

  .page-projects .content-hero {
    padding: 34px 8px 44px;
  }

  .page-contact .content-hero {
    padding: 34px 8px 44px;
  }

  .page-repair .repair-hero {
    padding-top: 30px;
    padding-bottom: 36px;
  }

  .page-repair .repair-hero-copy h1 {
    font-size: clamp(1.95rem, 9vw, 2.55rem);
  }

  .page-repair .repair-hero-card {
    padding: 12px;
  }

  .page-tradein .tradein-form-section {
    padding-top: 30px;
    padding-bottom: 42px;
  }

  .page-tradein .form-panel h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem);
  }

  .tradein-quick-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .tradein-quick-steps span {
    min-height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 0.64rem;
    padding: 7px 5px;
    text-align: center;
  }

  .tradein-quick-steps strong {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    font-size: 0.6rem;
  }

  .page-repair .repair-hero-card ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .page-repair .repair-hero-card li {
    min-height: 40px;
    display: grid;
    align-content: center;
    padding: 7px 6px 7px 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .page-repair .repair-hero-card li::before {
    left: 7px;
  }

  .page-store .store-hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .page-store .store-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .page-store .store-order-card {
    padding: 12px;
  }

  .page-store .store-order-card h2 {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .page-store .store-order-card ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .page-store .store-order-card li {
    min-height: 42px;
    display: grid;
    align-content: center;
    padding: 8px 6px 8px 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .page-store .store-order-card li::before {
    top: 50%;
    left: 6px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    font-size: 0.58rem;
  }

  .page-home .hero-home {
    min-height: auto;
    padding-bottom: 38px;
  }

  .hero h1,
  .repair-hero-copy h1,
  .content-hero h1 {
    font-size: 2rem;
    line-height: 1.03;
  }

  .page-b2b .content-hero h1 {
    font-size: clamp(2.1rem, 11vw, 2.75rem);
  }

  .page-projects .content-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.65rem);
  }

  .page-contact .content-hero h1 {
    font-size: clamp(2rem, 9.6vw, 2.55rem);
  }

  .page-b2b .content-hero p:not(.eyebrow) {
    max-width: 20rem;
  }

  .page-projects .content-hero p:not(.eyebrow) {
    max-width: 20rem;
  }

  .page-contact .content-hero p:not(.eyebrow) {
    max-width: 20rem;
  }

  .page-b2b .b2b-hero-actions {
    margin-top: 18px;
  }

  .page-projects .projects-hero-actions {
    margin-top: 18px;
  }

  .page-contact .contact-hero-actions {
    margin-top: 18px;
  }

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

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

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

  .b2b-proof,
  .projects-proof,
  .contact-proof {
    gap: 6px;
    margin-top: 14px;
  }

  .b2b-proof span,
  .projects-proof span,
  .contact-proof span {
    min-height: 28px;
    font-size: 0.66rem;
    padding: 6px 9px;
  }

  .page-tradein .form-panel h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem);
    line-height: 1.03;
  }

  .hero h1 {
    margin-bottom: 12px;
  }

  .page-home .hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.9rem);
  }

  .page-home .hero .eyebrow {
    max-width: 18rem;
    line-height: 1.45;
  }

  .hero p:not(.eyebrow),
  .repair-hero-copy p:not(.eyebrow),
  .content-hero p:not(.eyebrow),
  .section-intro,
  .form-helper {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .hero-buttons,
  .repair-hero-actions,
  .b2b-hero-actions,
  .projects-hero-actions,
  .contact-hero-actions,
  .home-cta-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-buttons .btn,
  .home-cta-actions .btn {
    flex: 1 1 130px;
  }

  .page-home .hero-buttons {
    display: none;
  }

  .home-quick-actions {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .home-quick-actions a {
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
  }

  .home-quick-actions a:first-child {
    border-color: transparent;
    background: var(--success);
  }

  .btn,
  .service-btn,
  .panel-link {
    min-height: 42px;
    font-size: 0.8rem;
    padding: 9px 12px;
  }

  .hero-panel,
  .repair-hero-card,
  .store-order-card {
    padding: 16px;
    background: rgba(10, 20, 34, 0.78);
  }

  .page-home .hero-panel {
    display: none;
  }

  .hero-panel h2,
  .repair-hero-card h2,
  .store-order-card h2 {
    font-size: 1.1rem;
  }

  .hero-panel li,
  .repair-hero-card li,
  .store-order-card li {
    font-size: 0.82rem;
  }

  .contact-strip,
  .store-strip,
  .repair-trust-strip,
  .b2b-strip,
  .projects-strip {
    padding: 0 8px;
  }

  .contact-strip-inner,
  .store-strip-inner,
  .repair-trust-inner,
  .b2b-strip-inner,
  .projects-strip-inner {
    width: 100%;
    margin-top: -22px;
  }

  .contact-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-contact .contact-strip-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-strip-inner,
  .repair-trust-inner,
  .b2b-strip-inner,
  .projects-strip-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-strip-inner > *,
  .store-strip-inner > *,
  .repair-trust-inner > *,
  .b2b-strip-inner > *,
  .projects-strip-inner > * {
    min-width: 0;
    gap: 3px;
    border-top: 0;
    padding: 11px 10px;
  }

  .page-home .contact-strip-inner > *:nth-child(3),
  .page-home .contact-strip-inner > *:nth-child(4) {
    display: none;
  }

  .contact-strip-inner > * + *,
  .store-strip-inner > * + *,
  .repair-trust-inner > * + *,
  .b2b-strip-inner > * + *,
  .projects-strip-inner > * + * {
    border-left: 1px solid var(--border);
    border-top: 0;
  }

  .contact-strip-inner span,
  .store-strip-inner span,
  .b2b-strip-inner span,
  .projects-strip-inner span {
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
  }

  .repair-trust-inner span {
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .contact-strip-inner strong,
  .store-strip-inner strong,
  .repair-trust-inner strong,
  .b2b-strip-inner strong,
  .projects-strip-inner strong {
    font-size: 0.72rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .services-section,
  .products,
  .cart-section,
  .form-section,
  .contact-page-section,
  .home-path-section,
  .home-feature-section,
  .standards-section,
  .home-cta-section,
  .b2b-cta-section,
  .projects-cta-section,
  .repair-device-selector {
    padding: 46px 12px;
  }

  .page-b2b .services-section {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .page-projects .projects-showcase-section {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .page-b2b .section-heading {
    margin-bottom: 22px;
  }

  .page-b2b .section-heading h2 {
    font-size: 1.65rem;
  }

  .page-projects .section-heading h2 {
    font-size: 1.65rem;
  }

  .page-projects .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-projects .project-card-body {
    padding: 18px;
  }

  .page-contact .contact-page-section {
    padding-top: 40px;
  }

  .page-contact .contact-details-panel h2,
  .page-contact .contact-form-panel h2 {
    font-size: 1.55rem;
  }

  .page-contact .contact-methods {
    gap: 9px;
  }

  .page-contact .contact-form {
    gap: 10px;
    margin-top: 16px;
  }

  .page-contact .contact-form textarea {
    min-height: 105px;
  }

  .page-b2b .service-box {
    padding: 18px;
  }

  .page-b2b .service-box h3 {
    font-size: 1.16rem;
  }

  .page-b2b .service-box p {
    margin-bottom: 12px;
  }

  .page-b2b .service-points {
    margin-top: 0;
  }

  .page-repair .repair-device-selector {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .page-repair .repair-form-section {
    padding-top: 34px;
  }

  .section-heading {
    width: 100%;
  }

  .section-heading h2,
  .device-selector-heading h2,
  .home-feature-copy h2,
  .contact-details-panel h2,
  .contact-form-panel h2 {
    font-size: 1.7rem;
  }

  .page-repair .device-selector-heading {
    margin-bottom: 20px;
  }

  .page-repair .device-selector-heading h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.05rem);
  }

  .services-grid,
  .home-path-grid,
  .projects-grid,
  .product-grid,
  .device-grid,
  .contact-form,
  .contact-methods,
  .repair-form-grid,
  .repair-form-note,
  .page-tradein .form-panel form,
  .home-feature-list {
    grid-template-columns: 1fr;
  }

  /* Mobile standards cards: two columns and two rows for a shorter section. */
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .standard-card {
    min-height: 0;
    padding: 14px;
  }

  .standard-card span {
    width: 34px;
    height: 28px;
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .standard-card h3 {
    margin-bottom: 7px;
    font-size: 0.92rem;
  }

  .standard-card p {
    font-size: 0.7rem;
    line-height: 1.42;
  }

  .home-path-card img,
  .project-card img {
    height: 165px;
    min-height: 0;
  }

  /* Mobile home service chooser: image on the left, details on the right. */
  .home-path-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .home-path-section .section-heading {
    margin-bottom: 24px;
  }

  .home-path-section .section-heading h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.03;
  }

  .home-path-section .section-intro {
    max-width: 34rem;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .home-path-grid {
    gap: 16px;
  }

  .home-feature-grid {
    gap: 0;
    align-items: start;
  }

  .home-path-card {
    display: grid;
    grid-template-columns: minmax(112px, 35%) minmax(0, 1fr);
    grid-template-areas:
      "image tag"
      "image title"
      "image text"
      "image button";
    align-items: center;
    gap: 0 14px;
    min-height: 188px;
    padding: 0 14px 0 0;
    overflow: hidden;
  }

  .home-path-card img {
    grid-area: image;
    width: 100%;
    height: 100%;
    min-height: 188px;
    object-fit: cover;
  }

  .home-path-card span {
    grid-area: tag;
    align-self: end;
    margin: 14px 0 8px;
    font-size: 0.68rem;
    padding: 5px 9px;
  }

  .home-path-card h3 {
    grid-area: title;
    margin: 0 0 7px;
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .home-path-card p {
    grid-area: text;
    margin: 0 0 12px;
    font-size: 0.76rem;
    line-height: 1.36;
  }

  .home-path-card .service-btn {
    grid-area: button;
    width: 100%;
    margin: 0 0 14px;
  }

  .home-feature-gallery {
    order: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 96px;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 16px;
  }

  .home-feature-gallery .feature-large {
    grid-row: auto;
  }

  .home-feature-copy {
    display: contents;
  }

  .home-feature-copy .eyebrow {
    order: 1;
  }

  .home-feature-copy h2 {
    order: 2;
    margin: 8px 0 12px;
  }

  .home-feature-copy > p:not(.eyebrow) {
    order: 3;
    margin: 0;
  }

  .home-feature-copy .btn {
    order: 5;
    width: fit-content;
    margin-top: 0;
  }

  /* On phones the repair list is replaced by the three repair photos before the button. */
  .home-feature-list {
    display: none;
  }

  .product-grid {
    gap: 12px;
  }

  .page-store .product-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    min-height: 100%;
    display: flex;
    gap: 0;
    padding: 0;
  }

  .product-media {
    height: 158px;
    min-height: 0;
    padding: 20px 16px;
    margin-bottom: 0;
    border: 0;
    border-bottom: 1px solid #e4ebf2;
  }

  .product-media img {
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
  }

  .product-info {
    display: flex;
    padding: 11px 10px 12px;
  }

  .product-tag {
    display: inline-flex;
    margin-bottom: 5px;
    font-size: 0.46rem;
    padding: 3px 6px;
  }

  .product-card h3 {
    min-height: 2.5em;
    margin: 0 0 6px;
    font-size: 0.82rem;
    line-height: 1.22;
  }

  .product-desc {
    display: -webkit-box;
    min-height: 0;
    margin-bottom: 8px;
    font-size: 0.66rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .product-options {
    display: none;
  }

  .price {
    margin: 0;
    color: var(--success);
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .product-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: auto;
  }

  .product-option select,
  .product-option input {
    min-height: 28px;
    font-size: 0.58rem;
    padding: 5px;
  }

  .product-qty-input {
    font-size: 0.58rem;
    font-weight: 800;
  }

  .product-card .add-to-cart {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(7, 127, 171, 0.2);
    padding: 6px 7px;
    font-size: 0.58rem;
    overflow: hidden;
  }

  .product-card .add-to-cart:hover {
    background: var(--primary-dark);
  }

  .product-favorite {
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  .product-gallery-controls {
    right: 5px;
    bottom: 5px;
    gap: 2px;
    padding: 2px;
  }

  .product-gallery-btn {
    width: 16px;
    height: 16px;
    font-size: 0.72rem;
  }

  .add-to-cart-text {
    position: static;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
    clip: auto;
    text-overflow: clip;
    white-space: nowrap;
  }

  .cart-icon {
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
  }

  .cart-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
  }

  .cart-item-thumb {
    width: 48px;
  }

  .cart-item-details strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cart-item-details span {
    font-size: 0.68rem;
  }

  .cart-qty-controls {
    grid-column: 2;
    width: fit-content;
    min-height: 28px;
  }

  .cart-qty-controls span {
    min-width: 28px;
    font-size: 0.76rem;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
  }

  .cart-line-price {
    grid-column: 3;
    align-self: start;
    min-width: 58px;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .remove-item {
    grid-column: 3;
    width: 100%;
    min-height: 28px;
    margin-top: 0;
    font-size: 0;
    padding: 0;
  }

  .remove-item::before {
    content: "Remove";
    font-size: 0.62rem;
  }

  .cart-actions-row {
    grid-template-columns: 1fr;
  }

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

  .repair-picker-panel {
    padding: 14px;
  }

  .repair-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .repair-picker-back,
  .repair-picker-back-models {
    grid-column: 1 / -1;
    min-height: 92px;
  }

  .device-card,
  .repair-picker-card {
    min-height: 112px;
  }

  .device-circle {
    width: 58px;
  }

  .repair-picker-media {
    width: min(86px, 100%);
  }

  .device-label,
  .repair-picker-card {
    font-size: 0.72rem;
  }

  .repair-picker-card {
    gap: 9px;
    padding: 12px 8px;
  }

  .repair-picker-fault {
    min-height: 76px;
  }

  .repair-form-note {
    gap: 8px;
    margin: 14px 0 6px;
  }

  .repair-form-note span {
    min-height: 0;
    font-size: 0.72rem;
    padding: 9px;
  }

  .form-panel,
  .repair-request-panel,
  .repair-next-card,
  .contact-details-panel,
  .contact-form-panel {
    padding: 18px;
  }

  .page-tradein .form-panel form {
    gap: 10px;
    margin-top: 14px;
  }

  .page-tradein .form-panel textarea {
    min-height: 88px;
  }

  .tradein-small-note {
    margin-top: 9px;
    font-size: 0.74rem;
  }

  select,
  input,
  textarea {
    min-height: 42px;
    font-size: 0.86rem;
    padding: 10px 12px;
  }

  textarea {
    min-height: 118px;
  }

  .home-cta-panel,
  .b2b-cta-panel,
  .projects-cta-panel {
    padding: 22px;
  }

  .page-b2b .b2b-cta-panel {
    gap: 16px;
  }

  .page-b2b .b2b-cta-panel .btn {
    width: 100%;
  }

  .home-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-cta-panel h2,
  .b2b-cta-panel h2,
  .projects-cta-panel h2 {
    font-size: 1.45rem;
  }

  .footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 12px 0;
  }

  .footer-inner {
    display: contents;
  }

  .footer-logo {
    width: min(154px, 72%);
    margin-bottom: 14px;
  }

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

  .footer-brand p {
    max-width: 32rem;
    line-height: 1.55;
  }

  .footer-socials {
    gap: 10px;
    margin-top: 18px;
  }

  .footer-socials a {
    width: 30px;
    height: 30px;
  }

  .footer-socials img {
    width: 17px;
    height: 17px;
  }

  .footer h2 {
    margin-bottom: 6px;
    font-size: 0.98rem;
  }

  .footer-links,
  .footer-contact {
    gap: 8px;
  }

  .footer-links,
  .footer-contact,
  .footer-disclaimer,
  .footer-bottom {
    grid-column: 1;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 12px;
  }

  .footer-links h2,
  .footer-contact h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .footer-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .footer-contact p {
    min-width: 0;
  }

  .footer-contact span {
    margin-bottom: 1px;
    font-size: 0.6rem;
  }

  .footer-disclaimer {
    width: 100%;
    max-height: none;
    margin-top: 0;
    padding: 14px;
  }

  .footer-disclaimer strong {
    font-size: 0.62rem;
  }

  .footer-disclaimer p {
    font-size: 0.68rem;
    line-height: 1.48;
  }

  .footer-brand p,
  .footer-contact p,
  .footer-links a,
  .footer-contact a {
    font-size: 0.78rem;
  }

  .footer-bottom {
    margin: 0 -12px;
    display: grid;
    gap: 4px;
    font-size: 0.66rem;
    padding: 12px 16px;
  }

}
