/* =========================================
   Brand Variables (ORIGINAL)
========================================= */
:root {
  --bulldog-red: #BA0C2F;
  --arch-black: #000000;
  --chapel-white: #FFFFFF;
  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --bg-alt: #f5f5f5;
}

/* =========================================
   Global Reset
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--chapel-white);
  color: var(--text-dark);
  line-height: 1.6;
}

/* =========================================
   Navigation (LOGO SIZE RESTORED)
========================================= */
.nav {
  background: var(--chapel-white);
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-brand img {
  width: 44px;
  height: 44px;
}

.nav-brand span {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--arch-black);
}

/* Nav links + underline animation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--arch-black);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--bulldog-red);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--bulldog-red);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.cta {
  color: var(--bulldog-red);
  font-weight: 600;
}

/* =========================================
   Hero (STABLE + ANIMATED)
========================================= */
.hero {
  background-color: var(--chapel-white);
  padding: 4.75rem 1rem 8rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  animation: fadeUp 0.9s ease-out forwards;
}

.hero-logo {
  width: 280px;
  margin-bottom: 2rem;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background-color: var(--bulldog-red);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--arch-black);
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Hero animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Sections + Scroll Reveal
========================================= */
.section {
  padding: 4rem 1rem;
}

.section.alt {
  background-color: var(--bg-alt);
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--arch-black);
}

.section p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* =========================================
   Grid Cards (HOVER LIFT)
========================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  list-style: none;
  margin-top: 2rem;
}

.grid li {
  background: var(--chapel-white);
  padding: 1.75rem;
  border-left: 4px solid var(--bulldog-red);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid li:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.grid h3 {
  margin-bottom: 0.5rem;
  color: var(--arch-black);
}

/* =========================================
   Buttons (HOVER + PRESS)
========================================= */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 1.75rem;
  padding: 0.65rem 1.6rem;

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: var(--chapel-white);
  background-color: var(--bulldog-red);
  border: 2px solid var(--bulldog-red);
  border-radius: 4px;

  text-decoration: none;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.learn-more-btn:hover {
  background-color: #9f0a26;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.learn-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* =========================================
   Feature Sections (FIXED LAYOUT)
========================================= */
.feature {
  padding: 4rem 1rem;
}

.feature-container {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.feature-text {
  max-width: 520px;
}

.feature-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Feature Images (DEPTH HOVER) */
.image-frame {
  width: 520px;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;

  background: var(--chapel-white);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 45px rgba(0,0,0,0.22);

  transform: translateY(36px);
  transition: transform 0.35s ease;
}

.image-frame:hover {
  transform: translateY(30px) scale(1.01);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flip alternating sections */
.feature.flip .feature-text {
  order: 2;
}

.feature.flip .feature-image {
  order: 1;
}
.feature.flip .feature-text {
  text-align: right;
  justify-self: end;
}
.feature.flip .learn-more-btn {
  margin-left: auto;
}

/* =========================================
   Footer
========================================= */
.footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-rule {
  width: 40px;
  height: 2px;
  background: var(--bulldog-red);
  margin: 1rem auto 0;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-logo {
    width: 220px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .feature-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-text {
    max-width: 100%;
  }

  .image-frame {
    width: 100%;
    height: 240px;
    transform: none;
  }
}
/* =========================================
   Contact Email Link (RED + INTERACTIVE)
========================================= */
#contact a {
  color: var(--bulldog-red);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

#contact a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: var(--bulldog-red);
  transition: width 0.25s ease;
}

#contact a:hover {
  color: #9f0a26;
}

#contact a:hover::after {
  width: 100%;
}
#contact strong {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--arch-black);
}

/* =========================================
   Click Spin Animation (IMAGES ONLY)
========================================= */
.image-frame img {
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame img.spin {
  transform: rotate(360deg);
}
/* =========================================
   About Page Typography Fixes
========================================= */

/* Improve vertical rhythm between sections */
.section + .section {
  margin-top: 1rem;
}

/* About page headings */
.page-header + .section h2 {
  margin-top: 0;
}

.section h2 {
  line-height: 1.25;
}

/* Paragraph spacing consistency */
.section p {
  max-width: 68ch;
}

/* About lists (structure section) */
.about-list {
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--bulldog-red);
  font-weight: 700;
}

/* Leadership spacing */
.section strong {
  display: inline-block;
  margin-top: 0.75rem;
}
/* Remove underline from ALL nav links, including logo */
.nav a,
.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:active {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-padding-top: 90px;
}

/* Restore CTA color on ALL states, ALL pages */
.nav a.cta,
.nav a.cta:link,
.nav a.cta:visited,
.nav a.cta:hover,
.nav a.cta:active {
  color: var(--bulldog-red);
  font-weight: 600;
}

html {
  scroll-padding-top: 90px;
}
/* Restore CTA color */
.nav-links a.cta {
  color: var(--bulldog-red);
}
/* =========================================
   Hero Background Image (Tasteful + Professional)
========================================= */
.hero {
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.5)
    ),
    url("../assets/fountain.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  background: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 2rem;
  border-radius: 12px;
}
/* ==============================
   Mobile Navigation (FINAL, CLEAN)
================================ */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: #111;
  border-radius: 2px;
}

.nav-toggle:focus,
.nav-toggle:focus-visible {
  outline: none;
}

/* ==============================
   Mobile Styles
================================ */
@media (max-width: 768px) {

  .nav-container {
    position: relative;
    align-items: center;
  }

  /* Prevent logo from touching hamburger */
  .nav-brand {
    padding-right: 3rem;
  }

  /* Hamburger */
  .nav-toggle {
    display: flex;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Dropdown menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;

    background: var(--chapel-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .nav-brand img {
    width: 32px;
    height: 32px;
  }

  .nav-brand span {
    font-size: 0.95rem;
  }
}
/* Make nav links full width on mobile for easier tapping */
@media (max-width: 768px) {
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
  }
}
