/*
Theme Name: Intelligent Acceleration
Theme URI: http://ia-intel.local
Author: Intelligent Acceleration
Description: The Intel theme for Intelligent Acceleration. Matches the HTML site and supports Elementor posts.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: ia
*/

:root {
  --ink: #071118;
  --ink-soft: #0c1b25;
  --paper: #f4f1e9;
  --cream: #ebe6dc;
  --white: #fffdf8;
  --orange: #ff6b35;
  --orange-bright: #ff865e;
  --lime: #c6f06f;
  --text: #101b22;
  --muted: #5e696d;
  --line: rgba(16, 27, 34, 0.14);
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }

.shell {
  width: min(var(--shell), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 90px;
  padding-inline: var(--gutter);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.site-header-overlay { position: absolute; }
.site-header-solid { background: var(--ink); }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand-logo { width: 76px; height: 76px; object-fit: contain; }
.footer-logo { width: 150px; height: 150px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 2.25rem; font-size: .78rem; font-weight: 700; }
.primary-nav a:hover, .footer-links a:hover { color: var(--orange-bright); }
.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}
.menu-button::-webkit-details-marker { display: none; }
.mobile-menu { display: none; justify-self: end; }
.mobile-menu nav { display: none; }

.page-hero {
  position: relative;
  min-height: 530px;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.page-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,10,15,.96), rgba(3,10,15,.58) 58%, rgba(3,10,15,.2)); }
.page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 530px; padding-block: 7rem 4rem; }
.page-hero-inner h1 { max-width: 940px; margin-bottom: 1.5rem; font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.page-hero-inner > p:last-child { max-width: 690px; margin: 0; color: rgba(255,255,255,.68); font-size: 1.15rem; line-height: 1.7; }

.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.5rem; color: #4a555b; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow span:not(.pulse) { color: var(--orange); }
.eyebrow-light { color: rgba(255,255,255,.68); }
.pulse { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px rgba(198,240,111,.12); }

.section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: end; gap: 3rem; margin-bottom: 3.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.section-intro { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

.intel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 2rem;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}
.article-meta { color: var(--orange); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.article-card h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.article-card > p { color: var(--muted); }
.text-link { margin-top: auto; width: max-content; padding-block: .5rem; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 800; }

.article-body { max-width: 740px; }
.article-kicker { margin-bottom: 2rem; color: var(--muted); font-size: .84rem; }
.article-kicker a { border-bottom: 1px solid currentColor; }
.article-body h2 { margin: 2.6rem 0 .85rem; font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
.article-body p, .article-body li { color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.article-body .lead { color: var(--text); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; }
.article-body blockquote { margin: 1.6rem 0; padding: .15rem 0 .15rem 1.15rem; border-left: 3px solid var(--orange); }
.article-body blockquote p { margin: 0; color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.4; letter-spacing: -.03em; }
.article-body .article-signoff { margin-top: 2.5rem; font-size: .92rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 1rem;
  padding: 0 1.35rem;
  color: white;
  background: var(--orange);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
}

.elementor-article { background: var(--paper); }
.site-footer { padding-top: 4.5rem; color: white; background: #040b10; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 3rem; padding-bottom: 4rem; }
.brand-footer { margin-bottom: 1.25rem; }
.footer-grid > div:first-child > p { color: rgba(255,255,255,.45); }
.footer-links, .footer-contact { display: grid; align-content: start; gap: .65rem; }
.footer-links p, .footer-contact p { color: rgba(255,255,255,.4); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.footer-links a, .footer-contact a { width: max-content; font-size: .86rem; }
.footer-contact a { color: var(--orange-bright); }
.footer-contact span { color: rgba(255,255,255,.5); font-size: .77rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 76px; color: rgba(255,255,255,.35); border-top: 1px solid rgba(255,255,255,.1); font-size: .68rem; }

@media (max-width: 980px) {
  .site-header, .site-header-overlay {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr auto;
    height: 68px;
    background: var(--ink);
  }
  .brand-logo { width: 48px; height: 48px; }
  .primary-nav, .nav-cta { display: none; }
  .mobile-menu { display: block; }
  .menu-button { display: grid; }
  .mobile-menu[open] nav {
    position: absolute;
    top: calc(100% + .55rem);
    right: var(--gutter);
    z-index: 40;
    display: grid;
    width: min(260px, calc(100vw - (2 * var(--gutter))));
    padding: .4rem;
    color: var(--ink);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
  }
  .mobile-menu nav a { padding: .8rem .9rem; border-radius: .7rem; font-size: .92rem; font-weight: 700; }
  .mobile-menu nav a:last-child { margin-top: .25rem; color: white; background: var(--orange); text-align: center; }
  .split-heading, .intel-grid, .footer-grid { grid-template-columns: 1fr; }
  .page-hero, .page-hero-inner { min-height: 0; }
  .page-hero-inner { padding-block: 5.5rem 2.75rem; }
  .page-hero-inner h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .footer-logo { width: 96px; height: 96px; }
  .project-enquiry-grid { grid-template-columns: 1fr; }
}

.project-enquiry { background: var(--paper); }
.project-enquiry-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.project-enquiry h1 { margin: 0 0 1rem; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.project-enquiry p { color: var(--muted); font-size: 1.05rem; }
.project-form { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 1.5rem; }
.project-form .ff-el-form-control { width: 100%; border: 1px solid var(--line); border-radius: .7rem; background: var(--paper); }
.project-form .ff-btn-submit { border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 800; }
