/* SoCal Custom Packaging — site styles */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --brand: #0c2d48;
  --brand-mid: #163a5f;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-soft: #fff7ed;
  --teal: #0f766e;
  --teal-soft: #f0fdfa;
  --surface: #f1f5f9;
  --surface-2: #e2e8f0;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
ul { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--ink-soft); }
li { margin-bottom: 0.35rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  font-size: 1.05rem;
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
}
.nav a:hover { background: var(--surface); color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--brand); background: var(--surface); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  margin-left: 0.35rem;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover { background: var(--brand); color: var(--white); }
.btn-ghost {
  background: var(--white);
  color: var(--brand);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(12, 45, 72, 0.94) 0%, rgba(15, 118, 110, 0.88) 100%),
    linear-gradient(160deg, #0c2d48 0%, #163a5f 55%, #0f766e 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 119, 6, 0.25), transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 19px
    );
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
}
.hero h1 { color: var(--white); max-width: 24ch; margin-bottom: 1rem; }
.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  font-size: 1.15rem;
}
.hero .btn-primary { background: var(--accent); border-color: var(--accent); }
.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--brand);
}

/* Page hero (inner) */
.page-hero {
  background: var(--brand);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255, 255, 255, 0.88); max-width: 40rem; font-size: 1.1rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--white); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head p { margin-bottom: 0; }

/* Offer tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tile-grid { grid-template-columns: 1fr; }
}
.tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tile:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.tile h3 {
  margin-bottom: 0.5rem;
  min-height: 2.7em; /* keep 1-line and 2-line titles aligned across the row */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile > p:not(.tile-caption) {
  flex: 1 1 auto;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}
.tile a.tile-link {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.95rem;
}
.tile a.tile-link:hover { color: var(--teal); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.95rem; }

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
}
.trust-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.trust-item .check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 0.15rem;
}
.trust-item p { margin: 0; }

/* Supply callout */
.supply-banner {
  background: var(--accent-soft);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.supply-banner strong { color: var(--brand); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-mid) 60%, #0f766e 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 36rem; margin: 0 auto 1.25rem; }
.cta-band .btn-row { justify-content: center; }

/* Service detail */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 5.5rem;
}
.aside-card h3 { margin-bottom: 0.75rem; }
.aside-card ul { margin-bottom: 1.25rem; }
.aside-card .btn { width: 100%; }
.proof-chip {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Services hub list */
.service-list {
  display: grid;
  gap: 1rem;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-row:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.service-row h3 { margin: 0 0 0.35rem; color: var(--brand); }
.service-row p { margin: 0; font-size: 0.95rem; }
.service-row .arrow {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
}
.secondary-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 840px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
}
.form-group .hint {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: var(--teal);
}
textarea { min-height: 120px; resize: vertical; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 1rem;
}
@media (max-width: 520px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.checkbox-item input { width: auto; accent-color: var(--teal); }
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.radio-item input { width: auto; accent-color: var(--teal); }
.contact-details {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.contact-details h3 { margin-bottom: 1rem; }
.contact-details dl { margin: 0; }
.contact-details dt {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.85rem;
}
.contact-details dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-weight: 600;
}
.contact-details a { color: var(--brand); font-weight: 700; }

/* Footer */
.site-footer {
  background: #071a2b;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--white); }
.footer-brand {
  font-weight: 800;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.tpfs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
}
.tpfs-link:hover { background: rgba(255, 255, 255, 0.14); }

/* Soft cross-link band */
.soft-link {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.soft-link a { font-weight: 700; }


/* Example job media */
.tile-media {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  margin: 0 0 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tile-icon-fallback {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  flex: 0 0 auto;
}
.tile-caption {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.tile.has-media {
  padding-top: 1.15rem;
}
.tile.has-media .tile-link {
  margin-top: auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; }
}
.hero-copy { position: relative; z-index: 1; }
.hero-media {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.08);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero h1 { max-width: none; }

.ex-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}
@media (max-width: 900px) {
  .ex-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .ex-gallery { grid-template-columns: repeat(2, 1fr); }
}
.ex-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.ex-gallery figure a { display: block; text-decoration: none; }
.ex-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.ex-gallery figcaption {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.45rem 0.6rem 0.55rem;
}
.ex-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.page-hero-media {
  margin: 1.5rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 9;
  max-width: 52rem;
  background: rgba(255, 255, 255, 0.06);
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.example-shot {
  margin: 0 0 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}
.example-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  display: block;
}
.example-shot figcaption {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.65rem 0.9rem 0.8rem;
}

.service-row-media {
  width: 88px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.service-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-row {
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
}
@media (max-width: 560px) {
  .service-row { grid-template-columns: 1fr auto; }
  .service-row-media { display: none; }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
