/*
Theme Name: Fore Vending
Theme URI: https://forevending.co.uk
Author: Fore Vending
Description: A custom, responsive WordPress theme for Fore Vending's fully managed on-course vending service.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fore-vending
*/

:root {
  --ink: #05090d;
  --ink-soft: #0b1218;
  --panel: #111b22;
  --panel-2: #17242c;
  --white: #f7fbfc;
  --muted: #a7b5bd;
  --cyan: #17c7ee;
  --teal: #08e4b4;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; z-index: 10000; top: 12px; left: 12px;
  width: auto; height: auto; padding: 10px 14px; margin: 0;
  clip: auto; background: var(--white); color: var(--ink); border-radius: 8px;
}
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-compact { padding: 64px 0; }
.eyebrow {
  margin: 0 0 12px; color: var(--teal); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 4.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.25rem; }
.lead { max-width: 700px; color: #d7e0e4; font-size: clamp(1.12rem, 2vw, 1.35rem); }
.gradient-text {
  color: transparent; background: linear-gradient(100deg, var(--cyan), var(--teal));
  -webkit-background-clip: text; background-clip: text;
}

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5, 9, 13, .86); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 6px; }
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px;
  color: var(--ink); font-weight: 950; background: linear-gradient(135deg, var(--cyan), var(--teal));
}
.brand-name { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.site-nav a { color: #dbe4e7; text-decoration: none; font-size: .94rem; font-weight: 650; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--teal); }
.menu-toggle { display: none; padding: 10px; border: 0; background: transparent; color: white; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; }

.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 13px 21px; border: 1px solid transparent; border-radius: 999px;
  color: #021012; background: linear-gradient(100deg, var(--cyan), var(--teal));
  box-shadow: 0 10px 30px rgba(8, 228, 180, .16); text-decoration: none;
  font-weight: 800; line-height: 1.2; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(8, 228, 180, .25); }
.button-outline { border-color: rgba(255,255,255,.35); color: white; background: transparent; box-shadow: none; }
.button-outline:hover { border-color: var(--teal); box-shadow: none; }
.button-small { min-height: 42px; padding: 10px 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero { position: relative; min-height: 660px; overflow: hidden; background: #03070a; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,7,10,.98) 0%, rgba(3,7,10,.8) 42%, rgba(3,7,10,.18) 75%),
              linear-gradient(0deg, #05090d 0%, transparent 25%);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; min-height: 660px; padding: 80px 0; }
.hero-copy { width: min(680px, 63%); }
.hero h1 { margin-bottom: 24px; max-width: 770px; font-size: clamp(3rem, 6.6vw, 6rem); }
.hero .lead { max-width: 600px; }

.proof-strip { position: relative; z-index: 4; margin-top: -56px; }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  background: rgba(14, 24, 31, .96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.proof-item { min-height: 130px; padding: 26px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-icon {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid rgba(23,199,238,.5); border-radius: 50%; color: var(--cyan); font-weight: 900;
}
.proof-item strong { display: block; margin-bottom: 3px; font-size: 1.05rem; }
.proof-item span { color: var(--muted); font-size: .92rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading > div:first-child { max-width: 760px; }
.section-heading p:last-child { margin: 18px 0 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; min-height: 330px; padding: 30px; overflow: hidden;
  background: linear-gradient(145deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
}
.card::before {
  content: ""; position: absolute; right: -45px; bottom: -55px; width: 160px; height: 160px;
  border: 1px solid rgba(8,228,180,.24); border-radius: 50%; box-shadow: 0 0 70px rgba(23,199,238,.08);
}
.card-number { display: block; margin-bottom: 66px; color: var(--cyan); font-size: .86rem; font-weight: 800; letter-spacing: .12em; }
.card p { position: relative; margin: 15px 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.feature-panel {
  position: relative; min-height: 480px; padding: 42px; overflow: hidden;
  background: linear-gradient(135deg, #0d222a, #071014); border: 1px solid rgba(23,199,238,.2); border-radius: 34px;
}
.feature-panel::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -190px; top: -180px;
  border: 70px solid rgba(8,228,180,.07); border-radius: 50%;
}
.metric { position: relative; padding: 26px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { border-bottom: 0; }
.metric strong { display: block; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1; }
.metric span { display: block; margin-top: 9px; color: var(--muted); }
.check-list { padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

.cta-band {
  position: relative; overflow: hidden; padding: clamp(38px, 6vw, 72px); border-radius: 30px;
  background: linear-gradient(110deg, #16bee7, #08e4b4); color: #041013;
}
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -170px; border: 55px solid rgba(255,255,255,.16); border-radius: 50%; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { max-width: 650px; margin: 18px 0 26px; color: rgba(4,16,19,.78); font-size: 1.15rem; }
.cta-band .button { color: white; background: var(--ink); box-shadow: none; }

.page-hero { padding: 104px 0 72px; background: radial-gradient(circle at 80% 0%, rgba(23,199,238,.13), transparent 40%); }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { margin-top: 24px; }
.content-area { padding: 70px 0 100px; }
.prose { max-width: 780px; color: #d3dde1; }
.prose h2, .prose h3 { margin: 2.2rem 0 1rem; }
.prose a { color: var(--teal); }
.prose ul, .prose ol { padding-left: 1.4em; }

.service-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.service-row .service-id { color: var(--cyan); font-size: 1rem; font-weight: 900; letter-spacing: .12em; }
.service-row p { margin: 12px 0 0; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.post-card time { color: var(--teal); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.post-card h2 { margin-top: 18px; font-size: 1.45rem; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 14px 0 0; color: var(--muted); }
.empty-state { padding: 45px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 8vw, 90px); }
.contact-points { padding: 0; margin: 30px 0 0; list-style: none; }
.contact-points li { padding: 17px 0; border-bottom: 1px solid var(--line); color: #d7e0e4; }
.contact-points strong { display: block; color: white; }
.contact-form { padding: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 720; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #39505d; border-radius: 10px;
  color: white; background: #091116;
}
.field textarea { min-height: 150px; resize: vertical; }
.notice { margin-bottom: 22px; padding: 13px 16px; border-radius: 10px; }
.notice-success { color: #b7ffe8; background: rgba(8,228,180,.11); border: 1px solid rgba(8,228,180,.4); }
.notice-error { color: #ffd0d0; background: rgba(255,80,80,.1); border: 1px solid rgba(255,80,80,.4); }

.site-footer { border-top: 1px solid var(--line); background: #030609; }
.footer-main { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 50px; padding: 62px 0 46px; }
.footer-main p { max-width: 440px; color: var(--muted); }
.footer-title { display: block; margin-bottom: 15px; font-size: .82rem; color: var(--teal); letter-spacing: .13em; text-transform: uppercase; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #d7e0e4; text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); color: #82939c; font-size: .87rem; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 20px; background: #070d11; border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 13px 4px; }
  .site-nav .button { margin-top: 14px; text-align: center; }
  .menu-toggle { display: block; }
  .hero, .hero-content { min-height: 620px; }
  .hero-copy { width: 75%; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .card:last-child { grid-column: 1 / -1; min-height: 260px; }
  .split { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 72px; }
  .brand img { width: 47px; height: 47px; }
  .site-nav { top: 72px; }
  .hero, .hero-content { min-height: 610px; }
  .hero::after { background: linear-gradient(90deg, rgba(3,7,10,.97), rgba(3,7,10,.62)), linear-gradient(0deg, #05090d, transparent 34%); }
  .hero-image { object-position: 68% 50%; opacity: .62; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.3rem); }
  .proof-strip { margin-top: -30px; }
  .proof-grid, .card-grid, .post-grid { grid-template-columns: 1fr; }
  .proof-item { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .card:last-child { grid-column: auto; }
  .section-heading { display: block; }
  .section-heading .button { margin-top: 22px; }
  .feature-panel { min-height: 0; padding: 28px; }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .contact-layout, .footer-main { grid-template-columns: 1fr; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .contact-form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
