/* GLOBAL STYLES */
body {
  margin: 0;
  padding: 0;
  font-family: "PerpetuaTitlingMT", system-ui, serif;
  font-size: 22px;
  line-height: 1.6;
  color: #333;
  background-image: url('assets/wallBg.png');
  background-repeat: repeat;
  background-size: auto;
  text-align: center; /* center all text by default */
}

@font-face {
  font-family: "PerpetuaTitlingMT";
  src: url("fonts/perpetua-titling-mt-std-light/Perpetua\ Titling\ MT\ Std\ Light/") format("otf2"),
       url("fonts/perpetua-titling-mt-std-light/Perpetua\ Titling\ MT\ Std\ Light/") format("otf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
h1, h2, h3, h4, h5, h6, p {
 font-family: "PerpetuaTitlingMT", serif;
  margin-left: auto;
  margin-right: auto; /* keep text centered */
  max-width: 700px; /* prevent lines from being too wide */
}
p, li, a, button {
  font-family: "PerpetuaTitlingMT", serif;
}
/* HEADER NAVY RECTANGLE */
/* HEADER NAVY RECTANGLE */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background-color: #001f4d; /* navy */
  z-index: 2000; /* above everything */
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
  transition: transform 0.4s ease-in-out;
}

/* DESKTOP NAV */
.desktop-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
}
.desktop-nav a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  transition: background 0.3s;
}
.desktop-nav a:hover { background: rgba(0,0,0,0.7); }

/* HAMBURGER ICON */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 24px;
  display: none; /* mobile only */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 2100; /* above header */
}
.hamburger div {
  width: 100%;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.open div:nth-child(2) { opacity: 0; }
.hamburger.open div:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* MOBILE SLIDE-OUT MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 250px;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: right 0.4s ease-in-out;
  z-index: 2050;
}
.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  padding: 10px 20px;
}
.mobile-menu.open { right: 0; }

/* RESPONSIVE */
@media (max-width: 800px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
}

.tan-box {
  background-color: #fff; /* warm tan */
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 30px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  box-sizing: border-box;
}

/* HERO / LOGO SECTION */
.hero {
  display: flex;
  flex-direction: column; 
  justify-content: flex-start;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 100px; /* top, sides, bottom */
  max-width: 900px;
  margin-top: 200px; /* clears fixed header */
  text-align: center;
  background-color: transparent;
}

.hero-logo {
  width: 160px;
  max-width: 70%;
  height: auto;
}
.hero h1 { font-size: 2.5rem; margin: 10px 0; }
.hero p { font-size: 1.2rem; margin: 10px 0; }
.hero .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #001f4d;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.hero .btn:hover { background: #357ab8; }

/* SECTIONS */
.section-divider {
  width: 100px;
  margin: 12px auto 25px;
}
.section {
  width: 90%;
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 30px;

  background: rgba(238, 232, 225, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  text-align: center;
  box-sizing: border-box;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 220px 20px 80px;
  margin: 0 auto 40px;
  max-width: 900px;
}
.hero-logo {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
}
.section p,
.section h1,
.section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #001f4d;
}
.section h3,
.section li {
  color: #382b1a; /* nice brown text */
}
#services ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;              /* centers the whole list */
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr)); 
  gap: 6px 15px;               /* reduces spacing so text fits better */
  max-width: 75%;              /* prevents content from hitting parchment edges */
  justify-content: center;     /* centers grid inside box */
  align-items: start;
  text-align: center;          /* keeps items tidy */
}

.services-text {
  font-family: "PerpetuaTitlingMT", serif;
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: center;
  color: #001f4d;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2040; /* below menu, above page */
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
/* Mobile: one column */
@media (max-width: 600px) {
  #services ul {
    grid-template-columns: 1fr;
    max-width: 95%;
  }
}
/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  justify-items: center;
  gap: 15px;
  margin: 20px auto;
  max-width: 700px;
}
.gallery-grid img {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid img:hover { transform: scale(1.05); }

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}
.contact-form input, .contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
.contact-form button {
  padding: 10px;
  background: #4fa5db;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover { background: #357ab8; }

/* FOOTER */
.footer {
  background-color: #001f4d;
  color: white;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s;
}
.footer a:hover { color: #4fa5db; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 180px; max-width: 90%; }
  .hero-logo { max-width: 150px; width: 60%; }
  .section, .gallery-grid, .content, .contact-form { max-width: 90%; padding: 15px; }
}
@media (max-width: 600px) {
  .section {
    width: 95%;
    padding: 25px 18px;
    margin: 40px auto;
  }
}
@media (max-width: 600px) {
  .tan-box {
    padding: 30px 20px;
    max-width: 95%;
  }

  .hero-logo {
    max-width: 150px;
  }
}
