/* =========================================================
   PUBLIC SITE STYLESHEET
   Uses CSS variables injected by PHP:
   --primary, --accent, --font
   ========================================================= */

:root {
  --primary: #1a3c5e;
  --accent:  #e8a020;
  --font:    'Inter', sans-serif;
  --radius:  .5rem;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.text-accent { color: var(--accent) !important; }

/* ── Navbar ───────────────────────────────────────────── */
.public-navbar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.public-navbar .nav-logo { max-height: 40px; max-width: 160px; object-fit: contain; }
.public-navbar .nav-link {
  color: #444;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
  color: var(--primary);
  background: rgba(0,0,0,.04);
}

/* ── Accent button ────────────────────────────────────── */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: filter .2s, transform .15s;
}
.btn-accent:hover {
  filter: brightness(1.1);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Section spacing ──────────────────────────────────── */
.section-pad { padding: 5rem 0; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: .5rem auto 0;
}

/* ── Page hero (inner pages) ──────────────────────────── */
.page-hero {
  background: var(--primary);
  padding: 4rem 0 3.5rem;
}

/* ── Hero section ─────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1rem;
}
.hero-headline { text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-sub { text-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* ── Feature cards ────────────────────────────────────── */
.feature-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon-wrap i { color: var(--primary); }

/* ── Service cards (homepage preview) ────────────────── */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.service-icon { max-width: 56px; max-height: 56px; object-fit: contain; }
.service-icon-placeholder {
  width: 56px; height: 56px;
  background: rgba(0,0,0,.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #aaa;
}

/* ── Service cards (services page) ────────────────────── */
.service-card-full {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.service-icon-full { max-width: 72px; max-height: 72px; object-fit: contain; }
.service-icon-placeholder-lg {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
}
.service-description { flex-grow: 1; }
.service-description img { max-width: 100%; }

/* ── Gallery ─────────────────────────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}
@media (max-width: 768px) { .gallery-grid { columns: 2; } }
@media (max-width: 480px) { .gallery-grid { columns: 1; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-img {
  width: 100%;
  display: block;
  transition: transform .4s;
}
.gallery-item:hover .gallery-img { transform: scale(1.03); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: .5rem .75rem;
  font-size: .8rem;
  transform: translateY(100%);
  transition: transform .3s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ── Testimonial cards ───────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
  backdrop-filter: blur(4px);
}
.testimonial-card .stars { color: var(--accent); font-size: 1.1rem; }

/* ── Review cards (reviews page) ─────────────────────── */
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
}

/* ── Star picker ─────────────────────────────────────── */
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.star-label {
  font-size: 1.8rem;
  color: #ddd;
  cursor: pointer;
  transition: color .15s;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
  color: var(--accent);
}

/* ── Team ────────────────────────────────────────────── */
.team-photo { width: 100px; height: 100px; object-fit: cover; }
.team-photo-placeholder {
  width: 100px; height: 100px;
  background: #e0e7ef;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #aaa;
}

/* ── About prose ─────────────────────────────────────── */
.prose-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.prose-content img { max-width: 100%; border-radius: var(--radius); }
.prose-content h2, .prose-content h3 { margin-top: 2rem; }

/* ── CTA strip ───────────────────────────────────────── */
.cta-strip { background: var(--accent); }

/* ── Footer ──────────────────────────────────────────── */
.public-footer {
  background: #0f2236;
  color: #b0bec5;
  margin-top: auto;
}
.footer-link {
  color: #b0bec5;
  text-decoration: none;
  transition: color .2s;
  display: inline-block;
  padding: .15rem 0;
}
.footer-link:hover { color: #fff; }
.footer-social {
  color: #b0bec5;
  font-size: 1.2rem;
  transition: color .2s;
}
.footer-social:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .section-pad { padding: 3rem 0; }
  .hero-section { min-height: 400px; }
  .hero-headline { font-size: 2rem; }
}
