:root {
  --red: #b4001e;
  --red-dark: #820014;
  --ink: #101114;
  --ink-soft: #1a1c20;
  --paper: #f4f4f2;
  --white: #ffffff;
  --line: rgba(16, 17, 20, 0.14);
  --muted: #666a71;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px; background: var(--white); color: var(--ink); transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.footer-bottom i { display: inline-block; width: 2px; height: 13px; background: currentColor; opacity: .65; }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.22); color: white; transition: background .25s ease, box-shadow .25s ease, color .25s ease; }
.site-header.is-stuck { position: fixed; top: 0; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.1); backdrop-filter: blur(12px); }
.header-inner { height: 86px; display: grid; grid-template-columns: 266px 1fr auto; align-items: center; gap: 38px; }
.brand { display: inline-flex; width: 252px; }
.brand-crop { display: block; position: relative; width: 252px; height: 68px; overflow: hidden; background: transparent; }
.brand-crop img { position: absolute; width: 252px; height: auto; max-width: none; left: 0; top: 0; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 3vw, 42px); }
.site-nav a { position: relative; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 0; height: 2px; background: var(--red); transition: width .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 0; background: var(--red); color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { background: #d00023; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(180,0,30,.28); }
.button-outline { color: white; border: 1px solid rgba(255,255,255,.55); background: rgba(0,0,0,.14); backdrop-filter: blur(8px); }
.button-outline:hover, .button-outline:focus-visible { border-color: white; background: white; color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.button-small { min-height: 44px; padding-inline: 18px; gap: 16px; font-size: .7rem; }
.header-cta { border: 1px solid rgba(255,255,255,.36); }
.site-header.is-stuck .header-cta { border-color: transparent; }
.menu-button { display: none; }

.hero { position: relative; min-height: 820px; height: min(900px, 100svh); color: white; background: #12161a; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(8,11,15,.96) 0%, rgba(8,11,15,.78) 37%, rgba(8,11,15,.22) 72%, rgba(8,11,15,.12) 100%), linear-gradient(0deg, rgba(8,11,15,.45), transparent 45%), url('assets/amfer-hero.webp'); background-size: cover; background-position: center; transform: scale(1.01); }
.hero-grid { position: absolute; inset: 86px 0 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 92px 92px; mask-image: linear-gradient(90deg, black, transparent 68%); }
.hero::before { content: ""; position: absolute; z-index: 1; left: 0; top: 86px; bottom: 0; width: 7px; background: var(--red); }
.hero::after { content: ""; position: absolute; z-index: 1; left: calc((100vw - min(1180px, calc(100vw - 48px))) / 2 - 34px); top: 320px; width: 80px; height: 2px; background: var(--red); }
.hero-layout { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: 72px; }
.hero-copy { padding-top: 10px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: rgba(255,255,255,.76); font-size: .83rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 3px; background: var(--red); }
.eyebrow-dark { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 900; letter-spacing: -.052em; line-height: .98; text-transform: uppercase; }
h1 { max-width: 830px; margin-bottom: 30px; font-size: clamp(3.4rem, 6.2vw, 6.45rem); }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px rgba(255,255,255,.8); }
.hero-intro { max-width: 630px; margin-bottom: 36px; color: rgba(255,255,255,.78); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.section { padding: 118px 0; }
.section-heading { display: grid; grid-template-columns: 1.15fr .65fr; align-items: end; gap: 80px; margin-bottom: 62px; }
.section-heading h2, .about-copy h2, .contact-copy h2 { margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5.1rem); }
.section-heading > p { max-width: 470px; margin-bottom: 5px; color: var(--muted); font-size: 1.03rem; line-height: 1.8; }
.service-section { position: relative; overflow: hidden; background: var(--paper); }
.service-section::after { content: "ENGINEERING"; position: absolute; right: -32px; top: 40px; color: rgba(16,17,20,.025); font-size: 10vw; font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.service-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 280px; padding: 42px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.36); transition: color .25s ease, background .25s ease, transform .25s ease; }
.service-card:hover { z-index: 2; color: white; background: var(--ink); transform: translateY(-8px); }
.service-card::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: 42px; background: var(--red); }
.service-card h3 { max-width: 380px; margin-bottom: 18px; font-size: 1.65rem; line-height: 1.15; text-transform: uppercase; }
.service-card p { max-width: 440px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.service-card:hover p { color: rgba(255,255,255,.66); }
.service-card a { position: absolute; left: 40px; bottom: 34px; color: var(--red); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.service-card:hover a { color: white; }


.service-grid-detailed { grid-template-columns: repeat(3, 1fr); gap: 18px; border: 0; }
.service-card-detailed { min-height: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.service-card-detailed::before { display: none; }
.service-card-detailed:hover { color: var(--ink); background: #fff; transform: translateY(-6px); box-shadow: 0 24px 60px rgba(16,17,20,.12); }
.service-card-body { position: relative; min-height: 455px; padding: 34px 30px 76px; }
.service-card-body::before { content: ""; display: block; width: 48px; height: 4px; margin: 16px 0 22px; background: var(--red); }
.service-number { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid rgba(180,0,30,.28); color: var(--red); background: rgba(180,0,30,.035); font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.service-kicker { margin-bottom: 10px !important; color: var(--red) !important; font-size: .72rem !important; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.service-card-detailed h3 { margin-bottom: 14px; font-size: 1.45rem; }
.service-card-detailed p { color: var(--muted); font-size: .96rem; }
.service-card-detailed:hover p { color: var(--muted); }
.service-card-detailed ul { margin: 20px 0 0; padding: 0; list-style: none; color: #3e4147; font-size: .9rem; line-height: 1.55; }
.service-card-detailed li { position: relative; padding: 5px 0 5px 20px; }
.service-card-detailed li::before { content: "✓"; position: absolute; left: 0; top: 5px; color: var(--red); font-weight: 900; }
.service-card-detailed a { left: 30px; bottom: 28px; color: var(--red); }
.service-card-detailed:hover a { color: var(--red); }

.about-section { position: relative; overflow: hidden; color: white; background: var(--ink); }
.about-section::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 58px 58px; }
.about-rail { position: absolute; right: -25px; bottom: -95px; color: rgba(255,255,255,.035); font-size: clamp(12rem, 25vw, 25rem); font-weight: 900; line-height: .8; letter-spacing: -.09em; }
.about-intro { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 90px; }
.about-intro h2 { margin: 0; font-size: clamp(3.25rem, 6.4vw, 6.7rem); font-weight: 900; letter-spacing: -.055em; line-height: .92; text-transform: uppercase; }
.about-intro > p { margin: 0 0 8px; color: white; font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.value-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 76px; border-top: 1px solid rgba(255,255,255,.18); }
.value-card { min-height: 220px; padding: 32px 34px 20px 0; border-right: 1px solid rgba(255,255,255,.18); }
.value-card + .value-card { padding-left: 34px; }
.value-card:last-child { border-right: 0; }
.value-card h3 { margin-bottom: 18px; color: white; font-size: 1.7rem; text-transform: uppercase; }
.value-card h3::before { content: ""; display: block; width: 46px; height: 4px; margin-bottom: 28px; background: var(--red); }
.value-card p { max-width: 300px; margin: 0; color: rgba(255,255,255,.64); font-size: 1rem; line-height: 1.7; }

.process-section { background: white; }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; min-height: 230px; padding: 30px 22px 20px 0; border-right: 1px solid var(--line); }
.process-list li + li { padding-left: 24px; }
.process-list li:last-child { border-right: 0; }
.process-list span { color: var(--red); font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; }
.process-list h3 { margin-bottom: 16px; font-size: 1.25rem; text-transform: uppercase; }
.process-list p { color: var(--muted); font-size: .98rem; line-height: 1.7; }

.contact-section { position: relative; padding: 118px 0; color: white; background: var(--red-dark); overflow: hidden; }
.contact-section::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(135deg, transparent 0 48%, white 48% 49%, transparent 49% 100%); background-size: 54px 54px; }
.contact-layout { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 460px; margin: 30px 0; color: rgba(255,255,255,.7); font-size: 1.04rem; }
.contact-email { display: inline-flex; align-items: center; gap: 15px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: .96rem; font-weight: 700; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.enquiry-form { padding: 42px; color: var(--ink); background: white; box-shadow: 0 28px 70px rgba(0,0,0,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.enquiry-form label { display: block; margin-bottom: 20px; color: #34373d; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { display: block; width: 100%; margin-top: 8px; padding: 14px 0; color: var(--ink); border: 0; border-bottom: 1px solid #c9cbd0; border-radius: 0; outline: none; background: transparent; font-size: .95rem; letter-spacing: normal; text-transform: none; transition: border-color .2s ease; }
.enquiry-form textarea { resize: vertical; min-height: 110px; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { border-color: var(--red); }
.enquiry-form ::placeholder { color: #92969d; }
.button-submit { width: 100%; margin-top: 4px; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: .84rem; text-align: center; }

.location-section { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(440px, .8fr); max-width: 100%; min-height: 600px; overflow: hidden; background: var(--paper); }
.map-frame { min-width: 0; min-height: 600px; background: #d9d9d5; }
.map-frame iframe { width: 100%; height: 100%; min-height: 600px; display: block; border: 0; filter: none; }
.location-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px clamp(36px, 5vw, 78px); }
.location-copy h2 { max-width: 100%; margin: 0 0 30px; font-size: clamp(2.3rem, 3.2vw, 4.3rem); font-weight: 900; letter-spacing: -.05em; line-height: .92; text-transform: uppercase; }
.location-copy > p:not(.eyebrow) { max-width: 320px; margin-bottom: 34px; color: var(--muted); font-size: 1.05rem; }

.whatsapp-float { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 19px; color: white; border-radius: 999px; background: #128c4a; box-shadow: 0 12px 32px rgba(0,0,0,.28); font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: translateY(-3px); background: #0fa958; }
.whatsapp-float svg { width: 27px; height: 27px; flex: 0 0 auto; }
.whatsapp-float .wa-bubble { fill: currentColor; }
.whatsapp-float .wa-phone { fill: #128c4a; }
.whatsapp-float:hover .wa-phone, .whatsapp-float:focus-visible .wa-phone { fill: #0fa958; }

.site-footer { color: white; background: #0b0c0e; }
.footer-main { display: grid; grid-template-columns: 280px 1fr; gap: 90px; padding: 70px 0 55px; }
.brand-footer .brand-crop { background: transparent; }
.footer-details { display: grid; grid-template-columns: 1.3fr .8fr .55fr; gap: 54px; }
.footer-details div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.footer-details span { margin-bottom: 12px; color: rgba(255,255,255,.4); font-size: .65rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-details a, .footer-details p { margin: 0; color: rgba(255,255,255,.76); font-size: .88rem; }
.footer-details a:hover { color: white; }
.footer-bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom > span:last-child { display: flex; align-items: center; gap: 11px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid #ff3557; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 235px 1fr auto; gap: 20px; }
  .brand, .brand-crop { width: 225px; }
  .brand-crop img { width: 225px; height: auto; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: .78rem; }
  .header-cta { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid-detailed { grid-template-columns: repeat(2, 1fr); }
  .about-intro { gap: 48px; }
  .contact-layout { gap: 55px; }
  .location-section { grid-template-columns: 1.1fr .9fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 34px, 680px); }
  .site-header { top: 0; }
  .header-inner { height: 74px; display: flex; justify-content: space-between; }
  .brand, .brand-crop { width: 205px; }
  .brand-crop { height: 58px; }
  .brand-crop img { width: 205px; height: auto; }
  .menu-button { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0 8px 8px; color: inherit; border: 0; background: transparent; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
  .menu-lines { display: grid; gap: 6px; }
  .menu-lines i { display: block; width: 25px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 74px 0 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 38px 17px; color: white; background: rgba(12,13,15,.98); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-header.is-stuck .site-nav { inset: 74px 0 0; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { width: 100%; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 1.1rem; }
  .site-nav a::after { display: none; }
  .hero { min-height: 760px; height: 100svh; }
  .hero-image { background-image: linear-gradient(90deg, rgba(8,11,15,.93), rgba(8,11,15,.4)), linear-gradient(0deg, rgba(8,11,15,.58), transparent 55%), url('assets/amfer-hero.webp'); background-position: 61% center; }
  .hero-grid { top: 74px; background-size: 64px 64px; }
  .hero::before { top: 74px; width: 4px; }
  .hero::after { display: none; }
  .hero-layout { display: flex; padding-top: 96px; }
  h1 { font-size: clamp(3rem, 13vw, 4.65rem); }
  .hero-intro { font-size: .98rem; line-height: 1.65; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section { padding: 85px 0; }
  .section-heading { display: block; margin-bottom: 42px; }
  .section-heading h2, .about-copy h2, .contact-copy h2 { font-size: clamp(2.55rem, 11vw, 4.3rem); }
  .section-heading > p { margin-top: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; padding: 34px 28px; }
  .service-card a { left: 28px; }
  .service-grid-detailed { gap: 18px; }
  .service-card-detailed { min-height: 0; padding: 0; }
  .service-card-body { min-height: 0; padding: 28px 24px 74px; }
  .service-card-detailed a { left: 24px; }
  .about-intro { grid-template-columns: 1fr; gap: 38px; }
  .value-grid { grid-template-columns: 1fr; margin-top: 54px; }
  .value-card, .value-card + .value-card { min-height: auto; padding: 30px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .value-card:last-child { border-bottom: 0; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { min-height: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-section { padding: 85px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 46px; }
  .enquiry-form { padding: 30px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 46px; padding-top: 54px; }
  .footer-details { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { min-height: 90px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
  .location-section { grid-template-columns: 1fr; }
  .map-frame, .map-frame iframe { min-height: 420px; }
  .location-copy { grid-row: 1; padding: 80px 17px; }
  .whatsapp-float { right: 16px; bottom: 16px; min-height: 54px; padding-inline: 15px; }
  .whatsapp-float span { display: none; }
}

@media (max-width: 420px) {
  .brand, .brand-crop { width: 178px; }
  .brand-crop { height: 52px; }
  .brand-crop img { width: 178px; height: auto; }
  .hero-layout { padding-top: 88px; }
  h1 { font-size: 2.85rem; }
}
