/*
 * Corporate site of Gades Imports (2026-11).
 * File: public_html/assets/corp/corp.css  (bump CORP_CSS_VERSION in includes/corp/corp.php on change)
 *
 * Identity from brand-review/BRAND_VISUAL_SYSTEM.md: Gades Imports is ink on paper,
 * no gold. Colour appears only where the page points to Gades Food (teal + straw)
 * or Gades Care (ink + gold). Outfit for display, DM Sans for text.
 * Loaded only by the corporate pages; the old pages keep style.css.
 */
:root {
  --ink: #0A0A0C; --paper: #F6F5F1; --stone: #E4DDCF; --muted: #6B6779; --ivory: #F0EFF4; --mist: #9894A3;
  --rule: rgba(10, 10, 12, .16); --body: #2B2B31;
  --gold: #C8A44E; --teal: #2F6F73; --straw: #F1E6B8;
  --display: 'Outfit', system-ui, sans-serif; --text: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px); --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 700 11px/1.3 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
section { padding: clamp(56px, 8vw, 104px) 0; }
section.flush { padding-top: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* header */
.top { border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup img { width: 52px; height: 52px; object-fit: contain; }
.lockup b { display: block; font: 500 17px/1 var(--display); letter-spacing: .24em; }
.lockup i { display: block; margin-top: 7px; font: 500 9px/1 var(--text); letter-spacing: .4em; color: var(--muted); font-style: normal; }
.nav { display: flex; align-items: center; gap: 32px; font: 500 14px/1 var(--text); }
.nav a:hover, .nav a.on { text-decoration: underline; text-underline-offset: 5px; }
.nav a.on { text-decoration-thickness: 2px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); content: ''; }
.menu summary span { position: relative; }
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu-panel { position: absolute; right: 0; top: 52px; z-index: 5; min-width: 220px; background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; padding: 8px 0; }
.menu-panel a { display: block; padding: 13px 18px; font: 500 16px/1 var(--text); }
.menu-panel a.on { font-weight: 700; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 999px; font: 700 14px/1 var(--display); white-space: nowrap; background: transparent; color: inherit; cursor: pointer; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* home: hero */
.hero { padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero.has-photo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(28px, 3.9vw, 50px); line-height: 1.12; font-weight: 700; margin: 22px 0 0; max-width: 24ch; }
.hero.has-photo h1 { max-width: none; }
.hero .sub { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--body); max-width: 46ch; }
.page-hero h1 em { font-style: normal; font-weight: 300; }
.hero .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }

/* home: doors */
.doors { border-top: 1px solid var(--ink); }
.doors-head { padding: 16px 0; }
.door { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.45fr) 170px; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); transition: background .15s; }
a.door:hover { background: var(--stone); }
.door .n { font: 500 13px/1 var(--display); letter-spacing: .18em; color: var(--muted); padding-left: 4px; }
.door h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 700; line-height: 1.1; }
.door h2 small { display: block; margin-top: 8px; font: 500 14px/1.3 var(--text); letter-spacing: 0; color: var(--muted); }
.door p { margin: 0; color: var(--body); max-width: 54ch; }
.door .go { font: 700 14px/1 var(--display); white-space: nowrap; padding-right: 4px; justify-self: end; }
.door .go.two { display: grid; gap: 12px; }
.door .go.two a { display: inline-flex; align-items: center; gap: 8px; }
.door .go.two a:hover { text-decoration: underline; text-underline-offset: 4px; }
.chip { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 16px/1 var(--display); padding-bottom: 3px; }
.chip.food { background: var(--teal); color: var(--straw); }
.chip.care { background: var(--ink); color: var(--gold); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; margin-bottom: 44px; align-items: end; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 24px 24px 8px 0; border-right: 1px solid var(--rule); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step .n { font: 300 44px/1 var(--display); color: var(--muted); }
.step h3 { font-size: 20px; font-weight: 700; margin: 18px 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--body); }

/* home: the two consumer lines, each in its own colours */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.line { border-radius: 6px; padding: clamp(28px, 4vw, 48px); min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.line.food { background: var(--teal); color: var(--straw); }
.line.care { background: var(--ink); color: var(--ivory); }
.line .g { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 36px/1 var(--display); padding-bottom: 6px; }
.line.food .g { background: var(--straw); color: var(--teal); }
.line.care .g { background: var(--gold); color: var(--ink); }
.wordmark { font: 600 clamp(32px, 4vw, 46px)/1 var(--display); letter-spacing: -.02em; }
.wordmark i { font-style: normal; font-weight: 300; }
.line.care .wordmark i { color: var(--gold); }
.line p { margin: 14px 0 0; max-width: 40ch; }
.line-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.line-foot small { font-size: 12px; opacity: .75; max-width: 30ch; }
.line .btn { border-color: currentColor; }

/* why Gades (dark band) and terms (stone band) share the row list */
.band { background: var(--ink); color: var(--ivory); }
.band .label { color: var(--mist); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 56px; }
.band h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; font-weight: 800; margin-top: 18px; }
.band .lead { color: var(--mist); margin: 20px 0 0; max-width: 40ch; }
.facts { border-top: 1px solid rgba(240, 239, 244, .28); }
.fact { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(240, 239, 244, .16); }
.fact h3 { font-size: 19px; font-weight: 600; }
.fact p { margin: 0; color: var(--mist); font-size: 15px; }
.terms { background: var(--stone); }
.terms .facts { border-top: 1px solid var(--ink); }
.terms .fact { border-bottom: 1px solid var(--rule); grid-template-columns: 260px minmax(0, 1fr); }
.terms .fact h3 { font-size: 21px; }
.terms .fact p { color: var(--body); font-size: 16px; }

/* home: about */
.company { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.company h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; font-weight: 600; margin: 16px 0 18px; }
.company p { margin: 0; max-width: 58ch; color: var(--body); }
dl { margin: 0; border-top: 1px solid var(--ink); }
dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
dt { color: var(--muted); }
dd { margin: 0; }

/* business pages */
.page-hero { padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero .back { font: 500 13px/1 var(--text); color: var(--muted); }
.page-hero .label { display: block; margin-top: 28px; }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.04; font-weight: 800; margin: 18px 0 22px; max-width: 18ch; }
.page-hero p { max-width: 52ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--body); margin: 0 0 28px; }
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cat { border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.cat .k { font: 300 14px/1 var(--display); letter-spacing: .18em; color: var(--muted); }
.cat h3 { font-size: 24px; font-weight: 700; line-height: 1.15; }
.cat p { margin: 0; color: var(--body); font-size: 15px; }
.cat a { font: 700 14px/1 var(--display); margin-top: 6px; }
.cat a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat small { font-size: 12px; color: var(--muted); }

/* contact form */
.contact { background: var(--stone); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; margin: 16px 0 16px; }
.contact p { margin: 0; color: var(--body); max-width: 40ch; }
.cform { margin: 0; }
.who { border: 0; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.who legend { font: 600 15px/1.3 var(--display); padding: 0; margin-bottom: 12px; }
.who label { cursor: pointer; }
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who span { display: block; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 999px; font: 600 14px/1 var(--display); }
.who input:checked + span { background: var(--ink); color: var(--paper); }
.who input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.field { display: block; }
.field.wide { grid-column: 1 / -1; }
.field span { display: block; font: 700 11px/1.3 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; font: 400 16px/1.4 var(--text); color: var(--ink); border-radius: 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-width: 2px; }
.cform .btn { margin-top: 26px; }
.cform .msg { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 6px; font-weight: 500; max-width: none; }
.field.bad span { color: var(--ink); }
.field.bad input, .field.bad textarea { border-bottom-width: 2px; }
.field.bad span::after { content: ' *'; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { border-top: 1px solid var(--ink); padding-top: 22px; }
.sent h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 10px; }

/* footer */
.foot { padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.foot h4 { font: 700 11px/1.3 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 2; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { padding-top: 20px; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .lockup img { width: 42px; height: 42px; }
  .lockup b { font-size: 13px; letter-spacing: .2em; }
  .lockup i { font-size: 8px; letter-spacing: .32em; }
  .hero.has-photo { grid-template-columns: 1fr; gap: 24px; }
  .hero .photo { aspect-ratio: 4 / 3; }
  .door { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; padding: 22px 0; }
  .door p, .door .go { grid-column: 2; justify-self: start; }
  .door .go { margin-top: 8px; }
  .door .go.two { grid-auto-flow: column; gap: 22px; }
  .sec-head, .band-grid, .company, .lines, .contact-grid, .cats { grid-template-columns: 1fr; gap: 20px; }
  .sec-head { margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps.three { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 20px 16px 20px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .fact, .terms .fact { grid-template-columns: 1fr; gap: 6px; }
  .fields { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .lockup { grid-column: 1 / -1; }
  .line { min-height: 280px; }
  .contact-grid { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door { transition: none; }
}
