/* ===================================================================
   PS DETAILING — LAYOUT CSS
   Instagram Graphic Style (Clean White, Royal Blue, Jet Black)
   =================================================================== */

/* --- Site Container --- */
.site {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  background: var(--bg);
}

.wrap {
  max-width: 1230px;
  padding: 0 38px;
  margin: auto;
}

/* --- Announcement Bar --- */
.announcement {
  min-height: var(--announcement-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0066ff;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.25);
  position: relative;
  z-index: 52;
}

.announcement a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  transition: opacity var(--duration-fast);
}

.announcement a:hover {
  opacity: 0.85;
}

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--duration-normal) var(--ease);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Logo (Matching Instagram graphics) */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.01em;
}

.brand-logo-text .ps-blue {
  color: #0066ff;
}

.brand-logo-text .slash {
  color: #050b14;
  margin: 0 1px;
  font-weight: 400;
}

.brand-logo-text .det-black {
  color: #050b14;
}

.logo-swoosh {
  width: 135px;
  height: 8px;
  margin-top: -3px;
}

/* Nav Links */
.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.navlinks a:not(.btn) {
  color: #050b14;
  transition: color var(--duration-fast);
  position: relative;
  padding: 6px 0;
}

.navlinks a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: #0066ff;
  border-radius: 2px;
  transition: width var(--duration-normal) var(--ease);
}

.navlinks a:not(.btn):hover,
.navlinks a:not(.btn).active {
  color: #0066ff;
}

.navlinks a:not(.btn):hover::after,
.navlinks a:not(.btn).active::after {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #050b14;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.mobile-toggle:hover {
  background: #f1f5f9;
  border-color: #0066ff;
}

/* --- Section Containers --- */
.section {
  padding: 70px 0;
  position: relative;
}

.section.dark {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

/* --- Split Layout (2-col) --- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

/* --- Footer --- */
footer {
  width: 100%;
  background: #f1f5f9;
  border-top: 2px solid #e2e8f0;
  padding: 55px 0 28px;
  color: #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #050b14;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
  display: block;
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: #0066ff;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #050b14;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all var(--duration-fast);
}

.footer-social a:hover {
  background: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 102, 255, 0.35);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
  border-top: 1px solid #e2e8f0;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 14px;
  color: #64748b;
}

.footer-bottom-links a:hover {
  color: #0066ff;
}

/* --- Page Hero (for sub-pages) --- */
.page-hero {
  padding: 60px 0 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-bottom: 1px solid #e2e8f0;
}

.page-hero h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  line-height: 1.1;
  letter-spacing: .015em;
  margin-bottom: 16px;
  color: #050b14;
}

.page-hero h1 span {
  color: #0066ff;
}

.page-hero .description {
  max-width: 520px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #64748b;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #0066ff;
}

.breadcrumb span {
  color: #94a3b8;
}

/* --- Responsive Layout --- */
@media (max-width: 1100px) {
  .navlinks {
    gap: 16px;
  }
  .wrap {
    padding: 0 26px;
  }
  .split {
    gap: 35px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .navlinks {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .navlinks.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 24px 28px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border-bottom: 2px solid #0066ff;
    animation: menuSlideIn .25s var(--ease-out);
    font-size: 18px;
  }

  @keyframes menuSlideIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navlinks.open a {
    display: block;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section {
    padding: 55px 0;
  }

  .section-head {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }

  .announcement {
    font-size: 11px;
    letter-spacing: .02em;
    padding: 8px 10px;
  }

  .nav {
    min-height: 64px;
  }

  .brand-logo-text {
    font-size: 28px;
  }

  .logo-swoosh {
    width: 110px;
  }

  .section {
    padding: 42px 0;
  }

  .section h2 {
    font-size: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
