/* Jake Dunstan Golf Coaching — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #f8f5ee;
  --cream-alt: #f0ead9;
  --ink: #1c1b17;
  --ink-soft: #4a4840;
  --green: #24402e;
  --green-soft: #35553f;
  --green-pale: #e7ede6;
  --gold: #a9824f;
  --white: #ffffff;
  --line: rgba(28, 27, 23, 0.12);
  --shadow: 0 20px 50px -25px rgba(28, 27, 23, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-soft);
  margin-bottom: 14px;
}

.eyebrow.on-dark { color: #b9c9bb; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-soft); border-color: var(--green-soft); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 245, 238, 0.6);
}
.btn-outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-small { padding: 11px 24px; font-size: 0.9rem; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a.nav-link:hover,
.nav-links a.nav-link.active { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 28px 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-small { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 25%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 18, 0.15) 0%, rgba(15, 20, 14, 0.55) 65%, rgba(10, 15, 10, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 28px 72px;
  max-width: var(--container);
  margin: 0 auto;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 820px;
  color: var(--white);
}

.hero-content .hero-sub {
  margin-top: 20px;
  max-width: 520px;
  font-size: 1.1rem;
  color: rgba(248, 245, 238, 0.88);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Page hero (dark, for sub-pages) ---------- */

.page-hero {
  background: var(--green);
  color: var(--cream);
  padding: 120px 0 90px;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.page-hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 760px;
}

.page-hero .hero-sub {
  margin-top: 18px;
  max-width: 560px;
  color: rgba(248, 245, 238, 0.82);
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Offer cards ---------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 36px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-card h3 { font-size: 1.5rem; }

.offer-card p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 320px;
}

.offer-card .btn { margin-top: 26px; }

.offer-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 32px;
  border: 6px solid var(--cream-alt);
}
.offer-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.price-card h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card .tier-label {
  margin: 28px 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

.price-card .tier-label:first-of-type { margin-top: 6px; }

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: none; }

.price-row .desc { color: var(--ink-soft); font-size: 0.98rem; }
.price-row .amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 20px;
}

.price-card.accent {
  background: var(--green);
  color: var(--cream);
}
.price-card.accent .tier-label { color: #cfe0cf; }
.price-card.accent .price-row { border-bottom-color: rgba(248, 245, 238, 0.18); }
.price-card.accent .desc { color: rgba(248, 245, 238, 0.78); }
.price-card.accent .amount { color: var(--cream); }
.price-card.accent h3 { color: var(--cream); }

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */

.cta-banner {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  z-index: 0;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 15, 12, 0.92) 20%, rgba(15, 15, 12, 0.55) 100%);
  z-index: 0;
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.cta-banner p {
  margin-top: 18px;
  color: rgba(248, 245, 238, 0.82);
  max-width: 480px;
}

.cta-banner .btn { margin-top: 30px; }

@media (max-width: 780px) {
  .cta-banner { grid-template-columns: 1fr; padding: 52px 28px; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-copy p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 20px; }
.about-copy p:first-of-type { margin-top: 24px; }

.credentials {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.credential-pill {
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 340px; margin: 0 auto; }
}

/* ---------- Technology grid ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tech-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.tech-icon svg { width: 28px; height: 28px; }

.tech-card h3 { font-size: 1.3rem; }
.tech-card p { color: var(--ink-soft); }

@media (max-width: 760px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 72px;
}
.photo-strip figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info {
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  height: fit-content;
}
.contact-info h3 { color: var(--cream); font-size: 1.4rem; }
.contact-info p { margin-top: 16px; color: rgba(248, 245, 238, 0.82); }
.contact-info .btn { margin-top: 26px; }

.contact-info .info-line {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 245, 238, 0.2);
  font-size: 0.95rem;
  color: rgba(248, 245, 238, 0.82);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(248, 245, 238, 0.7);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(248, 245, 238, 0.14);
}

.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  color: var(--cream);
}

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 0.95rem; color: rgba(248, 245, 238, 0.75); }
.footer-links a:hover { color: var(--cream); }

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */

.stack { display: flex; flex-direction: column; gap: 8px; }
.text-center { text-align: center; }
