/* ================================================
   NOCTURN DETAILING — Brand Website Stylesheet
   Colors, typography, and layout per Brand Strategy v1.1
   ================================================ */

/* --- CSS Variables (Brand Palette) --- */
:root {
  --nocturn-black: #0D0D0D;
  --carbon: #1A1A1A;
  --brass: #8C7853;
  --aged-brass: #A89470;
  --warm-white: #F5F3EF;
  --pure-white: #FFFFFF;
  --cool-gray: #9A9A9A;

  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', 'Arial', 'Helvetica Neue', sans-serif;

  --letter-spacing-brand: 0.12em;
  --transition-base: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--nocturn-black);
  color: var(--pure-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--brass);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--aged-brass);
}

/* --- Utility --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--letter-spacing-brand);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--warm-white);
}

.text-brass { color: var(--brass); }
.text-gray { color: var(--cool-gray); }
.text-white { color: var(--pure-white); }

/* --- Brass Rule (signature brand element) --- */
.brass-rule {
  width: 60px;
  height: 1.5px;
  background: var(--brass);
  border: none;
  margin: 20px 0;
}

.brass-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.brass-rule--wide {
  width: 100px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav--scrolled {
  background: rgba(13, 13, 13, 0.97);
  box-shadow: 0 1px 0 rgba(140, 120, 83, 0.15);
}

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cool-gray);
  transition: color var(--transition-base);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width var(--transition-base);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--pure-white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.8rem !important;
  color: var(--brass) !important;
  border: 1px solid var(--brass);
  padding: 8px 20px;
  transition: all var(--transition-base) !important;
}

.nav__cta:hover {
  background: var(--brass);
  color: var(--nocturn-black) !important;
}

.nav__cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--warm-white);
  margin: 5px 0;
  transition: all var(--transition-base);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--nocturn-black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(140, 120, 83, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 720px;
  animation: fadeUp 1s ease-out;
}

.hero__logo {
  width: 340px;
  max-width: 80vw;
  margin: 0 auto 40px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--cool-gray);
  letter-spacing: 0.03em;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background: var(--brass);
  color: var(--nocturn-black);
}

.btn--primary:hover {
  background: var(--aged-brass);
  color: var(--nocturn-black);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--brass);
  border: 1px solid var(--brass);
}

.btn--outline:hover {
  background: var(--brass);
  color: var(--nocturn-black);
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-group .btn {
    width: 100%;
  }
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--nocturn-black);
}

.section--carbon {
  background: var(--carbon);
}

.section--light {
  background: var(--warm-white);
  color: var(--carbon);
}

.section--light p {
  color: #444;
}

.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--carbon);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__header p {
  margin-top: 16px;
  color: var(--cool-gray);
}

.section--light .section__header p {
  color: #666;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--carbon);
  padding: 48px 36px;
  border: 1px solid rgba(140, 120, 83, 0.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: rgba(140, 120, 83, 0.25);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 1.8rem;
  margin-bottom: 24px;
  display: block;
  color: var(--brass);
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--cool-gray);
  line-height: 1.65;
}

.service-card__link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.service-card__link:hover {
  color: var(--aged-brass);
}

/* --- Value Props --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.value-item {
  position: relative;
  padding-left: 20px;
  border-left: 1.5px solid var(--brass);
}

.value-item h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--pure-white);
}

.value-item p {
  font-size: 0.92rem;
  color: var(--cool-gray);
}

/* Light background overrides for value-items */
.section--light .value-item h4 {
  color: var(--carbon);
}

.section--light .value-item p {
  color: #444;
}

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 80px 0;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.05em;
  display: block;
}

.stat__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cool-gray);
  margin-top: 8px;
}

/* --- Service Page: Detail Tiers --- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.tier-card {
  background: var(--carbon);
  border: 1px solid rgba(140, 120, 83, 0.1);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
}

.tier-card--featured {
  border-color: var(--brass);
  position: relative;
}

.tier-card--featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  background: var(--brass);
  color: var(--nocturn-black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 6px;
}

.tier-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tier-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 8px;
}

.tier-card__price span {
  font-size: 0.85rem;
  color: var(--cool-gray);
  font-family: var(--font-body);
  font-weight: 400;
}

.tier-card__desc {
  font-size: 0.88rem;
  color: var(--cool-gray);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tier-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.tier-card__features li {
  font-size: 0.9rem;
  color: var(--warm-white);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.tier-card__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brass);
}

.tier-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-card__actions .btn {
  text-align: center;
  padding: 14px 24px;
  font-size: 0.78rem;
}

/* --- Fleet specifics --- */
.fleet-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.fleet-value {
  text-align: center;
  padding: 40px 24px;
}

.fleet-value__icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.fleet-value h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.fleet-value p {
  font-size: 0.9rem;
  color: var(--cool-gray);
}

/* --- Quote Form --- */
.quote-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cool-gray);
  margin-bottom: 8px;
}

.section--light .form-group label {
  color: #666;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid rgba(140, 120, 83, 0.2);
  background: var(--nocturn-black);
  color: var(--pure-white);
  transition: border-color var(--transition-base);
  outline: none;
  -webkit-appearance: none;
}

.section--light .form-group input,
.section--light .form-group select,
.section--light .form-group textarea {
  background: var(--pure-white);
  color: var(--carbon);
  border-color: #ddd;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brass);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- CTA Band --- */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  background: var(--carbon);
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--cool-gray);
  margin-bottom: 36px;
}

/* --- Footer --- */
.footer {
  background: var(--nocturn-black);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 64px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer__brand img {
  height: 24px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--cool-gray);
  max-width: 280px;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--cool-gray);
}

.footer__links a:hover {
  color: var(--pure-white);
}

.footer__contact p {
  font-size: 0.88rem;
  color: var(--cool-gray);
  margin-bottom: 8px;
}

.footer__contact a {
  color: var(--cool-gray);
}

.footer__contact a:hover {
  color: var(--pure-white);
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--cool-gray);
}

/* --- Sticky Mobile Call Button --- */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 200;
  background: var(--brass);
  color: var(--nocturn-black);
  text-align: center;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: background var(--transition-base);
}

.sticky-call:hover,
.sticky-call:active {
  background: var(--aged-brass);
  color: var(--nocturn-black);
}

.sticky-call::before {
  content: '\260E';
  margin-right: 10px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .sticky-call {
    display: block;
  }
  /* Add bottom padding so sticky button doesn't cover content */
  body {
    padding-bottom: 80px;
  }
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Hero (subpages) --- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--nocturn-black);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1.5px;
  background: var(--brass);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--cool-gray);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .services-grid,
  .fleet-value-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
  }
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
  }

  .hero__logo {
    width: 260px;
  }

  .section {
    padding: 72px 0;
  }

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

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