@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================
   TOPPER21 HOMEPAGE — FIGMA MATCHED
========================================= */

* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;

  --header-bg: #ffffff;
  --header-text: #171a1f;
  --page-bg: #111315;
  --accent: #ff1744;

  --button-bg: #ffffff;
  --button-text: #171a1f;
  --switch-bg: #f1f2f4;
  --switch-border: #e2e4e8;
}

/* DARK THEME */

body.dark {
  color-scheme: dark;

  --header-bg: #1d2025;
  --header-text: #f4f5f7;
  --page-bg: #111315;

  --button-bg: #252930;
  --button-text: #f4f5f7;
  --switch-bg: #252930;
  --switch-border: #343941;
}

/* GLOBAL */

html {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;

  background: var(--page-bg);
  color: #ffffff;

  font-family: "Manrope", Arial, sans-serif;

  transition:
    background .25s ease,
    color .25s ease;
}

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

button {
  font: inherit;
}

/* =========================================
   HEADER
========================================= */

.site-header {
  position: relative;
  z-index: 10;

  width: 100%;
  min-height: 76px;

  padding: 0 clamp(20px, 4.5vw, 66px);

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

  gap: 20px;

  background: var(--header-bg);
  color: var(--header-text);

  border-bottom: 1px solid var(--switch-border);

  transition:
    background .25s ease,
    color .25s ease;
}

/* BRAND */

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 150px;

  color: var(--header-text);
  text-decoration: none;
}

.brand-emblem {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--accent);
  color: #ffffff;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.brand-small {
  font-size: 17px;
  line-height: 1;

  font-weight: 900;
  letter-spacing: .02em;
}

.brand-small span {
  color: var(--accent);
}

/* HEADER CONTROLS */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 12px;
}

/* =========================================
   THEME SWITCH
========================================= */

.theme-switch {
  display: flex;
  align-items: center;

  gap: 3px;
  padding: 3px;

  border: 1px solid var(--switch-border);
  border-radius: 9px;

  background: var(--switch-bg);
}

.theme-button {
  padding: 8px 11px;

  border: 1px solid transparent;
  border-radius: 6px;

  background: transparent;
  color: #737b86;

  font-size: 11px;
  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border .2s ease;
}

.theme-button:hover {
  color: var(--header-text);
}

.theme-button.active {
  color: var(--accent);

  border-color: rgba(255, 23, 68, .22);

  background: var(--button-bg);
}

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

.nav-button {
  min-width: 116px;
  min-height: 38px;

  padding: 0 14px;

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

  gap: 8px;

  border: 1px solid var(--switch-border);
  border-radius: 7px;

  background: var(--button-bg);
  color: var(--button-text);

  font-size: 11px;
  font-weight: 700;

  transition:
    transform .2s ease,
    background .2s ease,
    border .2s ease;
}

.nav-button:hover {
  transform: translateY(-2px);
}

.customer-button {
  color: #ffffff;

  background: var(--accent);
  border-color: var(--accent);
}

.customer-button:hover {
  background: #e9143c;
}

.admin-button {
  color: var(--button-text);
}

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

.hero {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: calc(100vh - 76px);

  display: grid;
  place-items: center;

  overflow: hidden;

  background: #101214;
}

/* MOTORCYCLE BACKGROUND */

.hero::before {
  content: "";

  position: absolute;
  z-index: -2;

  inset: 0;

  background-image: url("assets/ducati.a5b9bd60b796.png");

  background-size: cover;
  background-position: center 52%;
  background-repeat: no-repeat;

  transform: scale(1.015);
}

/* DARK CINEMATIC OVERLAY */

.hero-shade {
  position: absolute;
  z-index: -1;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 8, .82) 0%,
      rgba(5, 6, 8, .58) 48%,
      rgba(5, 6, 8, .82) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 6, 8, .56),
      rgba(5, 6, 8, .28)
    );
}

/* DARK MODE OVERLAY */

body.dark .hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 8, .84) 0%,
      rgba(5, 6, 8, .62) 48%,
      rgba(5, 6, 8, .84) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 6, 8, .58),
      rgba(5, 6, 8, .32)
    );
}

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

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

  width: min(100% - 40px, 900px);

  margin: 0 auto;
  padding: 56px 20px;

  text-align: center;

  transform: translateY(-2px);
}

/* MAIN LOGO TEXT */

.wordmark {
  margin: 0 0 15px;

  color: #ffffff;

  font-size: clamp(52px, 6.1vw, 76px);

  line-height: .94;

  font-weight: 950;

  letter-spacing: -.025em;

  font-style: italic;

  transform: scaleX(1.02);

  overflow-wrap: anywhere;

  text-shadow: 0 3px 22px rgba(0, 0, 0, .28);
}

.wordmark span {
  color: var(--accent);
}

/* SUBTITLE */

.eyebrow {
  margin: 0 0 19px;

  color: rgba(255, 255, 255, .92);

  font-size: 9px;

  letter-spacing: .30em;

  font-weight: 700;

  line-height: 1.7;

  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

/* =========================================
   FEATURE PILLS
========================================= */

.feature-pills {
  display: flex;
  flex-wrap: wrap;

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

  gap: 8px;

  margin-bottom: 21px;
}

.feature-pills span {
  padding: 7px 12px;

  color: #ffffff;

  background: rgba(255, 255, 255, .14);

  border: 1px solid rgba(255, 255, 255, .40);

  border-radius: 999px;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: .025em;

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

.feature-pills .pwa-pill {
  color: #171a1f;

  background: #ffffff;

  border-color: #ffffff;
}

/* =========================================
   DESCRIPTION
========================================= */

.description {
  max-width: 620px;

  margin: 0 auto;

  color: rgba(255, 255, 255, .82);

  font-size: 12px;

  line-height: 1.75;

  font-weight: 500;

  text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

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

@media (max-width: 900px) {

  .site-header {
    padding: 0 24px;
  }

  .hero-content {
    width: min(100% - 30px, 800px);
  }

  .wordmark {
    font-size: clamp(48px, 8vw, 68px);
  }

}

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

@media (max-width: 620px) {

  .site-header {
    min-height: 72px;
    height: auto;

    padding: 10px 14px;

    align-items: center;

    flex-wrap: wrap;
  }

  .brand-mark {
    min-width: auto;
  }

  .brand-emblem {
    width: 36px;
    height: 36px;
  }

  .brand-small {
    font-size: 14px;
  }

  .header-actions {
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 7px;
  }

  .nav-button {
    min-width: 0;
    min-height: 32px;

    padding: 0 9px;

    font-size: 10px;
  }

  .theme-button {
    padding: 7px 8px;
    font-size: 10px;
  }

  .hero {
    min-height: calc(100vh - 72px);
  }

  .hero::before {
    background-position: center center;
  }

  .hero-content {
    width: 100%;
    padding: 55px 18px;
  }

  .wordmark {
    font-size: clamp(42px, 11vw, 62px);
    letter-spacing: -.02em;
    transform: none;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: .20em;
    margin-bottom: 16px;
  }

  .feature-pills {
    gap: 6px;
    margin-bottom: 17px;
  }

  .feature-pills span {
    padding: 6px 9px;
    font-size: 8px;
  }

  .description {
    max-width: 430px;
    font-size: 11px;
    line-height: 1.7;
  }

  .desktop-break {
    display: none;
  }

}

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

@media (max-width: 420px) {

  .site-header {
    padding: 10px 12px;
  }

  .brand-small {
    font-size: 12px;
  }

  .header-actions {
    gap: 5px;
  }

  .theme-button {
    padding: 6px;
    font-size: 9px;
  }

  .nav-button {
    padding: 0 7px;
    font-size: 9px;
  }

  .hero-content {
    padding: 48px 14px;
  }

  .wordmark {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .eyebrow {
    font-size: 7px;
    letter-spacing: .16em;
  }

  .feature-pills span {
    padding: 6px 8px;
    font-size: 8px;
  }

  .description {
    font-size: 10px;
  }

}

/* =========================================
   OVERFLOW SAFETY
========================================= */

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

main,
section,
header,
nav {
  min-width: 0;
}

/* =========================================
   TOPPER21 OFFICIAL LOGO
========================================= */

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    width: auto;
    min-width: 0;

    text-decoration: none;
}

.topper21-logo {
    display: block;

    width: 110px;
    height: auto;
    max-height: 55px;

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

/* Responsive logo */
@media (max-width: 600px) {
    .topper21-logo {
        width: 90px;
        max-height: 46px;
    }
}


/* =========================================
   OFFICIAL TOPPER21 LOGO — SHARED OVERRIDE
   Uses the supplied transparent PNG asset.
========================================= */

.topper21-logo {
  display: block;
  width: 112px;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Admin sidebar logo */
.sidebar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  background: transparent;
}

.sidebar-topper-logo {
  width: 112px;
  max-height: 58px;
  object-position: center;
}

/* Customer and booking header logos */
.topbar > .brand .topper21-logo,
.navbar > .brand .topper21-logo,
.navbar > .logo .topper21-logo,
.topbar > .logo .topper21-logo,
.topbar > .brand-mark .topper21-logo {
  width: 104px;
  max-height: 48px;
}

/* Signup welcome panel logo */
.welcome-section .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.welcome-section .logo .topper21-logo {
  width: 112px;
  max-height: 58px;
  object-position: center;
}

/* Admin login header and login-card logo */
.admin-login .topbar .topper21-logo,
.topbar .brand-mark .topper21-logo,
.mobile-brand .topper21-logo {
  width: 112px;
  max-height: 56px;
}

/* Keep logo clear on light and dark headers */
body.dark .topper21-logo,
body.dark .sidebar-topper-logo {
  background: transparent !important;
}

/* Smaller screens */
@media (max-width: 600px) {
  .topper21-logo {
    width: 88px;
    max-height: 46px;
  }

  .sidebar-topper-logo {
    width: 94px;
    max-height: 50px;
  }
}
/* Consistent compact typography across TOPPER21 pages */
html, body, button, input, select, textarea {
    font-family: "Manrope", Arial, sans-serif;
}
