/* Frontline Solutions — site styles */
:root {
  --orange: #e3530b;
  --blue: #0d58b3;
  --black: #000;
  --body: rgba(0, 0, 0, 0.7);
  --rule: rgba(0, 0, 0, 0.2);
  --light: #fefefe;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Manrope", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--black); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 90%; max-width: var(--wrap); margin: 0 auto; }
.narrow { width: 80%; max-width: 1080px; margin: 0 auto; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.site-header .narrow { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(0, 0, 0, 0.6); transition: color 0.2s; }
.nav a:hover, .nav a.current { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; font-size: 24px; color: var(--orange); cursor: pointer; line-height: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 40px; border: 0; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn:hover { background: #c64606; }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { background: var(--orange); color: #fff; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: #111 url("../images/hero.jpg") center / cover no-repeat; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 70%); }
.hero-inner { position: relative; padding: clamp(110px, 12vw, 180px) 0 clamp(170px, 16vw, 230px); }
.hero .eyebrow { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { color: #fff; font-size: clamp(44px, 6.4vw, 72px); font-weight: 600; line-height: 1.3; max-width: 620px; margin-bottom: 30px; }

.callouts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -48px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); }
.callout { display: flex; gap: 18px; padding: 30px; background: #fff; }
.callout .icon { font-size: 32px; color: var(--orange); margin-top: 2px; }
.callout h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.callout p { font-size: 17px; font-weight: 600; color: rgba(0, 0, 0, 0.8); line-height: 1.4; }
.callout a { text-decoration: none; }
.callout.blue { background: var(--blue); }
.callout.orange { background: var(--orange); }
.callout.blue .icon, .callout.orange .icon,
.callout.blue h2, .callout.orange h2,
.callout.blue p, .callout.orange p { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-lg { padding: 100px 0; }
.intro { padding: 54px 0 20px; }
.section-title { font-size: clamp(34px, 4.4vw, 52px); text-align: center; margin-bottom: 50px; }
.shadowed { text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.4); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%; }
.tile img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3); margin-bottom: 26px; }
.tile h3 { font-size: 24px; margin-bottom: 10px; text-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.25); }

/* Our Approach */
.approach { position: relative; background: #222 url("../images/approach-bg.jpg") center / cover no-repeat; color: var(--light); }
.approach::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.approach .wrap { position: relative; }
.approach-copy { max-width: 580px; }
.approach h2 { color: #fff; font-size: clamp(40px, 6vw, 72px); font-weight: 600; margin-bottom: 26px; }
.approach .btn { margin-top: 30px; }

/* Split rows (Why Frontline / Our Process) */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 5.5%; align-items: start; }
.split h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 20px; }
.split .btn { margin-top: 20px; }
.toggle { border-bottom: 1px solid var(--rule); }
.toggle summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  list-style: none; cursor: pointer; padding: 26px 0; color: var(--black); font-size: 24px; font-weight: 600; line-height: 1.3;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary .icon { color: var(--blue); font-size: 16px; transition: transform 0.2s; }
.toggle[open] summary .icon { transform: rotate(45deg); }
.toggle p { padding: 0 40px 26px 0; }

/* Industry Service */
.industry { background: var(--blue); }
.industry .section-title { color: #fff; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5.5%; row-gap: 56px; }
.card { background: rgba(255, 255, 255, 0.04); padding: 40px 20px; text-align: center; color: #fff; }
.card .icon { font-size: 32px; margin: 0 auto 22px; display: block; }
.card h3 { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.35; }

/* ---------- Contact page ---------- */
.page-hero { position: relative; background: #111 url("../images/contact-hero.jpg") center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25)); }
.page-hero .narrow { position: relative; padding: clamp(70px, 8vw, 110px) 0; }
.page-hero h1 { color: #fff; font-size: clamp(44px, 6.4vw, 72px); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 5.5%; align-items: stretch; }
.contact-grid h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { position: absolute; left: -9999px; }
.form-grid input, .form-grid textarea {
  width: 100%; border: 1px solid var(--black); background: #fff; padding: 16px; font: inherit; font-size: 15px; color: var(--black); border-radius: 0;
}
.form-grid textarea { min-height: 160px; resize: vertical; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: rgba(0, 0, 0, 0.6); }
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form-actions { text-align: right; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: #1a7a36; }
.form-status.err { color: #b3261e; }

.info-box { background: var(--blue); color: #fff; padding: 46px 50px; }
.info-box .phone { color: #fff; font-size: 28px; font-weight: 600; text-decoration: none; display: block; margin-bottom: 14px; }
.info-box h3 { color: #fff; font-size: 18px; margin: 4px 0 6px; }
.info-box p { margin-bottom: 8px; }
.info-box a { text-decoration: none; }
.info-box a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer-cta { background: linear-gradient(to bottom, transparent 50%, var(--black) 50%); padding-top: 40px; }
.cta-box { background: var(--blue); color: var(--light); padding: 50px; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.cta-box h2 { color: #fff; font-size: clamp(24px, 3vw, 35px); font-weight: 600; margin-bottom: 14px; }
.cta-box .btn { flex: none; }
.cta-copy { max-width: 820px; }

.site-footer { background: var(--black); color: rgba(255, 255, 255, 0.7); padding: 60px 0 0; }
.site-footer::before { content: ""; display: block; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 54px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
.footer-grid img { width: 50%; height: auto; margin: 0 auto 20px; }
.footer-grid .about { font-size: 13px; }
.footer-grid h2 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px; }
.footer-grid h3 { color: #fff; font-size: 18px; margin-bottom: 2px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }
.footer-grid .contact p { margin-bottom: 6px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 30px; padding: 24px 0 50px; text-align: center; color: #f7f7f7; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 96px; }
.notfound h2 { font-size: 32px; margin: 6px 0 12px; }
.notfound .btn { margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .narrow { width: 90%; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-top: 3px solid var(--orange); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); padding: 8px 5%; }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .nav li:last-child a { border-bottom: 0; }
  .site-header .narrow { position: static; }
  .site-header { position: sticky; }
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .section-lg { padding: 70px 0; }
}
@media (max-width: 767px) {
  .callouts { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; row-gap: 44px; }
  .split { grid-template-columns: 1fr; row-gap: 30px; }
  .cta-box { flex-direction: column; padding: 36px 28px; }
  .toggle summary { font-size: 20px; padding: 22px 0; }
  .info-box { padding: 36px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > * { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid img { width: 180px; margin-left: 0; }
  .hero h1 { line-height: 1.2; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .btn { padding: 15px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
