/*
Theme Name: DS Studio
Theme URI: https://example.com/
Author: DS Studio
Author URI: https://example.com/
Description: Premium one-page WordPress landing page for DS Studio automotive styling, tinting, wrapping and PPF protection.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ds-studio
*/

:root {
  --background: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #eceff3;
  --surface-dark: #10151d;
  --surface-dark-soft: #171d26;
  --text-primary: #111318;
  --text-secondary: #5f6672;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #b7bfca;
  --brand-blue: #346fc5;
  --brand-blue-hover: #285ba4;
  --border-light: rgba(17, 19, 24, 0.1);
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 18px 48px rgba(17, 19, 24, 0.08);
  --shadow-card: 0 16px 42px rgba(17, 19, 24, 0.08);
  --radius-small: 10px;
  --radius-card: 18px;
  --radius-image: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(236, 239, 243, 0.72), rgba(245, 246, 248, 0) 520px),
    var(--background);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(52, 111, 197, 0.42);
  outline-offset: 3px;
}

::selection {
  background: rgba(52, 111, 197, 0.2);
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius-small);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 12px 14px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: 20px;
}

.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(245, 246, 248, 0.3);
  color: var(--text-primary);
  backdrop-filter: blur(2px);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-light);
  background: rgba(245, 246, 248, 0.92);
  box-shadow: 0 14px 40px rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(20px);
}

.header-grid {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-small);
}

.brand-link img {
  width: auto;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(17, 19, 24, 0.1);
}

.desktop-nav,
.header-actions {
  display: none;
}

.nav-link {
  position: relative;
  white-space: nowrap;
  border-radius: var(--radius-small);
  padding: 8px 4px;
  color: rgba(17, 19, 24, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -4px;
  left: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-blue);
  opacity: 0;
  transition: opacity 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-blue);
}

.nav-link.is-active::after {
  opacity: 1;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--radius-small);
  color: rgba(17, 19, 24, 0.72);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease;
}

.header-phone:hover {
  color: var(--brand-blue);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(52, 111, 197, 0.22);
}

.button-primary:hover {
  background: var(--brand-blue-hover);
}

.button-secondary {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: rgba(52, 111, 197, 0.22);
  box-shadow: 0 12px 28px rgba(17, 19, 24, 0.06);
}

.button-full {
  width: 100%;
}

.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
}

.menu-close,
.menu-toggle[aria-expanded="true"] .menu-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close {
  display: block;
}

.mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  background: rgba(245, 246, 248, 0.96);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  transition: grid-template-rows 200ms ease, opacity 200ms ease;
}

.mobile-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel .container {
  min-height: 0;
}

.mobile-nav {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  padding-block: 20px;
}

.mobile-nav-link {
  white-space: nowrap;
  border-radius: var(--radius-small);
  padding: 12px;
  color: var(--text-primary);
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: var(--surface);
  color: var(--brand-blue);
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(112deg, #f5f6f8 0%, #e8ebef 48%, #171d26 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, #f5f6f8 100%);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
  padding-block: 64px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  border-radius: var(--radius-small);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-eyebrow {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.75);
  padding: 9px 12px;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.04);
}

.hero-title,
.section-intro h2 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-weight: 650;
  line-height: 1.04;
}

.hero-title {
  font-size: clamp(31px, 8.5vw, 42px);
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.text-blue {
  color: var(--brand-blue);
}

.hero-text {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.trust-grid {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  box-shadow: 0 8px 22px rgba(17, 19, 24, 0.04);
  backdrop-filter: blur(12px);
}

.trust-item svg {
  flex: 0 0 auto;
  color: var(--brand-blue);
}

.trust-item span {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-image);
  aspect-ratio: 3 / 2;
  background: var(--surface-dark-soft);
  box-shadow: 0 24px 70px rgba(16, 21, 29, 0.22);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 29, 38, 0) 44%, rgba(23, 29, 38, 0.14));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-section {
  position: relative;
  overflow: hidden;
  background: #f5f6f8;
  padding-block: 72px;
}

.services-top-fade,
.contact-top-fade,
.contact-bottom-fade {
  position: absolute;
  right: 0;
  left: 0;
  pointer-events: none;
}

.services-top-fade {
  top: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
}

.services-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 112px;
  background: linear-gradient(180deg, transparent, rgba(236, 239, 243, 0.6) 55%, #eceff3);
  pointer-events: none;
}

.services-grid,
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.section-intro h2 {
  color: var(--text-primary);
  font-size: clamp(30px, 3.4vw, 48px);
}

.section-intro p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.cards-grid {
  display: grid;
  gap: 20px;
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(17, 19, 24, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(17, 19, 24, 0.11);
}

.service-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.service-card:hover .service-image img {
  transform: scale(1.025);
}

.service-body {
  display: grid;
  flex: 1;
  grid-template-columns: auto 1fr;
  gap: 0 14px;
  padding: 22px;
}

.service-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  grid-row: span 3;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-small);
  background: var(--brand-blue);
  color: #fff;
}

.service-body h3 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 20px;
  line-height: 1.25;
}

.service-body p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.service-body a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 800;
}

.benefits-section {
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #eceff3 0%, #f7f8fa 100%);
  padding-block: 32px;
}

.benefits-container {
  position: relative;
}

.benefits-shadow {
  position: absolute;
  inset: 50% 32px auto;
  z-index: 0;
  height: 112px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(16, 21, 29, 0.12);
  filter: blur(44px);
  pointer-events: none;
}

.benefits-panel {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  grid-template-columns: 1fr;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-image);
  background: #151b24;
  color: var(--text-on-dark);
  box-shadow: 0 28px 90px rgba(16, 21, 29, 0.24);
}

.benefits-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.benefit-item {
  position: relative;
  padding: 26px 22px;
}

.benefit-item svg {
  color: var(--brand-blue);
}

.benefit-item h3 {
  margin: 24px 0 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.benefit-item p {
  margin: 10px 0 0;
  color: var(--text-on-dark-muted);
  font-size: 14px;
  line-height: 1.55;
}

.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, #eceff3 0%, #f7f8fa 100%);
  padding-block: 72px;
}

.contact-top-fade {
  top: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

.contact-bottom-fade {
  bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, rgba(16, 21, 29, 0.95));
}

.contact-intro h2 {
  max-width: 520px;
}

.contact-bullets {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.contact-bullets div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 750;
}

.contact-bullets svg {
  flex: 0 0 auto;
  color: var(--brand-blue);
}

.contact-form {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-image);
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  box-shadow: 0 22px 60px rgba(17, 19, 24, 0.08);
  backdrop-filter: blur(14px);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  padding: 12px 16px;
  box-shadow: 0 1px 0 rgba(17, 19, 24, 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(95, 102, 114, 0.7);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(52, 111, 197, 0.15);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-footer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.form-status {
  margin: 20px 0 0;
  border-radius: var(--radius-small);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 750;
}

.form-status.success {
  border: 1px solid rgba(52, 111, 197, 0.2);
  background: rgba(52, 111, 197, 0.1);
  color: var(--brand-blue);
}

.form-status.warning {
  border: 1px solid rgba(180, 83, 9, 0.24);
  background: rgba(180, 83, 9, 0.08);
  color: #92400e;
}

.form-status.error {
  border: 1px solid rgba(185, 28, 28, 0.24);
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

.contact-card {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-image);
  background: #10151d;
  color: var(--text-on-dark);
  padding: 28px 24px;
  box-shadow: 0 22px 60px rgba(16, 21, 29, 0.16);
}

.contact-card h2 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  font-size: 28px;
  line-height: 1.2;
}

.contact-card > p {
  margin: 18px 0 0;
  color: var(--text-on-dark-muted);
  font-size: 15px;
  line-height: 1.65;
}

.details-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.details-list a,
.details-list div {
  display: flex;
  gap: 14px;
  border-radius: var(--radius-small);
}

.details-list svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--brand-blue);
}

.details-list span {
  display: grid;
  gap: 4px;
  color: var(--text-on-dark);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.details-list strong {
  color: var(--text-on-dark-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--border-dark);
  background: #10151d;
  color: var(--text-on-dark);
  padding-block: 40px 0;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-grid img {
  width: 192px;
  border-radius: var(--radius-small);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.footer-grid p,
.footer-contact {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-grid > div:first-child p {
  max-width: 460px;
  margin: 20px 0 0;
}

.footer-grid nav {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-grid nav a {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 750;
  transition: color 180ms ease;
}

.footer-grid nav a:hover {
  color: var(--text-on-dark);
}

.footer-contact p {
  margin: 0;
}

.footer-contact strong {
  color: var(--text-on-dark);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  border-top: 1px solid var(--border-dark);
  padding-block: 24px;
  color: var(--text-on-dark-muted);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.reveal-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 380px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .container {
    padding-inline: 32px;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .hero-buttons .button {
    min-width: 210px;
  }

  .cards-grid,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-wide {
    grid-column: 1 / -1;
  }

  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .form-footer .button {
    min-width: 224px;
  }

  .benefits-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 48px;
  }

  .header-grid {
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    min-height: 84px;
  }

  .brand-link img {
    height: 56px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .menu-toggle,
  .mobile-panel {
    display: none;
  }

  .hero-grid {
    min-height: 720px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 40px;
    padding-block: 80px;
  }

  .hero-copy {
    grid-column: span 6;
  }

  .hero-visual {
    grid-column: span 6;
  }

  .hero-title {
    font-size: clamp(50px, 4vw, 60px);
  }

  .hero-text {
    font-size: 20px;
  }

  .services-section {
    padding-block: 112px;
  }

  .services-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
  }

  .services-grid .section-intro {
    grid-column: span 3;
  }

  .services-grid .cards-grid {
    grid-column: span 9;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-intro {
    position: sticky;
    top: 112px;
    align-self: start;
  }

  .benefits-section {
    padding-block: 48px;
  }

  .benefits-panel {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .benefit-item.has-separator::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .contact-section {
    padding-block: 144px;
  }

  .contact-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 40px;
  }

  .contact-intro {
    grid-column: span 4;
  }

  .contact-form {
    grid-column: span 5;
  }

  .contact-card {
    grid-column: span 3;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1440px) {
  .container {
    padding-inline: 64px;
  }

  .desktop-nav {
    gap: 44px;
  }
}

@media (max-width: 420px) {
  .button {
    width: 100%;
  }

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

  .hero-title {
    font-size: clamp(29px, 8.6vw, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
