/* Styles extracted from frank_lally_golf_site.html */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  color: #333;
}

/* Header and Navigation */
header {
  background: linear-gradient(135deg, #1e5128 0%, #2d6a3e 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  will-change: transform;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.logo a{ color: white; text-decoration: none; display:flex; align-items:center; gap:0.75rem;}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 4px;
}

.site-logo.small{ width:36px; height:36px; padding:3px }

.logo-text{ font-size:1.25rem; font-weight:700;}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1.1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffd700;
}

/* Hero Section */
.hero {
  /* Uses `assets/images/jvville.jpg` as the hero image (if present). */
  position: relative;
  background: url('../images/jvville.jpg'), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a7c59" width="1200" height="600"/><path fill="%23357042" d="M0 400 Q300 350 600 400 T1200 400 V600 H0 Z"/></svg>');
  background-size: cover, cover;
  background-position: center center, center;
  background-attachment: fixed, scroll;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
}

/* Dark overlay to improve text contrast on top of the photo */
.hero::before{
  content: '';
  position: absolute;
  inset: 0;
  /* Darken overlay to improve contrast for readability */
  background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.45));
  pointer-events: none;
  z-index: 0;
}

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

.hero h1{ text-shadow: 4px 4px 18px rgba(0,0,0,0.7); }
.hero p{ text-shadow: 2px 2px 8px rgba(0,0,0,0.55); }

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: #ffd700;
  color: #1e5128;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Main Content */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section h2 {
  font-size: 2.5rem;
  color: #1e5128;
  margin-bottom: 2rem;
  text-align: center;
}

.hidden {
  display: none;
}

/* About Us Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
  width: 100%;
  height: 400px;
  background: #e0e0e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Pictures Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  height: 250px;
  background: #e0e0e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* Winners Section */
.winners-highlight {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 3rem;
  text-align: center;
}

.winners-highlight h3 {
  color: #1e5128;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.winners-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.winner-card {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.winner-card h4 {
  color: #1e5128;
  margin-bottom: 0.5rem;
}

/* Sponsors Section */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.sponsor-card {
  background: white;
  border: 2px solid #1e5128;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #1e5128;
  transition: all 0.3s;
}

.sponsor-card:hover {
  background: #1e5128;
  color: white;
}

/* Registration Form */
.registration-form {
  max-width: 700px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e5128;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e5128;
}

.foursome-section {
  background: white;
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.foursome-section h4 {
  color: #1e5128;
  margin-bottom: 1rem;
}

.submit-button {
  background: #1e5128;
  color: white;
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-button:hover {
  background: #2d6a3e;
  transform: translateY(-2px);
}

/* Donate Section */
.donate-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.donate-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.venmo-button {
  background: #008CFF;
  color: white;
  padding: 1.5rem 3rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.3rem;
  display: inline-block;
  transition: all 0.3s;
}

.venmo-button:hover {
  background: #0077d4;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #1e5128;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
  /* Disable fixed background on small screens for performance */
  .hero{ background-attachment: scroll, scroll; }
}

/* Responsive iframe wrapper for embedded forms */
.iframe-wrapper{max-width:900px;width:100%;margin:0 auto}
.iframe-wrapper iframe{width:100%;height:80vh;border:0;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.12)}

@media (max-width:480px){
  .iframe-wrapper iframe{height:1200px}
}

@media (min-width:1200px){
  .iframe-wrapper iframe{height:82vh}
}

/* About page gallery */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.about-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}
.about-thumb:hover{ transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.18)}

@media (max-width:480px){
  .about-thumb{ height:120px }
}

/* QR code styling for Payments page */
.qr-block{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-top:1rem}
.qr-image{width:200px;height:200px;border-radius:8px;box-shadow:0 8px 26px rgba(0,0,0,0.15);}
.qr-caption{font-size:0.95rem;color:#444;text-align:center}
