/* Elite Contract Furniture — styling matched to the approved design */
:root{
  --maroon:#7A1F2B; --maroon-dk:#641824; --cream:#EFE9DC;
  --ink:#2B2B2B; --grey:#6B6B6B; --bg:#FBFAF7; --line:#E3DED3;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Source Sans 3',system-ui,sans-serif;color:var(--ink);
  background:var(--bg);line-height:1.6}
h1,h2,h3,h4,.serif{font-family:'Playfair Display',Georgia,serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* Header */
.site-head{background:var(--maroon);color:var(--cream);display:flex;
  align-items:center;justify-content:space-between;
  padding:14px 22px;position:sticky;top:0;z-index:50}
.logo{display:flex;align-items:center;color:var(--cream)}
.logo-img{height:96px;width:auto;display:block}
.logo-img.foot{height:58px;margin-bottom:6px}
.head-actions{display:flex;align-items:center;gap:28px}
.head-actions a{color:var(--cream);display:inline-flex;align-items:center}
.head-actions a svg{display:block;width:34px;height:34px}
.head-actions .lang{border:2px solid var(--cream);border-radius:5px;
  padding:9px 19px;font-size:21px;letter-spacing:1px}
.burger{display:none;background:none;border:0;color:var(--cream);
  font-size:38px;cursor:pointer;line-height:1}
.mobile-menu{display:none}
body.menu-open .mobile-menu{display:flex;flex-direction:column;gap:4px;
  position:absolute;top:100%;right:0;background:var(--maroon-dk);
  padding:16px 22px;border-radius:0 0 0 8px;z-index:60;min-width:180px}
body.menu-open .mobile-menu a{color:var(--cream);padding:10px 0}

/* Hero */
.hero{position:relative;min-height:520px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;color:#fff;
  padding:60px 24px;overflow:hidden}
.hero-carousel{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-track{display:flex;width:100%;height:100%;
  transition:transform .8s ease-in-out}
.hero-slide{flex:0 0 100%;height:100%;
  background-position:center;background-size:cover;background-repeat:no-repeat}
.hero-carousel::after{content:"";position:absolute;inset:0;
  background:linear-gradient(rgba(40,20,24,.45),rgba(40,20,24,.55));z-index:1}
.hero-content{position:relative;z-index:2;display:flex;flex-direction:column;
  align-items:center;justify-content:center}
.hero h1{font-size:42px;font-weight:700;max-width:640px;line-height:1.2;
  text-shadow:0 2px 12px rgba(0,0,0,.4)}
.hero p{margin:22px 0 28px;letter-spacing:2px;font-size:14px;
  text-transform:uppercase}
.btn-hero{border:1px solid #fff;color:#fff;padding:14px 34px;letter-spacing:3px;
  font-size:13px;text-transform:uppercase;transition:.2s}
.btn-hero:hover{background:#fff;color:var(--maroon)}

/* Sections */
.section{max-width:780px;margin:0 auto;padding:70px 24px;text-align:center}
.section h2{font-size:30px;font-weight:700;line-height:1.25}
.rule{width:64px;height:3px;background:var(--maroon);margin:22px auto}
.section p{color:var(--grey);font-size:17px}

/* Catalogue */
.cat-wrap{max-width:900px;margin:0 auto;padding:54px 22px}
.cat-wrap>h2{text-align:center;font-size:34px}
.cat-wrap>.lead{text-align:center;color:var(--grey);margin:14px 0 38px}
.acc{border-bottom:1px solid var(--line)}
.acc-head{width:100%;background:none;border:0;cursor:pointer;
  font-family:'Playfair Display',serif;font-size:24px;color:var(--ink);
  padding:26px 4px;display:flex;justify-content:space-between;align-items:center}
.acc-head .chev{transition:.2s;color:var(--grey)}
.acc.open .chev{transform:rotate(180deg)}
.acc-body{display:none;padding:0 4px 28px}
.acc.open .acc-body{display:block}
/* Subcategory chips (modern card-pill style) */
.sub-chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.sub-chips .chip{padding:9px 16px;font-size:13px;color:var(--ink);
  background:#fff;border:1px solid var(--line);border-radius:999px;
  transition:.15s;font-weight:500;text-decoration:none;letter-spacing:.2px;
  white-space:nowrap}
.sub-chips .chip:hover{border-color:var(--maroon);color:var(--maroon)}
.sub-chips .chip.active{background:var(--maroon);color:#fff;border-color:var(--maroon)}
.sub-chips.sub-chips-2{margin-top:0;padding:2px 0 0;gap:6px}
.sub-chips.sub-chips-2 .chip{padding:6px 13px;font-size:12px;
  background:var(--cream);border-color:transparent}
.sub-chips.sub-chips-2 .chip:hover{background:#fff;border-color:var(--maroon)}
.sub-chips.sub-chips-2 .chip.active{background:var(--maroon-dk);color:#fff;border-color:var(--maroon-dk)}
.filter-info{font-size:13px;color:var(--grey);margin:0 0 26px;padding-left:2px}
.filter-info b{color:var(--ink);font-weight:600}
.brand-link{display:inline-block;background:var(--maroon);color:#fff;
  text-decoration:none;padding:10px 18px;border-radius:6px;font-size:13px;
  font-weight:600;letter-spacing:.5px;margin-bottom:22px;transition:.15s}
.brand-link:hover{background:var(--maroon-dk)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:22px}
.card{background:#fff;border:1px solid var(--line);border-radius:8px;
  overflow:hidden;transition:.15s}
.card:hover{box-shadow:0 6px 20px rgba(0,0,0,.08);transform:translateY(-2px)}
.card .ph{aspect-ratio:4/3;background:var(--cream);display:flex;
  align-items:center;justify-content:center;overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:contain}
.card .body{padding:14px 16px}
.card .model{color:var(--maroon);font-size:12px;letter-spacing:1px;font-weight:600}
.card .nm{font-family:'Playfair Display',serif;font-size:18px;margin-top:3px}
.empty{background:#fff;border:1px solid var(--line);border-radius:10px;
  padding:48px 24px;text-align:center;color:var(--grey)}
.empty .ico{width:62px;height:62px;border-radius:50%;background:var(--cream);
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;
  font-size:26px}
.empty b{font-family:'Playfair Display',serif;color:var(--ink);font-size:19px;
  display:block;margin-bottom:8px}

/* Product detail */
.prod{max-width:1000px;margin:0 auto;padding:46px 24px;
  display:grid;grid-template-columns:1fr 1fr;gap:46px}
.prod .ph{background:#fff;border:1px solid var(--line);border-radius:10px;
  padding:20px;display:flex;align-items:center;justify-content:center;
  overflow:hidden;min-width:0}
.prod .ph img{max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;display:block}
.prod h1{font-family:'Playfair Display',Georgia,serif;font-size:34px;font-weight:700;
  color:var(--maroon);line-height:1.2;margin:4px 0 18px;text-transform:uppercase;
  letter-spacing:.5px}
.prod .model{color:var(--maroon);letter-spacing:2px;font-weight:600;
  margin-bottom:10px}
.prod .prod-name{display:none}
.data-block{border:1px solid var(--line);border-radius:8px;background:#fff;
  margin:14px 0 22px;overflow:hidden}
.data-row{display:flex;border-bottom:1px solid var(--line)}
.data-row:last-child{border-bottom:0}
.data-row.top{align-items:flex-start}
.data-row .k{width:130px;background:var(--cream);color:var(--ink);
  font-weight:600;padding:11px 14px;font-size:13px;letter-spacing:.5px}
.data-row .v{padding:11px 14px;font-size:15px;line-height:1.7}
.sec-h{font-size:20px;margin:4px 0 8px}
.prod .desc{color:var(--grey);margin:14px 0 26px}
.spec-tbl{width:100%;border-collapse:collapse;margin:8px 0 22px;font-size:15px}
.spec-tbl th{background:var(--maroon);color:#fff;text-align:left;padding:9px 12px}
.spec-tbl td{padding:9px 12px;border-bottom:1px solid var(--line)}
.spec-tbl tr:nth-child(even) td{background:var(--cream)}
/* Dimensions table — mirrors the PDF spec-sheet layout */
.dim-tbl{border:1px solid var(--line);font-size:14px}
.dim-tbl th{background:var(--maroon);color:#fff;padding:8px 12px;
  font-weight:600;letter-spacing:.3px}
.dim-tbl th:first-child{text-align:left}
.dim-tbl th:not(:first-child){text-align:center;width:15%}
.dim-tbl td{padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.dim-tbl th + th, .dim-tbl td + td{border-left:1px solid var(--line)}
.dim-tbl th + th{border-left:1px solid rgba(255,255,255,.25)}
.dim-tbl tr:last-child td{border-bottom:0}
.dim-tbl .dim-num{text-align:center;font-variant-numeric:tabular-nums;color:var(--ink)}
.dim-tbl .dim-piece{line-height:1.25}
.dim-tbl .dim-piece .pe{display:block;color:var(--maroon);font-weight:600}
.dim-tbl .dim-piece .pf{display:block;color:var(--grey);font-weight:600;font-size:12.5px}
/* Dimension diagram (H/W/D chair icons) */
.dim-diagram{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0 22px}
.dd-cell{flex:1 1 120px;min-width:110px;margin:0;text-align:center;
  border:1px solid var(--line);border-radius:8px;padding:12px 8px 14px;background:var(--bg)}
.dd-lab{line-height:1.2}
.dd-lab .dd-en{display:block;font-size:13px;font-weight:600;color:var(--maroon);letter-spacing:.2px}
.dd-lab .dd-fr{display:block;font-size:11.5px;font-weight:600;color:var(--grey)}
.dd-val{font-size:15px;color:var(--maroon);font-weight:600;margin:2px 0 8px}
.dd-art{display:flex;align-items:center;justify-content:center;height:96px}
.spec-list{list-style:none;font-size:15px;margin:8px 0 26px}
.spec-list li{display:flex;justify-content:space-between;padding:9px 4px;
  border-bottom:1px solid var(--line)}
.spec-list b{color:var(--maroon)}
.btn-pdf{display:inline-block;background:var(--maroon);color:#fff;
  padding:14px 30px;border-radius:6px;letter-spacing:1px;font-weight:600;
  transition:.15s}
.btn-pdf:hover{background:var(--maroon-dk)}
.back{display:inline-block;margin:0 0 22px;color:var(--grey);font-size:14px}

/* Footer */
.site-foot{background:var(--maroon);color:var(--cream);margin-top:60px}
.foot-inner{max-width:1000px;margin:0 auto;padding:54px 24px}
.foot-inner .tag{max-width:520px;margin:18px 0 36px;opacity:.92}
.foot-cols{display:flex;flex-wrap:wrap;gap:60px}
.foot-cols h4{font-family:'Playfair Display',serif;font-size:18px;
  margin-bottom:14px}
.foot-cols a,.foot-cols span{display:block;color:var(--cream);opacity:.88;
  padding:5px 0;font-size:14px}
.foot-base{border-top:1px solid rgba(255,255,255,.18);margin-top:40px;
  padding-top:22px;text-align:center;font-size:13px;opacity:.85}

/* ====== RESPONSIVE: phones, tablets, desktop, both orientations ====== */

/* Tablets / small laptops (portrait iPad ≈ 768px, landscape ≈ 1024px) */
@media(max-width:1024px){
  .prod{max-width:760px;padding:40px 22px;gap:34px}
  .cat-wrap{max-width:760px}
  .hero h1{font-size:38px}
  .section{padding:56px 22px}
  /* Header scales down on tablets */
  .logo-img{height:78px}
  .head-actions{gap:26px;font-size:32px}
  .head-actions .lang{font-size:18px;padding:7px 15px}
  .burger{font-size:32px}
}

/* Narrow tablets / large phones */
@media(max-width:820px){
  .prod{grid-template-columns:1fr;gap:24px}
  .prod .ph{max-height:60vh}
  .foot-cols{gap:36px}
  .hero h1{font-size:34px}
}

/* Phones (portrait) */
@media(max-width:600px){
  .site-head{padding:12px 16px}
  .logo-img{height:52px}
  .head-actions{gap:14px}
  .head-actions a svg{width:22px;height:22px}
  .head-actions .lang{font-size:14px;padding:5px 11px;border-width:1px}
  /* Phone header: collapse to FR + hamburger; email/phone move into menu */
  .burger{display:flex;font-size:22px}
  .head-actions a[aria-label]{display:none}
  .hero{min-height:60vh;padding:48px 18px}
  .hero h1{font-size:28px}
  .hero p{font-size:13px}
  .section{padding:44px 18px}
  .section h2{font-size:24px}
  .cat-wrap{padding:36px 16px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
  .prod{padding:30px 16px}
  .prod h1{font-size:28px}
  /* let wide tables scroll instead of overflowing the screen */
  .spec-tbl{display:block;overflow-x:auto;white-space:nowrap}
  .foot-cols{flex-direction:column;gap:28px}
  .foot-inner{padding:40px 18px}
}

/* Landscape phones: very short viewport — shrink vertical chrome */
@media(max-height:500px) and (orientation:landscape){
  .hero{min-height:100vh;padding:30px 24px}
  .hero h1{font-size:26px}
  .site-head{padding:10px 18px;position:static}
  .section{padding:36px 24px}
  /* Force single-column product layout — short viewport can't fit
     image + info side by side without one column visually overlapping
     the other when the image scales tall. !important needed because the
     wider min-width queries may otherwise win the cascade on Pro Max etc. */
  .prod{grid-template-columns:1fr !important;gap:20px;padding:24px 16px}
  .prod>.ph{order:1;max-height:55vh}
  .prod>.ph img{max-height:50vh;width:auto;margin:0 auto}
  .prod>div:not(.ph){order:2}
  .prod h1{font-size:22px;margin:8px 0 12px}
}

/* Comfortable touch targets on touch devices */
@media(hover:none) and (pointer:coarse){
  .head-actions a,.head-actions .lang,.burger,
  .mobile-menu a,.card,.btn-hero,.btn-pdf,.acc-head,.subtabs a{
    min-height:44px;display:flex;align-items:center
  }
  .card{display:block}
}
