/* =========================================================
   CENTURION TRANSPORT PTE. LTD. — Stylesheet (style.css)
   ---------------------------------------------------------
   Colours are taken from the company logo:
   deep navy background · metallic gold · imperial red
   ---------------------------------------------------------
   1.  Brand colours & variables
   2.  Base / reset / helpers
   3.  Preloader
   4.  Cursor, spotlight, background, grain, progress bar
   5.  Buttons & icons
   6.  Navbar
   7.  Hero
   8.  Tagline band
   9.  Sections, about, cards
   10. Careers (benefits), subcontractors, frame panel
   11. Form
   12. Contact & footer
   13. Scroll-reveal
   14. Keyframes
   15. Responsive
   16. Reduced motion
   ========================================================= */


/* ===================== 1. BRAND COLOURS & VARIABLES ===================== */
:root {
  /* Navy (from the logo background) */
  --navy-950: #040820;
  --navy-900: #060b22;
  --navy-800: #0b1433;
  --navy-700: #121d45;

  /* Gold (from the logo lettering) */
  --gold: #d6a640;
  --gold-light: #f4d886;
  --gold-dark: #9a6a1c;
  --gold-rgb: 214, 166, 64;
  --gold-metal: linear-gradient(135deg, #f8e3a0 0%, #e2b452 30%, #b8862c 55%, #f1cf78 80%, #c4922f 100%);

  /* Red (from the helmet crest & stripes) */
  --red: #c8202d;
  --red-rgb: 200, 32, 45;

  --text: #e9ecf4;
  --muted: #9aa3b8;
  --line: rgba(var(--gold-rgb), 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);

  --font-head: "Saira", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;          /* sharp, corporate corners */
  --nav-h: 84px;
}


/* ===================== 2. BASE / RESET / HELPERS ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }

/* Hide normal cursor only on mouse devices (custom cursor is used) */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button,
  body.has-custom-cursor label, body.has-custom-cursor select { cursor: none; }
  body.has-custom-cursor input, body.has-custom-cursor textarea { cursor: text; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
::selection { background: var(--gold); color: var(--navy-950); }

.container { width: min(1220px, 90%); margin-inline: auto; }
.center { text-align: center; margin-top: 3.5rem; }
.muted { color: var(--muted); }

/* Metallic gold text (like the logo lettering) */
.gold-text {
  background: var(--gold-metal);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}

/* Small uppercase label with a red line (above headings) */
.kicker {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.3rem;
}
.kicker-line { width: 36px; height: 2px; background: var(--red); display: inline-block; }
.center-k { justify-content: center; }


/* ===================== 3. PRELOADER ===================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--navy-800), var(--navy-950) 70%);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-emblem {
  width: 130px; margin: 0 auto;
  animation: emblemIn 1.2s var(--ease) both;
  filter: drop-shadow(0 0 30px rgba(var(--gold-rgb), 0.35));
}
.preloader-line { width: 180px; height: 1px; margin: 1.6rem auto 1rem; background: var(--line); overflow: hidden; }
.preloader-line span { display: block; height: 100%; width: 100%; background: var(--gold-metal); transform-origin: left; animation: loadLine 1.4s var(--ease) forwards; }
.preloader-tagline {
  font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--gold); opacity: 0; animation: fadeIn 0.8s 0.5s forwards;
}


/* ===================== 4. CURSOR, SPOTLIGHT, BACKGROUND ===================== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none; border-radius: 50%; opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-light); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(var(--gold-rgb), 0.55);
  transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease),
              background 0.35s, border-color 0.35s;
}
body.cursor-visible .cursor-dot, body.cursor-visible .cursor-ring { opacity: 1; }
.cursor-ring.hovering {
  width: 70px; height: 70px; margin: -35px 0 0 -35px;
  background: rgba(var(--gold-rgb), 0.08); border-color: var(--gold);
}
.cursor-ring.clicking { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* Gold dust canvas */
#bg-canvas { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; }

/* Deep navy vignette + cursor glow */
.spotlight {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--x, 70%) var(--y, 35%), rgba(var(--gold-rgb), 0.07), transparent 65%),
    radial-gradient(900px circle at 80% 0%, rgba(var(--red-rgb), 0.06), transparent 60%);
}

/* Fine noise texture for a premium printed feel */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  height: 2px; width: 0; background: var(--gold-metal);
}


/* ===================== 5. BUTTONS & ICONS ===================== */
/* All SVG icons share this style (gold outline icons) */
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1rem 2rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, color 0.35s, border-color 0.35s;
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

/* Gold metallic button */
.btn-gold {
  background: var(--gold-metal); background-size: 200% 200%;
  color: var(--navy-950);
  box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold::after {  /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 12px 34px rgba(var(--gold-rgb), 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

/* Outline button */
.btn-outline { border-color: rgba(var(--gold-rgb), 0.45); color: var(--gold-light); background: transparent; }
.btn-outline::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--gold-rgb), 0.1);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.btn-outline:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-outline:hover { border-color: var(--gold); }

.btn-sm { padding: 0.7rem 1.3rem; font-size: 0.75rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; pointer-events: none; }


/* ===================== 6. NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.45s, height 0.45s var(--ease), border-color 0.45s;
}
.navbar.scrolled {
  --nav-h: 68px;
  background: rgba(4, 8, 32, 0.82);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-logo { height: 52px; width: auto; transition: height 0.45s var(--ease); filter: drop-shadow(0 0 10px rgba(var(--gold-rgb), 0.2)); }
.navbar.scrolled .brand-logo { height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.06em;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small { margin-top: 0.3rem; font-size: 0.56rem; letter-spacing: 0.34em; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-link {
  position: relative; font-family: var(--font-head); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--red);
  transform: translateX(-50%) scale(0); transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link.active::after { transform: translateX(-50%) scale(1); }

.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 6px; }
.hamburger span { width: 26px; height: 1.5px; background: var(--gold-light); transition: 0.35s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ===================== 7. HERO ===================== */
.hero {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.9rem); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.04; margin-bottom: 1.6rem;
  text-transform: uppercase;
}
.hero-title .gold-text { font-style: italic; }
/* Each headline line is masked so the text slides up into view */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line-mask > span { display: inline-block; }

.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Load-in animation for hero elements (delay set by --d in HTML) */
.hero-anim { opacity: 0; transform: translateY(30px); }
body.loaded .hero-anim {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d) * 0.12s + 0.1s);
}
.line-mask > .hero-anim { transform: translateY(105%); opacity: 1; }
body.loaded .line-mask > .hero-anim { transform: none; }

/* Emblem with rotating rings */
.hero-emblem {
  position: relative; width: min(470px, 100%); aspect-ratio: 1; margin-left: auto;
  display: grid; place-items: center;
}
.emblem-img {
  position: relative; z-index: 2; width: 78%;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(var(--gold-rgb), 0.18));
  transition: transform 0.6s var(--ease);
}
.emblem-glow {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.22), rgba(var(--red-rgb), 0.08) 45%, transparent 70%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
.emblem-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.emblem-ring circle { stroke: rgba(var(--gold-rgb), 0.35); stroke-width: 0.4; }
.ring-outer { animation: spin 60s linear infinite; }
.ring-outer circle { stroke-dasharray: 1 3.2; stroke-width: 1.4; }        /* tick marks */
.ring-inner { inset: 7%; width: 86%; height: 86%; animation: spin 90s linear infinite reverse; }
.ring-inner circle { stroke-dasharray: 60 14 4 14; stroke: rgba(var(--gold-rgb), 0.28); }

/* Pillars row under hero */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 4.5rem; border-top: 1px solid var(--line);
}
.pillar { display: flex; gap: 1rem; align-items: flex-start; padding: 1.8rem 1.5rem 0 0; }
.pillar + .pillar { padding-left: 1.8rem; border-left: 1px solid var(--line-soft); }
.pillar .icon { width: 26px; height: 26px; color: var(--gold); margin-top: 0.15rem; }
.pillar h4 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.pillar p { font-size: 0.88rem; color: var(--muted); }


/* ===================== 8. TAGLINE BAND ===================== */
.tagline-band {
  position: relative; overflow: hidden; padding: 1.5rem 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--navy-950), rgba(11, 20, 51, 0.6), var(--navy-950));
}
.tagline-band::before, .tagline-band::after {     /* red stripes like the logo */
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--red); opacity: 0.7;
}
.tagline-band::before { top: 4px; } .tagline-band::after { bottom: 4px; }
.tagline-track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.tagline-track span {
  font-family: var(--font-head); font-style: italic; font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); text-transform: uppercase; letter-spacing: 0.08em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--gold-rgb), 0.6);
  transition: color 0.4s;
}
.tagline-track span:hover { color: var(--gold); }
.tagline-track i { font-style: normal; color: var(--red); font-size: 1.2rem; }


/* ===================== 9. SECTIONS, ABOUT, CARDS ===================== */
.section { padding: 8rem 0; position: relative; overflow: hidden; }
/* Alternate panel background */
.section-panel {
  background: linear-gradient(180deg, transparent, rgba(11, 20, 51, 0.55) 12%, rgba(11, 20, 51, 0.55) 88%, transparent);
}

.section-head { text-align: center; max-width: 740px; margin: 0 auto 4rem; }
.section-title {
  font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 800; letter-spacing: -0.01em;
  text-transform: uppercase; margin-bottom: 1.3rem;
}
.section-title .gold-text { font-style: italic; }
.lead { font-size: 1.05rem; color: #c3c9d8; }
.lead + .lead { margin-top: 1rem; }

/* About layout */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: center; }
.motto {
  display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem;
  font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
}
.motto b { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* Card */
.card {
  position: relative; padding: 2.2rem 1.9rem;
  background: linear-gradient(160deg, rgba(18, 29, 69, 0.75), rgba(6, 11, 34, 0.85));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color 0.45s, box-shadow 0.45s, transform 0.25s ease-out;
  transform-style: preserve-3d;
}
/* Gold top line that grows on hover */
.card::after {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: var(--gold-metal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card:hover::after { transform: scaleX(1); }
/* Soft glow that follows the mouse inside the card (--mx / --my from JS) */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-rgb), 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.45s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }

.card-num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 1.9rem;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--gold-rgb), 0.3);
}
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.5rem;
  color: var(--gold-light); border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(var(--gold-rgb), 0.06);
  transform: translateZ(30px);
}
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { font-size: 1.08rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.7rem; transform: translateZ(20px); }
.card p { color: var(--muted); font-size: 0.93rem; }


/* ===================== 10. CAREERS, SUBCONTRACTORS, FRAME PANEL ===================== */
/* Faded emblem watermark behind the careers section */
.watermark {
  position: absolute; right: -8%; top: 50%; width: 620px; transform: translateY(-50%);
  opacity: 0.045; filter: grayscale(0.3); pointer-events: none;
}

.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 8, 32, 0.55); }
.benefit {
  position: relative; padding: 2.4rem 1.6rem; text-align: center;
  transition: background 0.45s;
}
.benefit + .benefit { border-left: 1px solid var(--line-soft); }
.benefit:hover { background: rgba(var(--gold-rgb), 0.05); }
.benefit-icon {
  width: 64px; height: 64px; margin: 0 auto 1.3rem; display: grid; place-items: center;
  border-radius: 50%; color: var(--gold-light);
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.12), transparent 70%);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.benefit-icon .icon { width: 28px; height: 28px; }
.benefit:hover .benefit-icon { transform: translateY(-6px) rotateY(360deg); border-color: var(--gold); }
.benefit h4 { font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.benefit p { color: var(--muted); font-size: 0.86rem; }

/* Two-column layout */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: center; }
.split .lead { margin-bottom: 2.4rem; }

/* Panel with gold corner brackets (also used on the form) */
.frame-panel, .apply-form { position: relative; }
.frame-panel {
  padding: 3rem; border-radius: 2px;
  background: linear-gradient(160deg, rgba(18, 29, 69, 0.7), rgba(4, 8, 32, 0.85));
  border: 1px solid var(--line-soft); transition: transform 0.25s ease-out;
}
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; border-width: 0; transition: all 0.5s var(--ease); }
.corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.frame-panel:hover .corner { width: 40px; height: 40px; }

.frame-panel h4 { font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.6rem; }
.check-list { list-style: none; display: grid; gap: 1.1rem; }
.check-list li { display: flex; align-items: center; gap: 0.9rem; color: #d3d8e4; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  color: var(--navy-950); background: var(--gold-metal); stroke-width: 2.6;
}


/* ===================== 11. FORM ===================== */
.form-wrap { max-width: 920px; }
.apply-form {
  padding: 3rem; border-radius: 2px;
  background: linear-gradient(160deg, rgba(18, 29, 69, 0.75), rgba(4, 8, 32, 0.9));
  border: 1px solid var(--line-soft);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.type-picker { border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.type-picker legend {
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1rem;
}
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
  height: 100%; padding: 1.6rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: rgba(4, 8, 32, 0.5);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}
.type-card .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 0.4rem; }
.type-card strong { font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.type-card small { color: var(--muted); font-size: 0.8rem; }
.type-card:hover { border-color: var(--line); transform: translateY(-3px); }
.type-option input:checked + .type-card {
  border-color: var(--gold); background: rgba(var(--gold-rgb), 0.08);
  box-shadow: inset 0 0 0 1px var(--gold), 0 10px 30px rgba(var(--gold-rgb), 0.12);
}
.type-option input:focus-visible + .type-card { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.form-hint { text-align: center; color: var(--muted); font-size: 0.92rem; padding: 0.8rem 0; }

.field-group { display: none; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 0.5rem; }
.field-group.active { display: grid; animation: fadeUp 0.55s var(--ease); }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #c3c9d8; }
.req { color: var(--red); }

.field input, .field select, .field textarea {
  width: 100%; padding: 0.95rem 1rem;
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: rgba(4, 8, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
}
.field select option { background: var(--navy-800); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #5d6884; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(4, 8, 32, 0.85);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.14);
}
.field.error input, .field.error select, .field.error textarea { border-color: #e0525c; }
.error-msg { font-size: 0.8rem; color: #ef6b74; }

.form-footer { display: none; margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line-soft); }
.form-footer.active { display: block; }
.consent { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.consent input { margin-top: 0.25rem; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); }
.consent.error span { color: #ef6b74; }

.form-success { display: none; text-align: center; padding: 2.5rem 0 1rem; }
.form-success.active { display: block; animation: fadeUp 0.6s var(--ease); }
.success-icon {
  width: 76px; height: 76px; margin: 0 auto 1.4rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold-metal); color: var(--navy-950);
  box-shadow: 0 0 0 8px rgba(var(--gold-rgb), 0.12);
  animation: popIn 0.7s var(--ease);
}
.success-icon .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.form-success h3 { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); margin-bottom: 1.8rem; }


/* ===================== 12. CONTACT & FOOTER ===================== */
.contact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 8, 32, 0.55);
}
.contact-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem;
  padding: 2.4rem 1.2rem; transition: background 0.4s;
}
.contact-item + .contact-item { border-left: 1px solid var(--line-soft); }
.contact-item .icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: 0.6rem; transition: transform 0.5s var(--ease); }
/* Hover effect for ALL contact boxes (phone, email, address, hours) */
.contact-item:hover { background: rgba(var(--gold-rgb), 0.05); }
.contact-item:hover .icon { transform: scale(1.15) rotate(-8deg); }
.contact-label { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 500; color: var(--text); }

.footer { padding: 5rem 0 1.8rem; background: var(--navy-950); border-top: 1px solid var(--line); position: relative; }
.footer::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 160px; height: 2px; background: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3.5rem; align-items: start; }
.footer-logo { width: 230px; }
.footer h5 { font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3rem; }
.footer-grid > div > a, .footer-grid > div > span {
  display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.7rem; transition: color 0.3s, transform 0.3s;
}
.footer-grid > div > a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--muted);
}
.back-top:hover { color: var(--gold-light); }


/* ===================== 13. SCROLL-REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }


/* ===================== 14. KEYFRAMES ===================== */
@keyframes shimmer  { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes breathe  { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes marquee  { to { transform: translateX(-50%); } }
@keyframes emblemIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes loadLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeIn   { to { opacity: 1; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes popIn    { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }


/* ===================== 15. RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit:nth-child(4) { border-left: 0; }
  .benefit:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .contact-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-item:nth-child(3) { border-left: 0; }
  .contact-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 980px) {
  .hero-grid, .about-grid, .split { grid-template-columns: 1fr; gap: 3rem; }
  .hero-emblem { order: -1; width: min(300px, 70%); margin: 0 auto; }
  .hero-content { text-align: center; }
  .hero-content .kicker { justify-content: center; letter-spacing: 0.22em; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile slide-down menu */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 1.6rem; padding: 2.4rem;
    background: rgba(4, 8, 32, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: none; }
}

@media (max-width: 640px) {
  .section { padding: 5.5rem 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 1.3rem 0 0; border-left: 0; }
  .service-grid, .type-picker, .field-group, .contact-strip, .footer-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit { border-left: 0 !important; border-top: 1px solid var(--line-soft); padding: 1.8rem 1rem; }
  .benefit:nth-child(-n+2) { border-top: 0; }
  .benefit:nth-child(even) { border-left: 1px solid var(--line-soft) !important; }
  .benefit:last-child { grid-column: 1 / -1; }   /* 5th benefit spans full width */
  .contact-item { border-left: 0 !important; }
  .contact-item + .contact-item { border-top: 1px solid var(--line-soft); }
  .apply-form, .frame-panel { padding: 1.8rem 1.4rem; }
  .brand-logo { height: 42px; }
  .brand-text strong { font-size: 1.1rem; }
  .watermark { width: 380px; }
}


/* ===================== 16. REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
