/*
Theme Name: Kings of Swing
Theme URI: https://kingsofswing.co.za
Author: Gareth du Toit
Description: Custom lightweight theme for the Kings of Swing golf club.
Version: 1.0
License: Proprietary
Text Domain: kos-theme
*/

:root {
  /* LIGHT THEME */
  --bg-page: #f5f0e8;
  --bg-card: #ffffff;
  --text-main: #1a3d2b;
  --text-muted: #5a7c6f;

  /* Original Brand Accents */
  --green-dark: #0f2d1e;
  --green-mid: #1a3d2b;
  --green-light: #2a5c3f;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;

  --font-head: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  --shadow-sm: 0 4px 6px rgba(15, 45, 30, 0.05);
  --shadow-md: 0 10px 20px rgba(15, 45, 30, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 45, 30, 0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-gold:hover {
  background: #b8973b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-container img {
  height: 40px;
  transition: var(--transition);
  border-radius: 4px;
}

.logo-container span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  transition: var(--transition);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header.scrolled .logo-container span {
  color: var(--green-dark);
  text-shadow: none;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header.scrolled nav ul li a {
  color: var(--text-main);
  text-shadow: none;
}

nav ul li a:hover {
  color: var(--gold);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  background-image: url('https://kosgolfclub.co.za/wp-content/uploads/2026/05/hero_golf_course_1778770896588.jpg');
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 45, 30, 0.4), rgba(15, 45, 30, 0.8));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  color: var(--gold);
}

.hero-content p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.about-strip {
  background: var(--bg-card);
  padding: 4rem 0;
  border-bottom: 2px solid var(--gold-light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  text-align: center;
}

.about-item .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.about-item h3 {
  margin-bottom: 0.5rem;
}

section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 2rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-page);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.see-all {
  display: block;
  text-align: center;
  margin-top: 3rem;
  font-weight: 600;
  color: var(--green-dark);
}

.see-all:hover {
  color: var(--gold);
}

.bg-alt {
  background-color: #ffffff;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.member-card {
  text-align: center;
}

.member-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.member-card:hover .member-avatar {
  border-color: var(--gold);
  transform: scale(1.05);
}

.cta-strip {
  background: linear-gradient(135deg, var(--gold), #a88836);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.cta-strip h2 {
  color: #fff;
}

.cta-strip .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-strip .btn-outline:hover {
  background: #fff;
  color: var(--gold);
}

.banking-details {
  margin-top: 3rem;
  font-family: monospace;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.1);
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
}

footer {
  background: var(--green-dark);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 30px;
  filter: brightness(0) invert(1);
}

footer h4 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #aaa;
  transition: var(--transition);
}

footer ul li a:hover {
  color: var(--gold);
}

.copyright {
  text-align: center;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .hero-buttons { flex-direction: column; }
}

/* Inner Page Hero */
.page-hero {
  height: 40vh;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  text-align: center;
  color: white;
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(15, 45, 30, 0.6), rgba(15, 45, 30, 0.9));
}
.page-hero .hero-content { padding-top: 60px; z-index: 10; position: relative; }
.page-hero h1 { color: var(--gold); }
.page-hero p { font-size: 1.25rem; font-style: italic; color: var(--cream); }

/* Generic Content Area (for WP Editor) */
.generic-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.generic-content p { margin-bottom: 1.5rem; }
.generic-content h2 { margin-top: 3rem; margin-bottom: 1rem; color: var(--green-dark); font-family: var(--font-head); }
.generic-content h3 { margin-top: 2rem; margin-bottom: 0.8rem; color: var(--green-mid); font-family: var(--font-head); }
.generic-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 2rem 0; }
.generic-content ul, .generic-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.generic-content li { margin-bottom: 0.5rem; }