/* ============================================================
   GeoTex Energy — Shared Stylesheet (Polish Pass)
   Hybrid institutional aesthetic
   Two-tone gold · increased breathing room · custom SVG design
   ============================================================ */

:root {
  /* Navy palette */
  --navy:        #0F2238;
  --navy-deep:   #0A1828;
  --navy-light:  #1B3454;

  /* TWO-TONE GOLD SYSTEM
     --gold-bright: For dark backgrounds (navy heroes). High-impact.
     --gold:        Mid-tone gold for buttons.
     --gold-deep:   For light/bone backgrounds. Muted, premium.
     --gold-soft:   Whisper-quiet for hover states.  */
  --gold-bright: #D4A23B;
  --gold:        #B88526;
  --gold-deep:   #7E5A19;
  --gold-soft:   rgba(184, 133, 38, 0.18);

  --teal:        #1B6E76;
  --paper:       #F7F2EA;
  --bone:        #EFE9DB;
  --bone-deep:   #E4DBC6;
  --line:        rgba(15, 34, 56, 0.10);
  --line-strong: rgba(15, 34, 56, 0.22);
  --text:        #0F2238;
  --text-mute:   rgba(15, 34, 56, 0.66);
  --text-dim:    rgba(15, 34, 56, 0.44);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale (increased breathing room) */
  --pad-section-y: 130px;
  --pad-section-x: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--gold); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============== NAV ============== */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 56px;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
nav.top.scrolled { padding: 14px 56px; box-shadow: 0 4px 30px rgba(15, 34, 56, 0.06); }
nav.top.dark {
  background: rgba(10, 24, 40, 0.85);
  border-bottom-color: rgba(247, 242, 234, 0.08);
}
nav.top.dark .brand,
nav.top.dark ul a { color: var(--paper); }
nav.top.dark .brand-text .tagline { color: rgba(247, 242, 234, 0.45); }

.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 600;
  font-size: 1.18rem; letter-spacing: -0.015em;
  color: var(--navy);
}
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.0; }
.brand-text .name { font-weight: 600; }
/* When the brand has no logo image, increase wordmark presence */
.brand:not(:has(img)) .brand-text .name {
  font-size: 1.42rem;
  letter-spacing: -0.025em;
}
.brand-text .tagline {
  font-family: var(--body); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; margin-top: 2px;
}
nav.top ul { display: flex; list-style: none; gap: 36px; }
nav.top ul a {
  font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  color: var(--navy); position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
nav.top ul a::after {
  content: ""; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold-deep);
  transition: width 0.25s ease;
}
nav.top.dark ul a::after { background: var(--gold-bright); }
nav.top ul a:hover { color: var(--gold-deep); }
nav.top.dark ul a:hover { color: var(--gold-bright); }
nav.top ul a:hover::after,
nav.top ul a.active::after { width: 100%; }
nav.top ul a.active { color: var(--gold-deep); }
nav.top.dark ul a.active { color: var(--gold-bright); }

.cta {
  background: var(--navy); color: var(--paper);
  padding: 12px 24px; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--navy);
  transition: all 0.25s ease;
  display: inline-block;
}
.cta:hover {
  background: var(--gold-deep); border-color: var(--gold-deep);
  color: var(--paper);
}
nav.top.dark .cta {
  background: var(--gold); color: var(--paper); border-color: var(--gold);
}
nav.top.dark .cta:hover {
  background: var(--gold-bright); border-color: var(--gold-bright);
  color: var(--navy);
}

.mobile-toggle { display: none; background: none; border: none; padding: 6px; }
.mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: all 0.3s;
}
nav.top.dark .mobile-toggle span { background: var(--paper); }

/* ============== BUTTONS ============== */
.btn {
  padding: 16px 32px; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; border: 1px solid;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
}
.btn-primary {
  background: var(--gold); color: var(--paper);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-deep); border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(126, 90, 25, 0.22);
}
.section.dark .btn-primary,
section.hero .btn-primary,
section.inv-hero .btn-primary {
  background: var(--gold-bright); color: var(--navy);
  border-color: var(--gold-bright);
}
.section.dark .btn-primary:hover,
section.hero .btn-primary:hover,
section.inv-hero .btn-primary:hover {
  background: var(--paper); border-color: var(--paper);
  color: var(--navy);
}
.btn-secondary {
  background: var(--navy); color: var(--paper);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--gold-deep); border-color: var(--gold-deep);
  color: var(--paper);
}
.btn-ghost {
  background: transparent; color: inherit;
  border-color: currentColor; opacity: 0.7;
}
.btn-ghost:hover { opacity: 1; transform: translateY(-2px); }

/* ============== PAGE HEADERS ============== */
.page-header {
  background: var(--bone);
  padding: 180px 56px 110px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 34, 56, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 34, 56, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 20% 100%, black 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner {
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 80px; align-items: end;
}
.page-eyebrow {
  font-family: var(--body);
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 26px;
  display: flex; align-items: center; gap: 14px;
}
.page-eyebrow::before {
  content: ""; width: 40px; height: 1px;
  background: var(--gold-deep); display: block;
}
.page-header h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 400; line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.page-header h1 .ital {
  font-style: italic; font-weight: 300;
  color: var(--gold-deep);
}
.page-header-lede {
  font-size: 1.12rem; line-height: 1.65;
  color: var(--text-mute); font-weight: 400;
  max-width: 480px;
}

.topo-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

/* ============== SECTIONS ============== */
.section {
  padding: var(--pad-section-y) var(--pad-section-x);
  position: relative;
}
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-narrow { max-width: 920px; margin: 0 auto; }

.section.dark {
  background: var(--navy);
  color: var(--paper);
}
.section.bone { background: var(--bone); }
.section.paper { background: var(--paper); }

.section-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.section-eyebrow::before {
  content: ""; width: 30px; height: 1px;
  background: currentColor; display: block;
}
.section.dark .section-eyebrow { color: var(--gold-bright); }

.section-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 880px;
}
.section-title .ital {
  font-style: italic; color: var(--gold-deep);
  font-weight: 300;
}
.section.dark .section-title { color: var(--paper); }
.section.dark .section-title .ital { color: var(--gold-bright); }

.section-lede {
  font-size: 1.15rem; max-width: 720px;
  color: var(--text-mute); font-weight: 400;
  line-height: 1.65; margin-bottom: 60px;
}
.section.dark .section-lede { color: rgba(247, 242, 234, 0.7); }

/* ============== UNIVERSAL CARDS ============== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
}
.card.bordered {
  border-top: 3px solid var(--gold-deep);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 34, 56, 0.08);
}
.card-num {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; color: var(--text-dim);
  margin-bottom: 22px; font-weight: 500;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.65rem; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 16px;
}
.card p {
  font-size: 0.97rem; color: var(--text-mute);
  line-height: 1.7;
}

/* ============== PULL QUOTE ============== */
.pullquote {
  max-width: 880px;
  margin: 90px auto;
  padding: 0 60px;
  position: relative;
  text-align: center;
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  left: 50%; top: -50px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gold-deep);
  opacity: 0.35;
  font-weight: 400;
}
.pullquote q {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.015em;
  quotes: none;
}
.pullquote q::before, .pullquote q::after { content: ""; }
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 28px;
  font-weight: 600;
}
.section.dark .pullquote q { color: var(--paper); }
.section.dark .pullquote::before { color: var(--gold-bright); }
.section.dark .pullquote cite { color: var(--gold-bright); }

/* ============== FOOTER ============== */
footer.foot {
  background: var(--navy-deep); color: rgba(247, 242, 234, 0.55);
  padding: 100px 56px 36px;
  border-top: 4px solid var(--gold);
}
.foot-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 70px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(247, 242, 234, 0.08);
}
.foot-brand-wrap {
  display: flex; flex-direction: column; gap: 24px;
}
.foot-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 500;
  font-size: 1.2rem; color: var(--paper);
}
.foot-brand img { height: 40px; opacity: 0.95; }
.foot-brand-text {
  display: flex; flex-direction: column;
  line-height: 1.0;
}
.foot-brand-text .tag {
  font-family: var(--body); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-bright); margin-top: 4px; font-weight: 500;
}
.foot-tagline {
  font-size: 0.92rem; line-height: 1.65;
  color: rgba(247, 242, 234, 0.6);
  max-width: 320px;
}
.foot-col h4 {
  font-family: var(--body);
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-bright);
  font-weight: 600; margin-bottom: 20px;
}
.foot-col ul { list-style: none; }
.foot-col ul li { margin-bottom: 12px; }
.foot-col ul a {
  font-size: 0.88rem; color: rgba(247, 242, 234, 0.65);
  transition: color 0.2s;
}
.foot-col ul a:hover { color: var(--gold-bright); }
.foot-col p {
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(247, 242, 234, 0.65);
}
.foot-col p a { color: rgba(247, 242, 234, 0.85); border-bottom: 1px solid var(--gold-bright); }
.foot-col p a:hover { color: var(--gold-bright); }
.foot-bottom {
  max-width: 1280px; margin: 36px auto 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(247, 242, 234, 0.32);
}
.foot-legal {
  max-width: 1280px; margin: 36px auto 0;
  font-size: 0.78rem; line-height: 1.7;
  color: rgba(247, 242, 234, 0.42);
  font-family: var(--body);
  letter-spacing: 0; text-transform: none;
}

/* ============== ANIMATIONS ============== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in-view {
  opacity: 1; transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== UTILITY ============== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }
.mt-100 { margin-top: 100px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  :root {
    --pad-section-y: 90px;
    --pad-section-x: 40px;
  }
  nav.top, nav.top.scrolled { padding: 18px 40px; }
  .page-header { padding: 150px 40px 90px; }
  .page-header-inner { grid-template-columns: 1fr; gap: 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 50px; }
  .foot-brand-wrap { grid-column: 1 / -1; }
  footer.foot { padding: 80px 40px 36px; }
  .pullquote { padding: 0 30px; margin: 60px auto; }
}
@media (max-width: 768px) {
  :root {
    --pad-section-y: 80px;
    --pad-section-x: 28px;
  }
  nav.top, nav.top.scrolled { padding: 16px 28px; }
  nav.top ul { display: none; }
  nav.top ul.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column;
    padding: 28px; border-bottom: 1px solid var(--line);
    gap: 22px;
  }
  nav.top.dark ul.open { background: var(--navy); }
  nav.top .cta { display: none; }
  .mobile-toggle { display: block; }
  .page-header { padding: 120px 28px 70px; }
  footer.foot { padding: 70px 28px 32px; }
  .foot-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 36px; }
  .pullquote { padding: 0 12px; margin: 50px auto; }
}
