/* ============================================================
   IBPlace — Phase 1 corporate / brand-recruitment site
   Design system: premium outdoor & footwear distributor
   ============================================================ */

:root {
  /* Palette */
  --paper:      #F6F4EF;   /* warm off-white background */
  --paper-2:    #EFEBE3;   /* slightly darker section bg */
  --ink:        #1A1D1A;   /* near-black text */
  --ink-soft:   #4A4F49;   /* secondary text */
  --line:       #D9D3C8;   /* hairline rules */
  --forest:     #1C3A2B;   /* brand deep green */
  --forest-2:   #26503A;   /* hover green */
  --sand:       #B68B53;   /* accent gold/clay */
  --sand-soft:  #C9A572;
  --white:      #FFFFFF;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Language toggle visibility ---------- */
.en { display: none; }
body.lang-en .pt { display: none; }
body.lang-en .en { display: inline; }
body.lang-en .en.block { display: block; }
.en.block { display: none; }
.pt.block { display: block; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sand);
  display: inline-block;
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--forest); color: #EAE7DF; }
.section--dark .eyebrow { color: var(--sand-soft); }
.section--dark h2 { color: var(--white); }

.grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 2px;
  background: var(--forest); color: var(--white);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--forest-2); transform: translateY(-1px); }
.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand:hover { background: var(--sand-soft); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--ghost, .hero .btn--ghost { color: #EAE7DF; border-color: rgba(255,255,255,.45); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.arrow::after { content: "→"; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--display); font-size: 23px; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: baseline; gap: 2px; }
.brand b { font-weight: 600; }
.brand .dot { color: var(--sand); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 22px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; font-size: 12.5px; font-weight: 600; }
.lang-toggle button { background: transparent; border: 0; padding: 6px 11px; cursor: pointer; color: var(--ink-soft); font-family: var(--sans); letter-spacing: .04em; }
.lang-toggle button.is-on { background: var(--forest); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: .25s; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px;
    transform: translateY(-130%); transition: transform .3s ease; align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--forest); color: #EDEAE1;
  overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(182,139,83,.22), transparent 55%),
    linear-gradient(180deg, #1C3A2B 0%, #16301F 100%);
}
.hero-topo { position:absolute; inset:0; opacity:.10; background-size: cover; background-position: center; }
.hero .wrap { position: relative; padding-block: clamp(90px, 16vw, 180px); }
.hero h1 { font-size: clamp(40px, 7vw, 86px); color: var(--white); max-width: 16ch; }
.hero .lead { color: #C9CcC2; margin-top: 26px; max-width: 52ch; }
.hero-cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { margin-top: 64px; display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 30px; }
.hero-meta .stat b { font-family: var(--display); font-size: 34px; color: var(--white); display: block; line-height: 1; }
.hero-meta .stat span { font-size: 13px; letter-spacing: .04em; color: #A9B1A6; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 64ch; margin-bottom: clamp(34px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin-top: 16px; }
.sec-head .lead { margin-top: 20px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 34px 30px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.card .num { font-family: var(--display); font-size: 15px; color: var(--sand); display:block; margin-bottom: 18px; letter-spacing:.05em; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--dark .card h3 { color: var(--white); }
.section--dark .card p { color: #B9BfB5; }

/* feature list */
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 3px; background: var(--paper-2); display: grid; place-items: center; color: var(--forest); }
.section--dark .feat .ic { background: rgba(255,255,255,.07); color: var(--sand-soft); }
.feat h3 { font-size: 19px; margin-bottom: 6px; }
.feat p { font-size: 15px; color: var(--ink-soft); }
.section--dark .feat p { color: #B9BfB5; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev .split-media { order: 2; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }
.split-media { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; position: relative; background: var(--paper-2); border: 1px solid var(--line); }
.split-media .media-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.ph { position:absolute; inset:0; display:grid; place-items:center; text-align:center; color:#9a9387; font-size:13px; letter-spacing:.05em; }
.ph small { display:block; font-size:11px; margin-top:6px; opacity:.7; }
.ph--green { background: linear-gradient(135deg,#23463350,#1c3a2b20), var(--paper-2); }

/* ---------- Portfolio ---------- */
.cat-block { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 40px; }
.cat-block:first-of-type { margin-top: 0; }
.cat-label { display:flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.cat-label h3 { font-size: 26px; }
.cat-label .pt-cat, .cat-label .en-cat { color: var(--ink); }
.brand-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 16px; }
.brand-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 18px; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; gap: 13px;
  min-height: 116px; text-align: center; color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.brand-chip:hover { border-color: var(--sand); transform: translateY(-2px); }
.brand-logo { max-height: 50px; max-width: 82%; width: auto; object-fit: contain; }
.brand-logo--lg { max-height: 84px; max-width: 90%; }
.brand-name { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.25; }
/* dark tile for light/white logos that vanish on white */
.brand-chip--ondark { background: var(--forest); border-color: var(--forest); }
.brand-chip--ondark:hover { border-color: var(--sand); }
.brand-chip--ondark .brand-name { color: #b9c2b8; }
.brand-chip--featured { background: var(--forest); color: var(--white); border-color: var(--forest); position: relative; }
.brand-chip--featured::before { content: "★"; position: absolute; top: 10px; right: 12px; font-size: 12px; color: var(--sand-soft); }
.brand-chip--featured:hover { color: var(--white); border-color: var(--sand); }

/* Featured brands block */
.featured-block { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: clamp(26px, 4vw, 40px); margin-bottom: clamp(34px, 5vw, 56px); }
.featured-block .eyebrow { margin-bottom: 18px; }

/* ---------- Contact ---------- */
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 32px; }
.info-card h3 { font-size: 19px; margin-bottom: 14px; }
.info-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info-row:first-of-type { border-top: 0; }
.info-row .k { flex: 0 0 120px; color: var(--ink-soft); font-weight: 600; font-size: 13px; letter-spacing:.03em; text-transform: uppercase; }
.info-row .v { color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 13px; font-weight: 600; letter-spacing:.03em; margin-bottom: 7px; color: var(--ink-soft); text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--sand); border-color: var(--sand); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest); color: #EAE7DF; border-radius: 6px; padding: clamp(40px, 6vw, 70px); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 4vw, 44px); max-width: 22ch; margin: 0 auto 18px; }
.cta-band .lead { color: #C2C8BF; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #14271B; color: #AEB6AB; font-size: 14.5px; }
.site-footer .wrap { padding-block: 66px 30px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr; gap: 30px; } }
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; font-family: var(--sans); }
.site-footer a { color: #AEB6AB; }
.site-footer a:hover { color: var(--sand-soft); }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.legal { color: #cfd4cb; line-height: 1.7; }
.legal b { color: var(--white); font-weight: 600; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 44px; padding-top: 22px; display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8a948a; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(60px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 62px); max-width: 18ch; margin-top: 14px; }
.page-hero .lead { margin-top: 18px; }

/* utilities */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.divider { height:1px; background: var(--line); border:0; margin: 0; }
