/* ═══════════════════════════════════════════════════════
   BML Services – style.css
   Palette: off-white / stone / logo-green / logo-navy
   ═══════════════════════════════════════════════════════ */

:root {
  --green:      #6B9E1F;
  --green-dark: #4d7a14;
  --green-pale: #eef4e3;
  --navy:       #1B2B5E;
  --navy-light: #2d4080;
  --bg:         #F9F7F4;
  --stone:      #E8E4DF;
  --stone-dark: #d4cfc9;
  --text:       #2C2C2C;
  --text-muted: #666;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER PHONE ──────────────────────────────────── */
.header-phone {
  flex: 1;
  text-align: center;
}

.header-phone a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-phone a:hover {
  color: var(--green-dark);
  text-decoration: none;
}

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  width: 100%;
  overflow: hidden;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
}

/* logo-name and logo-sub removed — text is now part of the logo image */

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
  background: var(--green-pale);
  color: var(--green-dark);
}

.nav-btn.nav-cta {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}

.nav-btn.nav-cta:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ── PAGES ─────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 56px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn.full-width { width: 100%; }
.btn.small { padding: 8px 18px; font-size: 0.85rem; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: clamp(60px, 12vw, 120px) 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Dark overlay so text stays readable over any photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 43, 94, 0.75) 0%,
    rgba(27, 43, 94, 0.60) 50%,
    rgba(30, 60, 20, 0.65) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btns .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.hero-btns .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ── ABOUT STRIP ───────────────────────────────────── */
.about-strip {
  padding: 72px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-pale);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

.feature-icon { font-size: 1.2rem; }

/* ── SLIDESHOW ─────────────────────────────────────── */
.slideshow-section {
  padding: 72px 0;
  background: var(--bg);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 36px;
}

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
  height: 420px;
  box-shadow: var(--shadow);
}

.slide-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: white;
  padding: 40px 24px 18px;
  font-size: 0.95rem;
}

.slide-placeholder {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  background: var(--stone);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-arrow:hover { background: var(--white); }
.slide-arrow.prev { left: 14px; }
.slide-arrow.next { right: 14px; }

.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.slide-dot.active { background: var(--white); }

.slideshow-cta {
  text-align: center;
  margin-top: 28px;
}

/* ── GALLERY ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 60px;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-thumb-collection {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.gallery-thumb-collection .thumb-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

.gallery-card-caption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.gallery-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.gallery-empty p { margin-top: 10px; }

/* ── LIGHTBOX ──────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lb-content {
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  object-fit: contain;
}

#lb-caption {
  color: rgba(255,255,255,0.8);
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.lb-close:hover { opacity: 1; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 16px 18px;
  border-radius: 6px;
  transition: background var(--transition);
}
.lb-arrow:hover { background: rgba(255,255,255,0.25); }
.lb-arrow.lb-prev { left: 16px; }
.lb-arrow.lb-next { right: 16px; }
.lb-arrow[disabled] { opacity: 0.2; cursor: default; }

/* ── CONTACT ───────────────────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  padding: 60px 20px 80px;
}

.contact-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.contact-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-details p { font-weight: 500; color: var(--text); }
.contact-details a { color: var(--green-dark); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--stone-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea { resize: vertical; }

.contact-success {
  background: var(--green-pale);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.contact-success.hidden { display: none; }
#contact-form-area.hidden { display: none; }

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.contact-success h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-error {
  background: #fde8e8;
  border: 1px solid #f5a5a5;
  border-radius: 8px;
  padding: 12px 16px;
  color: #c0392b;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.contact-error.hidden { display: none; }

/* ── FOOTER ────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 36px 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer strong { color: var(--white); }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.footer-copy { opacity: 0.5; font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 12px;
  }

  .logo-img { height: 36px; width: auto; }
  .logo-svg { width: 36px; height: 32px; flex-shrink: 0; }

  /* Shrink phone number on tablet */
  .header-phone a { font-size: 0.88rem; }

  .nav-btn { padding: 7px 10px; font-size: 0.82rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  .slideshow { height: 260px; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 60px;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }

  .lb-arrow { padding: 10px 12px; font-size: 1.2rem; }
}

@media (max-width: 540px) {
  /* On small phones: logo + phone on row 1, nav on row 2 */
  .header-inner {
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .header-phone {
    flex: 0 0 auto;
    text-align: right;
  }

  .header-phone a { font-size: 0.85rem; }

  .site-nav {
    width: 100%;
    justify-content: center;
    padding-bottom: 4px;
  }

  .nav-btn { font-size: 0.8rem; padding: 6px 10px; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero { padding: 44px 16px; }
  .about-strip { padding: 48px 0; }
  .slideshow-section { padding: 48px 0; }

  .hero-content { padding: 0 4px; }

  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; }

  .nav-btn:not(.nav-cta) { font-size: 0.78rem; padding: 6px 8px; }
}
