/* Base */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.7;
  font-size: 18px;
}

/* Navigation */

.navbar {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  font-size: 1.6rem;
  background: none;
  border: none;
}
/* ================================
   Dropdown
================================ */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.caret {
  font-size: 0.7em;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 999;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
}

.dropdown-menu .divider {
  height: 1px;
  background: #e0e0e0;
  margin: 6px 0;
}

/* Desktop hover */
@media (min-width: 768px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* HERO */
.hero{
  position:relative;
  min-height:70vh;              /* more reliable than height */
  background:url("images/hero.jpg") center 68% / cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 60px 24px;           /* keeps text from touching edges on small screens */
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.25)
  );
}

.hero-content{
  position:relative;            /* ensures it sits above overlay */
  z-index:1;
  text-align:center;
  color:#fff;
  max-width: 640px;
}

.hero-content h1{
  margin:0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.5px;
}

.hero-content p{
  margin:0;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  opacity: 0.95;
}
.hero-button {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 36px;
  background: white;
  color: #2c3e50;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
}

/* CALENDAR */
.calendar-container{
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.calendar-container iframe{
  display:block;
  width:100%;
  height: 600px;      /* force it even if attribute gets ignored */
  border:0;
}


/* Sections */

.section {
  padding: 100px 24px;
  background: white;
}

.section.soft {
  background: #e8f1f8;
}

.container {
  max-width: 720px;
  margin: auto;
}

.center { text-align: center; }

.lead {
  font-size: 1.15rem;
  color: #555;
}

/* Visit */

.visit-intro {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.visit-info {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
}

.visit-note {
  text-align: center;
  font-style: italic;
}

/* CAROUSEL */
.carousel{
  position:relative;
  overflow:hidden;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.carousel-track{
  display:flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.carousel-track img{
  flex: 0 0 100%;     /* THIS is the key */
  width: 100%;
  height: 520px;      /* choose a consistent height */
  object-fit: cover;  /* keeps it from stretching */
  display:block;
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color:#fff;
  border:none;
  width:44px;
  height:44px;
  border-radius:999px;
  font-size: 1.6rem;
  cursor:pointer;
}

.carousel-btn.prev{ left: 14px; }
.carousel-btn.next{ right: 14px; }

.carousel-btn:hover{
  background: rgba(0,0,0,0.7);
}

/* carousel mobile */
@media (max-width: 700px){
  .carousel-track img{
    height: 320px;
  }
}


/* Footer */

.footer {
  background: #f5f5f5;
  padding: 50px 24px;
  text-align: center;
  font-size: 0.95rem;
}

/* Mobile */

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
  }
  .nav-links.open { max-height: 400px; }
  .visit-info { flex-direction: column; gap: 30px; }
}
/* FORCE primary button styling */
a.primary-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #2c3e50;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.65);
}

a.primary-btn:hover {
  filter: brightness(0.95);
}

a.primary-btn:visited {
  color: #2c3e50; /* stop visited links turning purple */
}
/* ================================
   Contact Form
================================ */

.contact-form {
  max-width: 500px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2c3e50;
}
/* ================================
   Unified Button Styling
================================ */

.primary-btn,
button.primary-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: #2c3e50;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* Light version (hero) */
.primary-btn.light {
  background: #ffffff;
  color: #2c3e50;
  border: 2px solid rgba(255,255,255,0.7);
}

/* Hover + focus */
.primary-btn:hover,
button.primary-btn:hover {
  filter: brightness(0.92);
}

.primary-btn:focus,
button.primary-btn:focus {
  outline: none;
}
/* Mobile dropdown */
.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: static;
  box-shadow: none;
}
