/*
  Alpine Energy Partners — Styles
  - Professional, modern, tech-forward aesthetic
  - Dark theme with cyan/teal accents
  - Accessible contrast and spacious rhythm
*/

/* CSS Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: #e5e7eb;
  background: #0b1220; /* deep blue/charcoal */
  line-height: 1.6;
}

:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --panel-alt: #0c1a2b;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --primary: #22d3ee; /* cyan */
  --primary-700: #0891b2;
  --accent: #7dd3fc;
  --gradient: linear-gradient(135deg, #7dd3fc 0%, #22d3ee 100%);
  --border: rgba(148, 163, 184, 0.15);
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.5);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 18px;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; text-transform: none; }
p { color: var(--muted); margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }

/* Header */
.site-header {
  position: sticky; top: 0; inset-inline: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gradient); color: #031226; font-weight: 800; letter-spacing: 0.04em; }
.brand-logo { display: none; }
.brand-name { font-size: 0.98rem; opacity: 0.95; }

.site-nav ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.site-nav a { color: var(--text); font-size: 0.95rem; opacity: 0.9; padding: 0.4rem 0.6rem; border-radius: 8px; }
.site-nav a:hover { background: rgba(125, 211, 252, 0.08); }
.site-nav .cta-link { color: #031226; background: var(--gradient); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; padding: 0.2rem; cursor: pointer; }
.nav-toggle .nav-toggle-bar { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: clip; background: #020c26; }
.hero-bg { display: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding: 6rem 0 3rem; }
.hero-content p { font-size: 1.05rem; max-width: 56ch; }
.gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-visual { filter: drop-shadow(0 30px 50px rgba(34, 211, 238, 0.07)); opacity: 0.95; }
.matterhorn-canvas { display: none; }

.hero-actions { display: flex; gap: 1rem; margin-top: 1.4rem; }
.hero-logo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #020c26; /* match hero background */
  border-radius: 12px;
  margin: 0 0 1rem;
}
.hero-logo { width: 300px; height: auto; display: block; filter: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: transparent; transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease; }
.button:hover { transform: translateY(-1px); border-color: rgba(148,163,184,0.35); }
.button.primary { background: var(--gradient); color: #031226; font-weight: 700; border: none; }
.button.ghost { background: rgba(125, 211, 252, 0.06); }

.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(2, 8, 23, 0.2), rgba(2, 8, 23, 0)); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1rem 0; }
.stat { text-align: center; }
.stat-value { font-size: 1.6rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; align-items: start; }

.keypoints { display: grid; gap: 1rem; }
.keypoint { background: linear-gradient(180deg, rgba(125,211,252,0.06), rgba(125,211,252,0.02)); border: 1px solid var(--border); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi { display: inline-block; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }

.cards { display: grid; gap: 1rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); min-height: 160px; }
.card h3 { color: #eaf2ff; }

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.tags li { padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(125, 211, 252, 0.06); color: var(--text); font-size: 0.85rem; }

.map { display: grid; place-items: center; background: radial-gradient(40% 40% at 50% 50%, rgba(56,189,248,0.08), transparent 60%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; margin-top: 2rem;}
/* Europe map */
.eu-map { width: 100%; height: auto; max-width: 100%; }
.eu-countries {
  fill: #0f243d;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 2px;
}
.eu-countries:hover { fill: #133055; }

/* Gas hubs overlay */
.hub-marker { cursor: default; }
.hub-dot { fill: #06b6d4; stroke: #0e7490; stroke-width: 1.4; }
.hub-ring { fill: none; stroke: rgba(34, 211, 238, 0.6); stroke-width: 2; opacity: 0.85; }
.hub-marker:hover .hub-ring { opacity: 1; }
.hub-label {
  font: 600 11px/1.1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans";
  fill: #e5f9ff;
  paint-order: stroke;
  stroke: rgba(2, 8, 23, 0.9);
  stroke-width: 2px;
}

/* Hub connections */
.hub-connection {
  fill: none;
  stroke: rgba(56, 189, 248, 0.25);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.hub-particle {
  fill: #a5f3fc;
  stroke: #22d3ee;
  stroke-width: 0.2;
  opacity: 0.7;
  pointer-events: none;
}

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin: 0.5rem 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.9rem; height: 0.9rem; border-radius: 3px; background: var(--gradient); box-shadow: 0 0 0 2px rgba(125,211,252,0.15); }

.codeblock { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(3, 6, 18, 0.6), rgba(3, 6, 18, 0.3)); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); overflow: auto; }
.codeblock pre { margin: 0; color: #a5f3fc; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 0.9rem; }

/* Contact */
/* Form removed; no specific form styles needed */

.contact-block { display: grid; gap: 1rem; }
.contact-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.contact-card.small { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(2, 8, 23, 0.6); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; }
.footer-brand { color: var(--text); font-weight: 700; }
.footer-brand-link { display: inline-flex; align-items: center; }
.footer-logo { width: 150px; height: auto; display: block; filter: none; background: #020c26; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); }
.footer-meta { color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Back to top */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border);
  display: grid; place-items: center; background: rgba(3, 6, 18, 0.6); color: var(--text);
  backdrop-filter: blur(6px); cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }

/* Reveal on scroll animations */
.reveal-on-scroll { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Utilities */
.grid { display: grid; }
.col { min-width: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 5rem; }
  .hero-visual { order: -1; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid.two-col { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-nav { position: absolute; top: 58px; right: 1rem; background: rgba(11, 18, 32, 0.95); border: 1px solid var(--border); border-radius: 12px; padding: 0.4rem; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .nav-toggle { display: inline-grid; }
  /* Hide the Europe map on mobile */
  .map { display: none; }
}


