/* ===== Variables ===== */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --color-bg: #ffffff;
  --color-pastel: #faf7f3;
  --color-text: #2d2d2d;
  --color-accent: #b8956a;
  --color-accent-dark: #9a7a56;
  --color-muted: #6c757d;
  --transition: 0.3s ease;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-pastel);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text);
}

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

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

/* ===== Spacing utilities ===== */
.space10 { height: 10px; }
.space15 { height: 15px; }
.space20 { height: 20px; }
.space30 { height: 30px; }

/* ===== Wrappers ===== */
.wrapper { position: relative; }
.bg-pastel { background: var(--color-pastel); }
.light-wrapper { background: #ffffff; }
.gray-wrapper { background: var(--color-pastel); }
.inner { padding-top: 70px; padding-bottom: 70px; }

/* ===== Site Header (home page — centered stacked) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--color-pastel);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.logo-bar {
  text-align: center;
  padding: 1.4rem 1rem 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.logo-bar img { height: 72px; width: auto; }

.site-header .navbar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0;
  position: static;
}

/* ===== Navbar (gallery pages) ===== */
.navbar {
  background: rgba(250, 247, 243, 0.97);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0.5rem 0;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.navbar-brand img { height: 44px; width: auto; }

.navbar-nav { gap: 0; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-text) !important;
  padding: 0.85rem 1.2rem !important;
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--color-accent) !important; }
.navbar-toggler { border: 0 !important; }

@media (max-width: 991px) {
  .navbar-collapse { border-top: 1px solid rgba(0,0,0,0.07); }
  .logo-bar { display: none !important; }
  .navbar-brand img { height: 50px; width: auto; }
}

/* ===== Hero Mosaic ===== */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 72vh;
  min-height: 480px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 30px 0;
}

/* Captions always visible in hero mosaic */
.hero-mosaic .mosaic-item figcaption {
  opacity: 1 !important;
  transition: none;
}
.hero-mosaic .mosaic-item span.bg { opacity: 1; background: rgba(0,0,0,0.18); }
.hero-mosaic .mosaic-item:hover span.bg { background: rgba(0,0,0,0.32); }
.mosaic-main { grid-row: 1 / 3; }
.mosaic-item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mosaic-item:hover img { transform: scale(1.03); }

/* ===== Overlay System ===== */
.overlay {
  position: relative;
  text-align: center;
  transform: translate3d(0, 0, 0);
  overflow: hidden;
  display: block;
}
figure.overlay > a { display: block; position: relative; }
figure.overlay img { width: 100%; max-width: 100%; vertical-align: top; display: block; }

/* span.bg — dark scrim on hover */
.overlay span.bg {
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 4;
  transition: opacity 0.35s ease-in-out;
}
.overlay:hover span.bg { opacity: 1; }

/* overlay3 — white "+" crosshair */
.overlay3:before, .overlay3:after {
  content: "";
  background-color: #fff;
  position: absolute;
  z-index: 5;
  top: 50%; left: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.overlay3:before { width: 30px; height: 2px; }
.overlay3:after  { height: 30px; width: 2px; }
.overlay3:hover:before, .overlay3:hover:after { opacity: 1; transition-delay: 0.2s; }

/* overlay caption — floating label (for mosaic + services) */
.overlay.caption figcaption {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
  pointer-events: none;
}
.overlay.caption:hover figcaption { opacity: 1; }
.overlay.caption .caption-inner {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  padding: 9px 22px;
}
.overlay.caption .caption-inner h5 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}
.overlay.caption.light .caption-inner {
  background: rgba(255, 255, 255, 0.88);
}
.overlay.caption.light:hover .caption-inner { background: #fff; }
.overlay.caption.light .caption-inner h5 { color: var(--color-text); }

/* overlay1 — figcaption slide-in ("Other Galleries" card) */
figure.overlay1 { overflow: hidden; }
figure.overlay1 figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
figure.overlay1:hover figcaption { opacity: 1; }
figure.overlay1 figcaption h5 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-6px);
  transition: transform 0.4s ease;
  margin: 0;
}
figure.overlay1:hover figcaption h5 { transform: translateY(0); }

/* rounded corners */
figure.rounded:not(.main) img { border-radius: 4px; }
figure.rounded.main img {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ===== Image-block split cards ===== */
.ibc-card {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  min-height: 260px;
}
.ibc-image {
  width: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.ibc-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ibc-content h5 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.ibc-content p { color: var(--color-muted); font-size: 0.93rem; margin-bottom: 1rem; }
.arrow-link a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.arrow-link a:hover { color: var(--color-accent); }

/* ===== About section image ===== */
.about-image {
  border-radius: 4px;
  overflow: hidden;
}
.about-image img { width: 100%; display: block; border-radius: 4px; }

/* ===== Full-bleed image CTA ===== */
.image-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.image-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1;
}
.image-cta > .container {
  position: relative;
  z-index: 2;
}
.image-cta h2, .image-cta p { color: #fff; }

/* ===== Services tile grid ===== */
.services-grid { gap: 12px; }
.service-tile {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}
.service-tile figure {
  height: 100%;
  margin: 0;
}
.service-tile figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Final CTA ===== */
.final-cta h2 { font-size: 1.9rem; }
.final-cta .lead { font-size: 1.05rem; color: var(--color-muted); }

/* ===== Buttons ===== */
.btn-accent {
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 2rem;
  border-radius: 0;
  transition: all var(--transition);
}
.btn-accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }

.btn-outline-accent {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 2rem;
  border-radius: 0;
  transition: all var(--transition);
}
.btn-outline-accent:hover { background: var(--color-accent); color: #fff; }

.btn-white {
  background: #fff;
  border: 2px solid #fff;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 2rem;
  border-radius: 0;
  transition: all var(--transition);
}
.btn-white:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ===== Gallery pages ===== */
h1.post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

/* CBP gallery grid (3 cols) */
.cbp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* "Other Galleries" box card */
.gallery-box {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  border-radius: 4px;
  padding: 0 0 20px;
}
.gallery-box h4 { font-size: 1.15rem; margin: 0; padding: 16px 20px 4px; }
.gallery-box figure { margin: 0; }
.gallery-box figure img { width: 100%; display: block; }

/* ===== Testimonials carousel ===== */
.tc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.tc-arrows { display: flex; gap: 0.75rem; }
.tc-arrows button { background: none; border: none; padding: 0; font-size: 1.1rem; color: var(--color-muted); cursor: pointer; transition: color var(--transition); line-height: 1; }
.tc-arrows button:hover { color: var(--color-text); }
.tc-arrows button:disabled { opacity: 0.25; cursor: default; }

.tc-viewport { overflow: hidden; }
.tc-track { display: flex; transition: transform 0.45s ease; }
.tc-slide { flex: 0 0 calc(100% / 3); padding: 0 10px; box-sizing: border-box; }

.tc-card { border-radius: 6px; padding: 32px 28px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.tc-stars { color: var(--color-accent); font-size: 0.9rem; letter-spacing: 2px; }
.tc-text { color: var(--color-text); font-size: 0.95rem; line-height: 1.75; flex: 1; margin: 0; }
.tc-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.07); }
.tc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tc-name { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text); }
.tc-time { font-size: 0.75rem; color: var(--color-muted); }

.tc-dots { display: flex; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.tc-dot { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-muted); cursor: pointer; transition: color var(--transition); }
.tc-dot.active { color: var(--color-text); }

@media (max-width: 767px) {
  .tc-slide { flex: 0 0 100%; }
}

/* ===== Footer ===== */
.site-footer {
  background: #1c1c1c;
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
  font-size: 0.88rem;
  text-align: center;
}
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: var(--color-accent); }
.footer-social { display: flex; justify-content: center; gap: 2rem; }
.footer-social a { font-size: 2.5rem; line-height: 1; color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-social a:hover { color: var(--color-accent); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    padding: 12px 12px 0;
  }
  .mosaic-main { grid-row: auto; }
  .hero-mosaic .mosaic-item { aspect-ratio: 1; }
  .cbp-grid { grid-template-columns: repeat(2, 1fr); }
  .inner { padding-top: 50px; padding-bottom: 50px; }
  .ibc-card { flex-direction: column; }
  .ibc-image { width: 100%; height: 200px; }
}

@media (max-width: 575px) {
  .hero-mosaic {
    grid-template-columns: 1fr;
    padding: 8px 8px 0;
  }
  .mosaic-main { grid-row: auto; }
  .hero-mosaic .mosaic-item:last-child { display: none; }
  .cbp-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .section-title { font-size: 1.7rem; }
}
