@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Logo Derived Palette */
  --clr-cream: #FFF7DA; /* Matched to logo background */
  --clr-teal: #0D685E;
  --clr-orange: #DF503A;
  --clr-yellow: #EBA53B;
  
  /* Additional Accents & Neutral */
  --clr-teal-dark: #084D45;
  --clr-orange-light: #F46C58;
  --clr-text-main: #2C3E3A; /* Very dark slate/teal for legibility */
  --clr-surface: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Glassmorphism */
  --glass-bg: #FFF7DA; /* Matched EXACTLY to background cream without alpha */
  --glass-border: rgba(13, 104, 94, 0.15); /* Teal accent */
  --glass-shadow: 0 8px 32px rgba(13, 104, 94, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-cream);
  color: var(--clr-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--clr-teal);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--clr-orange);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--clr-teal);
}

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

main {
  flex-grow: 1;
}

/* =========================================
   Navigation (Header)
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Fallback generic logo styling if image is missing */
.logo-placeholder {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--clr-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-placeholder span {
  color: var(--clr-teal);
}

.logo-img {
  max-height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--clr-teal);
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--clr-orange);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: var(--clr-orange);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--clr-teal);
  cursor: pointer;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-orange), var(--clr-orange-light));
  color: white !important;
  box-shadow: 0 4px 15px rgba(223, 80, 58, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 80, 58, 0.4);
  color: white !important;
}

.btn-outline {
  background: transparent;
  color: var(--clr-teal) !important;
  border: 2px solid var(--clr-teal);
}

.btn-outline:hover {
  background: var(--clr-teal);
  color: white !important;
  transform: translateY(-2px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--clr-teal-dark); /* Fallback */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--clr-cream);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 77, 69, 0.4),
    rgba(8, 77, 69, 0.8)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: var(--clr-cream);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.hero h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--clr-yellow);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* =========================================
   Sections & Cards 
   ========================================= */
.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--clr-cream);
}

.section-white {
  background-color: var(--clr-surface);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.card {
  background: var(--clr-surface);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(13, 104, 94, 0.08);
  border: 1px solid rgba(13, 104, 94, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13, 104, 94, 0.12);
}

/* Utility classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* =========================================
   Footer
   ========================================= */
footer {
  background-color: var(--clr-teal-dark);
  color: var(--clr-cream);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

footer h3 {
  color: var(--clr-yellow);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--clr-cream);
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--clr-orange);
  opacity: 1;
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 248, 231, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =========================================
   Page Header (for subpages)
   ========================================= */
.page-header {
  background-color: var(--clr-teal);
  color: var(--clr-cream);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: var(--clr-cream);
  transform: skewY(-1.5deg);
}

.page-header h1 {
  color: var(--clr-yellow);
  font-size: 3rem;
  margin: 0;
}

/* =========================================
   Masonry Gallery & Slideshow Modal
   ========================================= */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(13, 104, 94, 0.2);
}

.photo-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.photo-modal.active {
  display: flex !important;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.modal-close, .modal-nav {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2001;
}

.modal-close:hover, .modal-nav:hover { opacity: 1; }
.modal-close { top: 20px; right: 30px; font-size: 2.5rem; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
  .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
  }
  
  nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}
