/* Gulf Crown Furniture — site styles
   Palette taken from the logo: espresso brown script + brass/tan sans. */
:root {
  --bg: #faf7f2;
  --surface: #f2ece3;
  --ink: #2b1d10;
  --muted: #6d5c4a;
  --brown: #432d17;
  --brown-deep: #2a1b0d;
  --tan: #bb9d70;
  --tan-soft: #d9c6a5;
  --line: #e4d9c9;
  --on-dark: #f6efe3;
  --wa: #1f7a4d;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --max: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tan); font-weight: 600; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 2px; font: 600 15px/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-tan { background: var(--tan); color: var(--brown-deep); }
.btn-tan:hover { background: var(--tan-soft); }
.btn-brown { background: var(--brown); color: var(--on-dark); }
.btn-brown:hover { background: var(--brown-deep); }
.btn-ghost { border-color: rgba(246, 239, 227, .5); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-line { border-color: var(--brown); color: var(--brown); }
.btn-line:hover { background: var(--brown); color: var(--on-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; }
.brand img { height: 56px; width: auto; }
.menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; color: var(--muted); padding-block: 6px; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--tan); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--arabic); font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 5px 10px; }
.lang:hover { color: var(--ink); border-color: var(--tan); }
.nav .btn { padding: 10px 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); padding: 8px 11px; color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }
@media (max-width: 940px) {
  .menu, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .brand img { height: 46px; }
  .nav.open .menu { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .nav.open .menu a { display: block; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 0; }
}

/* Hero */
.hero { position: relative; color: var(--on-dark); background: var(--brown-deep); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 27, 13, .92) 0%, rgba(42, 27, 13, .7) 45%, rgba(42, 27, 13, .15) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: 110px 120px; display: grid; gap: 24px; max-width: var(--max); }
.hero h1 { color: var(--on-dark); font-size: clamp(38px, 6vw, 72px); letter-spacing: -.01em; max-width: 14ch; }
.hero h1 span { display: block; color: var(--tan-soft); font-style: italic; }
.hero p { font-size: 18px; max-width: 54ch; color: rgba(246, 239, 227, .86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
@media (max-width: 700px) { .hero-inner { padding-block: 72px 80px; } .hero::after { background: rgba(42, 27, 13, .78); } }

/* Page header (inner pages) */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 64px 56px; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 54px); }

/* Facts strip */
.facts { background: var(--brown); color: var(--on-dark); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 34px; gap: 20px; }
.fact { display: grid; gap: 4px; min-width: 0; }
.fact b { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); color: var(--tan-soft); font-variant-numeric: tabular-nums; line-height: 1.1; }
.fact span { font-size: 14px; color: rgba(246, 239, 227, .78); }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* Lattice divider (mashrabiya motif) */
.lattice { height: 20px; background-image:
  linear-gradient(45deg, transparent 45%, var(--tan) 45%, var(--tan) 55%, transparent 55%),
  linear-gradient(-45deg, transparent 45%, var(--tan) 45%, var(--tan) 55%, transparent 55%);
  background-size: 20px 20px; opacity: .45; }

/* Sections */
.section { padding-block: 88px; }
.section.alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head > div { display: grid; gap: 10px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--muted); max-width: 48ch; }
@media (max-width: 700px) { .section { padding-block: 64px; } }

/* Why us — three columns with rules */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.why > div { padding: 30px 30px 6px 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.why > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.why h3 { font-size: 24px; }
.why p { color: var(--muted); }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } .why > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Scope of supply */
.scope { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scope li { background: var(--bg); list-style: none; padding: 24px 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.scope b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.scope span { font-size: 14px; color: var(--muted); }
.scope { margin: 0; padding: 0; }
.section.alt .scope li { background: var(--surface); }
@media (max-width: 900px) { .scope { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .scope { grid-template-columns: 1fr; } }

/* Project type tiles (home) */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type { border: 1px solid var(--line); background: var(--bg); padding: 26px 22px; display: grid; gap: 10px; text-decoration: none; align-content: start; min-width: 0; transition: border-color .2s; }
.type:hover { border-color: var(--tan); }
.type b { font-family: var(--display); font-size: 44px; font-weight: 500; color: var(--brown); line-height: 1; font-variant-numeric: tabular-nums; }
.type h3 { font-size: 20px; }
.type p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .types { grid-template-columns: 1fr; } }

/* Projects page */
.proj-group + .proj-group { margin-top: 64px; }
.proj-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--brown); margin-bottom: 4px; }
.proj-group-head h2 { font-size: clamp(26px, 3vw, 34px); }
.proj-group-head span { font-size: 14px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.proj-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.proj-table th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px 10px 0; }
.proj-table td { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.proj-table td:first-child { font-weight: 600; width: 34%; }
.proj-table td:nth-child(2) { width: 20%; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--bg); }
.tag.turnkey { background: var(--brown); color: var(--on-dark); border-color: var(--brown); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 22px 20px 0 0; border-top: 2px solid var(--tan); display: grid; gap: 8px; align-content: start; counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 15px; color: var(--tan); }
.steps h3 { font-size: 19px; }
.steps p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { font: 500 14px var(--body); padding: 8px 16px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; border-radius: 999px; }
.filter:hover { color: var(--ink); border-color: var(--tan); }
.filter[aria-pressed="true"] { background: var(--brown); color: var(--on-dark); border-color: var(--brown); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.card button.ph { padding: 0; border: 0; background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; width: 100%; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card button.ph:hover img { transform: scale(1.03); }
.card-body { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card h3 { font-size: 19px; }
.card .cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); font-weight: 600; }
.card a.quote { font-size: 13px; font-weight: 600; color: var(--brown); white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--tan); padding-bottom: 1px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }
.teaser { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.teaser img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.teaser a:first-child img { aspect-ratio: auto; }
@media (max-width: 700px) { .teaser { grid-template-columns: 1fr 1fr; } .teaser a:first-child { grid-column: 1 / -1; } .teaser a:first-child img { aspect-ratio: 16 / 10; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 13, 6, .92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox figcaption { color: var(--on-dark); font-size: 15px; text-align: center; }
.lightbox figcaption a { color: var(--tan-soft); margin-left: 10px; }
.lightbox .close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); background: none; border: 1px solid rgba(246,239,227,.4); color: var(--on-dark); font-size: 22px; width: 44px; height: 44px; cursor: pointer; }

/* About */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.prose { display: grid; gap: 18px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.prose h2 { color: var(--ink); font-size: clamp(28px, 3.2vw, 40px); }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* CTA band */
.cta { background: var(--brown-deep); color: var(--on-dark); }
.cta .wrap { padding-block: 72px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: var(--on-dark); font-size: clamp(28px, 3.4vw, 40px); max-width: 22ch; }
.cta p { color: rgba(246,239,227,.75); margin-top: 10px; max-width: 50ch; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.details { display: grid; gap: 0; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); font-weight: 600; padding-top: 3px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details a { text-decoration: none; border-bottom: 1px solid var(--tan); }
dl.details { margin: 0; }
form.enquiry { display: grid; gap: 18px; background: var(--surface); padding: 32px; border: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 15px var(--body); padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 2px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 15px; padding: 12px 14px; border-left: 3px solid var(--tan); background: var(--bg); }
.form-status.ok { border-color: var(--wa); }
.form-status.err { border-color: #a33a2a; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } form.enquiry { padding: 22px; } .details div { grid-template-columns: 1fr; gap: 2px; } }

/* Legal */
.legal { max-width: 72ch; display: grid; gap: 16px; color: var(--muted); }
.legal h2 { font-size: 24px; color: var(--ink); margin-top: 18px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Footer */
.site-footer { background: var(--brown-deep); color: rgba(246,239,227,.78); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.foot-grid > * { min-width: 0; }
.foot-grid img { height: 64px; width: auto; }
.foot-grid h4 { margin: 0 0 12px; font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--tan-soft); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--on-dark); }
.foot-grid address { font-style: normal; display: grid; gap: 6px; }
.foot-base { border-top: 1px solid rgba(246,239,227,.14); padding-block: 18px 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* WhatsApp float */
.wa { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: var(--wa); color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.wa svg { width: 20px; height: 20px; }
@media (max-width: 480px) { .wa span { display: none; } .wa { padding: 14px; } }

/* Arabic coming soon */
.soon { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--brown-deep); color: var(--on-dark); padding: 40px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.soon .box { display: grid; gap: 22px; justify-items: center; max-width: 560px; }
.soon img { height: 110px; width: auto; }
.soon h1 { font-family: var(--arabic); color: var(--on-dark); font-size: clamp(30px, 6vw, 46px); font-weight: 600; }
.soon p { font-family: var(--arabic); color: rgba(246,239,227,.8); font-size: 18px; line-height: 1.9; }
.soon .en { font-family: var(--body); font-size: 14px; color: var(--tan-soft); direction: ltr; }
.lightbox[hidden] { display: none; }
.type b small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
