/* Navbar link underline hover effect */
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.2s;
}
.navbar-nav .nav-link::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 3px;
  background: var(--brand-color);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s, transform 0.2s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}
/* Typography & spacing - global enhancements
   - Headings: Playfair Display (serif)
   - Body: Poppins (sans-serif)
   - Spacing variables and responsive scale
   - Rounded buttons & smooth hover effects
   - Respects existing color variables (DO NOT redefine brand colors)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

:root{
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

  /* Spacing scale (mobile-first) */
  --space-xxs: 0.25rem; /* 4px */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */

  --btn-radius: 0.6rem;
  --transition-fast: 180ms;
  --transition-default: 300ms;

  /* Respect existing body/text color variable if present */
  --text-color: var(--text, #121212);
}

/* Base: readable line-height and font smoothing */
html{ font-family: var(--font-body); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
body{ font-family: var(--font-body); color: var(--text-color); line-height: 1.65; font-size: 16px; }

/* Headings: elegant serif, tighter line-height, responsive sizes */
h1,h2,h3,h4,h5,h6{ font-family: var(--font-heading); color: inherit; line-height: 1.12; margin-top: 0; margin-bottom: calc(var(--space-md)); letter-spacing: -0.01em; }

h1{ font-size: clamp(2rem, 6.5vw, 3.5rem); }
h2{ font-size: clamp(1.6rem, 5.2vw, 2.2rem); }
h3{ font-size: clamp(1.25rem, 3.8vw, 1.5rem); }
h4{ font-size: 1.125rem; }
h5{ font-size: 1rem; }
h6{ font-size: 0.95rem; }

/* Paragraphs and lead paragraphs */
p{ margin-bottom: var(--space-md); color: #333; }
.lead{ font-size: 1.075rem; font-weight: 400; color: #333; margin-bottom: var(--space-lg); }

/* Section spacing (mobile-first) */
section{ padding-block: var(--space-md); }
@media (min-width: 768px){ section{ padding-block: var(--space-lg); } }

/* Improve headings within containers */
.section-title{ text-align:center; margin-bottom: var(--space-md); }

/* Buttons: rounded, subtle lift and smooth hover effects */
.btn{ border-radius: var(--btn-radius); transition: transform var(--transition-default) ease, box-shadow var(--transition-default) ease, color var(--transition-fast) ease, background-color var(--transition-fast) ease; }
.btn:hover, .btn:focus{ transform: translateY(-3px); box-shadow: 0 10px 25px rgba(72,0,0,0.12); }
.btn:active{ transform: translateY(-1px); }

/* For light buttons, make hover a soft shadow rather than color swap */
.btn-light:hover{ box-shadow: 0 8px 20px rgba(0,0,0,0.08); }

/* Links: gentle color shift and underline reveal */
a{ transition: color var(--transition-fast) ease, text-decoration-color var(--transition-fast) ease; }
a:hover, a:focus{ color: var(--accent); text-decoration-color: var(--accent); }

/* Utility: compact components */
.kicker{ text-transform: uppercase; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; }

/* Card body spacing refinement */
.card-body{ padding: calc(var(--space-sm)); }
.card .card-title{ margin-bottom: var(--space-xs); }
.card .card-text{ color: #444; }

/* Make images a touch more elegant on rounded cards */
.img-fluid{ max-width:100%; height:auto; display:block; }
img.rounded-start, img.rounded{ border-radius: 0.5rem; }

/* Focus styles for accessibility */
:focus{ outline: 3px solid rgba(72,0,0,0.12); outline-offset: 3px; }
:focus-visible{ outline: 3px solid rgba(72,0,0,0.18); }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation-duration: 0.001ms !important; }
  html{ scroll-behavior: auto; }
}

/* Small tweaks for large screens to keep comfortable measure */
@media (min-width: 1200px){ body{ max-width: 1200px; margin: 0 auto; } }

/* Optional: subtle drop-in entrance for .fade-in to pair with IntersectionObserver */
.fade-in{ opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms ease; }
.fade-in.show{ opacity: 1; transform: translateY(0); }

/* small utility classes for staggered reveals */
.delay-1{ transition-delay: 120ms !important; }
.delay-2{ transition-delay: 220ms !important; }
.delay-3{ transition-delay: 320ms !important; }

/* Full-screen hero */
.hero-full{
  /* make hero shorter so buttons sit roughly 5cm from the bottom on most displays */
  min-height: calc(100vh - 5cm);
  max-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* If the calc expression is too large on very small viewports, fallback to a comfortable min-height */
@media (max-width: 767.98px){
  .hero-full{ min-height: 56vh; padding-block: 2rem 2rem; align-items: center; }
}

.hero-full::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
  z-index: 0;
}
.hero-full .container{ position: relative; z-index: 1; }
.hero-full h1, .hero-full .lead{ color: #fff; text-shadow: 0 6px 18px rgba(0,0,0,0.35); }

/* Hero content fade-in (stagger via .delay-*) */
.hero-full .fade-in{ opacity: 0; transform: translateY(8px); transition: opacity 480ms ease, transform 480ms ease; }
.hero-full .fade-in.show{ opacity: 1; transform: translateY(0); }

/* Brand buttons */
.btn-brand{
  background: var(--brand-color);
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(72,0,0,0.12);
}
.btn-brand:hover, .btn-brand:focus{ filter: brightness(0.92); opacity: 0.98; }

.btn-outline-brand{
  background: transparent;
  color: var(--brand-color);
  border: 1px solid var(--brand-color);
}
.btn-outline-brand:hover, .btn-outline-brand:focus{
  background: var(--brand-color);
  color: #fff;
}

/* Responsive hero paddings */
@media (max-width: 575.98px){
  .hero-full .lead{ font-size: 0.95rem; }
  .hero-full .btn-lg{ padding: .65rem 1rem; font-size: .95rem; }
}

/* Info bar: compact card-style quick facts */
.info-bar{ background: rgba(255,255,255,0.96); border-top: 1px solid rgba(0,0,0,0.04); }
.info-card{ border-radius: .6rem; background: #fff; border: 1px solid rgba(0,0,0,0.04); transition: transform .25s ease, box-shadow .25s ease; display:flex; gap:.75rem; align-items:flex-start; }
.info-card:hover, .info-card:focus{ transform: translateY(-6px); box-shadow: 0 12px 30px rgba(72,0,0,0.08); }
.info-icon{ width:44px; height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:.6rem; color:#fff; background:var(--brand-color); font-size:1.05rem; flex:0 0 auto; }
.info-card h6{ margin:0; font-size:1rem; font-weight:600; }
.info-card p{ margin:0; color:#555; font-size:.95rem; overflow-wrap:anywhere; word-break:break-word; }
.info-card:focus{ outline: 3px solid rgba(72,0,0,0.12); outline-offset: 3px; }
.info-card > div:last-child{ flex:1 1 auto; min-width:0; }

/* On small screens, make info cards slightly more compact */
@media (max-width: 575.98px){
  .info-card{ padding: .75rem; }
  .info-icon{ width:40px; height:40px; min-width:40px; }
}

/* About section */
.about-section{ background: transparent; }
.about-img{ width:100%; height:420px; object-fit:cover; object-position:center 40%; border-radius: .75rem; box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
 .about-img-focus{ /* tweak to keep face visible - adjusted to center face better */
  object-position: 45% 12%;
  transition: object-position 220ms ease;
}
.about-text{ font-size: 1rem; color: #333; line-height: 1.7; }
@media (max-width: 767.98px){
  .about-img{ height:260px; border-radius: .6rem; }
  .about-img-focus{ object-position: 50% 22%; }
  .about-text{ margin-top: .5rem; }
}

/* Rooms & Accommodation */
.rooms-section h3{ margin-bottom: .5rem; }
.room-card{ overflow:hidden; border-radius: .65rem; transition: transform .28s ease, box-shadow .28s ease; }
.room-card .card-img-top{ height:220px; object-fit:cover; border-top-left-radius: .65rem; border-top-right-radius: .65rem; }
.room-card .card-body{ padding: 1rem; }
.room-card:hover, .room-card:focus-within{ transform: translateY(-8px); box-shadow: 0 18px 40px rgba(72,0,0,0.08); }
.features .feature{ display:inline-flex; align-items:center; gap:.35rem; padding:.25rem .5rem; border-radius:.45rem; background: rgba(72,0,0,0.04); color: #333; font-size: .85rem; }
.features .feature i{ color: var(--brand-color); }
.room-card .btn{ margin-top:.25rem; }
@media (max-width: 575.98px){
  .room-card .card-img-top{ height:180px; }
}

/* Activities / Things To Do */
.activities-section{ background: #fbfbfb; }
.activities-section .activity-card{ border-radius:.6rem; background: #fff; border: 1px solid rgba(0,0,0,0.04); transition: transform .22s ease, box-shadow .22s ease; }
.activities-section .activity-card:hover, .activities-section .activity-card:focus{ transform: translateY(-6px); box-shadow: 0 12px 28px rgba(72,0,0,0.06); }
.activity-icon{ width:44px; height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; border-radius:.45rem; color: #fff; background: rgba(72,0,0,0.95); font-size:1.05rem; }
.activities-section h6{ margin:0; font-size:1rem; font-weight:600; }
.activities-section p{ margin:0; color: #666; }
@media (max-width: 575.98px){
  .activity-icon{ width:40px; height:40px; min-width:40px; }
}

/* Gallery / Masonry */
.gallery-filters{ margin-bottom: var(--space-md); display:flex; gap:.5rem; flex-wrap:wrap; }
.gallery-filter{ padding:.45rem .8rem; border-radius:.45rem; background:#fff; border:1px solid rgba(0,0,0,0.06); color:#333; cursor:pointer; }
.gallery-filter.active{ background:var(--brand-color); color:#fff; }
.gallery-masonry{ column-gap: var(--space-md); column-count: 1; }
@media (min-width: 576px){ .gallery-masonry{ column-count: 2; } }
@media (min-width: 992px){ .gallery-masonry{ column-count: 3; } }
.gallery-masonry .masonry-item{ break-inside: avoid; margin-bottom: var(--space-md); display:block; }
.gallery-masonry img{ width:100%; height:auto; display:block; border-radius:.6rem; }
.gallery-caption{ padding:.6rem 0; font-size:.95rem; color:#444 }

/* Modal navigation buttons */
.modal-nav{ position:absolute; top:50%; transform:translateY(-50%); z-index: 1052; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; opacity:0.96; }
.modal-nav.prev{ left:12px; }
.modal-nav.next{ right:12px; }
.modal-nav i{ font-size:1rem; }

@media (max-width: 575.98px){ .modal-nav{ width:40px; height:40px; } }

/* Testimonials */
.testimonials-section{ background: transparent; }
.testimonials-section .testimonial-card{ border-radius: .75rem; background: #fff; border:1px solid rgba(0,0,0,0.04); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.testimonials-section .card-text{ font-size: 1.02rem; font-style: italic; color:#222; margin-bottom: .8rem; }
.star-rating i{ color: var(--brand-color); margin-right: 4px; }
.carousel-control-prev, .carousel-control-next{ filter: drop-shadow(0 6px 18px rgba(0,0,0,0.08)); }

@media (max-width: 575.98px){ .testimonial-card{ padding: .5rem; } }

/* Footer */
.site-footer{ background: var(--brand-color); color: #fff; font-family: var(--font-body); }
.site-footer a{ color: #fff; text-decoration: none; }
.site-footer .social a{ opacity: .9; transition: opacity .18s ease, transform .18s ease; }
.site-footer .social a:hover{ opacity: 1; transform: translateY(-2px); }
.site-footer .map-embed iframe{ border-radius: .5rem; border: 0; }
.site-footer .footer-form .form-control{ background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); color:#fff; }
.site-footer .footer-form .form-control::placeholder{ color: rgba(255,255,255,0.68); }
.site-footer .btn-outline-light{ border-color: rgba(255,255,255,0.16); color: #fff; }
.site-footer hr{ border-color: rgba(255,255,255,0.12); }
@media (max-width: 767.98px){ .site-footer .map-embed{ margin-top: .75rem; } .site-footer .footer-form .input-group{ margin-bottom:.5rem; } }

/* Remove legacy spacing helpers (empty divs) that created gaps */
.agileits, .agileinfo, .wthree, .w3layout, .wthree, .agileinfo { display:none !important; }

/* Ensure buttons and hero text use the chosen body font for consistency */
.btn, .hero, .hero .lead, .hero .btn, .site-footer p, section p, .card { font-family: var(--font-body); }

/* Keep this file focused on typography/spacing only (no brand color overrides). */
