:root {
  --color-bg: #f6f4f1;
  --color-text: #1f2a36;
  --color-muted: #6b6f76;
  --color-primary: #274b74; /* allow ±15% hue shift */
  --color-primary-contrast: #ffffff;
  --color-accent: #2e6b4e;
  --radius: 10px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --max-w: 1100px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.clipped {
  clip-path: inset(0% 0% 5% 5%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e6e3dd;
  backdrop-filter: saturate(120%) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  clip-path: none;
}
.brand-name {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-primary);
}
.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.menu a {
  text-decoration: none;
  color: var(--color-text);
  padding: 0.5rem 0.4rem;
  border-radius: 6px;
}
.menu a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}
.menu a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.hero {
  background-image: url("background.jpg"),
    radial-gradient(
      circle at 30% 20%,
      rgba(39, 75, 116, 0.25),
      rgba(39, 75, 116, 0) 45%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(46, 107, 78, 0.22),
      rgba(46, 107, 78, 0) 40%
    );
  background-size: cover, auto, auto;
  background-position: center, center, center;
  background-repeat: no-repeat;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* Remove hero blur and overlays to show background image clearly */
.hero::before,
.hero::after {
  display: none;
}
.hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

/* Improve hero text contrast without blur */
.hero-card {
  background: rgba(17, 38, 59, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 1.6rem 1.2rem;
}
.hero h1,
.hero p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Ensure outline button remains visible on light image areas */
.btn.outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  border-width: 2px;
}
.btn.outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-badges {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  background: rgba(17, 38, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}
.hero-divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* subtle hero floating animation */
@keyframes floatInPlace {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}
.hero-card {
  animation: floatInPlace 8s ease-in-out infinite;
}

.hero h1 {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.6rem 0;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.95;
  margin: 0 0 1.2rem 0;
}
.hero-actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.btn.primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow);
}
.btn.primary:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.btn.outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn.outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: 3.5rem 0;
}
.section h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0 0 1rem;
  color: var(--color-primary);
}
.section p {
  color: var(--color-text);
}

.section-about .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem 1rem;
  padding: 0;
  margin: 1rem 0 0 0;
  list-style: none;
}
.section-about .facts li {
  background: #fff;
  border: 1px solid #ebe7e0;
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid #ebe7e0;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e5eef6;
  color: var(--color-primary);
}
.card-cta {
  align-self: start;
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 600;
}
.card-cta:hover {
  text-decoration: underline;
}

.section-history .history-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}
.section-history .history-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #ebe7e0;
  box-shadow: var(--shadow);
}
.section-history .history-text h3 {
  margin: 0.2rem 0 0.6rem;
  font-family: "Merriweather", Georgia, serif;
}

.section-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.section-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid #ebe7e0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-gallery figcaption {
  padding: 0.5rem 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.section-subscribe .subscribe-form {
  background: #fff;
  border: 1px solid #ebe7e0;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.section-subscribe label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.section-subscribe .form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}
.section-subscribe input[type="email"] {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #d7d2ca;
  font-size: 1rem;
}
.section-subscribe .form-hint {
  color: var(--color-muted);
  margin: 0.4rem 0 0 0;
  font-size: 0.95rem;
}

.section-contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.section-contact .contact-details {
  background: #fff;
  border: 1px solid #ebe7e0;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.section-contact .map-placeholder {
  background: #fff;
  border: 1px solid #ebe7e0;
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}
.section-contact .contact-details p {
  margin: 0.2rem 0;
}

.site-footer {
  background: #11263b;
  color: #cfd7e0;
  padding: 1.2rem 0;
}
.site-footer a {
  color: #cfd7e0;
  text-decoration: none;
  margin-right: 0.8rem;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Hero text color and height adjustments */
.hero {
  min-height: 78vh;
}
.hero h1,
.hero p {
  color: #ffffff;
}
.hero-badges li {
  color: #ffffff;
}

/* Remove extra whitespace below hero */
.hero {
  margin-bottom: 0;
  padding-bottom: 0;
}
.hero-divider {
  display: none;
  height: 0;
}
/* Optional: tighten the next section top padding slightly */
#about.section {
  padding-top: 2.5rem;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-history .history-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .menu {
    flex-wrap: wrap;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .section-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
  .section-contact .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    padding: 16vh 1rem;
  }
}
