/* ============================================================
   Novarus — Refined Authority Design System
   ============================================================ */

:root {
  --bg: #fafbfc;
  --bg-white: #ffffff;
  --text: #0b1d28;
  --text-secondary: #3d5a6b;
  --text-tertiary: #6a8898;
  --muted: #f1f5f8;
  --border: #d8e3eb;
  --border-light: #e8eff4;
  --brand: #0a7fb5;
  --brand-dark: #065a82;
  --brand-deeper: #043d59;
  --brand-light: #0ea5dc;
  --navy: #061e2c;
  --navy-mid: #0a2d40;
  --accent-gold: #c9953c;
  --accent-gold-light: rgba(201, 149, 60, 0.12);
  --surface: #f4f8fb;
  --max: 1140px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(6, 30, 44, 0.05);
  --shadow-md: 0 4px 20px rgba(6, 30, 44, 0.07);
  --shadow-lg: 0 12px 40px rgba(6, 30, 44, 0.10);
  --shadow-card: 0 1px 3px rgba(6, 30, 44, 0.04), 0 6px 24px rgba(6, 30, 44, 0.06);
  --transition-fast: 0.18s ease;
  --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Layout ---- */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 12px rgba(6, 30, 44, 0.06);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.005em;
}

.site-nav a:hover {
  color: var(--brand);
  background: rgba(10, 127, 181, 0.06);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h4 {
  font-family: var(--font-body);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.3rem 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0.4rem 0 1.6rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
}

.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  line-height: 1.7;
}

/* ---- Decorative rule under section headings ---- */
.section > .container > h2 {
  position: relative;
  padding-bottom: 1.2rem;
}

.section > .container > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  transition: background var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast), color var(--transition-fast);
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(10, 127, 181, 0.25);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(10, 127, 181, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(201, 149, 60, 0.06) 0%, transparent 60%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('assets/hero-energy.jpg') center / cover no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 20ch;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.7);
}

.hero .eyebrow {
  color: var(--accent-gold);
  opacity: 1;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* Hero Card */
.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.hero-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-card h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: #fff;
  padding-bottom: 0;
}

.hero-card h2::after {
  display: none;
}

.hero-card ul {
  padding-left: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  font-size: 0.9rem;
}

.hero-card li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
  padding-left: 1.3rem;
  position: relative;
}

.hero-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.mini-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Sections (shared)
   ============================================================ */
.section {
  padding: 6rem 0;
}

.section.muted {
  background: var(--surface);
}

/* ============================================================
   Cards Grid
   ============================================================ */
.cards {
  display: grid;
  gap: 1.5rem;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 2rem;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card icons */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--text);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   Sector Tiles
   ============================================================ */
.sector-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.sector-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-white);
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              border-color var(--transition-base);
  cursor: default;
}

.sector-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 127, 181, 0.06);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-tile:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sector-tile:hover .sector-icon {
  background: rgba(10, 127, 181, 0.1);
}

/* ============================================================
   Process Timeline
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 32px);
  right: calc(16.67% + 32px);
  height: 1px;
  background: var(--border);
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
  border: 2px solid var(--navy);
  box-shadow: 0 4px 20px rgba(6, 30, 44, 0.15);
  letter-spacing: 0.02em;
}

.timeline-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 28ch;
  margin: 0 auto;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  position: relative;
  padding-top: 2.2rem;
  border-top: 3px solid var(--accent-gold);
}

.quote-mark {
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.25;
}

.quote-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2::after {
  display: none;
}

.about-content h2 {
  padding-bottom: 0;
}

.about-text {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 60ch;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: 8px;
  left: 8px;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius);
  z-index: 0;
  opacity: 0.3;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  position: relative;
  z-index: 1;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: var(--navy);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(10, 127, 181, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 60%, rgba(201, 149, 60, 0.06) 0%, transparent 50%);
}

.cta-banner-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button.cta-primary {
  background: var(--accent-gold);
  color: #fff;
  font-weight: 700;
}

.button.cta-primary:hover {
  background: #b8862f;
  box-shadow: 0 4px 20px rgba(201, 149, 60, 0.3);
}

.button.cta-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}

.contact-text {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1rem;
  background: rgba(10, 127, 181, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 127, 181, 0.12);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.contact-email:hover {
  background: rgba(10, 127, 181, 0.1);
  border-color: rgba(10, 127, 181, 0.2);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
              background var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 127, 181, 0.1);
  background: var(--bg-white);
}

textarea {
  resize: vertical;
}

.contact-form .button.primary {
  margin-top: 0.25rem;
  padding: 0.85rem 2rem;
}

/* Form success state */
.contact-form.sent {
  position: relative;
}

.contact-form.sent::after {
  content: 'Message sent successfully!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--brand);
  font-size: 1.1rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 4rem 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  padding-right: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: left center;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1.2rem;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

/* ============================================================
   Scroll Animations
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in card grids */
.cards [data-animate]:nth-child(2) { transition-delay: 0.12s; }
.cards [data-animate]:nth-child(3) { transition-delay: 0.24s; }

.timeline [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.timeline [data-animate]:nth-child(3) { transition-delay: 0.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: 0;
    padding: 5.5rem 0 3.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sector-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    text-align: left;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    align-items: start;
  }

  .timeline-number {
    margin: 0;
  }

  .timeline-step h3,
  .timeline-step p {
    text-align: left;
    max-width: none;
  }

  .timeline-step h3 {
    margin-top: 0.25rem;
  }

  /* Span text across second column */
  .timeline-step p {
    grid-column: 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image::before {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    padding-right: 0;
  }

  /* Mobile nav */
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 480px) {
  .sector-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .button {
    width: 100%;
    max-width: 300px;
  }
}
