/* ============================================================
   Valle Auto Sales — visual system from the business card:
   near-black base, signal red accents, chrome/silver details
   ============================================================ */

:root {
  --black: #0e0e0e;
  --black-soft: #1a1a1a;
  --panel: #161616;
  --panel-raised: #1e1e1e;
  --red: #e01f26;
  --red-dark: #b3161c;
  --silver: #c7cbd1;
  --gray: #6b7280;
  --gray-soft: #9aa1ab;
  --line: rgba(199, 203, 209, 0.16);
  --line-strong: rgba(199, 203, 209, 0.30);
  --white: #ffffff;
  --text: #f4f5f7;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.6);
  --font: "Inter", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  /* faint carbon texture for hero / footer — dark-on-dark, stays subtle */
  --carbon:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 1.6px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--silver); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1100px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}

.brand { display: flex; align-items: center; text-decoration: none; color: var(--white); min-width: 0; flex: 0 0 auto; }
.brand-logo {
  display: block; width: 176px; height: 52px;
  object-fit: cover; object-position: center; flex: 0 0 auto;
}

.main-nav { display: flex; gap: .35rem; margin-left: auto; }
.main-nav a {
  color: var(--text); text-decoration: none; font-size: .93rem; font-weight: 600;
  padding: .45rem .7rem; white-space: nowrap; position: relative;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--white); border-bottom-color: var(--red); }
.main-nav a.active { color: var(--white); border-bottom-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: .25rem; }

.lang-toggle {
  background: transparent; color: var(--white);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .38rem .9rem;
  font-weight: 700; font-size: .82rem; letter-spacing: .5px;
  transition: border-color .15s ease, color .15s ease;
}
.lang-toggle:hover { border-color: var(--red); color: var(--red); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--white); border-radius: 8px; font-size: 1.1rem;
  padding: .2rem .55rem; line-height: 1.2;
}

/* ---------- Hero ---------- */

.hero {
  background:
    var(--carbon),
    radial-gradient(900px 420px at 78% -60px, rgba(224, 31, 38, 0.12), transparent),
    linear-gradient(165deg, #181818 0%, var(--black) 65%);
  background-size: 14px 14px, auto, auto;
  color: var(--text);
  padding: 4rem 1rem 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red) 35%, var(--red) 65%, transparent);
  opacity: .7;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
}
.hero-copy { flex: 1 1 55%; min-width: 0; }
.hero-photo { flex: 1 1 45%; min-width: 0; }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: 1px;
  line-height: 1.12; max-width: 760px; color: var(--white);
}
.hero p { margin-top: 1rem; max-width: 560px; font-size: 1.08rem; color: var(--silver); }
.hero-ctas { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border-radius: 8px; padding: .72rem 1.7rem; font-weight: 700; font-size: .98rem;
  letter-spacing: .4px; border: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-cream { background: var(--white); color: var(--black); }
.btn-green { background: transparent; color: var(--white); border: 1px solid var(--line-strong); }
.btn-green:hover { border-color: var(--silver); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ---------- Sections ---------- */

.section { padding: 2.8rem 1rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.75rem; letter-spacing: 1px; color: var(--white);
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem;
}
.section-title::before {
  content: ""; width: 5px; height: 1.4em; background: var(--red);
  border-radius: 2px; flex-shrink: 0;
}

.section-alt { background: var(--black-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Car cards ---------- */

.car-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.car-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(224, 31, 38, 0.55); }

.car-photo {
  aspect-ratio: 4 / 3; background: linear-gradient(150deg, #232323, #171717);
  display: flex; align-items: center; justify-content: center; position: relative;
  color: var(--gray); font-size: .85rem; overflow: hidden;
}
.car-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-photo .ph-icon { font-size: 2.6rem; opacity: .4; }
.car-photo .ph-label { position: absolute; bottom: .5rem; font-size: .72rem; letter-spacing: .5px; }

.sold-tag {
  position: absolute; top: .7rem; left: -.4rem; z-index: 2;
  background: var(--red); color: var(--white); font-weight: 800;
  font-size: .78rem; letter-spacing: 1.5px; padding: .25rem .8rem;
  border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transform: rotate(-4deg); text-transform: uppercase;
}
.car-card.is-sold .car-photo { filter: grayscale(.75) brightness(.8); }

.featured-star {
  position: absolute; top: .6rem; right: .6rem; z-index: 2;
  background: rgba(14, 14, 14, .85); color: var(--silver);
  border: 1px solid var(--line-strong);
  font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}

.car-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.car-title { font-weight: 700; font-size: 1.05rem; color: var(--white); }
.car-price { color: var(--white); font-weight: 800; font-size: 1.2rem; }
.car-powertrain { color: var(--silver); font-size: .82rem; font-weight: 650; line-height: 1.35; }
.car-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .84rem; color: var(--gray-soft); align-items: center; }
.color-dot {
  width: .8rem; height: .8rem; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(255, 255, 255, .25); vertical-align: -1px; margin-right: .3rem;
}
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .8px;
  padding: .14rem .6rem; border-radius: 4px; text-transform: uppercase;
}
.badge-local { background: rgba(199, 203, 209, 0.12); color: var(--silver); border: 1px solid var(--line); }
.badge-imported { background: rgba(224, 31, 38, 0.14); color: #ff5a60; border: 1px solid rgba(224, 31, 38, 0.4); }
.badge-4x4 {
  background: linear-gradient(180deg, #d8dce2, #aab0b8); color: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.35); font-weight: 800;
}
.tag-4x4 {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 2;
  background: linear-gradient(180deg, #d8dce2, #aab0b8); color: var(--black);
  font-weight: 800; font-size: .74rem; letter-spacing: 1px;
  padding: .18rem .55rem; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- Inventory controls ---------- */

.inv-controls { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; align-items: center; }
.search-box {
  flex: 1 1 260px; padding: .65rem 1rem; border-radius: 8px;
  border: 1px solid var(--line-strong); font-size: 1rem;
  background: var(--panel); color: var(--text);
}
.search-box::placeholder { color: var(--gray); }
.search-box:focus { outline: none; border-color: var(--red); }

.filters-toggle {
  background: var(--panel-raised); color: var(--white); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: .6rem 1.2rem; font-weight: 700; font-size: .95rem;
}
.filters-toggle:hover { border-color: var(--red); }
.sort-select, .filter-select, .filter-input {
  padding: .55rem .8rem; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--panel); font-size: .92rem; font-family: inherit; color: var(--text);
  max-width: 100%;
}
.sort-select:focus, .filter-select:focus, .filter-input:focus { outline: none; border-color: var(--red); }

.filters-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem; margin-bottom: 1.3rem;
  display: grid; gap: .9rem 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.filters-panel.hidden { display: none; }
.filter-group label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--silver); margin-bottom: .3rem; }
.range-row { display: flex; gap: .5rem; align-items: center; color: var(--gray-soft); }
.range-row input { width: 100%; accent-color: var(--red); }
input[type="range"] { accent-color: var(--red); }
.clear-filters { background: none; border: none; color: var(--red); font-weight: 700; font-size: .88rem; text-decoration: underline; }

.inv-count { font-size: .92rem; color: var(--gray-soft); margin-bottom: .9rem; }
.inv-empty {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2.2rem 1.4rem; text-align: center; color: var(--gray-soft); font-size: 1.02rem;
}

/* ---------- Car detail ---------- */

.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 600; color: var(--silver); }
.back-link:hover { color: var(--white); }

.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.6rem; align-items: start; }

.gallery-main {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, #232323, #141414);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--gray); box-shadow: var(--shadow); position: relative;
}
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(14, 14, 14, 0.55); color: var(--white);
  font-size: 1.6rem; line-height: 1; padding: 0 0 .2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease;
}
.gallery-nav:hover { background: var(--red); border-color: var(--red); }
.gallery-nav.prev { left: .6rem; }
.gallery-nav.next { right: .6rem; }
.gallery-count {
  position: absolute; bottom: .6rem; right: .6rem; z-index: 2;
  background: rgba(14, 14, 14, 0.7); color: var(--silver);
  font-size: .78rem; font-weight: 700; letter-spacing: .5px;
  padding: .15rem .6rem; border-radius: 999px;
}
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px; height: 54px; border-radius: 6px; overflow: hidden;
  border: 2px solid var(--line); padding: 0; background: var(--panel);
}
.gallery-thumbs button.active { border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.photos-soon { font-size: .85rem; color: var(--gray); margin-top: .6rem; font-style: italic; }

.detail-info h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; font-size: 1.9rem; color: var(--white); line-height: 1.2;
}
.detail-price { color: var(--white); font-weight: 800; font-size: 1.7rem; margin: .4rem 0 1rem; }

.spec-table {
  width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.spec-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--text); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 700; color: var(--silver); width: 40%; }

.info-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem; margin-top: 1.1rem;
}
.info-card h3 { color: var(--white); font-size: 1.02rem; margin-bottom: .45rem; display: flex; gap: .55rem; align-items: center; }
.info-card h3::before { content: ""; width: 4px; height: 1.05em; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.info-card p { font-size: .93rem; color: var(--gray-soft); }
.reg-fee { margin-top: .5rem; font-weight: 700; color: var(--silver); font-size: .93rem; }

.condition-tags { list-style: none; display: flex; flex-direction: column; gap: .45rem; margin: .5rem 0 .8rem; }
.condition-tags li {
  background: rgba(199, 203, 209, 0.07); border-left: 3px solid var(--silver); border-radius: 6px;
  padding: .5rem .8rem; font-size: .92rem; color: var(--text); font-weight: 600;
}
.condition-note { font-size: .88rem; font-style: italic; color: var(--gray-soft); }

.interest-btn { margin-top: 1.3rem; width: 100%; font-size: 1.08rem; padding: .95rem; }

.contact-btns { display: flex; gap: .7rem; margin-top: .7rem; }
.contact-btns .btn { flex: 1; padding: .8rem; font-size: .98rem; }
.btn-silver {
  background: linear-gradient(180deg, #d8dce2 0%, var(--silver) 55%, #aab0b8 100%);
  color: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-silver:hover { background: linear-gradient(180deg, #e6e9ee 0%, #d3d7dd 55%, #b8bec6 100%); }
@media (max-width: 380px) {
  .contact-btns { flex-direction: column; }
}
.sold-banner {
  background: var(--red); color: var(--white); border-radius: var(--radius);
  padding: .8rem 1.1rem; font-weight: 700; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ---------- Financing ---------- */

.fin-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1.4rem 0 2.2rem; }
.fin-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem; border-top: 3px solid var(--red);
}
.fin-card .fin-icon { font-size: 1.7rem; margin-bottom: .5rem; }
.fin-card h3 { color: var(--white); margin-bottom: .4rem; }
.fin-card p { font-size: .93rem; color: var(--gray-soft); }

.talk-direct {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--silver);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem 1.6rem 1.4rem; max-width: 640px; margin-bottom: 1.4rem;
}
.talk-direct h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--white); margin-bottom: .2rem;
}
.talk-direct p { font-size: .92rem; color: var(--gray-soft); margin-bottom: .9rem; }

.lead-form {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem; max-width: 640px;
}
.lead-form h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--white); margin-bottom: .3rem;
}
.form-sub { font-size: .92rem; color: var(--gray-soft); margin-bottom: 1.2rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 700; font-size: .85rem; color: var(--silver); margin-bottom: .3rem; letter-spacing: .3px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .65rem .85rem; border-radius: 8px;
  border: 1px solid var(--line-strong); font-size: 1rem; font-family: inherit;
  background: var(--black-soft); color: var(--text);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--gray); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); }
.form-field textarea { min-height: 100px; resize: vertical; }

.privacy-note {
  background: rgba(199, 203, 209, 0.07); border: 1px solid var(--line);
  border-radius: 8px; padding: .7rem .9rem;
  font-size: .85rem; color: var(--silver); margin-bottom: 1.1rem;
  display: flex; gap: .5rem; align-items: flex-start;
}
.privacy-note::before { content: "🔒"; }

.form-status { margin-top: .9rem; font-weight: 700; padding: .7rem .9rem; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: rgba(46, 160, 90, 0.15); color: #6fd39a; border: 1px solid rgba(46, 160, 90, 0.4); }
.form-status.err { display: block; background: rgba(224, 31, 38, 0.14); color: #ff5a60; border: 1px solid rgba(224, 31, 38, 0.4); }

/* ---------- Story ---------- */

.story-photo {
  float: right; width: min(340px, 42%); margin: 0 0 1.2rem 1.8rem;
}
.story-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.story-photo figcaption {
  margin-top: .6rem; font-size: .88rem; color: var(--silver); font-style: italic;
}
.story-body { max-width: 720px; font-size: 1.06rem; }
.story-body p { margin-bottom: 1.2rem; color: #d3d6da; }
.story-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.1em; float: left;
  line-height: .85; padding-right: .12em; color: var(--red); font-weight: 700;
}
.story-sign {
  margin-top: 1.6rem; font-family: var(--font-display); font-size: 1.25rem;
  color: var(--silver); border-left: 3px solid var(--red); padding-left: 1rem; font-style: italic;
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.6rem; align-items: start; }
.contact-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem;
}
.contact-card h3 { color: var(--gray-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 1rem 0 .25rem; }
.contact-card h3:first-child { margin-top: 0; }
.contact-card a { font-weight: 700; text-decoration: none; font-size: 1.08rem; display: block; color: var(--white); }
.contact-card a:hover { color: var(--red); }
.contact-card p { font-size: .98rem; color: var(--text); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: invert(.9) hue-rotate(180deg) contrast(.9); }
.directions-btn { margin-top: 1.2rem; display: inline-block; }

/* ---------- Home extras ---------- */

.home-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.home-panel {
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .7rem; align-items: flex-start;
  border: 1px solid var(--line);
}
.home-panel h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; font-size: 1.5rem;
}
.panel-story {
  background: linear-gradient(160deg, #1e1e1e, var(--panel));
  color: var(--text); border-top: 3px solid var(--red);
}
.panel-story h2 { color: var(--white); }
.panel-story a { color: var(--silver); font-weight: 700; }
.panel-story a:hover { color: var(--white); }
.panel-visit { background: var(--panel); color: var(--text); }
.panel-visit h2 { color: var(--white); }

.reviews-badge {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin: 1rem 0 1.2rem; padding: .7rem .9rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 8px; font-size: .95rem;
}
.reviews-stars { font-weight: 800; color: var(--white); }
.reviews-count { color: var(--silver); }
.reviews-badge a { font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  background:
    var(--carbon),
    linear-gradient(180deg, #0c0c0c, #080808);
  background-size: 14px 14px, auto;
  color: var(--text); margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 2.2rem 1rem 1.4rem;
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 1.6rem; align-items: start;
}
.footer-brand { width: fit-content; text-align: center; }
.footer-logo {
  display: block; width: 240px; height: 70px; object-fit: cover; object-position: center;
  margin: 0 auto;
}
.footer-tag { font-size: .74rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gray-soft); }
.footer-family { margin-top: .5rem; font-size: .88rem; font-style: italic; color: var(--gray-soft); }
.footer-contact a { display: block; color: var(--white); text-decoration: none; font-weight: 600; margin-bottom: .25rem; }
.footer-contact a:hover { color: var(--red); }
.footer-contact p { font-size: .88rem; color: var(--gray-soft); margin-top: .35rem; }
.footer-bottom { text-align: center; font-size: .8rem; color: var(--gray); padding: 1rem; border-top: 1px solid var(--line); }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black-soft); flex-direction: column; padding: .6rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .75rem .9rem; font-size: 1.05rem; border-bottom: 2px solid transparent; }

  .detail-grid, .contact-grid, .home-two { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 2.8rem 1rem 3.4rem; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 1.8rem; }
  .story-photo { float: none; width: 100%; margin: 0 0 1.4rem; }
  .filters-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .filters-panel { grid-template-columns: 1fr; }
  .brand-logo { width: 142px; height: 42px; }
}
