/* ========================================
   Kells Bay House – Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --slate: #2c3e50;
  --gold: #c9956b;
  --gold-dark: #b07d55;
  --off-white: #faf8f5;
  --white: #ffffff;
  --gray-100: #f0eeeb;
  --gray-200: #e0ddd8;
  --gray-400: #a09a92;
  --gray-600: #6b6560;
  --gray-800: #3d3833;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: .3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--slate);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.section-subtitle {
  color: var(--gray-600);
  max-width: 600px;
  margin: .5rem auto 0;
}

/* --- Layout Utilities --- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section { padding: 4rem 0; }
.section--alt { background: var(--white); }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--slate { background: var(--slate); color: var(--white); }
.btn--slate:hover { background: #1a252f; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { border: 2px solid var(--slate); color: var(--slate); }
.btn--outline:hover { background: var(--slate); color: var(--white); }
.btn--whatsapp { background: #25d366; color: var(--white); }
.btn--whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate);
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.btn.active,
.nav-links a.btn:hover { color: var(--white); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { width: 100%; }
.nav-cta { margin-left: .5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform var(--transition), visibility var(--transition);
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links .nav-cta {
    width: 100%;
    justify-content: center;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    margin-left: 0;
  }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,62,80,.45) 0%, rgba(44,62,80,.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}
.hero__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .75rem;
  opacity: .9;
}
.hero h1 { margin-bottom: 1rem; color: var(--white); }
.hero__desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: .9;
  line-height: 1.7;
}

/* ========================================
   HIGHLIGHTS GRID
   ======================================== */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.highlight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.highlight-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  color: var(--gold);
}
.highlight-card__icon svg { width: 28px; height: 28px; }
.highlight-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.highlight-card p { font-size: .9rem; color: var(--gray-600); }

/* ========================================
   PREVIEW STRIP (Home page gallery teaser)
   ======================================== */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.preview-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}
.preview-strip img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
@media (max-width: 600px) {
  .preview-strip { grid-template-columns: 1fr; }
}

/* ========================================
   ATTRACTION CARDS
   ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card__body { padding: 1.25rem; }
.card__body h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.card__body p { font-size: .9rem; color: var(--gray-600); }

/* ========================================
   GALLERY
   ======================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__caption { opacity: 1; }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox__caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1rem;
  text-align: center;
  background: rgba(0,0,0,.5);
  padding: .5rem 1.5rem;
  border-radius: var(--radius);
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.lightbox__btn:hover { background: rgba(255,255,255,.3); }
.lightbox__btn--prev { left: 1rem; }
.lightbox__btn--next { right: 1rem; }
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,.15);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ========================================
   LOCATION PAGE
   ======================================== */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  max-height: 450px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.direction-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.direction-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.direction-card__icon svg { width: 22px; height: 22px; }
.direction-card h4 { font-size: 1rem; margin-bottom: .25rem; }
.direction-card p { font-size: .88rem; color: var(--gray-600); }

/* Amenities grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.amenity {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  font-size: .92rem;
}
.amenity svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.contact-buttons .btn { min-width: 200px; justify-content: center; }

.booking-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  margin: 0 auto 3rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.booking-info .price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}
.booking-info .price-period {
  font-size: 1rem;
  color: var(--gray-600);
}

.enquiry-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: .4rem;
  font-size: .92rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  transition: border-color var(--transition);
  background: var(--off-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--slate);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.footer p, .footer a { font-size: .9rem; }
.footer a:hover { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .82rem;
  opacity: .6;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ========================================
   PAGE HEADERS (inner pages)
   ======================================== */
.page-header {
  background: var(--slate);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: .5rem; }
.page-header p { opacity: .8; max-width: 550px; margin: 0 auto; }

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

/* Tablet & below */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  /* Header – stronger on mobile */
  .header {
    background: rgba(255,255,255,1);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
  }
  .logo { font-size: 1.2rem; }
  .hamburger {
    width: 32px;
    padding: 6px 0;
    gap: 6px;
  }
  .hamburger span { height: 3px; }
  .nav-cta {
    padding: .5rem 1rem;
    font-size: .8rem;
    margin-left: 0;
  }

  .section { padding: 2.5rem 0; }

  /* Hero */
  .hero { min-height: 65vh; }
  .hero__content { padding: 1.5rem; }
  .hero h1 { font-size: 1.6rem; margin-bottom: .5rem; }
  .hero__desc { font-size: .88rem; margin-bottom: 1.25rem; line-height: 1.5; }
  .hero__tagline { font-size: .8rem; letter-spacing: 1.5px; margin-bottom: .5rem; }

  /* Highlights */
  .highlights { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .highlight-card { padding: 1.5rem 1rem; }
  .highlight-card__icon { width: 48px; height: 48px; }
  .highlight-card__icon svg { width: 24px; height: 24px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .gallery-item__caption { opacity: 1; font-size: .78rem; padding: .5rem .75rem; }

  /* Lightbox */
  .lightbox__img { max-width: 95vw; max-height: 75vh; }
  .lightbox__btn { width: 40px; height: 40px; font-size: 1.25rem; }
  .lightbox__btn--prev { left: .5rem; }
  .lightbox__btn--next { right: .5rem; }
  .lightbox__close { top: .75rem; right: .75rem; width: 38px; height: 38px; }
  .lightbox__caption { bottom: 1rem; font-size: .85rem; padding: .4rem 1rem; }

  /* Map */
  .map-container { aspect-ratio: 4/3; max-height: none; }

  /* Directions */
  .directions-grid { grid-template-columns: 1fr; }

  /* Amenities */
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }

  /* Booking */
  .booking-info { padding: 1.75rem; margin-bottom: 2rem; }
  .booking-info .price { font-size: 2rem; }

  /* Form */
  .enquiry-form { padding: 1.5rem; }

  /* Contact buttons */
  .contact-buttons { flex-direction: column; align-items: center; }
  .contact-buttons .btn { width: 100%; max-width: 320px; }

  /* Page header */
  .page-header { padding: 2.5rem 0 2rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-grid { gap: 1.5rem; margin-bottom: 1.5rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { width: 92%; }

  .hero { min-height: 60vh; }
  .hero__content { padding: 1rem; }

  .btn--lg { padding: .85rem 1.5rem; font-size: .95rem; }

  /* Highlights stack to single column */
  .highlights { grid-template-columns: 1fr; }

  /* Gallery single column */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Filter buttons scroll horizontally */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
  .filter-btn { flex-shrink: 0; }

  /* Amenities single column */
  .amenities-grid { grid-template-columns: 1fr; }

  /* Preview strip already single column from 600px rule */

  /* Form rows always stack */
  .form-row { grid-template-columns: 1fr; }

  /* Lightbox full width */
  .lightbox__img { max-width: 100vw; border-radius: 0; }
  .lightbox__btn { width: 36px; height: 36px; font-size: 1.1rem; }
  .lightbox__btn--prev { left: .25rem; }
  .lightbox__btn--next { right: .25rem; }
}
