/* ============================================
   THE RUSTY CLOVER — Irish Pub, Galway
   Warm Rustic / Dark Green & Amber
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Permanent+Marker&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-darkest: #0d1a0d;
  --green-dark: #1a2e1a;
  --green-mid: #2a4a2a;
  --green-accent: #3d6b3d;
  --green-light: #5a8a5a;
  --amber: #c9a84c;
  --amber-light: #dfc47a;
  --amber-dark: #a8872e;
  --cream: #f5efe3;
  --cream-dark: #e8dcc8;
  --wood: #3e2a1a;
  --wood-light: #5c3d24;
  --text-light: #e8dcc8;
  --text-body: #c4b89e;
  --text-muted: #8a7e66;
  --divider: rgba(201,168,76,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--green-darkest);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.7;
}

/* GRAIN OVERLAY */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

::selection { background: var(--amber); color: var(--green-darkest); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-darkest); }
::-webkit-scrollbar-thumb { background: var(--amber-dark); border-radius: 3px; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
}
h1 { font-size: clamp(42px, 7vw, 80px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
p { max-width: 680px; }
a { color: var(--amber); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--amber-light); }

/* LOADER */
.loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--green-darkest);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon {
  font-family: 'Permanent Marker', cursive;
  font-size: 28px; color: var(--amber);
  animation: loaderPulse 1.2s ease infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 24px 48px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(13, 26, 13, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-logo {
  font-family: 'Permanent Marker', cursive;
  font-size: 22px;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-body);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--amber); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--amber); }
.nav-links a.active::after { width: 100%; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 200; background: none; border: none; padding: 8px;
}
.hamburger span { width: 26px; height: 2px; background: var(--amber); transition: all 0.3s ease; display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13, 26, 13, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  z-index: 150; opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 600;
  color: var(--cream); text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--amber); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Lora', serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--amber); color: var(--green-darkest); }
.btn-primary:hover { background: var(--amber-light); color: var(--green-darkest); }
.btn-outline { background: transparent; border: 1px solid var(--amber); color: var(--amber); }
.btn-outline:hover { background: var(--amber); color: var(--green-darkest); }

/* SECTION SHARED */
section { padding: 100px 48px; }
.section-tag {
  font-family: 'Permanent Marker', cursive;
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 24px; }
.section-subtitle {
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.section-divider {
  width: 60px; height: 2px;
  background: var(--amber-dark);
  margin: 40px 0;
}
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.text-center .section-divider { margin: 40px auto; }

/* PAGE HERO */
.page-hero {
  height: 55vh;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(13,26,13,0.5) 0%, rgba(13,26,13,0.7) 50%, rgba(13,26,13,0.95) 100%);
}
.page-hero-content { position: relative; z-index: 2; }

/* FOOTER */
footer {
  background: var(--green-dark);
  padding: 72px 48px 36px;
  border-top: 1px solid var(--divider);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 320px;
}
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--cream);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 968px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .page-hero { height: 45vh; min-height: 300px; }
}
