/* YAMATECH MOTORCYCLES SERVICES — site styles */
:root {
  color-scheme: dark;
  --bg-deep: #0c0f14;
  --bg-card: #141a22;
  --bg-elevated: #1a222d;
  --text: #e8ecf1;
  --text-muted: #9aa8b8;
  --accent: #e31837;
  --accent-dim: #b8142c;
  --line: rgba(255, 255, 255, 0.08);
  --yamaha-blue: #003da5;
  --radius: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --max: 1120px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #f6f7fb;
  --bg-card: #ffffff;
  --bg-elevated: #f0f2f7;
  --text: #0c1220;
  --text-muted: #4f5f75;
  --line: rgba(12, 18, 32, 0.12);
  --yamaha-blue: #0b49c9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -40%, rgba(227, 24, 55, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(0, 61, 165, 0.08), transparent);
  min-height: 100vh;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -40%, rgba(227, 24, 55, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(0, 61, 165, 0.06), transparent);
}

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

a {
  color: #7eb8ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-deep) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .site-header {
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header nav {
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.theme-toggle:hover {
  background: color-mix(in srgb, var(--bg-elevated) 80%, var(--accent) 20%);
}

.theme-icon {
  display: none;
}

[data-theme="dark"] .theme-icon.icon-sun {
  display: inline-block;
}

[data-theme="light"] .theme-icon.icon-moon {
  display: inline-block;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--accent);
}
.logo span {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85em;
}

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-list a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    gap: 0.5rem;
  }
  .nav-list.is-open {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("motorcycle-with-helmet.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(12, 15, 20, 0.2), transparent 60%),
    linear-gradient(to bottom, rgba(12, 15, 20, 0.72), rgba(12, 15, 20, 0.78));
}

[data-theme="light"] .hero::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(to bottom, rgba(246, 247, 251, 0.82), rgba(246, 247, 251, 0.9));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.hero-tagline {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Sections */
section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Cards grid */
.grid-2 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.card p,
.card ul {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card ul {
  padding-left: 1.2rem;
}

/* Services numbered */
.service-list {
  counter-reset: svc;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-list li {
  counter-increment: svc;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.service-list li::before {
  content: counter(svc);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--yamaha-blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Customers */
.customer-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.customer-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.customer-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.customer-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Compliance */
.compliance-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 61, 165, 0.2);
  color: #a8c4ff;
  border: 1px solid rgba(0, 61, 165, 0.35);
}

[data-theme="light"] .badge {
  background: rgba(11, 73, 201, 0.12);
  color: #123a8f;
  border: 1px solid rgba(11, 73, 201, 0.24);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.contact-item {
  margin-bottom: 1rem;
}
.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-item dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-item a {
  color: var(--text);
  word-break: break-word;
}
.contact-item a:hover {
  color: #7eb8ff;
}

.map-placeholder {
  min-height: 200px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1.5rem;
}

.map-embed {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  height: 100%;
  min-height: 320px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg-card) 78%, var(--accent) 22%);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.to-top:hover {
  background: color-mix(in srgb, var(--bg-card) 62%, var(--accent) 38%);
}

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

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer strong {
  color: var(--text);
}
