/* ==========================================================================
   Tatlim Construction — modern design system
   Type: Sora (headings) + Manrope (body). Indigo brand from logo gear,
   amber accent, soft off-white ground, large radii, layered soft shadows.
   ========================================================================== */
:root {
  --ink: #0f1225;
  --ink-2: #1c2140;
  --text: #2a2f45;
  --muted: #646a85;
  --line: #e6e8f0;
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --white: #fff;
  --brand: #3b3a9a;
  --brand-2: #5a58d6;
  --brand-3: #7c7af0;
  --brand-soft: #ecebfb;
  --amber: #f5b01e;
  --amber-soft: #fff4d6;
  --green: #22c55e;
  --grad: linear-gradient(135deg, #3b3a9a 0%, #5a58d6 55%, #7c7af0 100%);
  --grad-dark: linear-gradient(160deg, #141733 0%, #1f2350 60%, #2d2f7a 100%);
  --r-sm: 12px; --r: 20px; --r-lg: 28px; --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(15,18,37,.05), 0 4px 12px rgba(15,18,37,.05);
  --shadow: 0 6px 16px rgba(15,18,37,.06), 0 20px 48px rgba(15,18,37,.08);
  --shadow-lg: 0 24px 64px rgba(15,18,37,.16), 0 8px 20px rgba(15,18,37,.08);
  --shadow-brand: 0 12px 32px rgba(59,58,154,.32);
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
.logo-grid li, .fleet__item, .bento__card, .gallery__item, .feature, .office, .value, .type-card, .split > *, .mv__card, .stat { min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.7; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-2); }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brand-3); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; font-weight: 600; border-radius: 8px; }
.skip-link:focus { left: 8px; top: 8px; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Typography ------------------------------------------------------------ */
.h1, .h2, .h3, .h4, .hero__title, .page-hero__title, .cta__title,
.bento__card h3, .value h3, .fleet__item h3, .feature h3, .office h3, .mv__text {
  font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); margin: 0 0 .5em;
}
.h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.03em; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.h4 { font-size: 19px; margin-top: 1.4em; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); font-weight: 500; line-height: 1.6; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-2); border-radius: 2px; }
.eyebrow--amber { color: var(--amber); }
.eyebrow--amber::before { background: var(--amber); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13.5px; letter-spacing: .01em; margin-bottom: 22px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.pill--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { font-size: 16px; padding: 17px 28px; }
.btn--sm { font-size: 14px; padding: 10px 16px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { color: #fff; box-shadow: 0 16px 40px rgba(59,58,154,.4); }
.btn--soft { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--soft:hover { color: var(--brand); border-color: var(--brand-3); }
.btn--white { background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn--white:hover { color: var(--brand-2); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.2); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; color: var(--brand); }

/* Header ----------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; padding: 14px 0; transition: padding .25s var(--ease); }
.header__bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 10px 8px 18px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: var(--shadow-sm); transition: box-shadow .25s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the bar itself would make it the containing block for the fixed mobile menu. */
.header__bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.header.is-scrolled { padding: 8px 0; }
.header.is-scrolled .header__bar { box-shadow: var(--shadow); }
.brand img { width: 92px; height: auto; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a:not(.btn) { display: block; padding: 10px 16px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:not(.btn):hover { background: var(--bg-2); color: var(--brand); }
.nav a.is-active { background: var(--brand-soft); color: var(--brand); }
.nav__extra { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 0 6px; }
.nav__phone svg { color: var(--brand-2); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; border-radius: 50%; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s, background .25s; }

/* Hero (home) ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: clamp(30px, 5vw, 70px) 0 clamp(50px, 7vw, 100px); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.hero__blob--a { width: 620px; height: 620px; background: #c9c8ff; top: -260px; right: -140px; }
.hero__blob--b { width: 420px; height: 420px; background: var(--amber-soft); bottom: -200px; left: -120px; opacity: .9; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title { font-size: clamp(54px, 7.2vw, 96px); letter-spacing: -.04em; margin-bottom: 22px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 36px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--head); font-size: 30px; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.hero__stats span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero__visual { position: relative; }
.hero__img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; transform: rotate(0deg); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,18,37,.35)); }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite;
}
.float strong { display: block; font-family: var(--head); font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.float small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.float__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.float__icon--amber { background: linear-gradient(135deg, #f5b01e, #ffcd57); color: var(--ink); }
.float--a { left: -34px; top: 40px; }
.float--b { right: -30px; bottom: 90px; animation-delay: -3s; }
.float--c { left: 10%; bottom: -22px; padding: 10px 16px; width: 200px; background: #fff; animation-delay: -1.5s; }
.float--c img { width: 100%; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Page hero (inner pages) ------------------------------------------------- */
.page-hero { padding: 6px 0 0; }
.page-hero__card {
  position: relative; min-height: clamp(300px, 36vw, 440px); border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: flex-end;
  background: var(--ink) var(--hero) center/cover no-repeat; box-shadow: var(--shadow-lg);
}
.page-hero__card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,37,.15) 0%, rgba(15,18,37,.78) 100%); }
.page-hero__content { position: relative; padding: clamp(28px, 5vw, 56px); max-width: 760px; color: #fff; }
.page-hero__title { color: #fff; font-size: clamp(40px, 6vw, 76px); letter-spacing: -.035em; margin-bottom: 10px; }
.page-hero__sub { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.85); margin: 0; }
.crumbs { display: flex; gap: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--amber); }

/* Sections ------------------------------------------------------------------ */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--alt { background: var(--bg-2); }
.section--navy { background: var(--grad-dark); color: rgba(255,255,255,.85); }
.section--navy .h2, .section--navy .h1 { color: #fff; }
.section--navy a { color: var(--amber); }
.section--navy .btn--white { color: var(--brand); }
.section--navy .btn--glass { color: #fff; }
.section--cta { padding-top: 0; }
.section--tall { min-height: 60vh; display: flex; align-items: center; }
.section__head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 52px); }
.section__head .lead { color: var(--muted); font-weight: 500; }
.intro { max-width: 820px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }
.split--flip .split__media { order: 2; }
.frame { position: relative; margin: 0; }
.frame img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); object-fit: cover; }
.frame::before { content: ""; position: absolute; inset: 18% -18px -18px 18%; border-radius: var(--r-lg); background: var(--brand-soft); z-index: -1; }
.frame--amber::before { background: var(--amber-soft); }
.frame--tilt::before { inset: -18px 18% 18% -18px; }
.frame figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* Bento services ---------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 18px; }
.bento__card { position: relative; grid-column: span 6; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento__card--machinery-rental { grid-column: span 7; }
.bento__card--fabrication { grid-column: span 5; }
.bento__card--construction { grid-column: span 5; }
.bento__card--renovation { grid-column: span 7; }
.bento__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.bento__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento__card:hover img { transform: scale(1.06); }
.bento__body { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, rgba(15,18,37,0) 30%, rgba(15,18,37,.86) 100%); }
.bento__num { position: absolute; top: 20px; left: 22px; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); }
.bento__card h3 { color: #fff; font-size: 28px; margin-bottom: 6px; }
.bento__card p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.78); max-width: 420px; }
.bento__arrow { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: background .2s, color .2s, transform .35s var(--ease); }
.bento__card:hover .bento__arrow { background: var(--amber); transform: rotate(45deg); }

/* Values ----------------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 34px 30px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 22px; }
.value h3 { font-size: 24px; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* CTA ------------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: clamp(36px, 5vw, 64px); border-radius: var(--r-xl); background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.cta__glow { position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); pointer-events: none; }
.cta__body { position: relative; }
.cta__title { color: #fff; font-size: clamp(30px, 3.6vw, 46px); }
.cta__text { margin: 0; color: rgba(255,255,255,.85); max-width: 480px; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }
.cta__link { flex-basis: 100%; text-align: right; color: #fff; font-weight: 700; font-size: 14.5px; opacity: .9; }
.cta__link:hover { color: var(--amber); }

/* Mission / Vision ------------------------------------------------------------ */
.mv { position: relative; padding: clamp(56px, 7vw, 100px) 0; background: var(--ink) var(--bg) center/cover no-repeat; color: #fff; }
.mv::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,18,37,.92), rgba(45,47,122,.82)); }
.mv__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv__card { padding: clamp(28px, 4vw, 44px); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); backdrop-filter: blur(10px); }
.mv__text { color: #fff; font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -.015em; margin: 0; }
.mv__text--small { font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.65; margin-top: 18px; color: rgba(255,255,255,.8); }

/* Client logos ----------------------------------------------------------------- */
.logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); aspect-ratio: 3/2; display: grid; place-items: center; padding: 20px; transition: box-shadow .25s, transform .25s var(--ease); }
.logo-grid li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-grid img { width: 100%; height: 100%; object-fit: contain; }

/* Services subnav + collage ----------------------------------------------------- */
.subnav { padding: 22px 0 0; }
.subnav__inner { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.subnav a { white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.subnav a span { color: var(--brand-2); margin-right: 4px; }
.subnav a:hover { border-color: var(--brand-3); color: var(--brand); box-shadow: var(--shadow-sm); }
.collage { position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, #fff, var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.collage img { position: absolute; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(15,18,37,.22)); }
.collage__a { width: 78%; left: 4%; top: 6%; }
.collage__b { width: 44%; right: 2%; bottom: 8%; }
.collage__c { width: 40%; left: 4%; bottom: 8%; }

/* Fleet ---------------------------------------------------------------------------- */
.fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fleet__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fleet__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.fleet__item--wide { grid-column: span 2; }
.fleet__media { aspect-ratio: 4/3; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 85%, var(--bg-2) 0%, #fff 70%); border-radius: var(--r-sm); overflow: hidden; }
.fleet__media img { width: 92%; height: 88%; object-fit: contain; }
.fleet__media--multi { grid-template-columns: repeat(4, 1fr); aspect-ratio: 8/3; gap: 6px; padding: 10px; }
.fleet__media--multi img { width: 100%; height: 100%; }
.fleet__item h3 { font-size: 17px; margin: 14px 0 2px; letter-spacing: -.01em; }

/* Features / checklist -------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--head); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.feature h3 { font-size: 22px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.checklist li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3a9a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.cert { margin: 0; max-width: 400px; }
.cert img { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.stat-row { display: flex; gap: 40px; margin-top: 26px; }
.stat strong { display: block; font-family: var(--head); font-size: 36px; letter-spacing: -.03em; color: var(--amber); line-height: 1; }
.stat span { display: block; font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 6px; font-weight: 600; }

/* Galleries ----------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-2); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after { content: "+"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; background: #fff; color: var(--ink); font-weight: 700; font-size: 20px; border-radius: 50%; opacity: 0; transition: opacity .2s; }
.gallery__item:hover::after { opacity: 1; }
.gallery--portfolio { grid-template-columns: repeat(5, 1fr); }
.gallery--portfolio .gallery__item { aspect-ratio: 3/4; }
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.type-card { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r); }
.type-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.type-card:hover img { transform: scale(1.06); }
.type-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 14px 14px; background: linear-gradient(transparent, rgba(15,18,37,.88)); color: #fff; font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.2; }

/* Contact ---------------------------------------------------------------------------------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.office__head { padding: 30px 30px 0; }
.office h3 { font-size: 22px; }
.office__addr { padding: 0 30px; color: var(--muted); }
.office__list { margin: 10px 0 0; padding: 0 30px 28px; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: baseline; }
.office__list dt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.office__list dd { margin: 0; font-weight: 600; }
.wa-inline { display: inline-block; margin-left: 10px; font-size: 12.5px; font-weight: 700; background: #e9fbef; color: #15803d; padding: 3px 10px; border-radius: 999px; }
.wa-inline:hover { background: #22c55e; color: #fff; }
.office__map { margin-top: auto; aspect-ratio: 16/9; background: var(--bg-2); }
.office__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.office__maplink { display: block; padding: 12px 30px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--line); }
.contact-cta { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: center; }
.contact-cta img { width: 100%; }
.contact-cta .h1 { margin-top: -6px; }

/* Footer ------------------------------------------------------------------------------------ */
.footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: 15px; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; gap: 40px; padding: clamp(50px, 6vw, 80px) 0 44px; }
.footer__brand img { width: 150px; }
.footer__tagline { font-family: var(--head); font-weight: 600; color: #fff; margin: 18px 0 4px; font-size: 15px; }
.footer__small { font-size: 14px; margin: 0; }
.footer__h { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 10px; }
.footer__h--gap { margin-top: 24px; }
.footer__name { color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--amber); }
.footer__links { list-style: none; padding: 0; margin: 0; columns: 2; gap: 20px; }
.footer__links li { padding: 3px 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 0; font-size: 13px; }
.footer__bottom p { margin: 0; }

/* WhatsApp float, lightbox, reveal ----------------------------------------------------------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 28px rgba(37,211,102,.4); font-family: var(--head); font-weight: 600; font-size: 14px; transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.05); color: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,11,25,.94); display: flex; align-items: center; justify-content: center; padding: 60px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  .nav.is-open { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ---------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .fleet { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--portfolio { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-auto-rows: 260px; }
  .nav__phone { display: none; }
}
@media (max-width: 900px) {
  .header { padding: 10px 0; }
  .header__bar { padding: 6px 6px 6px 14px; }
  .brand img { width: 80px; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  /* Closed menu must be display:none — an off-screen transform/visibility:hidden box still widens the mobile layout viewport. */
  .nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(360px, 100%); background: var(--ink); flex-direction: column; align-items: stretch; padding: 100px 28px 40px; gap: 10px; overflow-y: auto; z-index: 99; box-shadow: var(--shadow-lg); }
  .nav.is-open { display: flex; animation: navIn .3s var(--ease); }
  @keyframes navIn { from { transform: translateX(100%); opacity: .6; } to { transform: none; opacity: 1; } }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a:not(.btn) { color: #fff; font-size: 20px; padding: 14px 16px; }
  .nav a:not(.btn):hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav a.is-active { background: rgba(255,255,255,.12); color: var(--amber); }
  .nav__extra { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 16px; }
  .nav__phone { display: inline-flex; color: #fff; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span { background: #fff; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 20px; padding: 0 20px 30px; }
  .hero__img { aspect-ratio: 4/3; }
  .float--a { left: 0; top: 20px; }
  .float--b { right: 0; bottom: 60px; }
  .float--c { display: none; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .frame::before { inset: 18% -12px -12px 18%; }
  .values { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .bento__card, .bento__card--machinery-rental, .bento__card--fabrication, .bento__card--construction, .bento__card--renovation { grid-column: span 1; }
  .cta { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .cta__link { text-align: left; }
  .mv__grid { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .contact-cta { grid-template-columns: 1fr; gap: 30px; }
  .contact-cta img { width: 180px; }
  .feature-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 10px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 16px; }
  .hero__title { font-size: clamp(44px, 13vw, 60px); }
  .hero__stats { gap: 8px 24px; }
  .hero__stats strong { font-size: 24px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento__card h3 { font-size: 24px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logo-grid li { padding: 12px; }
  .fleet { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fleet__item--wide { grid-column: span 2; }
  .fleet__media--multi { grid-template-columns: repeat(2, 1fr); aspect-ratio: 4/3; }
  .gallery, .gallery--portfolio { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .type-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .type-card span { font-size: 12.5px; padding: 24px 8px 8px; }
  .office__list { grid-template-columns: 1fr; gap: 2px 0; }
  .office__list dd { margin-bottom: 10px; }
  .footer { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; }
  .stat-row { gap: 24px; }
  .page-hero__card { min-height: 280px; }
}
