/* =====================================================================
   ATTB Ltd — Industrial Machinery & Space
   styles.css  ·  Industrial dark theme (graphite + safety amber)
   ===================================================================== */

:root {
  --bg:       #101312;   /* graphite near-black */
  --panel:    #181c1b;   /* cards */
  --panel-2:  #1f2422;   /* raised / media tiles */
  --panel-3:  #272d2a;
  --line:     rgba(255, 255, 255, 0.10);
  --line-2:   rgba(255, 255, 255, 0.05);
  --text:     #eef1ef;
  --muted:    #9aa29d;
  --amber:    #ffb020;   /* safety amber accent */
  --amber-d:  #e59916;
  --amber-t:  rgba(255, 176, 32, 0.14);
  --ink:      #1a1403;   /* text on amber */
  --radius:   12px;
  --radius-sm:8px;
  --maxw:     1200px;
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --head:     "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --body:     "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(60px, 8vw, 104px) 0; position: relative; }
.kicker { font-family: var(--head); font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; display: inline-block; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.h-xl { font-size: clamp(36px, 5.6vw, 68px); font-weight: 700; }
.h-lg { font-size: clamp(28px, 4vw, 46px); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }
.sec-head { max-width: 62ch; }
.sec-head .lead { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 15px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 6px; transition: background .25s var(--ease), color .25s, border-color .25s, transform .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-d); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-wa { background: #1faa52; color: #fff; }
.btn-wa:hover { background: #178a44; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(16,19,18,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--head); font-size: 21px; font-weight: 700; letter-spacing: 0.02em; color: var(--text); }
.brand .mark { width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 10px 18px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.03); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(760px 420px at 85% -10%, rgba(255,176,32,.12), transparent 62%), radial-gradient(640px 500px at 0% 8%, rgba(255,255,255,.03), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-visual { aspect-ratio: 4/3.4; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(145deg, var(--panel-2), var(--panel)); position: relative; overflow: hidden; display: grid; place-items: center; }
.hero-visual::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(135deg, var(--amber) 0 18px, #141210 18px 36px); opacity: .9; }
.hero-visual .hv-ic { width: 46%; color: var(--amber); opacity: .85; }
.hero-visual .hv-cap { position: absolute; bottom: 16px; left: 18px; font-family: var(--head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Stats bar ---------- */
.stats { border-block: 1px solid var(--line); background: var(--panel); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .n { font-family: var(--head); font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--amber); line-height: 1; }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.svc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-5px); border-color: rgba(255,176,32,.4); }
.svc .n { font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--amber); letter-spacing: .1em; }
.svc h3 { font-size: 22px; margin: 14px 0 10px; }
.svc p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-sm { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }

/* ---------- Global reach ---------- */
.reach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.region { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.region .r-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.region .flag { width: 42px; height: 42px; border-radius: 9px; background: var(--amber-t); color: var(--amber); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 15px; }
.region h3 { font-size: 20px; }
.region .r-sub { color: var(--muted); font-size: 13px; }
.region p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.region .r-figs { display: flex; gap: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.region .r-figs .f .fn { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--text); }
.region .r-figs .f .fl { font-size: 12.5px; color: var(--muted); }

/* ---------- Listings (products with logo tiles) ---------- */
.listings { background: var(--panel); border-block: 1px solid var(--line); }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(255,176,32,.4); }
.media { position: relative; aspect-ratio: 16/10; background: radial-gradient(130% 130% at 30% 15%, var(--panel-3), var(--panel) 70%); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.media::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 16px 16px; }
.media .prod-ic { width: 44%; color: var(--amber); opacity: .9; position: relative; }
.media .logo-wm { position: absolute; right: 12px; bottom: 11px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.media .logo-wm b { width: 18px; height: 18px; border-radius: 5px; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 10px; }
.media .tag { position: absolute; top: 12px; left: 12px; font-family: var(--head); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.tag.sale { background: var(--amber); color: var(--ink); }
.tag.rent { background: #2d7cf0; color: #fff; }
.tag.let  { background: #1faa52; color: #fff; }
.card-body { padding: 20px 20px 22px; }
.card-body .cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.card-body h3 { font-size: 19px; margin: 8px 0 6px; }
.card-body .loc { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.card-body .loc svg { width: 14px; height: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 12px; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }
.list-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: 15px; }
.list-note a { color: var(--amber); font-weight: 600; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.why { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.why .n { font-family: var(--head); font-size: 15px; font-weight: 700; color: var(--amber); margin-bottom: 14px; }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 14.5px; }
.why-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.reg-contacts { display: grid; gap: 14px; margin: 28px 0 10px; }
.rc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.rc .rc-r { font-family: var(--head); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.rc a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.rc a:hover { color: var(--amber); }
.wa-line { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 13px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); font-family: var(--head); font-weight: 600; font-size: 15px; transition: border-color .25s; }
.wa-line:hover { border-color: #1faa52; }
.wa-line svg { width: 20px; height: 20px; color: #1faa52; }

.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; font-family: var(--head); }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 15.5px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-t); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239aa29d' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 20px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); flex: none; }
.consent label { font-size: 13.5px; color: var(--muted); }
.consent a { color: var(--amber); text-decoration: underline; }
.form .btn { width: 100%; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-feedback { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 14.5px; }
.form-feedback.show { display: block; }
.form-feedback.ok { background: rgba(31,170,82,.12); border: 1px solid rgba(31,170,82,.4); color: #7ee6a3; }
.err-msg { color: #ff9d9d; font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e06767; }
.field.invalid .err-msg { display: block; }

/* ---------- Footer ---------- */
.footer { background: #0b0e0d; border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer .brand { margin-bottom: 16px; }
.footer-about { color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.footer h4 { font-family: var(--head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 15px; font-weight: 700; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 14.5px; display: block; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted); font-size: 13.5px; }
.footer-bottom .legal a { color: var(--muted); font-size: 13.5px; margin-left: 20px; transition: color .2s; }
.footer-bottom .legal a:hover { color: var(--amber); }

/* ---------- Floating WhatsApp ---------- */
.fab { position: fixed; right: 22px; bottom: 24px; z-index: 90; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1faa52; color: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.6); transition: transform .25s var(--ease); }
.fab a:hover { transform: scale(1.08); }
.fab svg { width: 29px; height: 29px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Legal ---------- */
.legal-page { padding: 72px 0; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 22px; margin: 38px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--amber); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-family: var(--head); font-weight: 600; font-size: 14.5px; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .svc-grid, .reach-grid, .list-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-menu { position: fixed; inset: 72px 0 auto 0; background: rgba(16,19,18,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 24px; display: none; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 15px 2px; font-size: 17px; border-bottom: 1px solid var(--line-2); color: var(--text); }
  .nav-menu .btn { margin-top: 16px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(2), .stat:nth-child(4) { border-left: 1px solid var(--line); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .svc-grid, .reach-grid, .list-grid, .why-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .legal a { margin-left: 0; margin-right: 20px; }
  .hero-cta .btn, .why-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
