﻿:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-dark: #1c1714;
  --brand-soft: #f7f3ee;
  --brand-accent: #b29169;
  --brand-muted: #6d6258;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('/images/PLTNM_Background.jpg') center/cover no-repeat fixed;
  background-attachment: fixed;
  color: var(--brand-dark);
  margin: 0;
  padding-top: 76px;
}

body.bg-light {
  background-color: transparent !important;
}

.hero-section {
  background: none;
  position: relative;
}

.hero-photo-wrap {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f1e8dd;
  aspect-ratio: 4 / 5;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #f6efe6;
  aspect-ratio: 16 / 10;
}

.team-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-grid img {
  width: 100%;
  height: 280px;
  border-radius: 0.9rem;
  object-fit: cover;
  background: #f4ece1;
}

.about-intro-photo {
  float: none;
  display: block;
  width: min(46%, 240px);
  margin: 0.25rem auto 0.6rem auto;
  border-radius: 0.9rem;
  object-fit: cover;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.12);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.85rem;
  color: var(--brand-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.btn-primary {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-dark {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--brand-dark);
  color: white;
}

.navbar-brand,
.nav-link,
.footer a {
  color: var(--brand-dark) !important;
}

.feature-card,
.service-card,
.gallery-card,
.card.border-0 {
  background: white;
}

.gallery-card {
  aspect-ratio: 4 / 5;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card {
  min-height: 220px;
}

footer {
  font-size: 0.95rem;
}

form .form-control,
form .form-select,
form textarea {
  border-radius: 0;
}

.card {
  border-radius: 0.75rem;
}

img {
  max-width: 100%;
}

.text-muted {
  color: #6d6258 !important;
}

/* Mobile + tablet: replace background-attachment:fixed with a pseudo-element
   because iOS/Android browsers do not reliably support fixed backgrounds */
@media (max-width: 991.98px) {
  body {
    background: none;
    background-attachment: scroll;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('/images/PLTNM_Background.jpg') center/cover no-repeat;
    transform: translateZ(0);
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 30px;
  }

  .about-intro-photo {
    float: none;
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 0.9rem auto;
  }

  .hero-photo-wrap {
    aspect-ratio: 5 / 4;
  }

  .hero-photo {
    object-position: center top;
  }

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

  .photo-grid img {
    height: 240px;
  }
}
