/* ========================================================================== 
   Peicokk Solutions — Base & Layout Styles
   Design: Modern Auto-Detailing (Navy / Slate / Blue Accent)
   ========================================================================== */

:root {
  --primary-color: #0F172A;
  --secondary-color: #1E293B;
  --accent-color: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #DBEAFE;
  --text-color: #334155;
  --text-light: #64748B;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --surface-muted: #F1F5F9;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius: 14px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

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

/* Header & Navigation */
header {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

nav li {
  margin-bottom: 0;
}

nav a {
  display: block;
  color: #CBD5E1;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover, nav a:focus {
  color: var(--white);
  background-color: rgba(148, 163, 184, 0.12);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--white);
  background-color: rgba(37, 99, 235, 0.22);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #475569;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.menu-toggle:focus {
  outline: 2px solid var(--accent-color);
}

/* Page Layout */
main {
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 58%, #172554 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -220px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.16);
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1.08;
}

.hero p {
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto 2rem auto;
  color: #CBD5E1;
}

.hero-home {
  padding-block: 4.75rem;
  text-align: left;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 4rem;
}

.hero-copy h1,
.hero-copy p {
  margin-inline: 0;
}

.hero-copy p {
  max-width: 650px;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px 18px 18px -14px;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 20px;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: #93C5FD;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--accent-color);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.content-section + .content-section {
  margin-top: 4.5rem;
}

.content-section > h2 {
  max-width: 760px;
}

.content-section > h2 + p {
  max-width: 840px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -6.2rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.feature-strip > div {
  padding: 1.3rem 1.5rem;
}

.feature-strip > div + div {
  border-left: 1px solid var(--border-color);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.feature-strip span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.split-section,
.page-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 3rem;
}

.split-section-contact {
  align-items: start;
}

.page-image {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
}

.page-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-feature {
  margin-bottom: 3rem;
  padding: 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface-muted);
}

.page-feature .page-image {
  box-shadow: none;
}

.page-feature h2 {
  margin-bottom: 0.75rem;
}

.process-list {
  display: grid;
  gap: 1rem;
}

.process-list .card {
  position: relative;
  padding-left: 1.9rem;
  border-left: 4px solid var(--accent-color);
}

.callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent-color);
  background: #EFF6FF;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p:last-child,
.card p:last-child,
.footer-bottom p {
  margin-bottom: 0;
}

article.card > a:last-child,
.card > .btn:last-child {
  margin-top: auto;
  align-self: flex-start;
}

.demo-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #FEF3C7;
  color: #78350F;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

th + th,
td + td {
  border-left: 1px solid var(--border-color);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--secondary-color);
  color: var(--white);
}

.card h2, .card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.notice-card {
  margin-top: 2rem;
}

/* Content Formatting */
h1, h2, h3 {
  color: var(--primary-color);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.85rem 1.35rem;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover, .btn:focus {
  background-color: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #60A5FA;
  outline-offset: 3px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #CBD5E1;
  padding: 4rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #CBD5E1;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive Overrides */
@media (max-width: 980px) {
  .hero-inner,
  .split-section,
  .page-feature {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    max-width: 720px;
  }

  .page-feature .page-image {
    max-height: 360px;
  }
}

@media (max-width: 900px) {
  .header-container {
    padding-inline: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  nav.is-active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .hero {
    padding: 3.5rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-home {
    padding-block: 3.5rem 4.5rem;
  }

  .hero-media::before {
    inset: -8px 12px 12px -8px;
  }

  .container {
    padding: 3.5rem 1rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    margin-top: -5rem;
    margin-bottom: 3.5rem;
  }

  .feature-strip > div + div {
    border-left: 0;
    border-top: 1px solid var(--border-color);
  }

  .content-section + .content-section {
    margin-top: 3.5rem;
  }

  .split-section,
  .page-feature {
    gap: 2rem;
  }

  .page-feature {
    padding: 1rem;
  }
}

@media (max-width: 380px) {
  .logo a {
    font-size: 1.25rem;
  }
}
