/*
Theme Name:   Thegn.ai
Theme URI:    https://thegn.ai
Description:  Thegn.ai child theme for Astra. Nordic-inspired IT services and federal grant consulting.
Author:       Thegn.ai
Author URI:   https://thegn.ai
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  thegn-ai
*/

/* ==========================================================================
   1. CSS VARIABLES — DESIGN SYSTEM
   ========================================================================== */

:root {
  --norse-blue:    #1B3A5C;
  --fjord-teal:    #2A7F8F;
  --arctic-white:  #F8F9FA;
  --glacier-grey:  #E8EDF2;
  --ash-mist:      #6B7C8D;
  --midnight-ink:  #0D1F2D;
  --gold-rune:     #C8A96E;
  --pure-white:    #FFFFFF;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-nav:        0 2px 12px rgba(27,58,92,0.08);
  --shadow-card:       0 4px 24px rgba(27,58,92,0.06);
  --shadow-card-hover: 0 8px 32px rgba(27,58,92,0.12);

  --transition: 0.22s ease-in-out;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ash-mist);
  background-color: var(--arctic-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--norse-blue);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 500; }
h4 { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 500; }

p { margin-bottom: 1.25rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--fjord-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--norse-blue); }

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

::selection { background: rgba(42,127,143,0.2); color: var(--midnight-ink); }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.thegn-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.thegn-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.thegn-section--sm {
  padding-top: 80px;
  padding-bottom: 80px;
}

.thegn-section--white   { background-color: var(--pure-white); }
.thegn-section--light   { background-color: var(--arctic-white); }
.thegn-section--grey    { background-color: var(--glacier-grey); }
.thegn-section--dark    { background-color: var(--norse-blue); }
.thegn-section--teal    { background-color: var(--fjord-teal); }

.thegn-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.thegn-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.thegn-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.thegn-center { text-align: center; }
.thegn-center p { margin-left: auto; margin-right: auto; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-heading h2 { margin-bottom: 16px; }
.section-heading p  { font-size: 1.125rem; color: var(--ash-mist); max-width: 100%; margin: 0; }

/* Eyebrow label */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-rune);
  margin-bottom: 12px;
}

/* Two-column row */
.thegn-row {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: center;
}
.thegn-row.reverse { grid-template-columns: 45% 55%; }
.thegn-row.reverse .thegn-row__text { order: 2; }
.thegn-row.reverse .thegn-row__visual { order: 1; }

/* ==========================================================================
   4. NAVIGATION — ASTRA OVERRIDES
   ========================================================================== */

.site-header,
#masthead,
.ast-primary-header-bar {
  background-color: var(--pure-white) !important;
  border-bottom: 1px solid var(--glacier-grey);
  transition: box-shadow var(--transition);
  position: sticky !important;
  top: 0;
  z-index: 1000;
}

.ast-sticky-shrunk { box-shadow: var(--shadow-nav); }

/* Nav links */
.ast-primary-header-bar .main-header-menu > li > a,
.main-navigation ul li a {
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--norse-blue) !important;
  text-decoration: none !important;
  transition: color var(--transition) !important;
}

.ast-primary-header-bar .main-header-menu > li > a:hover,
.main-navigation ul li a:hover {
  color: var(--fjord-teal) !important;
}

.main-navigation ul li.current-menu-item > a {
  color: var(--fjord-teal) !important;
  font-weight: 500 !important;
}

/* Header CTA button */
.thegn-header-cta,
.ast-header-custom-widget .thegn-btn {
  background-color: var(--fjord-teal) !important;
  color: var(--pure-white) !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 11px 22px !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: background-color var(--transition), transform var(--transition) !important;
  border: none !important;
}

.thegn-header-cta:hover { background-color: var(--norse-blue) !important; transform: translateY(-1px); color: var(--pure-white) !important; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.thegn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.thegn-btn--primary {
  background-color: var(--fjord-teal);
  color: var(--pure-white);
}
.thegn-btn--primary:hover {
  background-color: var(--norse-blue);
  color: var(--pure-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,127,143,0.3);
  text-decoration: none;
}

.thegn-btn--white {
  background-color: var(--pure-white);
  color: var(--norse-blue);
}
.thegn-btn--white:hover {
  background-color: var(--arctic-white);
  color: var(--norse-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  text-decoration: none;
}

.thegn-btn--outline {
  background-color: transparent;
  color: var(--fjord-teal);
  border-color: var(--fjord-teal);
}
.thegn-btn--outline:hover {
  background-color: var(--fjord-teal);
  color: var(--pure-white);
  text-decoration: none;
}

.thegn-btn--ghost {
  background-color: transparent;
  color: var(--pure-white);
  border-color: rgba(255,255,255,0.5);
}
.thegn-btn--ghost:hover {
  border-color: var(--pure-white);
  background-color: rgba(255,255,255,0.1);
  color: var(--pure-white);
  text-decoration: none;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.thegn-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--arctic-white);
  position: relative;
  overflow: hidden;
  padding: 120px 24px;
}

/* Diagonal geometric right panel */
.thegn-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(135deg, var(--glacier-grey) 0%, var(--arctic-white) 60%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.thegn-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  align-items: center;
}

.thegn-hero__content h1 { max-width: 14ch; margin-bottom: 24px; }
.thegn-hero__content p  { font-size: 1.125rem; color: var(--ash-mist); max-width: 56ch; margin-bottom: 40px; line-height: 1.7; }

.thegn-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.thegn-hero__link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--norse-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
.thegn-hero__link:hover { color: var(--fjord-teal); }

.thegn-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.thegn-hero__rune-box {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--glacier-grey) 0%, var(--arctic-white) 60%);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--glacier-grey);
}

.thegn-hero__rune-symbol {
  font-family: var(--font-serif);
  font-size: 96px;
  color: var(--norse-blue);
  opacity: 0.12;
  line-height: 1;
  user-select: none;
}

.thegn-hero__rune-tagline {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-mist);
  margin: 0;
}

/* ==========================================================================
   7. TRUST BAR
   ========================================================================== */

.thegn-trust-bar {
  background-color: var(--glacier-grey);
  padding: 48px 24px;
  border-top: 1px solid var(--glacier-grey);
  border-bottom: 1px solid rgba(27,58,92,0.08);
}

.thegn-trust-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.thegn-trust-bar__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash-mist);
}

.thegn-trust-bar__item {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--norse-blue);
  opacity: 0.65;
  transition: opacity var(--transition);
}
.thegn-trust-bar__item:hover { opacity: 1; }

.thegn-trust-bar__divider {
  width: 1px;
  height: 20px;
  background-color: var(--ash-mist);
  opacity: 0.3;
}

/* ==========================================================================
   8. SERVICE CARDS
   ========================================================================== */

.thegn-service-card {
  background-color: var(--pure-white);
  border-left: 3px solid var(--fjord-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 36px 32px;
  transition: border-color var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
}

.thegn-service-card:hover {
  border-left-color: var(--norse-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.thegn-service-card__icon { font-size: 36px; margin-bottom: 16px; line-height: 1; }
.thegn-service-card__title { color: var(--norse-blue); font-size: 1.2rem; margin-bottom: 12px; }
.thegn-service-card__body  { color: var(--ash-mist); font-size: 15px; line-height: 1.7; margin-bottom: 20px; max-width: 100%; }

.thegn-service-card__link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fjord-teal);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), gap var(--transition);
}
.thegn-service-card__link:hover { color: var(--norse-blue); gap: 10px; text-decoration: none; }

/* ==========================================================================
   9. DARK / TEAL SECTIONS
   ========================================================================== */

/* Runic diagonal texture for dark sections */
.thegn-section--dark::before,
.thegn-section--dark-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(255,255,255,0.018) 40px, rgba(255,255,255,0.018) 41px),
    repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(255,255,255,0.018) 40px, rgba(255,255,255,0.018) 41px);
  pointer-events: none;
  z-index: 0;
}

.thegn-section--dark,
.thegn-section--teal {
  position: relative;
  overflow: hidden;
}

.thegn-section--dark .thegn-container,
.thegn-section--teal .thegn-container {
  position: relative;
  z-index: 1;
}

.thegn-section--dark h1,
.thegn-section--dark h2,
.thegn-section--dark h3 { color: var(--pure-white); }

.thegn-section--dark p  { color: rgba(255,255,255,0.72); max-width: 60ch; }
.thegn-section--teal h2 { color: var(--pure-white); }
.thegn-section--teal p  { color: rgba(255,255,255,0.85); max-width: 52ch; }

.thegn-section--dark .eyebrow  { color: var(--gold-rune); }
.thegn-section--teal .eyebrow  { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   10. PROCESS STEPS
   ========================================================================== */

.thegn-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.thegn-process::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: linear-gradient(to right, var(--glacier-grey), var(--fjord-teal), var(--glacier-grey));
  z-index: 0;
}

.thegn-step { position: relative; z-index: 1; text-align: center; padding: 0 16px; }

.thegn-step__number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background-color: var(--fjord-teal);
  color: var(--pure-white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.thegn-step h3 { color: var(--norse-blue); margin-bottom: 12px; }
.thegn-step p  { font-size: 15px; max-width: 28ch; margin: 0 auto; }

/* ==========================================================================
   11. STATS BAND
   ========================================================================== */

.thegn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.thegn-stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--pure-white);
  line-height: 1;
  margin-bottom: 12px;
}

.thegn-stat__accent { color: var(--gold-rune); }

.thegn-stat__label {
  font-family: var(--font-sans);
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 20ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   12. AUDIENCE TILES
   ========================================================================== */

.thegn-audience-tile { text-align: center; padding: 32px 24px; }
.thegn-audience-tile__icon { font-size: 40px; color: var(--gold-rune); margin-bottom: 16px; line-height: 1; }
.thegn-audience-tile h3 { font-size: 1.05rem; color: var(--norse-blue); margin-bottom: 12px; }
.thegn-audience-tile p  { font-size: 14px; color: var(--ash-mist); line-height: 1.65; max-width: 24ch; margin: 0 auto; }

/* ==========================================================================
   13. GRANT PROGRAM CARDS
   ========================================================================== */

.thegn-grant-card {
  background-color: var(--pure-white);
  border: 1px solid var(--glacier-grey);
  border-top: 3px solid var(--fjord-teal);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 32px;
  transition: box-shadow 0.3s ease;
}
.thegn-grant-card:hover { box-shadow: var(--shadow-card-hover); }
.thegn-grant-card--urgent { border-top-color: #C0392B; }

.thegn-grant-card__agency {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash-mist);
  margin-bottom: 8px;
}

.thegn-grant-card h3 { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 500; color: var(--norse-blue); margin-bottom: 16px; }
.thegn-grant-card p  { font-size: 14px; color: var(--ash-mist); line-height: 1.7; margin-bottom: 0; max-width: 100%; }

.thegn-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.thegn-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.thegn-badge--teal   { border-color: var(--fjord-teal); color: var(--fjord-teal); background: rgba(42,127,143,0.06); }
.thegn-badge--gold   { border-color: var(--gold-rune);  color: var(--gold-rune);  background: rgba(200,169,110,0.06); }
.thegn-badge--urgent { border-color: #C0392B; color: #C0392B; background: rgba(192,57,43,0.06); }

/* ==========================================================================
   14. ELIGIBILITY CHECKLIST
   ========================================================================== */

.thegn-checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 600px;
  text-align: left;
}

.thegn-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  line-height: 1.5;
}
.thegn-checklist li:last-child { border-bottom: none; }
.thegn-checklist li::before {
  content: '☐';
  color: var(--gold-rune);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: -2px;
}

/* ==========================================================================
   15. FAQ ACCORDION
   ========================================================================== */

.thegn-faq { max-width: 760px; margin: 0 auto; }

.thegn-faq details {
  border-bottom: 1px solid var(--glacier-grey);
}

.thegn-faq summary {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--norse-blue);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color var(--transition);
}
.thegn-faq summary::-webkit-details-marker { display: none; }
.thegn-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--fjord-teal);
  font-weight: 300;
}
.thegn-faq details[open] summary::after { content: '−'; }

.thegn-faq__answer {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--ash-mist);
  line-height: 1.75;
}
.thegn-faq__answer p { max-width: 100%; margin-bottom: 0; }

/* ==========================================================================
   16. SERVICE DETAIL ROWS (Services page)
   ========================================================================== */

.thegn-service-detail { padding: 100px 24px; }
.thegn-service-detail--alt { background-color: var(--pure-white); }

.thegn-service-detail__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 80px;
  align-items: center;
}

.thegn-service-detail__inner.reverse {
  grid-template-columns: 45% 55%;
}
.thegn-service-detail__inner.reverse .thegn-service-detail__visual { order: 1; }
.thegn-service-detail__inner.reverse .thegn-service-detail__text   { order: 2; }

.thegn-service-detail__text h2 { margin-bottom: 20px; }
.thegn-service-detail__text p  { font-size: 16px; color: var(--ash-mist); line-height: 1.75; margin-bottom: 24px; max-width: 100%; }

.thegn-service-detail__text ul {
  padding-left: 20px;
  margin-bottom: 28px;
  color: var(--ash-mist);
  font-size: 15px;
  line-height: 2;
}

.thegn-grant-callout {
  background: rgba(42,127,143,0.07);
  border-left: 3px solid var(--fjord-teal);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--norse-blue);
  line-height: 1.6;
}

.thegn-service-detail__visual {
  min-height: 380px;
  border-radius: var(--radius-md);
  background: var(--glacier-grey);
  border-left: 4px solid var(--fjord-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 40px;
  text-align: center;
}
.thegn-service-detail__visual-icon { font-size: 72px; line-height: 1; }
.thegn-service-detail__visual-tagline {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ash-mist);
  max-width: 26ch;
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   17. TEAM CARDS
   ========================================================================== */

.thegn-team-card { text-align: center; }

.thegn-team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glacier-grey), var(--arctic-white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  border: 2px solid var(--glacier-grey);
  overflow: hidden;
}
.thegn-team-card__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.thegn-team-card h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 500; color: var(--norse-blue); margin-bottom: 4px; }
.thegn-team-card__title { font-size: 13px; color: var(--fjord-teal); display: block; margin-bottom: 12px; }
.thegn-team-card__bio { font-size: 14px; color: var(--ash-mist); line-height: 1.65; margin-bottom: 16px; max-width: 28ch; margin-left: auto; margin-right: auto; }
.thegn-team-card__linkedin { font-size: 13px; color: var(--fjord-teal); text-decoration: none; font-weight: 500; }
.thegn-team-card__linkedin:hover { color: var(--norse-blue); }

/* ==========================================================================
   18. VALUES GRID
   ========================================================================== */

.thegn-value {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.thegn-value__icon {
  width: 48px;
  height: 48px;
  background: rgba(42,127,143,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.thegn-value h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 500; color: var(--norse-blue); margin-bottom: 8px; }
.thegn-value p  { font-size: 14px; color: var(--ash-mist); line-height: 1.7; max-width: 100%; margin: 0; }

/* ==========================================================================
   19. CONTACT PAGE
   ========================================================================== */

.thegn-contact-info { display: flex; flex-direction: column; gap: 20px; }

.thegn-contact-info__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ash-mist);
}
.thegn-contact-info__item span:first-child { font-size: 22px; color: var(--fjord-teal); }

.thegn-calendly-wrap {
  border: 1px solid var(--glacier-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 900px;
  margin: 0 auto;
}

.thegn-form-placeholder {
  background: var(--arctic-white);
  border-radius: var(--radius-md);
  padding: 40px;
}
.thegn-form-placeholder p {
  font-size: 13px;
  color: var(--ash-mist);
  text-align: center;
  font-style: italic;
  margin-bottom: 24px;
  max-width: 100%;
}

/* ==========================================================================
   20. FOOTER
   ========================================================================== */

.thegn-footer {
  background-color: var(--midnight-ink);
  color: rgba(255,255,255,0.55);
  padding: 80px 24px 40px;
}

.thegn-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.thegn-footer__logo { max-width: 140px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.thegn-footer__tagline { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 28ch; margin-bottom: 24px; }

.thegn-footer__social { display: flex; gap: 10px; }
.thegn-footer__social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  text-decoration: none;
  transition: all var(--transition);
}
.thegn-footer__social a:hover { border-color: var(--fjord-teal); color: var(--fjord-teal); }

.thegn-footer__nav h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pure-white);
  margin-bottom: 20px;
}

.thegn-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.thegn-footer__nav li { margin-bottom: 10px; }
.thegn-footer__nav a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--transition); }
.thegn-footer__nav a:hover { color: var(--fjord-teal); }

.thegn-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.thegn-footer__copy { font-size: 12px; color: rgba(255,255,255,0.3); margin: 0; }
.thegn-footer__legal { display: flex; gap: 20px; }
.thegn-footer__legal a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color var(--transition); }
.thegn-footer__legal a:hover { color: rgba(255,255,255,0.65); }

/* ==========================================================================
   21. PAGE HERO (inner pages)
   ========================================================================== */

.thegn-page-hero {
  background-color: var(--norse-blue);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thegn-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 40px, rgba(255,255,255,0.018) 40px, rgba(255,255,255,0.018) 41px),
    repeating-linear-gradient(-60deg, transparent, transparent 40px, rgba(255,255,255,0.018) 40px, rgba(255,255,255,0.018) 41px);
  pointer-events: none;
}

.thegn-page-hero .thegn-container { position: relative; z-index: 1; }
.thegn-page-hero h1 { color: var(--pure-white); max-width: 22ch; margin: 0 auto 24px; }
.thegn-page-hero p  { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 56ch; margin: 0 auto; }
.thegn-page-hero .eyebrow { margin-bottom: 16px; }

/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .thegn-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .thegn-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .thegn-hero__inner { grid-template-columns: 1fr; }
  .thegn-hero__visual { display: none; }
  .thegn-hero::before { display: none; }
  .thegn-row, .thegn-row.reverse { grid-template-columns: 1fr; }
  .thegn-service-detail__inner,
  .thegn-service-detail__inner.reverse { grid-template-columns: 1fr; }
  .thegn-service-detail__inner.reverse .thegn-service-detail__visual,
  .thegn-service-detail__inner.reverse .thegn-service-detail__text { order: unset; }
}

@media (max-width: 640px) {
  .thegn-grid-2, .thegn-grid-3 { grid-template-columns: 1fr; }
  .thegn-grid-4 { grid-template-columns: 1fr; }
  .thegn-process { grid-template-columns: 1fr; max-width: 400px; }
  .thegn-process::before { display: none; }
  .thegn-stats { grid-template-columns: 1fr; gap: 48px; }
  .thegn-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .thegn-section { padding-top: 80px; padding-bottom: 80px; }
  .thegn-trust-bar__divider { display: none; }
  .thegn-hero { padding: 80px 24px; }
}

/* ==========================================================================
   23. ASTRA CLEANUP — hide default elements we replace
   ========================================================================== */

.ast-footer-overlay,
.footer-widget-area { display: none; }

/* Remove Astra default page title on our custom templates */
.thegn-page .ast-container > .entry-header,
.thegn-page .entry-title { display: none; }
