/* Global stylesheet for the Green Corner Indoor Golf website (dark theme,
   green as brand color).
   All colors, spacings and fonts are defined as tokens in :root. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --night: #060b08;
  --bg: #0a120e;
  --surface: #0f1a14;
  --card: #14231b;
  --line: #22382c;
  --text: #dfe8e2;
  --text-muted: #94a49a;
  --heading: #ffffff;
  --green: #34b864;
  --green-light: #6fd892;
  --green-deep: #1d6b3d;
  --turf: #2a8a4c;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --gap: 1.5rem;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--green-light); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; color: var(--heading); margin: 0 0 0.6em; }
h1, h2, h3 { text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--soft { background: var(--surface); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}
.lead { font-size: 1.15rem; color: var(--text-muted); margin-top: -0.4rem; }

.skip-link { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: var(--card); padding: 0.5rem 1rem; border-radius: var(--radius); }
.skip-link:focus { left: 0.5rem; }

/* Placeholder mark for content that is not decided yet */
.ph { outline: 2px dashed #d9622b; outline-offset: 2px; border-radius: 4px; background: rgba(217, 98, 43, 0.08); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn--small { padding: 0.45rem 1rem; font-size: 0.92rem; }
.btn--primary { background: var(--green); color: var(--night); }
.btn--primary:hover { background: var(--green-light); color: var(--night); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--night); }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--night); }

/* Header with page navigation; on small screens the links fold into a menu (js/nav.js) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand strong { letter-spacing: 0.08em; color: var(--green); }
.brand span { font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.brand small { font-size: 0.8em; font-weight: 500; color: var(--text-muted); }
.site-header .wrap { position: relative; }
.main-nav { display: flex; align-items: center; gap: 1.3rem; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.3rem 0; white-space: nowrap; }
.main-nav a:not(.btn):hover { color: var(--green-light); }
.main-nav a[aria-current="page"] { color: var(--green-light); box-shadow: inset 0 -2px 0 var(--green); }
.main-nav .btn { white-space: nowrap; }
.nav-toggle { display: none; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; background: var(--night); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .main-nav .btn { margin-top: 0.9rem; text-align: center; }
}
@media (max-width: 560px) { .brand span { font-size: 1rem; line-height: 1.2; } .brand strong { display: block; } }
@media (max-width: 400px) { .brand img { width: 44px; height: 44px; } }

/* Hero: own photo of the simulator bay */
.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--night);
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 11, 8, 0.75) 0%, rgba(6, 11, 8, 0.3) 60%, rgba(6, 11, 8, 0) 100%),
    linear-gradient(180deg, rgba(6, 11, 8, 0.2) 0%, rgba(6, 11, 8, 0.35) 40%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 7vw, 4.5rem); width: 100%; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: 1.2rem; max-width: 48ch; margin: 0 0 1.5rem; }
.hero .eyebrow { color: var(--green-light); }
.hero-logo { display: block; width: clamp(200px, 24vw, 300px); height: auto; margin: 0 0 1.2rem -0.4rem; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55)); }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Start page: centered intro with the full logo over a dimmed, blurred photo */
.hero--home { align-items: center; }
.hero--home > img { filter: blur(4px) brightness(0.5) saturate(0.8); transform: scale(1.05); }
.hero--home::after { background: radial-gradient(ellipse at center, rgba(6, 11, 8, 0.35) 0%, rgba(6, 11, 8, 0.75) 70%), linear-gradient(180deg, rgba(6, 11, 8, 0) 60%, var(--bg) 100%); }
.hero--home .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero--home .hero-logo { width: clamp(240px, 34vw, 440px); margin: 0 0 1.5rem; }
.hero--home h1 { max-width: none; margin-bottom: 1.6rem; }
.hero--home .actions { justify-content: center; }

/* Smaller hero for sub pages */
.hero--page { min-height: min(52vh, 460px); }
.hero--page h1 { max-width: 18ch; margin-bottom: 0.3rem; }
.hero--page p { margin-bottom: 0; }

/* Mowing stripes between hero and facts */
.stripe { height: 8px; background: repeating-linear-gradient(90deg, var(--turf) 0 48px, var(--green-deep) 48px 96px); }

/* Quick facts bar */
.facts { background: var(--night); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; gap: 0.8rem; align-items: center; padding: 1.3rem 1.2rem; color: #fff; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.15s; }
.fact:first-child { border-left: 0; padding-left: 0; }
a.fact:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.fact-icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fact small { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.fact strong { display: block; font-size: 1.05rem; }
.fact > span > span { display: block; font-size: 0.88rem; opacity: 0.8; }
@media (max-width: 860px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 1rem 0.8rem; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 480px) { .facts .wrap { grid-template-columns: 1fr; } .fact { padding-left: 0; } .fact:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, 0.12); } }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--line); color: rgba(255, 255, 255, 0.8); padding: 2.5rem 0; font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-end; }
.footer-grid p { margin: 0.8rem 0 0; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-note { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--green-light); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light strong { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
