/* ============================================
   SITE MANAGER AI - Global Styles
   Brand: amber #F8B800 (from logo hard hat), electric blue #0A84FF (AI glow), dark base
   Design language reference: steelbuildltd.com / forgecommand.co.uk
   ============================================ */

:root {
  --amber: #F8B800;          /* logo hard hat - bright, for dark bg */
  --amber-dark: #D99A00;
  --amber-light: #FFD24D;
  --accent-on-light: #9A6A00; /* readable amber on white sections */
  --blue: #0A84FF;            /* AI tech glow */
  --blue-deep: #0857A8;
  --dark-primary: #0A0E14;    /* near-black shield base */
  --dark-2: #11161F;
  --dark-overlay: rgba(0, 0, 0, 0.55);
  --slate: #5A6470;
  --slate-bg: #EEF1F5;
  --white: #FFFFFF;
  --off-white: #F6F7F9;
  --text-dark: #1B2129;
  --text-medium: #586273;
  --text-light: #FFFFFF;
  --footer-grey: #4A4A4A;
  --border-light: #E2E6EC;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1280px;
  --section-padding: 100px 0;
  --section-padding-mobile: 64px 0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section-padding { padding: var(--section-padding); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 16px 36px; font-family: var(--font-sans);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase;
  border: none; cursor: pointer; transition: all 0.3s ease; border-radius: 6px;
}
.btn-amber { background-color: var(--amber); color: var(--dark-primary); }
.btn-amber:hover { background-color: var(--amber-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(248,184,0,0.32); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.85); }
.btn-outline-white:hover { background: var(--white); color: var(--dark-primary); }
.btn-outline-dark { background: transparent; color: var(--text-dark); border: 2px solid var(--text-dark); }
.btn-outline-dark:hover { background: var(--text-dark); color: var(--white); }

/* ---------- Typography ---------- */
.headline-sans { font-family: var(--font-sans); font-weight: 800; line-height: 1.12; letter-spacing: -0.5px; }
.amber-text { color: var(--accent-on-light); }

.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-on-light); margin-bottom: 16px;
}
.section-title { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px; }
.section-description { font-size: 1.05rem; line-height: 1.7; color: var(--text-medium); max-width: 560px; }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================ HERO ============================================ */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 720px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: var(--dark-primary);
}
.hero__video-wrap { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(7,10,16,0.78) 0%, rgba(7,10,16,0.55) 45%, rgba(7,10,16,0.82) 100%);
}
.hero__overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 50%, rgba(248,184,0,0.10), transparent 55%);
}

.hero__header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; padding: 22px 0; }
.hero__header-inner { display: flex; justify-content: space-between; align-items: center; }
.hero__logo { display: flex; align-items: center; }
.hero__logo img { height: 64px; width: auto; }
.hero__header-right { display: flex; align-items: center; gap: 28px; }
.hero__contact-bar { display: flex; align-items: center; gap: 16px; color: var(--white); font-size: 0.85rem; }
.hero__contact-link { color: var(--white); opacity: 0.85; transition: opacity 0.3s ease; }
.hero__contact-link:hover { opacity: 1; }

.hero__menu-toggle {
  background: none; border: none; cursor: pointer; display: flex; flex-direction: column;
  gap: 6px; padding: 8px; position: relative; z-index: 100;
}
body.nav-open .hero__header { z-index: 110; }
body.nav-open .hero__logo, body.nav-open .hero__contact-bar { opacity: 0; pointer-events: none; }
.hero__menu-toggle.active .hero__menu-bar { background-color: var(--dark-primary); }
.hero__menu-bar { display: block; width: 28px; height: 2px; background-color: var(--white); transition: all 0.3s ease; }
.hero__menu-toggle.active .hero__menu-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hero__menu-toggle.active .hero__menu-bar:nth-child(2) { opacity: 0; }
.hero__menu-toggle.active .hero__menu-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.hero__inner { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 56px; width: 100%; }
.hero__content { text-align: left; max-width: 660px; flex: 1 1 auto; }
.hero__eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
}
.hero__title { font-size: 3.9rem; color: var(--white); margin-bottom: 22px; }
.hero__title .amber-hi { color: var(--amber); }
.hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.86); line-height: 1.7; max-width: 580px; margin-bottom: 36px; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__appstore { display: inline-block; margin-top: 28px; }
.hero__appstore img { height: 54px; width: auto; transition: transform 0.3s ease; }
.hero__appstore:hover img { transform: translateY(-2px); }

.hero__mockup { flex: 0 0 auto; display: flex; justify-content: center; align-items: center; }
.hero__mockup img { width: 286px; height: auto; filter: drop-shadow(0 30px 70px rgba(0,0,0,0.6)); }

.hero__scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5;
  color: rgba(255,255,255,0.7); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll-cue span { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0)); }

/* ============================================ NAV OVERLAY ============================================ */
.nav-overlay {
  position: fixed; top: 0; right: -460px; width: 420px; height: 100vh; background-color: var(--white);
  z-index: 90; transition: right 0.4s cubic-bezier(0.25,0.8,0.25,1); box-shadow: -4px 0 30px rgba(0,0,0,0.12); overflow-y: auto;
}
.nav-overlay.open { right: 0; }
.nav-overlay__inner { padding: 120px 50px 60px; }
.nav-overlay__menu { display: flex; flex-direction: column; }
.nav-overlay__item { border-bottom: 1px solid var(--border-light); }
.nav-overlay__link {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 22px 0;
  font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; color: var(--text-dark);
  background: none; border: none; cursor: pointer; text-align: left; transition: color 0.3s ease;
}
.nav-overlay__link:hover { color: var(--accent-on-light); }
.nav-overlay__arrow { font-size: 0.7rem; transition: transform 0.3s ease; }
.nav-overlay__dropdown-toggle[aria-expanded="true"] .nav-overlay__arrow { transform: rotate(180deg); }
.nav-overlay__dropdown { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.nav-overlay__dropdown.open { max-height: 300px; }
.nav-overlay__dropdown li a { display: block; padding: 12px 0 12px 20px; font-size: 0.95rem; color: var(--text-medium); transition: color 0.3s ease; }
.nav-overlay__dropdown li a:hover { color: var(--accent-on-light); }
.nav-backdrop {
  position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35);
  z-index: 80; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.nav-backdrop.visible { opacity: 1; visibility: visible; }

/* ============================================ PURPOSE ============================================ */
.purpose { background-color: var(--slate-bg); }
.purpose__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.purpose__title { font-size: 2.7rem; line-height: 1.15; color: var(--text-dark); }
.purpose__text { font-size: 1.05rem; line-height: 1.8; color: var(--text-medium); margin-bottom: 20px; }
.purpose__buttons { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ============================================ FEATURES ============================================ */
.features { background-color: var(--white); }
.features__header { text-align: center; margin-bottom: 60px; }
.features__header .section-title { max-width: 640px; margin-left: auto; margin-right: auto; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.features__card { overflow: hidden; transition: transform 0.3s ease; border-radius: 8px; box-shadow: 0 10px 30px rgba(20,30,45,0.06); }
.features__card:hover { transform: translateY(-4px); }
.features__card-image { height: 320px; overflow: hidden; }
.features__card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.features__card:hover .features__card-image img { transform: scale(1.05); }
.features__card-banner { background-color: var(--amber); padding: 20px 26px; }
.features__card-title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800; color: var(--dark-primary); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.features__card-desc { font-size: 0.86rem; line-height: 1.5; color: #2C2410; }

/* ============================================ SERVICES ============================================ */
.services { background-color: var(--slate-bg); }
.services__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.services__header .section-label { width: 100%; }
.services__carousel { overflow: hidden; }
.services__track { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1); }
.services__slide { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.services__slide-title { font-family: var(--font-sans); font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; color: var(--text-dark); }
.services__slide-desc { font-size: 1.05rem; line-height: 1.8; color: var(--text-medium); margin-bottom: 28px; }
.services__slide-link { font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-on-light); transition: color 0.3s ease; }
.services__slide-link:hover { color: var(--amber-dark); }
.services__slide-image { height: 400px; overflow: hidden; border-radius: 8px; }
.services__slide-image img { width: 100%; height: 100%; object-fit: cover; }
.services__nav { display: flex; gap: 12px; margin-top: 40px; }
.services__nav-btn { width: 50px; height: 50px; border: 2px solid var(--text-dark); background: transparent; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; border-radius: 6px; }
.services__nav-btn:hover { background-color: var(--text-dark); color: var(--white); }
.services__counter { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--text-medium); }

/* ============================================ STATS ============================================ */
.stats { background-color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; text-align: center; }
.stats__card { display: flex; flex-direction: column; align-items: center; }
.stats__icon { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--amber); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; color: var(--accent-on-light); }
.stats__icon svg { width: 34px; height: 34px; }
.stats__number { font-family: var(--font-sans); font-size: 3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.stats__label { font-size: 1rem; color: var(--text-medium); margin-bottom: 20px; max-width: 260px; }
.stats__underline { width: 50px; height: 3px; background-color: var(--amber); border-radius: 2px; }

/* ============================================ USE CASES ============================================ */
.casestudies { background-color: var(--off-white); }
.casestudies__header { text-align: center; margin-bottom: 60px; }
.casestudies__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.casestudies__card { background: var(--white); overflow: hidden; border-radius: 8px; box-shadow: 0 10px 30px rgba(20,30,45,0.06); }
.casestudies__card-image { height: 300px; overflow: hidden; }
.casestudies__card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.casestudies__card:hover .casestudies__card-image img { transform: scale(1.04); }
.casestudies__card-content { padding: 36px; }
.casestudies__tags { display: flex; gap: 8px; margin-bottom: 16px; }
.casestudies__tag { display: inline-block; padding: 5px 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background-color: var(--slate-bg); color: var(--text-medium); border-radius: 4px; }
.casestudies__featured-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-on-light); margin-bottom: 10px; }
.casestudies__card-title { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; }
.casestudies__card-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-medium); margin-bottom: 24px; }

/* ============================================ VALUES ============================================ */
.values { background-color: var(--white); }
.values__header { text-align: center; margin-bottom: 60px; }
.values__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.values__card { background: var(--off-white); overflow: hidden; border-radius: 8px; }
.values__card-image { height: 280px; overflow: hidden; }
.values__card-image img { width: 100%; height: 100%; object-fit: cover; }
.values__card-content { padding: 36px; }
.values__card-title { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; }
.values__card-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-medium); }

/* ============================================ CONTACT ============================================ */
.contact { background-color: var(--slate-bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact__info { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact__info-item { font-size: 0.95rem; color: var(--text-medium); }
.contact__info-item a { color: var(--accent-on-light); font-weight: 600; }
.contact__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form-group { margin-bottom: 16px; }
.contact__form input, .contact__form textarea {
  width: 100%; padding: 16px 20px; font-family: var(--font-sans); font-size: 0.95rem;
  border: 1px solid var(--border-light); background: var(--white); color: var(--text-dark);
  outline: none; transition: border-color 0.3s ease; border-radius: 6px;
}
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--amber); }
.contact__form textarea { resize: vertical; }
.contact__submit { width: 100%; text-align: center; }
.contact__note { margin-top: 14px; font-size: 0.82rem; color: var(--text-medium); }

/* ============================================ FOOTER ============================================ */
.footer { background-color: var(--dark-primary); padding: 80px 0 40px; color: rgba(255,255,255,0.7); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer__logo { margin-bottom: 16px; height: 60px; width: auto; }
.footer__tagline { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 230px; }
.footer__col-title { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 20px; }
.footer__links li { margin-bottom: 12px; font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer__links a { color: rgba(255,255,255,0.65); transition: color 0.3s ease; }
.footer__links a:hover { color: var(--amber); }
.footer__social { display: flex; gap: 14px; margin-top: 20px; }
.footer__social-link { color: rgba(255,255,255,0.6); transition: color 0.3s ease; }
.footer__social-link:hover { color: var(--amber); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px; text-align: center; }
.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ============================================ RESPONSIVE ============================================ */
@media (max-width: 980px) {
  .hero__mockup { display: none; }
  .hero__title { font-size: 3rem; }
  .purpose__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .services__slide { grid-template-columns: 1fr; gap: 30px; }
  .services__slide-image { height: 300px; }
  .casestudies__grid, .values__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .section-padding { padding: var(--section-padding-mobile); }
  .hero__logo img { height: 52px; }
  .hero__contact-bar { display: none; }
  .hero__title { font-size: 2.3rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__buttons { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .section-title, .purpose__title { font-size: 2rem; }
  .features__grid, .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-overlay { width: 100%; right: -100%; }
  .nav-overlay.open { right: 0; }
  .contact__form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Mobile header: show only logo + hamburger; Log In / Get Started live in the menu (no overlap) */
@media (max-width: 768px){ .hero__header-cta { display: none !important; } }

/* hero no-mockup single column (clean hero: bg + headline + sub + CTAs + badge) */
.hero__inner { grid-template-columns: 1fr !important; }
.hero__content { max-width: 820px; }
.hero__mockup { display: none !important; }
