/* ── KILLARNEY.AI — SHARED STYLES ── */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES — LIGHT MODE (Misty Woodland Morning) ── */
:root {
  --bg:           #f4f1ec;
  --bg-alt:       #ede8e0;
  --nav-bg:       #f4f1ec;
  --ink:          #1e2a1f;
  --ink-muted:    #5a6b5c;
  --accent:       #3a7d44;
  --accent-light: #e8f0e9;
  --accent-gold:  #b8860b;
  --rule:         #c8d4c9;
  --card-bg:      #ffffff;
  --card-shadow:  0 2px 12px rgba(30,42,31,0.08);
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'Source Sans 3', system-ui, sans-serif;
  --hero-overlay: rgba(30,42,31,0.35);
}

/* ── DARK MODE (Ancient Forest Canopy) ── */
[data-theme="dark"] {
  --bg:           #0d1a0e;
  --bg-alt:       #111f12;
  --nav-bg:       #0d1a0e;
  --ink:          #e8f0e9;
  --ink-muted:    #8aab8c;
  --accent:       #5aad64;
  --accent-light: #1a2e1b;
  --accent-gold:  #d4a843;
  --rule:         #1e3320;
  --card-bg:      #111f12;
  --card-shadow:  0 2px 12px rgba(0,0,0,0.4);
  --hero-overlay: rgba(0,0,0,0.5);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background .3s, color .3s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.nav-logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-muted);
  transition: border-color .2s, color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0; bottom: 0;
  background: var(--nav-bg);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a.active { color: var(--accent); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 480px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, var(--hero-overlay) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  max-width: 700px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-top: 12px;
  max-width: 500px;
}

/* Hero placeholder (when no image) */
.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION ── */
.section {
  padding: 64px 0;
}
.section-sm { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 560px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ── PILLAR CARD ── */
.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--card-shadow);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30,42,31,0.12);
  text-decoration: none;
}

.pillar-card-img {
  height: 180px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

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

.pillar-card-body {
  padding: 20px;
}

.pillar-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.pillar-card-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.pillar-card-body p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.pillar-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ── SUB-PAGE CARD (smaller, text-forward) ── */
.sub-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--card-shadow);
}
.sub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30,42,31,0.1);
  text-decoration: none;
}
.sub-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.sub-card-text h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.sub-card-text p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 16px 0;
}
.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--rule); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── WEATHER WIDGET ── */
.weather-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
}

/* ── UTILITY ── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--ink-muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { height: 360px; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 0; }
}
