:root {
  --navy: #0b1f3a;
  --navy-2: #132b4d;
  --blue: #1f5fd1;
  --blue-soft: #e8f0fc;
  --orange: #e85c1a;
  --orange-deep: #c44810;
  --ink: #121826;
  --muted: #5b6472;
  --line: #d9dee7;
  --line-strong: #c5ccd8;
  --paper: #ffffff;
  --canvas: #f4f6f9;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --max: 1120px;
  --header: 92px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.55rem 0.85rem;
  z-index: 30;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  min-width: 0;
}

.site-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}

.site-logo {
  width: auto;
  height: 58px;
  object-fit: contain;
  display: block;
}

/* Homepage: larger, zoomed-in logo */
.page-home {
  --header: 104px;
}

.page-home .site-logo-frame {
  width: 168px;
  height: 72px;
}

.page-home .site-logo {
  height: 96px;
  width: auto;
  max-width: none;
  transform: scale(1.22);
  transform-origin: center center;
}

.page-home .brand-meta strong {
  font-size: 1.6rem;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  line-height: 1.05;
  border-left: 2px solid var(--orange);
  padding-left: 1rem;
}

.brand-meta strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand-meta span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--navy);
  background: var(--blue-soft);
}

.nav-cta {
  margin-left: 0.35rem;
  background: var(--navy) !important;
  color: #fff !important;
}

.nav-cta:hover,
.nav-cta.is-active {
  background: var(--navy-2) !important;
  color: #fff !important;
}

.hero {
  background:
    linear-gradient(180deg, #fff 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

/* Top carousel */
.hero-carousel {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  min-height: clamp(420px, 68vh, 640px);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.55) 48%, rgba(11, 31, 58, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.2) 0%, rgba(11, 31, 58, 0.72) 100%);
}

.carousel-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 4.4rem;
  max-width: 38rem;
}

.carousel-copy .eyebrow {
  color: #9ec0ff;
}

.carousel-copy h1,
.carousel-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  max-width: 16ch;
}

.carousel-copy p {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
}

.btn-ghost.light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost.light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  pointer-events: none;
}

.carousel-controls > * {
  pointer-events: auto;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 31, 58, 0.45);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(11, 31, 58, 0.75);
}

.carousel-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--orange);
  width: 22px;
  border-radius: 999px;
}

/* Business image gallery */
.business-gallery {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: var(--navy);
  color: #fff;
}

.gallery-card.wide {
  grid-row: span 2;
  min-height: 100%;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(11, 31, 58, 0.92) 55%);
}

.gallery-caption h3 {
  margin: 0.4rem 0 0.35rem;
  color: #fff;
  font-size: 1.25rem;
}

.gallery-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.94rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  max-width: 16ch;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-deep); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-2); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.activity-panel {
  background: var(--navy);
  color: #eef3fb;
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: var(--shadow);
}

.activity-panel a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  padding: 1rem 1.05rem;
  border-radius: 10px;
}

.activity-panel a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-panel a:hover { background: rgba(255, 255, 255, 0.05); }

.idx {
  font-weight: 700;
  color: #8eb6ff;
  font-size: 0.9rem;
}

.activity-panel strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  color: #fff;
}

.activity-panel small {
  color: rgba(238, 243, 251, 0.7);
}

.arrow { color: var(--orange); }

.brand-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.brand-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.brand-strip b {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brands-banner {
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 3.2rem 0;
}

.brands-banner-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.brands-banner-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.brands-banner-head p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

.brands-marquee {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  padding: 1.5rem 1rem;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: brands-drift 55s linear infinite;
}

.brands-marquee:hover .brands-track {
  animation-play-state: paused;
}

.brand-tile {
  flex: none;
  width: 240px;
  height: 148px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1.25rem;
  overflow: hidden;
}

.brand-tile img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 112px;
  object-fit: contain;
  object-position: center;
}

@keyframes brands-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 4rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 18ch;
}

.section-head p,
.narrow {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.page-hero {
  padding: 2.8rem 0 0.4rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap { padding-bottom: 2rem; }

.page-hero p {
  margin: 0.9rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.toyssam-page-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin: 0 0 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}

.cards-3,
.cards-2,
.cards-4,
.split,
.locations,
.contact-grid,
.footer-grid,
.band-grid {
  display: grid;
  gap: 1rem;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2,
.split,
.band-grid { grid-template-columns: 1fr 1fr; }
.cards-4 { grid-template-columns: repeat(2, 1fr); }
.locations { grid-template-columns: 1fr; }
.contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.footer-grid { grid-template-columns: 1.35fr 1fr 1fr; }

.card,
.panel,
.service,
.location,
.form-card,
.policy,
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card,
.service,
.location,
.panel,
.form-card,
.policy,
.stat {
  padding: 1.35rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.service:hover {
  border-color: #9bb7e8;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 6px;
  padding: 0.18rem 0.5rem;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag.warm {
  background: #fde8dc;
  color: var(--orange-deep);
}

.card h3,
.service h3,
.location h3,
.panel h3,
.stat h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.35rem;
}

.card p,
.service p,
.location p,
.panel p,
.stat p {
  margin: 0;
  color: var(--muted);
}

.card .more {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}

.band {
  background: var(--navy);
  color: #e8eef8;
  border-radius: 14px;
  padding: 1.6rem;
}

.band .eyebrow { color: #8eb6ff; }
.band h2 { color: #fff; margin: 0; }
.band p { color: rgba(232, 238, 248, 0.78); }

.metrics {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.metric {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.metric strong {
  color: var(--orange);
  font-size: 0.85rem;
}

.metric span {
  display: block;
  color: #fff;
  font-weight: 600;
}

.metric small {
  color: rgba(232, 238, 248, 0.65);
}

.meta {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.meta li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.6rem;
}

.meta span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.chips span {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  font-size: 0.86rem;
  color: var(--navy);
}

.list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
}

.list li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.alert {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.alert-success {
  background: #e8f7ee;
  border: 1px solid #b7e0c5;
  color: #14532d;
}

.alert-error {
  background: #fdecec;
  border: 1px solid #f0bcbc;
  color: #7f1d1d;
}

.form-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

form { display: grid; gap: 0.8rem; }

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
}

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 95, 209, 0.28);
  outline-offset: 2px;
}

.policy h2 {
  font-size: 1.35rem;
  margin: 1.4rem 0 0.4rem;
}
.policy h2:first-child { margin-top: 0; }

.site-footer {
  margin-top: 1rem;
  background: var(--navy);
  color: #dbe4f2;
  padding: 2.4rem 0 1.3rem;
}

.footer-logo {
  height: 38px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  margin-bottom: 0.85rem;
}

.footer-company {
  color: #fff;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.site-footer a { color: #dbe4f2; }
.site-footer p,
.site-footer li { color: rgba(219, 228, 242, 0.75); }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: #fff;
  margin: 0 0 0.7rem;
}

.legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(219, 228, 242, 0.6);
}

/* Admin */
.admin-body { background: #eef1f6; }
.admin-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 2rem auto;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.msg-cell { max-width: 280px; white-space: pre-wrap; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0.85rem; }
  .nav-cta { margin: 0.25rem 0 0; text-align: center; }
  .hero-grid,
  .cards-3,
  .cards-2,
  .cards-4,
  .band-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card.wide {
    grid-row: auto;
    min-height: 300px;
  }
  .carousel-viewport {
    min-height: 520px;
  }
  .carousel-copy {
    padding-bottom: 4.8rem;
  }
  .carousel-controls {
    justify-content: center;
  }
  .brands-banner-head {
    flex-direction: column;
    align-items: start;
  }
  .brand-tile {
    width: 200px;
    height: 128px;
  }
  .brand-tile img {
    max-height: 96px;
  }
  .section-head { flex-direction: column; align-items: start; }
  h1 { max-width: none; }
  .site-logo { height: 48px; }
  .page-home { --header: 88px; }
  .page-home .site-logo-frame {
    width: 132px;
    height: 58px;
  }
  .page-home .site-logo {
    height: 76px;
    transform: scale(1.18);
  }
  .page-home .brand-meta strong { font-size: 1.2rem; }
  .brand-meta {
    display: flex;
    padding-left: 0.75rem;
  }
  .brand-meta strong { font-size: 1.15rem; }
  .brand-meta span { font-size: 0.68rem; letter-spacing: 0.12em; }
  .meta li { grid-template-columns: 1fr; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .carousel-slide { transition: none; }
  .gallery-card img { transition: none; }
  .brands-track { animation: none; }
}
