/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:    #1b2a4a;
  --sand:    #f5f0e8;
  --ocean:   #3a7ca5;
  --seafoam: #6fbf8a;
  --white:   #ffffff;
  --text:    #2c2c2c;
  --shadow:  rgba(0,0,0,.15);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed nav so anchor targets aren't hidden */
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.7;
}

/* ─── Typography ─── */
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

a { color: var(--ocean); text-decoration: none; transition: color .3s; }
a:hover { color: var(--seafoam); }

/* ─── Button ─── */
.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .3s, transform .2s;
}
.btn:hover {
  background: var(--seafoam);
  transform: translateY(-2px);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(27, 42, 74, .92);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .5px;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav__links a {
  color: var(--sand);
  font-size: .95rem;
  letter-spacing: .3px;
  transition: color .3s;
}
.nav__links a:hover { color: var(--seafoam); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ─── Hero Slideshow ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__slideshow {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero__slide--active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 42, 74, .55) 0%,
    rgba(27, 42, 74, .35) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 700px;
  padding: 0 1.5rem;
}
.hero__content p {
  margin: 1.2rem 0 2rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: .9;
}

/* ─── Sections ─── */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section__title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--navy);
  position: relative;
}
.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ocean);
  margin: .8rem auto 0;
  border-radius: 2px;
}

/* ─── Fade-in on scroll ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Service Cards ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px var(--shadow);
}
.card__icon {
  font-size: 2.5rem;
  margin-bottom: .8rem;
}
.card h3 { margin-bottom: .6rem; color: var(--navy); }
.card p  { font-size: .95rem; color: #555; }

/* ─── Parallax Sections ─── */
.parallax {
  position: relative;
  height: 45vh;
  min-height: 300px;
  overflow: hidden;
}
.parallax__bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.parallax__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, .3);
}

/* ─── About ─── */
.about__content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}
.about__content p { margin-bottom: 1.2rem; font-size: 1.05rem; }

/* ─── Gallery Grid ─── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery__item {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  background-color: #ccc;
  transition: transform .4s;
}
.gallery__item:hover { transform: scale(1.03); }

/* ─── Contact ─── */
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__form input,
.contact__form textarea {
  padding: .85rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  transition: border-color .3s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--ocean);
}
.contact__info h3 { color: var(--navy); margin-bottom: 1rem; }
.contact__info p  { margin-bottom: .5rem; }
.contact__hours   { margin-top: 1rem; }

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 2rem;
  background: var(--navy);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 2rem;
    gap: 1rem;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }

  .contact__wrap { grid-template-columns: 1fr; }

  .parallax__bg { background-attachment: scroll; }
}
