/*
Theme Name: Phoenite V2.1
Theme URI: https://phoenite.com
Author: OpenAI for John Dalton
Description: Custom WordPress theme for Phoenite - Independent Engineering Inspection & Reporting.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: phoenite-v21
*/

:root {
  --ph-blue-950: #081a33;
  --ph-blue-900: #0d2950;
  --ph-blue-800: #143a6a;
  --ph-blue-700: #1a4d88;
  --ph-orange: #f07a16;
  --ph-orange-2: #ff9a2f;
  --ph-white: #ffffff;
  --ph-ice: #edf3fb;
  --ph-grey: #74839a;
  --ph-text: #122031;
  --ph-border: rgba(255,255,255,0.12);
  --ph-shadow: 0 18px 40px rgba(6, 17, 32, 0.18);
  --site-width: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ph-text);
  background: #f4f6fa;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(calc(100% - 32px), var(--site-width)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-tight { padding: 54px 0; }
.grid { display: grid; gap: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 10px; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 24px rgba(240, 122, 22, .26);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--ph-orange-2), var(--ph-orange));
}
.btn-secondary {
  color: var(--ph-white);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  box-shadow: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--ph-orange);
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: currentColor; display: inline-block;
}
.section-title { margin: 12px 0 12px; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; }
.section-copy { max-width: 720px; color: #42546c; font-size: 1.06rem; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--ph-shadow); overflow: hidden;
}
.dark-panel {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7,19,40,.75), rgba(8,25,52,.9)),
    radial-gradient(circle at top right, rgba(68,134,207,.55), transparent 35%),
    linear-gradient(135deg, var(--ph-blue-950), var(--ph-blue-800));
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 25, 52, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px;
}
.branding { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.branding-mark { width: 62px; }
.branding-text { display: flex; flex-direction: column; line-height: 1; }
.branding-title { font-size: 2rem; font-weight: 900; letter-spacing: .02em; }
.branding-subtitle { color: var(--ph-orange); font-size: .88rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; }
.main-nav a { color: rgba(255,255,255,.88); font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #fff; }
.menu-toggle { display: none; }

.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,17,36,.92) 0%, rgba(10,36,70,.86) 44%, rgba(8,27,56,.55) 65%, rgba(8,27,56,.65) 100%),
    radial-gradient(circle at 85% 10%, rgba(105,175,255,.35), transparent 20%),
    url('assets/images/hero-industrial.svg') center/cover no-repeat,
    linear-gradient(135deg, var(--ph-blue-950), var(--ph-blue-700));
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 34px; min-height: 680px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: .98; margin: 14px 0 18px; max-width: 8ch; }
.hero p { max-width: 46ch; color: rgba(255,255,255,.86); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-panel {
  padding: 28px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 50px rgba(3,12,28,.28);
}
.hero-panel h3 { margin-top: 0; font-size: 1.1rem; }
.hero-panel ul { padding-left: 18px; margin-bottom: 0; color: rgba(255,255,255,.84); }
.hero-panel li + li { margin-top: 8px; }

.split-services {
  margin-top: -68px; position: relative; z-index: 3;
}
.split-services .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-feature {
  position: relative; min-height: 360px; color: #fff; padding: 34px;
  background-size: cover; background-position: center;
}
.service-feature::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,16,34,.6), rgba(8,25,52,.92));
}
.service-feature > * { position: relative; z-index: 1; }
.service-feature h3 { font-size: 1.8rem; line-height: 1.1; margin: 10px 0 14px; max-width: 12ch; }
.service-feature ul { padding-left: 20px; margin: 18px 0 0; }
.service-feature li + li { margin-top: 10px; }
.service-feature-mechanical { background-image: url('assets/images/mechanical-inspection.svg'); }
.service-feature-drone { background-image: url('assets/images/drone-inspection.svg'); }

.check-strip {
  margin-top: 26px;
  background: linear-gradient(180deg, rgba(12,38,72,.98), rgba(9,29,56,.98));
  color: #fff; border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px 30px;
}
.check-strip ul {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; list-style: none; padding: 0; margin: 0;
}
.check-strip li { position: relative; padding-left: 28px; font-weight: 600; }
.check-strip li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--ph-orange); font-weight: 900;
}

.content-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
.info-panel { padding: 34px; }
.info-panel ul { list-style: none; padding: 0; margin: 22px 0 0; }
.info-panel li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid #e8edf5;
}
.info-panel li:last-child { border-bottom: 0; }
.info-panel .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(240,122,22,.12); color: var(--ph-orange);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}
.image-panel {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(9,26,50,.25), rgba(9,26,50,.42)), url('assets/images/about-panel.svg') center/cover no-repeat;
}
.image-panel-inner { min-height: 100%; padding: 34px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.image-panel .badge-list { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); font-weight: 700; font-size: .92rem;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { padding: 30px; text-align: center; }
.stat-card strong { display: block; font-size: 2.2rem; line-height: 1; color: var(--ph-blue-900); }
.stat-card span { display: block; margin-top: 10px; color: #56677f; font-weight: 600; }

.page-hero { color: #fff; padding: 90px 0 70px; background: linear-gradient(90deg, rgba(5,17,36,.92), rgba(11,43,81,.88)), url('assets/images/page-banner.svg') center/cover no-repeat; }
.page-hero h1 { margin: 12px 0 10px; font-size: clamp(2.3rem, 4vw, 3.4rem); }
.page-hero p { max-width: 54ch; color: rgba(255,255,255,.86); }

.copy-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.copy-box { padding: 34px; }
.copy-box h3 { margin-top: 0; }
.list-check { list-style: none; padding: 0; margin: 18px 0 0; }
.list-check li { position: relative; padding-left: 26px; }
.list-check li + li { margin-top: 10px; }
.list-check li::before { content: "•"; position: absolute; left: 6px; color: var(--ph-orange); font-weight: 900; }

.contact-card { padding: 36px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li + li { margin-top: 16px; }
.contact-form { padding: 36px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #d7e1ee;
  font: inherit; margin-top: 8px; background: #f8fbff;
}
.contact-form label { display: block; font-weight: 700; margin-bottom: 16px; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.note-box {
  margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--ph-orange);
  background: #fff7ef; color: #6b4a27; border-radius: 8px;
}

.site-footer {
  margin-top: auto; color: #fff; background: linear-gradient(180deg, var(--ph-blue-900), var(--ph-blue-950));
}
.footer-top { padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 30px; color: rgba(255,255,255,.72); font-size: .95rem;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li + li { margin-top: 10px; }
.footer-title { font-weight: 800; margin-bottom: 14px; }

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

@media (max-width: 1024px) {
  .hero .container,
  .content-grid,
  .copy-columns,
  .footer-grid,
  .check-strip ul,
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { min-height: auto; padding: 54px 0 110px; }
  .split-services .grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header .container { min-height: 74px; }
  .branding-title { font-size: 1.6rem; }
  .branding-mark { width: 50px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.16); padding: 10px 12px; border-radius: 10px; }
  .hero .container,
  .content-grid,
  .copy-columns,
  .footer-grid,
  .check-strip ul,
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 10ch; }
  .section, .page-hero { padding-top: 62px; padding-bottom: 62px; }
  .split-services { margin-top: -48px; }
}
