/* AGIS TECH — design tokens taken from the Divi theme options & global presets */
:root {
  --accent: #036b8e;          /* Divi accent_color (gcid-primary-color) */
  --accent-dark: #02536e;
  --heading: #0e0c19;         /* header_color */
  --body: #3c3a47;            /* font_color */
  --white: #ffffff;
  --alt-bg: #f8f8f8;          /* global color */
  --line: rgba(0, 0, 0, 0.08);
  --footer-bg: #000000;
  --radius: 6px;
  --pill: 100px;
  --container: 1080px;
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 400 16px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.125rem); line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 3.6vw, 3.125rem); line-height: 1.2; }
h3 { font-size: 1.125rem; line-height: 1.4; }
p { margin: 0 0 1em; }
.large { font-size: 1.125rem; }
.center { text-align: center; }
.right { text-align: right; }
.mt { margin-top: 2.5rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.container.narrow { max-width: 820px; }

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--alt { background: var(--alt-bg); }
.section--accent { background: var(--accent); color: rgba(255,255,255,.9); }
.section--accent h2 { color: #fff; }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-3 { grid-template-columns: 2fr 3fr; }
.align-center { align-items: center; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: 0 24px 72px -12px rgba(0,0,0,.45); }
.wide-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-top: 2rem; }

/* Buttons — Divi "Primary Solid" preset */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font: 700 14px/1.4 var(--font-body);
  text-decoration: none;
  letter-spacing: .02em;
  cursor: pointer;
  transition: padding .25s ease, background .25s ease, transform .25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); padding-left: 28px; padding-right: 28px; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover, .btn--light:focus-visible { background: #eef6f9; }
.btn--outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow { font: 700 clamp(1.25rem, 2.5vw, 1.875rem)/1.3 var(--font-body); text-transform: uppercase; margin-bottom: .4em; }
.eyebrow--accent { color: var(--accent); }

/* Header — Divi menu module "Professional Dark", sticky */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; padding: 16px 0; }
.logo img { height: 56px; width: auto; border: 2px solid var(--heading); border-radius: 5px; }
.primary-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--heading); text-decoration: none; text-transform: uppercase;
  font: 700 14px/1 var(--font-body); letter-spacing: 2px; padding: .5rem 0; position: relative;
}
.primary-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .25s; }
.primary-nav a:hover, .primary-nav a.active { color: var(--accent); }
.primary-nav a:hover::after, .primary-nav a.active::after { right: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--accent); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* Hero — parallax image + Divi background mask */
.hero {
  position: relative; isolation: isolate; color: #fff;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: #000 var(--hero-bg) center / cover no-repeat fixed;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.45); }
.hero--honeycomb::after, .hero--blades::after, .hero--bars::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero--honeycomb::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32zm0 32L0 82' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='3'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 75%); mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}
.hero--blades::after { background: linear-gradient(115deg, rgba(0,0,0,.7) 0 38%, transparent 38% 52%, rgba(0,0,0,.35) 52% 60%, transparent 60%); }
.hero--bars::after { background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 40px, transparent 40px 80px); }
.hero--dark { background: #000; }
.hero h1 { color: #fff; max-width: 15em; }
.hero .eyebrow { color: var(--accent); text-shadow: 0 .08em .08em rgba(0,0,0,.4); }
.hero--honeycomb .eyebrow, .hero--blades .eyebrow { color: #fff; }
.hero--honeycomb .eyebrow::before, .hero--blades .eyebrow::before { content: ''; display: inline-block; width: 40px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.hero .lead { font-size: 1.125rem; max-width: 34em; color: rgba(255,255,255,.88); margin-bottom: 1.75rem; }
.hero-inner { max-width: var(--container); }

/* Testimonials */
.testimonial { margin: 0; }
.stars { color: var(--accent); font-size: 24px; letter-spacing: 4px; }
.testimonial blockquote { margin: .5rem 0 1rem; font-weight: 700; color: var(--heading); }
.testimonial figcaption { font-size: .95rem; }

/* CTA (Divi "Solid" CTA preset with dark image overlay) */
.cta-box, .cta-section, .banner {
  position: relative; isolation: isolate; color: #fff;
  background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)), var(--cta-bg, var(--banner-bg)) center / cover;
}
.cta-box { border-radius: var(--radius); padding: 5vw 60px; text-align: center; }
.cta-box h2, .cta-section h2, .banner h2 { color: #fff; }
.cta-box p { font-size: 1.125rem; max-width: 50em; margin: 0 auto 1.75rem; color: rgba(255,255,255,.9); }
.cta-section { padding: 8vw 0; }
.banner { --cta-bg: none; background: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), var(--banner-bg) center / cover fixed; border-radius: var(--radius); padding: 6vw 60px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.banner h2 { margin: 0; }

/* Blurbs — Divi "Top Image/Icon" preset */
.blurb-icon { color: var(--accent); margin-bottom: 1rem; }
.blurb--center { text-align: center; }
.blurb--center .blurb-icon { display: flex; justify-content: center; }
.blurb .btn { margin-top: .5rem; }
.card-grid { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card { padding: 2.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.card:nth-child(3n) { border-right: 0; }
.card:nth-last-child(-n+3) { border-bottom: 0; }
.card:hover { background: #f2f8fa; }

/* Sectors list */
.sector-list { list-style: none; margin: 0; padding: 0; }
.sector-list li { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 2px solid var(--line); }
.sector-list h3 { font-size: 1.5rem; margin: 0; }
.sector-num { font: 700 1rem var(--font-heading); color: var(--accent); }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stat-num { display: block; font: 700 clamp(2.5rem, 5vw, 3.5rem)/1.1 var(--font-body); color: var(--accent); }
.stat-label { font: 700 1.125rem/1.4 var(--font-heading); color: var(--heading); }

/* Contact */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1.5rem; max-width: 1366px; }
.contact-card { text-align: center; padding: 2.25rem 1.5rem; border-radius: var(--radius); box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.contact-card .blurb-icon { display: flex; justify-content: center; }
.contact-card h3 { font: 900 1.25rem var(--font-body); }
.contact-card p { margin: .25rem 0; }
.map iframe { display: block; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; text-align: left; margin-top: 2rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; color: #fff; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea {
  font: 16px var(--font-body); color: #fff; background: transparent;
  border: 2px solid rgba(255,255,255,.4); border-radius: var(--radius); padding: 18px 16px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; }
.field [aria-invalid="true"] { border-color: #ffb4b4; }
.err { color: #ffd3d3; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-top: 1.5rem; font-weight: 700; }
.notice--ok { background: #fff; color: var(--accent); }
.notice--err { background: #ffe1e1; color: #8a1010; }

/* Footer — Divi Theme Builder footer layout */
.site-footer { background: var(--footer-bg); color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 4rem 0 3rem; }
.site-footer h4 { font: 700 1rem var(--font-body); text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.site-footer p, .footer-links li { font: 500 1rem/1.8 'Inter', sans-serif; margin: 0 0 .6rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #7fd3ef; }
.footer-logo img { width: 300px; margin-bottom: 1.25rem; border-radius: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-bar { background: var(--accent); padding: 1.1rem 0; font-size: .9rem; }

/* Reveal-on-scroll (stands in for Divi slide/zoom/fade animations) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive — Divi breakpoints 980 / 767 */
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-top: 3px solid var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.1);
    display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: .5rem 16px 1rem; }
  .primary-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .logo img { height: 44px; }
  .hero, .banner { background-attachment: scroll; }
  .grid-3, .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-card--wide { grid-column: 1 / -1; }
  .card:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .card:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-2-3, .stats, .contact-cards, .contact-form, .footer-grid { grid-template-columns: 1fr; }
  .card:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .banner { flex-direction: column; align-items: flex-start; padding: 2.5rem 1.5rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .footer-logo img { width: 240px; }
}
