/* ====== BASE RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Open Sans', sans-serif;
  background: #fdfdfd;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
.centered {
  text-align: center;
}

/* ====== HEADER ====== */
header {
  background: #002244;
  color: white;
  text-align: center;
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.branding h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
}
.branding p {
  font-size: 0.875rem;
  color: #ccc;
}

/* ====== NAVIGATION ====== */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  margin-top: 0.5rem;
}
#main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #e0e0e0;
}
#main-nav a {
  padding: 1rem;
  text-decoration: none;
  color: #002244;
  font-weight: bold;
}
#main-nav a:hover {
  background: #ccc;
}

/* ====== HERO (unused on some pages, but defined) ====== */
.hero {
  background: url('/imgs/hero.jpg') center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ====== BUTTON ====== */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #002244;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* ====== IMAGES ====== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ====== GALLERY & SERVICES GRIDS ====== */
.gallery-grid,
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery-item img,
.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

/* ====== CONTACT FORM ====== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
}
.contact-form label {
  margin-top: 0.75rem;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 0.25rem;
}
.contact-form button {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #002244;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ====== FOOTER ====== */
.footer {
  background: #002244;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
.footer a {
  color: #fff;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* ====== MOBILE FIXES ====== */
@media (max-width: 768px) {
  #nav-toggle {
    display: block;
  }
  #main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  #main-nav a {
    border-top: 1px solid #ccc;
    padding: 1rem;
    text-align: center;
  }
}

/* ====== ADDED RESPONSIVE & ACCESSIBILITY IMPROVEMENTS ====== */

/* 1. Hero Section Styles (if you decide to use them) */
.welcome-section {
  margin: 2rem 0;
  text-align: center;
}
.welcome-section p {
  max-width: 700px;
  margin: 1rem auto;
}
.cta-section {
  margin: 3rem 0;
  text-align: center;
}

/* 2. Mobile Navigation smooth toggle via max-height */
#main-nav {
  max-height: 1000px; /* fallback for desktop */
  transition: max-height 0.3s ease-out;
}
#main-nav.open {
  display: flex; /* fallback */
  max-height: 500px; /* large enough to show all menu items */
}

/* 3. Map Container: responsive iframe */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 4. Gallery Item Aspect Ratio (4:3) */
.gallery-item {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
}
.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
