/* ============================================
   Ballifeary Guest House - Main Stylesheet
   Inspired by Glenegedale House design
   Color Palette:
     Gold accent: #c1a972
     Dark bg:     #282c36
     Light text:  #e8e4dc
     White:       #ffffff
     Dark text:   #2a2a2a
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  color: #e8e4dc;
  background-color: #282c36;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #c1a972;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d4c090;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 300;
  line-height: 1.3;
}

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #ffffff;
}

h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #c1a972;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #c1a972;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #d0cdc6;
}

.text-gold {
  color: #c1a972;
}

.text-center {
  text-align: center;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem;
}

section {
  padding: 5rem 0;
}

.section-dark {
  background-color: #282c36;
}

.section-darker {
  background-color: #1e222a;
}


.section-neutral {
  background-color: #f8f8f8;
  border-top: 5px solid #c1a972;
  border-bottom: 5px solid #c1a972;
  padding: 2rem 3rem;
}


.section-offwhite {
  background-color: #f4f2ef;
}

.section-offwhite h2 {
  color: #282c36;
}

.section-offwhite p {
  color: #4a4843;
}

.section-offwhite .btn {
  background-color: #282c36;
  border-color: #c1a972;
  color: #c1a972;
}

.section-offwhite .btn:hover {
  background-color: #c1a972;
  border-color: #c1a972;
  color: #282c36;
}

.section-offwhite .content-text {
  text-align: center;
}

.section-light {
  background-color: #32363f;
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(40, 44, 54, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(193, 169, 114, 0.2);
  transition: background-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: #c1a972;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #9a978f;
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #d0cdc6;
  padding: 0.5rem 1.2rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background-color: #c1a972;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

nav a:hover,
nav a.active {
  color: #c1a972;
}

nav a.btn-nav {
  border: 1px solid #c1a972;
  color: #c1a972;
  padding: 0.5rem 1.5rem;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

nav a.btn-nav::after {
  display: none;
}

nav a.btn-nav:hover {
  background-color: #c1a972;
  color: #282c36;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background-color: #c1a972;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #282c36;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #d0cdc6;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-content .btn {
  margin-top: 1rem;
  background-color: #282c36;
  color: #c1a972;
  border-color: #c1a972;
}

.hero-content .btn:hover {
  background-color: #c1a972;
  color: #282c36;
  border-color: #282c36;
}

/* --- Page Hero (smaller, for inner pages) --- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  max-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #282c36;
}

.page-hero .hero-bg {
  background-attachment: fixed;
}

.page-hero .hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero .hero-content .tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #c1a972;
  color: #c1a972;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #c1a972;
  color: #282c36;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-group .btn {
  flex: 1 1 130px;
  max-width: 260px;
  text-align: center;
}

.btn-filled {
  background-color: #c1a972;
  color: #282c36;
}

.btn-filled:hover {
  background-color: #d4c090;
  color: #282c36;
}

/* --- Image Grid (Home page) --- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.image-grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-grid-item:hover img {
  transform: scale(1.05);
}

.image-grid-item .grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(40, 44, 54, 0.9) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-grid-item:hover .grid-overlay {
  opacity: 1;
}

.image-grid-item .grid-overlay h4 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: #c1a972;
}

.image-grid-item .grid-overlay p {
  font-size: 0.85rem;
  color: #d0cdc6;
  margin: 0;
}

/* --- Quote / Testimonial --- */
.quote-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #282c36;
}

.quote-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #c1a972;
  font-style: italic;
  margin-bottom: 1rem;
}

.quote-author {
  font-size: 0.85rem;
  color: #9a978f;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Welcome / About Section --- */
.welcome-section {
  text-align: center;
  padding: 5rem 2rem;
}

.welcome-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.9;
}

.divider {
  width: 60px;
  height: 1px;
  background-color: #c1a972;
  margin: 2rem auto;
}

/* --- Room Cards --- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.room-card {
  background-color: #32363f;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-4px);
}

.room-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.room-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.room-card:hover .room-card-image img {
  transform: scale(1.05);
}

.room-card-body {
  padding: 2rem;
}

.room-card-body h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.room-card-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.room-amenities span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9a978f;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(154, 151, 143, 0.3);
}

/* --- Content Sections --- */
.content-section {
  padding: 4rem 0;
}

.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-with-image.reverse {
  direction: rtl;
}

.content-with-image.reverse>* {
  direction: ltr;
}

.content-image {
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-text h2 {
  margin-bottom: 1.5rem;
}

.content-text p {
  margin-bottom: 1rem;
}

/* --- Menu / Breakfast List --- */
.menu-list {
  max-width: 600px;
  margin: 2rem auto;
}

.menu-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(193, 169, 114, 0.15);
  font-size: 1rem;
  color: #d0cdc6;
}

.menu-list li:last-child {
  border-bottom: none;
}

/* --- Restaurant / Attraction Cards --- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.guide-card {
  background-color: #32363f;
  padding: 2rem;
  border-left: 3px solid #c1a972;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  background-color: #383c46;
}

.guide-card h4 {
  font-size: 1.2rem;
  color: #c1a972;
  margin-bottom: 0.5rem;
}

.guide-card .card-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9a978f;
  margin-bottom: 1rem;
}

.guide-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.guide-card a.btn {
  margin-top: 3rem;
  background-color: #282c36;
  color: #c1a972;
  border-color: #c1a972;
  bottom: 20px;
}

.guide-card a.btn:hover {
  background-color: #c1a972;
  color: #282c36;
  border-color: #282c36;
}


/* --- Attraction Categories --- */
.category-header {
  text-align: center;
  padding: 3rem 0 1rem;
}

.category-header h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  text-transform: none;
  letter-spacing: 0;
}

/* --- Full Width Image Break --- */
.image-break {
  position: relative;
  height: 50vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.image-break-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-break-overlay h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #ffffff;
}

.btm_gold_line {
  border-bottom: 3px solid #c1a972;
}

.top_gold_line {
  border-top: 3px solid #c1a972;
}

/* --- Booking Banner --- */
.booking-banner {
  background-color: #f4f2ef;
  border-top: 5px solid #c1a972;
  border-bottom: 5px solid #c1a972;
  padding: 7rem 3rem;
  text-align: center;
}

.booking-banner h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #282c36;
  margin-bottom: 0.75rem;
}

.booking-banner p {
  color: #5a5750;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.booking-banner .btn {
  font-size: 0.85rem;
  margin-top: 2rem;
  padding: 1rem 3rem;
  border-color: #c1a972;
  background-color: #282c36;
  color: #c1a972;
}

.booking-banner .btn:hover {
  background-color: #c1a972;
  border-color: #282c36;
  color: #282c36;
}

.booking-banner .divider {
  background-color: #282c36;
}

/* --- Map --- */
.map-container {
  width: 100%;
  height: 450px;
  filter: grayscale(30%) brightness(0.9);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem 0;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: #c1a972;
}

/* --- Footer --- */
footer {
  background-color: #1a1d24;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(193, 169, 114, 0.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h4 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: #c1a972;
  margin-bottom: 1.5rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: #9a978f;
  line-height: 1.8;
}

.footer-col a {
  color: #9a978f;
  font-size: 0.85rem;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #c1a972;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(154, 151, 143, 0.15);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #6b6860;
}

/* --- FreeToBook Widget Styling --- */
.booking-widget-wrapper {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #1e222a;
}

/* --- Responsive --- */
@media (max-width: 1024px) {

  .hero-bg,
  .page-hero .hero-bg,
  .image-break {
    background-attachment: scroll;
  }
}

@media (max-width: 968px) {
  nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(40, 44, 54, 0.98);
    flex-direction: column;
    padding: 0;
    border-bottom: 1px solid rgba(193, 169, 114, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.45s ease;
  }

  .container-narrow {
    margin: 0 auto;
    padding: 0 1rem;
  }

  .welcome-section {
    text-align: justify;
    padding: 5rem 1rem;
  }


  nav.active {
    max-height: 500px;
    padding: 1rem 0;
  }

  nav a {
    padding: 0.8rem 2rem;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }

  nav.active a {
    opacity: 1;
    transform: translateY(0);
  }

  nav.active a:nth-child(1) {
    transition-delay: 0.05s;
  }

  nav.active a:nth-child(2) {
    transition-delay: 0.1s;
  }

  nav.active a:nth-child(3) {
    transition-delay: 0.15s;
  }

  nav.active a:nth-child(4) {
    transition-delay: 0.2s;
  }

  nav.active a:nth-child(5) {
    transition-delay: 0.25s;
  }

  nav.active a:nth-child(6) {
    transition-delay: 0.3s;
  }

  nav.active a:nth-child(7) {
    transition-delay: 0.35s;
  }

  nav a.btn-nav {
    border: none;
    margin-left: 0;
    border-top: 1px solid rgba(193, 169, 114, 0.15);
  }

  .menu-toggle {
    display: flex;
  }

  .page-hero .hero-bg[style*="top -200px"] {
    background-position: center top -80px !important;
  }

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

  .content-with-image {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-with-image.reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  section {
    padding: 3rem 0;
  }

  .image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 500px;
  }

  .page-hero {
    min-height: 280px;
    height: 40vh;
  }

  .page-hero .hero-bg[style*="top -200px"] {
    background-position: center !important;
  }

  .container {
    padding: 0 1.2rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 260px;
    margin-bottom: 1rem;
    flex: none;
  }

  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}