/* ============================================================
   DP Kustom Upholstery — shared.css
   Paleta, tipografía, header, footer y componentes comunes
   para index.html, auto.html, marine.html, commercial.html,
   residential.html
   ============================================================ */

/* ---------- Palette ---------- */
:root {
  color-scheme: dark;
  --black:           #000000;
  --panel-alt:       #0A0A0A;
  --panel:           #0C0C0C;
  --field:           #000000;
  --line:            #1E1E1E;
  --line-strong:     #333333;
  --stitch:          #4A4A4A;
  --gray-100:        #EDEDED;
  --gray-300:        #BDBDBD;
  --gray-400:        #A3A3A3;
  --gray-500:        #8A8A8A;
  --red-head:        #C24A4F;
  --red-text:        #CF5A5E;
  --red-fill:        #A93238;
  --red-fill-hover:  #B93A41;
  --red-fill-active: #8F2A30;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--black);
  color: var(--gray-300);
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  margin: 0;
  font-weight: 600;
}
h1, h2 { color: var(--red-head); }
h3 { color: var(--red-text); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--red-fill); color: #fff; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.stitch {
  border: none;
  border-top: 2px dashed var(--stitch);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn-red {
  display: inline-block;
  background: var(--red-fill);
  color: #F5F5F5;
  padding: 12px 24px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-red:hover  { background: var(--red-fill-hover); }
.btn-red:active { background: var(--red-fill-active); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--gray-300);
  padding: 11px 23px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--red-text); color: var(--red-text); }

/* ---------- Header ---------- */
header {
  background: var(--black);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo-img { height: 64px; width: auto; display: block; }
header nav { display: flex; align-items: center; gap: 28px; }
header nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--gray-400);
  transition: color .15s;
}
header nav a:hover,
header nav a.active { color: var(--red-text); }
.call-btn {
  background: var(--red-fill);
  color: #F5F5F5;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.call-btn:hover  { background: var(--red-fill-hover); }
.call-btn:active { background: var(--red-fill-active); }

/* ---------- Footer ---------- */
footer {
  background: var(--panel-alt);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 14px;
  color: var(--gray-500);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: radial-gradient(ellipse 60% 90% at 20% 50%, #1A0D0D 0%, #0A0A0A 50%, #000 80%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 16px; }
.page-hero p  { font-size: 1.1rem; color: var(--gray-400); max-width: 560px; margin-bottom: 28px; }
.page-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Section titles ---------- */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.section-title h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-title p  { color: var(--gray-500); font-size: .95rem; max-width: 420px; text-align: right; }

/* ---------- Photo grid (subpages) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 2px;
  transition: opacity .2s;
}
.photo-grid img:hover { opacity: .88; }
.photo-grid .span2 {
  grid-column: span 2;
}
.photo-grid .tall img { height: 400px; }

/* ---------- Inline carousel (shared with index) ---------- */
.carousel-wrap {
  position: relative;
}
.carousel {
  overflow: hidden;
  border-radius: 2px;
}
.carousel-track {
  display: flex;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.carousel-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 2px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.7);
  border: 1px solid var(--line-strong);
  color: var(--gray-300);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s, color .15s;
}
.carousel-btn:hover { background: var(--red-fill); color: #fff; border-color: var(--red-fill); }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.carousel-dot.active { background: var(--red-text); }

/* ---------- Quote form (shared) ---------- */
.quote-section {
  background: var(--panel-alt);
  padding: 72px 0;
}
.quote-section .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.quote-intro h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.quote-intro p  { color: var(--gray-400); margin-bottom: 12px; }
.quote-intro ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-intro ul li::before {
  content: "✓ ";
  color: var(--red-text);
  font-weight: 600;
}
.quote-form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--gray-100);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  padding: 10px 12px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red-text);
  outline: none;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: #111; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; tabindex: -1; }
.submit-row { display: flex; justify-content: flex-end; margin-top: 8px; }
.form-status { font-size: 14px; color: var(--gray-400); }
.form-status.ok { color: var(--red-text); }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.trust-strip .wrap {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a { color: var(--red-text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ---------- Related services cards ---------- */
.related-services {
  padding: 56px 0;
  background: var(--panel-alt);
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.related-card {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px 20px;
  text-decoration: none;
  display: block;
  transition: border-color .2s;
}
.related-card:hover { border-color: var(--red-text); }
.related-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.related-card p  { font-size: .9rem; color: var(--gray-500); margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  header nav { display: none; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .span2 { grid-column: span 2; }
  .carousel-slide { grid-template-columns: 1fr; }
  .carousel-slide img { height: 260px; }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
  .quote-section .wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; text-align: center; }
  .page-hero { padding: 40px 0; }
}
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .span2 { grid-column: span 1; }
}
