:root {
  --stanford-red: #8c1515;
  --stanford-red-bg: #f9f6f2;
  --stanford-gray: #4d4f53;
}

body {
  font-family: "Lora", serif;
  background: linear-gradient(120deg, var(--stanford-red) 60%, #fff 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1,
.display-3,
.section-title {
  font-style: italic;
}

/* Navbar */
.navbar {
  background: var(--stanford-red);
  border-bottom: 1px solid #e5e5e5;
  font-family: "Lora", serif;
  font-style: italic;
}
.navbar a,
.navbar-brand {
  color: #fff !important;
  font-weight: bold;
}

/* Section Titles */
.section-title {
  color: var(--stanford-red-bg);
  font-weight: bold;
}
.section-title-white {
  color: var(--stanford-red);
  font-weight: bold;
}

/* Contact Icons */
.contact-icons a {
  color: var(--stanford-red);
  margin-right: 1rem;
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background: var(--stanford-gray);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

/* Sticky Navbar */
.sticky-top {
  z-index: 1020;
}

/* Section Scroll Margin */
section {
  scroll-margin-top: 76px;
}
@media (max-width: 1000px) {
  section {
    scroll-margin-top: 30vh;
  }
}

/* Card Styles */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  background: #fff;
}
.card-title {
  color: var(--stanford-red);
  font-weight: 700;
}
.card::before {
  content: "";
  display: block;
  height: 6px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.card-body {
  background: #faf7f7;
  border-radius: 0 0 1rem 1rem;
  padding-top: 1.25rem;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 8px 32px rgba(140, 21, 21, 0.12),
    0 3px 8px rgba(140, 21, 21, 0.1);
}

/* --- HERO SECTION --- */
.hero-section {
  margin-left: calc(50% - 50vw);
  min-height: calc(100vh - 56px); /* Adjust 56px if your navbar is taller */
  overflow: hidden;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-section .row {
  width: 100%;
  margin: 0;
  min-height: inherit;
}

.hero-text-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-col {
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-img {
  max-width: 90%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1.5rem;

  display: block;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Optional overlay */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;

  pointer-events: none;
  box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    margin-left: 0;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: unset;
    height: auto;
  }
  .hero-img-col,
  .hero-text-wrapper {
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .hero-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .hero-img-overlay {
    border-radius: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
    height: auto;
  }
  .hero-img {
    max-width: 100vw;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .hero-img-overlay {
    border-radius: 1.5rem;
  }
}

/* ...existing code... */

.footer-addresses {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center the address boxes */
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.footer-addresses > div {
  flex: 0 1 320px; /* Prevents stretching, keeps boxes same width */
  max-width: 340px;
  min-width: 200px;

  border-radius: 1rem;
  padding: 1.2rem 1rem;
  margin: 0 0.5rem;
  box-sizing: border-box;
  text-align: center;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 767.98px) {
  .footer-addresses {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .footer-addresses > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    font-size: 0.97rem;
    padding: 1rem 0.5rem;
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .footer-addresses > div {
    font-size: 0.92rem;
    padding: 0.75rem 0.25rem;
  }
}

.gallery-tile:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.larger-title {
  font-size: 1.15rem;
  font-weight: bold;
}

.social-media:hover {
  font-weight: bold !important;
}
