
/* ========================================
   DETBOOKS WEBSITE
   Main Stylesheet
   ======================================== */

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

:root {
  --maroon: #A30032;
  --maroon-dark: #820028;
  --charcoal: #4A4A4A;
  --off-white: #F7F5F4;
  --soft-grey: #D9D9D9;
  --gold: #C6A667;
  --white: #FFFFFF;

  --content-width: 1100px;
}

/* Global styles */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.65;
}

.container {
  width: min(90%, var(--content-width));
  margin-inline: auto;
}

h1, h2, h3 {
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-top: 0;
}

a {
  color: inherit;
}

/* Header and navigation */

.site-header {
  background: var(--maroon);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--gold);
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  font-size: 1.7rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #F2DDE2;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Hero section */

.hero {
  background: var(--off-white);
  padding: 110px 0 120px;
  border-bottom: 1px solid var(--soft-grey);
}

.hero .container {
  max-width: 900px;
}

.eyebrow {
  color: var(--maroon);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--charcoal);
  margin: 1rem 0;
  max-width: 800px;
}

.hero p:not(.eyebrow) {
  font-size: 1.2rem;
  max-width: 650px;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1.5rem;
  transition: background 0.2s ease,
              transform 0.2s ease;
}

.button:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Content sections */

.section {
  padding: 50px 0;
}

.section-alt {
  background: var(--off-white);
}

.section h2 {
  color: var(--maroon);
}

.section p {
  max-width: 750px;
}

/* Service cards */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.service-card {
  background: var(--off-white);
  padding: 30px;
  border-radius: 8px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
  color: var(--maroon);
  margin-top: 0;
}

.service-card p {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 28px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Tablet and mobile layouts */

@media (max-width: 800px) {
  .site-header nav {
    flex-direction: column;
    padding: 15px 0;
    gap: 10px;
  }

  .nav-links {
    justify-content: center;
    gap: 10px 18px;
  }

  .hero {
    padding: 75px 0 85px;
  }

  .section {
    padding: 40px 0;
  }

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

@media (max-width: 480px) {
  .brand {
    font-size: 1.5rem;
  }

  .nav-links {
    font-size: 0.85rem;
  }

  .hero {
    padding: 55px 0 65px;
  }

  .hero p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .service-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
.site-logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: 50px;
  object-fit: contain;
}