/* Cityview — Greek Revival inspired theme */

:root {
  --cv-marble: #f8f6f1;
  --cv-stone: #ebe6dc;
  --cv-stone-deep: #d9d2c5;
  --cv-charcoal: #2c3238;
  --cv-charcoal-deep: #1f2428;
  --cv-charcoal-rgb: 44, 50, 56;
  --cv-bronze: #9a7b4f;
  --cv-bronze-light: #c4a574;
  --cv-bronze-rgb: 154, 123, 79;
  --cv-ivory: #fffdf9;
  --cv-text: #3a3f44;

  --cv-primary: var(--cv-charcoal);
  --cv-primary-dark: var(--cv-charcoal-deep);
  --cv-primary-rgb: var(--cv-charcoal-rgb);
  --cv-accent: var(--cv-bronze);
  --cv-accent-rgb: var(--cv-bronze-rgb);
  --cv-surface: var(--cv-marble);

  --cv-font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --cv-font-body: "Source Sans 3", system-ui, sans-serif;
  --cv-meander: url("images/meander.svg");

  --bs-primary: var(--cv-charcoal);
  --bs-primary-rgb: var(--cv-charcoal-rgb);
  --bs-secondary: #6c757d;
  --bs-body-font-family: var(--cv-font-body);
  --bs-body-color: var(--cv-text);
  --bs-body-bg: var(--cv-ivory);
  --bs-link-color: var(--cv-bronze);
  --bs-link-hover-color: var(--cv-charcoal-deep);
  --bs-border-radius: 0.2rem;
  --bs-border-radius-lg: 0.25rem;
}

body.site-classical {
  background-color: var(--cv-ivory);
}

/* —— Entablature & meander —— */
.entablature {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background:
    linear-gradient(var(--cv-bronze), var(--cv-bronze)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--cv-stone-deep), var(--cv-stone-deep)) 0 2px / 100% 1px no-repeat,
    linear-gradient(var(--cv-charcoal), var(--cv-charcoal)) 0 4px / 100% 1px no-repeat;
}

.meander-rule {
  height: 12px;
  margin: 1.25rem 0;
  background: var(--cv-meander) repeat-x center;
  background-size: 48px 12px;
  opacity: 0.9;
}

.classical-heading {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.classical-heading .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.classical-heading .section-title::before,
.classical-heading .section-title::after {
  content: "";
  flex: 1;
  max-width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cv-bronze));
}

.classical-heading .section-title::after {
  background: linear-gradient(90deg, var(--cv-bronze), transparent);
}

/* —— Navbar (limestone facade) —— */
.navbar-classical {
  background: linear-gradient(180deg, var(--cv-ivory) 0%, var(--cv-marble) 100%);
  border-bottom: 1px solid var(--cv-stone-deep);
  padding-top: 0.65rem;
  padding-bottom: calc(0.65rem + 5px);
  transition: box-shadow 0.25s ease;
}

.navbar-classical.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(var(--cv-charcoal-rgb), 0.1);
}

.navbar-classical .navbar-brand {
  font-family: var(--cv-font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cv-charcoal);
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cv-bronze);
  padding: 0.15rem 0.25rem 0;
}

.brand-accent {
  color: var(--cv-bronze);
  font-style: italic;
}

.navbar-classical .navbar-toggler {
  border-color: var(--cv-stone-deep);
  color: var(--cv-charcoal);
}

.navbar-classical .navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232c3238' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-classical .nav-link {
  font-family: var(--cv-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cv-charcoal);
  padding: 0.5rem 0.85rem;
  border-radius: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-classical .nav-link:hover,
.navbar-classical .nav-link:focus {
  color: var(--cv-bronze);
  background-color: rgba(var(--cv-bronze-rgb), 0.08);
}

.navbar-classical .nav-link.active {
  color: var(--cv-bronze);
  background-color: transparent;
  box-shadow: inset 0 -2px 0 var(--cv-bronze);
}

/* —— Typography —— */
.hero-title,
.section-title,
.stat-value,
.footer-brand,
.card-title {
  font-family: var(--cv-font-display);
}

/* —— Buttons —— */
.btn-accent {
  --bs-btn-color: var(--cv-ivory);
  --bs-btn-bg: var(--cv-bronze);
  --bs-btn-border-color: var(--cv-bronze);
  --bs-btn-hover-color: var(--cv-ivory);
  --bs-btn-hover-bg: #7d6340;
  --bs-btn-hover-border-color: #7d6340;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 0;
}

.btn-primary {
  --bs-btn-bg: var(--cv-charcoal);
  --bs-btn-border-color: var(--cv-charcoal);
  --bs-btn-hover-bg: var(--cv-charcoal-deep);
  --bs-btn-hover-border-color: var(--cv-charcoal-deep);
  border-radius: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.text-bg-accent {
  background-color: var(--cv-stone) !important;
  color: var(--cv-charcoal) !important;
  border: 1px solid var(--cv-stone-deep);
}

/* —— Hero carousel (portico & pediment) —— */
.hero-carousel {
  position: relative;
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(0px, 4vw, 48px);
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 2px,
    transparent 2px,
    transparent 8px
  );
  opacity: 0.5;
}

.hero-carousel::before {
  left: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-carousel::after {
  right: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-carousel .carousel-item {
  height: min(72vh, 560px);
  min-height: 380px;
}

.hero-carousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: sepia(0.12) contrast(1.05) brightness(0.78);
}

.hero-carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 36, 40, 0.88) 0%,
    rgba(44, 50, 56, 0.4) 50%,
    rgba(44, 50, 56, 0.15) 100%
  );
  pointer-events: none;
}

.hero-caption {
  bottom: 1.5rem;
  left: 0;
  right: 0;
  padding: 0 1rem 2rem;
  text-align: center;
  z-index: 3;
}

.hero-caption-inner {
  position: relative;
  display: inline-block;
  max-width: 40rem;
  padding: 2.25rem 2rem 1.75rem;
  background: rgba(248, 246, 241, 0.94);
  color: var(--cv-charcoal);
  border: 1px solid var(--cv-stone-deep);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-caption-inner::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 16px solid var(--cv-stone-deep);
}

.hero-caption-inner::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 14px solid rgba(248, 246, 241, 0.94);
}

.hero-eyebrow {
  font-family: var(--cv-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cv-bronze);
  margin: 0;
}

.hero-title {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 700;
  color: var(--cv-charcoal-deep);
  letter-spacing: 0.01em;
  text-shadow: none;
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1rem;
  color: var(--cv-text);
  opacity: 1;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 2rem;
  height: 3px;
  border-radius: 0;
  margin: 0 0.2rem;
  background-color: var(--cv-bronze-light);
  border: none;
  opacity: 0.6;
}

.hero-carousel .carousel-indicators .active {
  opacity: 1;
  background-color: var(--cv-ivory);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 8%;
  opacity: 0.85;
}

/* —— Stats (symmetrical plinths) —— */
.section-stats {
  background: var(--cv-stone);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  border-top: 3px solid var(--cv-bronze);
  border-bottom: 1px solid var(--cv-stone-deep);
}

.stat-card {
  background: var(--cv-ivory);
  border: 1px solid var(--cv-stone-deep);
  border-top: 3px solid var(--cv-bronze);
  border-radius: 0;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 2px 8px rgba(var(--cv-charcoal-rgb), 0.06);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--cv-charcoal-rgb), 0.1);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cv-charcoal-deep);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
}

/* —— Sections —— */
.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }

  .section-block {
    position: relative;
  }

  .section-block .container {
    position: relative;
  }
}

.section-alt {
  background-color: var(--cv-marble);
  border-top: 1px solid var(--cv-stone);
  border-bottom: 1px solid var(--cv-stone);
}

.section-eyebrow {
  font-family: var(--cv-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cv-bronze);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--cv-charcoal-deep);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 32rem;
  color: var(--bs-secondary-color);
}

/* Portico frame around building photo */
.about-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

#about .portico-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 1rem;
  background: var(--cv-stone);
  border: 1px solid var(--cv-stone-deep);
}

.portico-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 14px solid var(--cv-stone-deep);
  transform: translateY(-1px);
}

.portico-frame img,
.about-building-photo {
  border-radius: 0 !important;
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Feature list — Greek cross ornament */
.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cv-stone);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  color: var(--cv-bronze);
  font-size: 1rem;
  line-height: 1.4;
  font-family: var(--cv-font-display);
}

/* —— News cards (classical panels) —— */
.news-card {
  border: 1px solid var(--cv-stone-deep) !important;
  border-top: 3px solid var(--cv-charcoal) !important;
  border-radius: 0 !important;
  background: var(--cv-ivory);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--cv-charcoal-rgb), 0.1) !important;
}

.news-card .card-title {
  color: var(--cv-charcoal-deep);
}

/* —— Contact —— */
.contact-card {
  border-radius: 0 !important;
  border: 1px solid var(--cv-stone-deep);
}

.contact-panel {
  background: linear-gradient(165deg, var(--cv-charcoal) 0%, var(--cv-charcoal-deep) 100%);
  border-right: 3px solid var(--cv-bronze);
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cv-bronze-light);
}

.contact-action {
  background: var(--cv-marble);
  border: 1px solid var(--cv-stone-deep);
  border-radius: 0 !important;
  border-left: 3px solid var(--cv-bronze);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-action:hover {
  background-color: var(--cv-ivory);
}

/* —— Cameras page —— */
.page-hero {
  background: linear-gradient(165deg, var(--cv-charcoal) 0%, var(--cv-charcoal-deep) 100%);
  border-bottom: 3px solid var(--cv-bronze);
  position: relative;
}

.page-hero::after {
  content: "";
  display: block;
  height: 12px;
  background: var(--cv-meander) repeat-x center;
  background-size: 48px 12px;
  opacity: 0.5;
  margin-top: 0;
}

.page-hero .container {
  padding-bottom: 0;
}

.page-hero-lead {
  max-width: 36rem;
}

.camera-card {
  border: 1px solid var(--cv-stone-deep) !important;
  border-top: 3px solid var(--cv-bronze) !important;
  border-radius: 0 !important;
  background: var(--cv-ivory);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.camera-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--cv-charcoal-rgb), 0.1) !important;
}

.camera-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0;
  background: var(--cv-marble);
  border: 1px solid var(--cv-stone-deep);
  color: var(--cv-bronze);
}

/* —— Footer (foundation & meander) —— */
.site-footer {
  background: var(--cv-charcoal-deep);
  color: rgba(255, 255, 255, 0.85);
  border-top: 4px solid var(--cv-bronze);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 12px;
  background: var(--cv-meander) repeat-x center;
  background-size: 48px 12px;
  opacity: 0.35;
  margin-bottom: 0;
}

.footer-brand {
  font-family: var(--cv-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cv-ivory);
}

.footer-tagline,
.footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
  font-family: var(--cv-font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cv-bronze-light);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline-block;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cv-bronze-light);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}