/* =========================================================
   Harris Trusted Photography — site styles
   Edit the colors and fonts here and they change everywhere.
   ========================================================= */
:root {
  /* ---- Colors: navy & gold (gold comes from the HTP logo) ---- */
  --navy: #0f2430;          /* dark navy: banners, overlays, dark buttons */
  --navy-75: rgba(15, 36, 48, .78);
  --gold: #b8975a;          /* logo gold: accent lines, active menu item */
  --gold-dark: #9e7d45;     /* gold buttons (white text) */
  --blue: #8a6d36;          /* gold text that is readable on white: small labels, links, icons */
  --blue-light: #efe7d8;    /* warm cream: soft section backgrounds */
  --ice: #f7f2e8;           /* lightest cream */
  --ink: #0a0a0a;           /* body text */
  --gray: #4a4a4a;          /* section headings */
  --white: #ffffff;
  --accent: #9e7d45;        /* highlight word ("double") and small accents */

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1140px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-weight: 400; }
h3 { color: var(--gray); text-transform: uppercase; font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); }
h4 { text-transform: uppercase; font-weight: 700; }
h5 { color: var(--blue); font-weight: 400; font-size: 1.4rem; }
h6 { color: var(--blue); text-transform: uppercase; font-size: 1rem; font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.section { padding: 64px 0; }
.section--tint { background: linear-gradient(#fff, var(--blue-light)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .7em 1.6em;
  background: var(--ice);
  color: #06242e;
  font-family: var(--font-body);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .03em;
  border-radius: var(--radius);
  border: 0;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--blue); }
.btn--pill { border-radius: 999px; background: #a9b9c1; color: var(--navy); }
.text-link { text-transform: uppercase; text-decoration: none; font-size: .95rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  background: linear-gradient(rgba(15, 36, 48,.85), rgba(15, 36, 48,0));
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo img { height: 52px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  font-size: 1.8rem; cursor: pointer; padding: 8px;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a {
  color: var(--white); text-decoration: none; text-transform: uppercase;
  font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-light); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { display: block; padding: 10px 0; }
}

/* ---------- Hero (top of each page) ---------- */
.hero {
  position: relative;
  min-height: min(70vh, 640px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--white);
  background: var(--navy) center / cover no-repeat;
  padding: 120px 16px 64px;
}
.hero--full { min-height: min(100vh, 900px); }
h1, h2, h3 { overflow-wrap: break-word; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(15, 36, 48,.25); }
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.6); margin-bottom: .3em;
}
.hero .tagline {
  display: inline-block; background: var(--navy-75); padding: .4em 1em; margin: 0 0 1.5em;
}
.hero h4 { font-size: 1.3rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* ---------- Cards (home: virtual tours / commercial) ---------- */
.feature-band { background: center / cover no-repeat; padding: 64px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.card {
  background: rgba(255,255,255,.95); display: flex; flex-direction: column;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.card__head { background: var(--navy); color: var(--white); padding: 18px 24px; }
.card__head h3 { color: var(--white); margin: 0; }
.card__body { padding: 24px; flex: 1; }
.card__body h6 .accent { color: var(--accent); }
.card .btn { border-radius: 0; text-align: center; display: block; }

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; text-align: center; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }
.services .icon { font-size: 2rem; color: var(--navy); }

/* ---------- Split rows (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 64px; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Story band ---------- */
.story { background: center / cover no-repeat; padding: 96px 0; }
.story__box { max-width: 560px; background: var(--navy-75); color: var(--white); padding: 32px; }
.story__box h4 { color: var(--white); font-size: 1.6rem; }

/* ---------- Galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
figure { margin: 0; }
figcaption { font-family: var(--font-head); color: var(--blue); margin-bottom: 8px; }

/* Sample tours */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.tour h3 { font-size: 1.3rem; }
.tour img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.tour p { margin-top: 12px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; width: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 12px;
}
.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Map embed */
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.back-to-top { display: block; text-align: center; padding: 32px 0; color: var(--accent); text-decoration: none; font-size: .9rem; }
.site-footer { border-top: 1px solid #e5e5e5; padding: 32px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .logo img { height: 64px; }
.site-footer .contact { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.site-footer .contact a { color: var(--ink); text-decoration: none; }
.site-footer .contact a:hover { color: var(--blue); }
.site-footer .badge img { height: 64px; width: auto; }
.copyright { text-align: center; font-size: .85rem; color: var(--gray); padding-bottom: 24px; }

/* "Double interest" bar chart: its bars are light on a transparent background, so give it a dark backdrop */
img.chart { background: #5a5a5a; padding: 12px; margin: 0 auto; }

/* White glow behind the header logo so it stands out on dark photos */
.site-header .logo img {
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px rgba(255,255,255,.8));
}

/* ---------- Home: photo-led service cards ---------- */
.photo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.photo-card {
  display: flex; flex-direction: column; background: var(--white); color: var(--ink);
  text-decoration: none; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 36, 48, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.photo-card:hover, .photo-card:focus-visible { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(15, 36, 48, .22); }
.photo-card__img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.photo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card:hover .photo-card__img img { transform: scale(1.06); }
.photo-card__tag {
  position: absolute; left: 16px; bottom: 16px; background: var(--navy); color: var(--white);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
  padding: 6px 12px; border-radius: 4px;
}
.photo-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.photo-card__body h3 { color: var(--navy); text-transform: none; font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.6rem); }
.photo-card__body p { margin: 0 0 20px; color: #333; flex: 1; }
.photo-card__cta { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.photo-card:hover .photo-card__cta { color: var(--navy); }

/* ---------- Home: stats strip ---------- */
.stats {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center;
}
.stats li { padding: 8px 16px; }
.stats li + li { border-left: 1px solid rgba(15, 36, 48, .15); }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--navy); line-height: 1.1; }
.stats span { display: block; max-width: 22ch; margin: 6px auto 0; color: #333; font-size: .95rem; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stats li + li { border-left: 0; border-top: 1px solid rgba(15, 36, 48, .15); padding-top: 16px; }
}

/* ---------- Home: services (3 columns) ---------- */
#services .services { grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.service { padding: 28px; border-top: 3px solid var(--navy); background: #f6f9fb; border-radius: 0 0 8px 8px; }
.service .icon { color: var(--blue); margin-bottom: 12px; }
.service h5 { color: var(--navy); }
.service p { color: #333; }
.service__list { margin: -4px 0 16px; padding-left: 1.2em; color: #333; }
.service__list li { margin: 2px 0; }
@media (max-width: 900px) { #services .services { grid-template-columns: 1fr; } }

/* ---------- Home: our story refresh ---------- */
.story__box { border-radius: 8px; backdrop-filter: blur(4px); background: rgba(15, 36, 48, .82); padding: 40px; }
.story__box h4 { color: var(--blue-light); font-size: 1rem; letter-spacing: .12em; margin-bottom: .4em; }
.story__lead { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 .7em; }
.story__box .btn { margin-top: 8px; }
@media (max-width: 600px) { .story__box { padding: 28px 22px; } }

/* =========================================================
   Shared section pieces (used on Virtual Tours and later pages)
   ========================================================= */
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--blue); margin: 0 0 .4em; }
.section-title { font-weight: 400; color: var(--navy); font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-band .btn-row { justify-content: center; }

/* Featured tour photo with a "play" label */
.featured-tour { position: relative; display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 36, 48, .2); }
.featured-tour img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.featured-tour:hover img { transform: scale(1.05); }
.featured-tour__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(15, 36, 48, .85); color: var(--white); text-decoration: none; white-space: nowrap;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 22px; border-radius: 999px; transition: background .2s;
}
.featured-tour:hover .featured-tour__play { background: var(--blue); }

/* Benefit columns */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit { background: var(--white); border-radius: 8px; padding: 28px; box-shadow: 0 4px 20px rgba(15, 36, 48, .08); }
.benefit .icon { color: var(--blue); margin-bottom: 12px; }
.benefit h5 { color: var(--navy); }
.benefit p { margin: 0; color: #333; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
@media (max-width: 500px) { .checklist { grid-template-columns: 1fr; } }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: none; }
.steps li { text-align: center; }
.steps__num {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 1.6rem;
}
.steps h5 { color: var(--navy); }
.steps p { color: #333; max-width: 32ch; margin: 0 auto; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Closing call-to-action band */
.cta-band { background: var(--navy); color: var(--white); padding: 64px 0; }
.cta-band h2 { font-weight: 400; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* ---------- Real Estate page ---------- */
.intro { max-width: 68ch; margin: 0 auto; font-size: 1.1rem; color: #333; }
.stats--two { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { .stats--two { grid-template-columns: 1fr; } }

/* Gallery with one large featured photo */
.gallery--featured { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.gallery--featured a { border-radius: 6px; }
.gallery--featured .is-featured { grid-column: span 2; grid-row: span 2; }
.gallery--featured .is-featured img { height: 100%; aspect-ratio: auto; }
@media (max-width: 800px) { .gallery--featured { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Commercial page ---------- */
.service-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(15, 36, 48, .1); display: flex; flex-direction: column; }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; }
.service-card__body { padding: 24px 28px 28px; }
.service-card h5 { color: var(--navy); font-size: 1.5rem; }
.service-card p { margin: 0; color: #333; }
@media (max-width: 800px) { .service-cards { grid-template-columns: 1fr; } }

/* 3-column gallery variant (featured photo still spans 2x2) */
.gallery--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .gallery--three { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Samples page: tour cards ---------- */
.tour-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.tour-cards--two { grid-template-columns: repeat(2, 1fr); }
.tour-card {
  display: flex; flex-direction: column; background: var(--white); color: var(--ink); text-decoration: none;
  border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(15, 36, 48, .1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tour-card:hover, .tour-card:focus-visible { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(15, 36, 48, .2); }
.tour-card__img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.tour-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tour-card:hover .tour-card__img img { transform: scale(1.06); }
.tour-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tour-card h5 { color: var(--navy); font-size: 1.35rem; margin-bottom: .4em; }
.tour-card p { margin: 0 0 16px; color: #333; flex: 1; }
.tour-card:hover .photo-card__cta { color: var(--navy); }
@media (max-width: 900px) { .tour-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tour-cards, .tour-cards--two { grid-template-columns: 1fr; } }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); color: var(--ink); text-decoration: none;
  border-radius: 8px; padding: 32px 24px; border-top: 3px solid var(--navy);
  box-shadow: 0 4px 20px rgba(15, 36, 48, .1); transition: transform .25s ease, box-shadow .25s ease;
}
a.contact-card:hover, a.contact-card:focus-visible { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(15, 36, 48, .2); }
.contact-card .icon { color: var(--blue); margin-bottom: 12px; }
.contact-card h5 { color: var(--gray); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; margin-bottom: .3em; }
.contact-card__value { font-family: var(--font-head); color: var(--navy); font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 0 0 12px; overflow-wrap: anywhere; }
.contact-card__note { color: #555; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }

.help-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.help-links a {
  display: block; background: var(--white); border-radius: 8px; padding: 20px 22px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 36, 48, .08); transition: transform .2s ease;
}
.help-links a:hover { transform: translateY(-4px); }
.help-links strong { display: block; font-family: var(--font-head); font-weight: 400; color: var(--navy); font-size: 1.25rem; }
.help-links strong::after { content: " \2192"; color: var(--blue); }
.help-links span { color: #444; font-size: .95rem; }
@media (max-width: 900px) { .help-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .help-links { grid-template-columns: 1fr; } }

/* ---------- Bottom banner as footer (logo + badge) ---------- */
.cta-band { padding-bottom: 32px; }
.cta-band__brand {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15);
}
.cta-band__brand .logo img {
  height: 56px; width: auto;
  background: rgba(255, 255, 255, .92); padding: 6px 12px; border-radius: 6px;
}
.cta-band__brand .badge { height: 56px; width: auto; background: #fff; padding: 6px 10px; border-radius: 6px; }
.cta-band__copy { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 600px) {
  .cta-band__brand { flex-direction: column; gap: 16px; }
  .cta-band__copy { order: 3; }
}

/* ---------- Copyright only (logo and badge removed) ---------- */
.cta-band__brand { justify-content: center; margin-top: 40px; padding-top: 20px; }
.copyright-bar { background: var(--navy); text-align: center; padding: 20px 16px; }
.copyright-bar p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* ---------- Home banner title: classic serif ---------- */
:root { --font-display: "Playfair Display", Georgia, serif; }
.hero h1.hero__title--serif {
  font-family: var(--font-display); font-weight: 500; text-transform: none;
  letter-spacing: .01em; font-size: clamp(2.4rem, 6.5vw, 4.6rem);
}


/* =========================================================
   Navy & gold color scheme: component overrides
   ========================================================= */
.btn { background: var(--gold-dark); color: var(--white); }
.btn:hover { background: var(--navy); color: var(--white); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--gold-dark); }
.btn--pill { background: var(--gold-dark); color: var(--white); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.service { background: #faf7f1; border-top-color: var(--gold); }
.contact-card { border-top-color: var(--gold); }
.story__box h4 { color: var(--gold); }
.featured-tour:hover .featured-tour__play { background: var(--gold-dark); }
.photo-card:hover .photo-card__cta, .tour-card:hover .photo-card__cta { color: var(--navy); }
.cta-band__brand { border-top-color: rgba(184, 151, 90, .35); }

/* ---------- All banner titles use the classic serif ---------- */
.hero h1 {
  font-family: var(--font-display); font-weight: 500; text-transform: none;
  letter-spacing: .01em; font-size: clamp(2.2rem, 5.5vw, 4rem);
}
.hero h1.hero__title--serif { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }

/* ---------- Section headings use the classic serif too ----------
   (small card titles, labels and buttons stay in Oswald for contrast) */
h2, h3, .story__lead {
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0;
}
h3.center { text-transform: none; color: var(--navy); font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.section-title, .cta-band h2 { font-weight: 500; }
.photo-card__body h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); text-transform: none; }
.service-card h5, .tour-card h5, .benefit h5, .service h5, .steps h5 { letter-spacing: .01em; }

/* =========================================================
   Galleries: masonry layout, hover captions, fade-in on scroll
   ========================================================= */
.gallery--masonry { display: block; column-count: 3; column-gap: 14px; margin-top: 28px; }
.gallery--masonry a {
  position: relative; display: block; break-inside: avoid; margin: 0 0 14px;
  border-radius: 6px; overflow: hidden; background: var(--blue-light);
}
.gallery--masonry img { width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; transition: transform .6s ease, filter .4s ease; }
.gallery--masonry a:hover img, .gallery--masonry a:focus-visible img { transform: scale(1.04); filter: brightness(.82); }

/* caption that slides up on hover (text comes from each photo's description) */
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px;
  color: var(--white); font-size: .95rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(15, 36, 48, .85));
  transform: translateY(100%); transition: transform .35s ease; pointer-events: none;
}
.gallery__cap::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-bottom: 8px; }
.gallery--masonry a:hover .gallery__cap, .gallery--masonry a:focus-visible .gallery__cap { transform: none; }
.gallery__zoom {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--navy);
  opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.gallery--masonry a:hover .gallery__zoom, .gallery--masonry a:focus-visible .gallery__zoom { opacity: 1; transform: none; }

@media (max-width: 900px) { .gallery--masonry { column-count: 2; } }
@media (max-width: 520px) { .gallery--masonry { column-gap: 8px; } .gallery--masonry a { margin-bottom: 8px; } .gallery__cap { font-size: .8rem; padding: 20px 10px 8px; } }
@media (max-width: 360px) { .gallery--masonry { column-count: 1; } }
/* touch screens have no hover: show captions all the time */
@media (hover: none) { .gallery__cap { transform: none; } }

/* fade-in on scroll (only when JavaScript is running, so photos never stay hidden) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gallery--masonry img, .gallery__cap { transition: none; }
}

/* =========================================================
   Full-screen photo viewer
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: rgba(8, 18, 24, .96); color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.lb-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px; touch-action: pan-y; }
.lb-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transition: opacity .35s ease, transform .35s ease;
}
.lb-stage img.is-loading { opacity: 0; transform: scale(.97); }
.lb-caption { text-align: center; padding: 14px 16px 6px; font-family: var(--font-display); font-size: 1.15rem; min-height: 1.5em; }
.lb-thumbs { display: flex; gap: 8px; padding: 10px 16px 16px; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 auto; width: 72px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button.is-active { opacity: 1; border-color: var(--gold); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox .lb-btn {
  position: static; background: rgba(255, 255, 255, .1); border: 0; color: var(--white); cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; transition: background .2s;
}
.lightbox .lb-btn:hover { background: var(--gold-dark); }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 10px; }
.lightbox .lb-next { right: 10px; }
@media (max-width: 600px) {
  .lb-stage { padding: 0 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { display: none; } /* swipe instead */
  .lb-thumbs button { width: 56px; height: 40px; }
}
body.lb-lock { overflow: hidden; }
.lightbox .lb-thumbs button { position: static; font-size: 0; color: inherit; }
.lightbox { align-items: stretch; justify-content: flex-start; padding: 0; }
.lb-top { width: 100%; }
.lb-thumbs { padding-top: 16px; }

/* 3-across photo cards (Real Estate "Who we work with") */
.service-cards--three { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-cards--three h5 { font-size: 1.3rem; }
.service-cards--three .service-card__body { padding: 20px 22px 24px; }
@media (max-width: 900px) { .service-cards--three { grid-template-columns: 1fr; } }

/* Balanced masonry (columns built by main.js) */
.gallery--masonry { --cols: 3; }
@media (max-width: 900px) { .gallery--masonry { --cols: 2; } }
@media (max-width: 360px) { .gallery--masonry { --cols: 1; } }
.gallery--masonry.is-balanced { display: flex; align-items: flex-start; gap: 14px; column-count: auto; }
.gallery__col { flex: 1 1 0; min-width: 0; }
.gallery__col > a:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .gallery--masonry.is-balanced { gap: 8px; } }

/* Justified gallery rows (sizes set by main.js) */
.gallery--masonry.is-justified { display: flex; flex-wrap: wrap; gap: 10px; column-count: auto; }
.gallery--masonry.is-justified a { flex: none; margin: 0; }
.gallery--masonry.is-justified img { width: 100%; height: 100%; object-fit: cover; }
.service-cards:not(.service-cards--three) .service-card img { aspect-ratio: 2 / 1; object-position: center 40%; }

/* Email card: "Send an email" link + "Copy address" button */
.contact-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.contact-card__actions .photo-card__cta { text-decoration: none; }
.contact-card__actions .photo-card__cta:hover { color: var(--navy); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--ice); color: var(--navy); border: 1px solid rgba(15, 36, 48, .15); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.copy-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.copy-btn.is-copied { background: var(--gold-dark); color: var(--white); border-color: var(--gold-dark); }

/* ---------- Home: three service cards ---------- */
.photo-cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.photo-cards .photo-card__body { padding: 22px 24px 26px; }
@media (max-width: 960px) { .photo-cards { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }

/* ---------- Home: featured work strip (rows sized by main.js) ---------- */
.justify { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.justify > a { position: relative; flex: none; display: block; overflow: hidden; border-radius: 6px; background: var(--blue-light); }
.justify > a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.justify > a:hover img, .justify > a:focus-visible img { transform: scale(1.05); filter: brightness(.85); }
/* before the script sizes the rows, show a simple grid */
.justify:not(.is-justified) > a { width: calc(25% - 8px); aspect-ratio: 3 / 2; }

/* ---------- Home: slow zoom on the banner photo ---------- */
.hero--zoom { isolation: isolate; overflow: hidden; background: var(--navy); }
.hero--zoom .hero__bg {
  position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat;
  animation: hero-zoom 24s ease-in-out infinite alternate; will-change: transform;
}
.hero--zoom::before { z-index: -1; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero--zoom .hero__bg { animation: none; } }

/* ---------- Logo beside the copyright (bottom of every page) ---------- */
.brand-line { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.brand-line p { margin: 0; }
.brand-line__logo img {
  height: 40px; width: auto; display: block;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px rgba(255,255,255,.7));
}
.brand-line__logo img {
  height: 50px;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px rgba(255,255,255,.8));
}

/* ---------- People & Events page ---------- */
.gallery--lead { display: block; margin-top: 28px; }
.section .center .intro { text-wrap: balance; }
.gallery--lead a { border-radius: 6px; }
.gallery--lead img { aspect-ratio: auto; height: auto; }
.gallery--lead + .gallery--masonry { margin-top: 10px; }
.service-card p.service-card__more { margin-top: 14px; }
@media (min-width: 801px) { .photo-cards--two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 801px) and (max-width: 960px) { .nav ul { gap: 18px; } .nav a { font-size: .88rem; } }
