/* ═══════════════════════════════════════════
   TRALEE PITCH AND PUTT CLUB — Website Styles
   Shared across all pages
═══════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --navy: #0C1A3A;
  --navy-light: #142856;
  --navy-dark: #080F24;
  --gold: #D4A012;
  --gold-hover: #B8890F;
  --gold-light: #FDF6E3;
  --gold-pale: #FAF0D1;
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --cream: #FAFBFD;
  --text-dark: #0F1A2E;
  --text-body: #475569;
  --text-muted: #5A6978;
  --border: #D6DCE5;
  --border-light: #E8ECF1;
  --success: #1E8449;
  --shadow-sm: 0 1px 3px rgba(12,26,58,0.06);
  --shadow-md: 0 4px 16px rgba(12,26,58,0.1);
  --shadow-lg: 0 8px 32px rgba(12,26,58,0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --transition: 0.25s ease-out;
  --max-width: 1200px;
}

/* ─── Focus ─── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-brand img {
  height: 70px;
  width: auto;
}
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.nav-brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-links a.active {
  color: var(--gold);
  background: rgba(212,160,18,0.1);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 9px 14px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.82rem !important;
}
.nav-cta:hover {
  background: var(--gold-hover) !important;
  transform: translateY(-1px);
}

/* Social icons */
/* Social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}
.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-social-link svg {
  width: 18px;
  height: 18px;
}
.nav-social-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  cursor: default;
}

.dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
    margin-top: 0;
    display: none;
    width: 100%;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { display: block; width: 100%; text-align: center; }
  .dropdown-menu a { padding: 8px 16px !important; font-size: 0.85rem !important; display: block; width: 100%; }

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px !important;
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.7) !important;
  border-radius: 0 !important;
  transition: all var(--transition);
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.08) !important;
  color: var(--white) !important;
}
.dropdown-menu a.active {
  color: var(--gold) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
/* Update the Hero to be slanted and deep navy */

.page-hero, .hero {
  background: linear-gradient(135deg, #0a192f 0%, #06101f 50%);
  padding: 160px 24px 100px; /* More space looks more premium */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); /* This creates the slant */
  position: relative;
}

/* Add a gold "accent" line along the slant */
.page-hero::before, .hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(0 90%, 100% 0, 100% 100%, 0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(1); /* Ensures no accidental dimming */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 680px;
  padding: clamp(48px, 8vh, 96px) 0;
  animation: fadeUp 0.8s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 3px 9px rgba(0, 0, 0, 0.9);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 3px 12px rgba(0, 0, 0, 0.8);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 3px 12px rgba(0, 0, 0, 0.9);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--white);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.65;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-hover); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-alt {
  background: var(--off-white);
}
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.overline {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-navy .section-header h2 { color: var(--white); }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-navy .section-header p { color: rgba(255,255,255,0.65); }

/* ═══════════════════════════════════════════
   FEATURE / INFO CARDS
═══════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PRICING / MEMBERSHIP TABLE
═══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured::before {
  display: none;
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.pricing-card .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.pricing-card .price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-card .price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════
   INFO BAR / HOURS
═══════════════════════════════════════════ */
.info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(212,160,18,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.info-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.info-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   ABOUT / TWO COLUMN
═══════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* ═══════════════════════════════════════════
   FACILITIES GRID
═══════════════════════════════════════════ */
.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.facility-row {
  display: flex;
  gap: 20px;
  padding: 36px 32px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  transition: background var(--transition);
}
.facility-row:nth-child(even) {
  border-right: none;
}
.facility-row:nth-last-child(-n+2) {
  border-bottom: none;
}
.facility-row:hover {
  background: var(--off-white);
}
.facility-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  padding-top: 4px;
  min-width: 26px;
  flex-shrink: 0;
}
.facility-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.facility-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.two-col-text p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.two-col-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.two-col-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.two-col-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 3rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--navy-dark);
  padding: 60px 24px 24px;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand-sub {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-image img, .two-col-image-placeholder { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav-social { display: none; }
  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
    margin-top: 0;
    display: none;
    /* Reset opacity/visibility/transform for mobile display:none toggle */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 8px 16px !important; font-size: 0.85rem !important; }
  .hero {
    min-height: 70vh;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-content {
    text-align: center;
  }
  .hero p {
    margin: 0 auto 28px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  .facility-row {
    border-right: none !important;
  }
  .facility-row:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border-light) !important;
  }
  .facility-row:last-child {
    border-bottom: none !important;
  }
  .section { padding: 50px 16px; }
  .section-header h2 { font-size: 1.75rem; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Premium Card Styling */
.category-card, .honour-card, .facility-row {
  border: none !important; /* Removes the thin grey lines */
  background: var(--white);
  box-shadow: 0 10px 30px rgba(12, 26, 58, 0.08); /* Soft navy-tinted shadow */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Makes cards lift up when you point at them */
.category-card:hover, .honour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(12, 26, 58, 0.15);
}

/* =========================================
   SHARED INNER PAGE HERO
========================================= */
.page-hero {
  background: var(--navy);
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.page-hero-content {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 16px 40px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}
/* ═══════════════════════════════════════════
   SKIP LINK (Accessibility)
═══════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}