/* ============================================================
   DS TOWING LTD — Main Stylesheet
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1C2B4A;
  --navy-dark:   #111D35;
  --navy-deeper: #0B1222;
  --crimson:     #8C1818;
  --crimson-h:   #6E1212;
  --light:       #F5F5F5;
  --white:       #FFFFFF;
  --gray:        #6B7280;
  --gray-light:  #E5E7EB;
  --text:        #1A1A2E;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 12px 48px rgba(0, 0, 0, 0.15);
  --trans:       0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
}

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

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

address {
  font-style: normal;
}

ul {
  list-style: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SITE BACKGROUND (PARALLAX) ===== */
.site-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-bg picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#site-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  will-change: transform;
  display: block;
}

/* Everything above the parallax background */
header,
main,
footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--trans);
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.btn--crimson {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}
.btn--crimson:hover,
.btn--crimson:focus-visible {
  background: var(--crimson-h);
  border-color: var(--crimson-h);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== SECTION UTILITIES ===== */
.section {
  padding: 100px 0;
}

.section--alt {
  background: rgba(245, 245, 245, 0.72);
}

.section--dark {
  background: rgba(17, 29, 53, 0.91);
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 12px;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.55);
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 580px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-title {
  margin-bottom: 16px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--navy-deeper);
  color: rgba(255, 255, 255, 0.85);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.875rem;
  min-width: 220px;
  line-height: 1.55;
}

.cookie-banner a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover {
  color: var(--white);
}

.cookie-banner__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 20px 0;
  background: rgba(17, 29, 53, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding var(--trans), background var(--trans), box-shadow var(--trans);
}

.header.scrolled {
  padding: 13px 0;
  background: rgba(17, 29, 53, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo__ds {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo__towing {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Nav ---- */
.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 2px;
}

.nav__link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: color var(--trans), background var(--trans);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ---- Header CTA ---- */
.header__cta {
  flex-shrink: 0;
}

/* ---- Hamburger ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 18, 34, 0.72) 0%,
    rgba(17, 29, 53, 0.50) 55%,
    rgba(17, 29, 53, 0.20) 100%
  );
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 760px;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--crimson);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}


.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 44px;
  line-height: 1.75;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.8; }
}

/* ===== ABOUT ===== */
.about {
  background: rgba(255, 255, 255, 0.72);
}

.about__grid {
  display: block;
  max-width: 780px;
}

.about__text .section-title {
  margin-top: 8px;
}

.about__text p {
  color: #4a4a5a;
  margin-bottom: 22px;
  line-height: 1.8;
  font-size: 0.975rem;
}


/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.055);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
}

.service-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: rgba(28, 43, 74, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
  flex-shrink: 0;
  transition: background var(--trans), color var(--trans);
}

.service-card:hover .service-card__icon {
  background: var(--navy);
  color: var(--white);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.service-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
  margin-top: auto;
}

.price-from {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 500;
}

.price-value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--crimson);
}

.price-note {
  font-size: 0.76rem;
  color: var(--gray);
  width: 100%;
}

.services__note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--gray);
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  line-height: 1.65;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  background: rgba(255, 255, 255, 0.68);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
}

.why-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(28, 43, 74, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--navy);
  transition: background var(--trans), color var(--trans);
}

.why-card:hover .why-card__icon {
  background: var(--navy);
  color: var(--white);
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  padding-top: 8px;
}

.contact__info .section-title {
  margin-top: 8px;
}

.contact__intro {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
  line-height: 1.75;
  font-size: 0.975rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.contact__details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.contact__details svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--crimson);
}

.contact__details a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__legal {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.8;
}

.contact__legal strong {
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Contact Form ---- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.required {
  color: var(--crimson);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28, 43, 74, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab0bd;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-privacy {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 22px;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-privacy a:hover {
  color: var(--crimson);
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 48px 24px;
  color: var(--navy);
}

.form-success svg {
  color: #22c55e;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--gray);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(9, 14, 28, 0.98);
  color: rgba(255, 255, 255, 0.55);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__brand .logo {
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.875rem;
  line-height: 1.75;
}

.footer__details strong {
  color: rgba(255, 255, 255, 0.8);
}

.footer__details a:hover,
.footer__brand a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer__legal nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__legal nav a {
  font-size: 0.875rem;
  transition: color var(--trans);
}

.footer__legal nav a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__bottom {
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.28);
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  background: rgba(255, 255, 255, 0.96);
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-content .legal-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: #4a4a5a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--crimson);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about__grid {
    gap: 52px;
  }

  .contact__grid {
    gap: 52px;
  }

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

  .footer__legal {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  /* Header mobile */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 29, 53, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0 16px;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
  }

  .nav__link {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Services mobile */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Why Us mobile */
  .why-us__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact mobile */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 28px 20px;
  }

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

  /* Footer mobile */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer__legal {
    grid-column: auto;
  }

  /* Hero mobile */
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 2rem;
  }
}
