/* ================================================
   Halle Mary Events – Static Site Styles
   ================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: #222;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ---------- Variables ---------- */
:root {
  --navy:   #1a2044;
  --coral:  #d97a60;
  --cream:  #fdf5ef;
  --white:  #ffffff;
  --text-light: rgba(255,255,255,0.9);
}

/* ================================================
   NAVIGATION
   ================================================ */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-name-top,
.logo-name-bottom {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white);
}

.logo-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 3px 0;
}

.logo-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.7);
}

.logo-icon {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.logo-events {
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

/* Logo image (real PNG) */
.logo-img {
  height: 72px;
  width: auto;
  display: block;
  /* Squarespace logo is dark; invert to white for dark hero background */
  filter: brightness(0) invert(1);
}

/* Nav Link */
.nav-contact {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: opacity 0.2s;
}
.nav-contact:hover { opacity: 0.75; }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: #1a2a4a;
  background-image: url('../images/hero-bg.jpg');
  /* Fallback if image not yet downloaded – gradient approximates the dark ballroom photo */
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 55, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
}

.hero-content h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

/* ================================================
   SERVICES
   ================================================ */
.services {
  background: var(--cream);
  padding: 80px 48px 90px;
  text-align: center;
}

.services h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 52px;
  letter-spacing: 0.01em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  text-align: center;
}

.service-card .service-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 16px;
  background: #d0c8c0; /* placeholder colour */
}

.service-card .img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #c8bfb8, #b0a8a0);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 13px;
  font-style: italic;
}

.service-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--coral);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.service-card p {
  font-size: 14.5px;
  font-weight: 400;
  color: #333;
  line-height: 1.7;
  text-align: center;
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  background: var(--coral);
  padding: 80px 80px 60px;
}

.about-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto 60px;
  align-items: start;
}

.about-text h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 36px;
}

.about-text p {
  font-size: 15.5px;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-photo {
  flex-shrink: 0;
}

.about-photo img,
.about-photo .img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: rgba(0,0,0,0.2);
}

.about-photo .img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-size: 13px;
}

/* Photo gallery row */
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-photo-item {
  position: relative;
}

.about-photo-item img,
.about-photo-item .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: rgba(0,0,0,0.2);
}

.about-photo-item .img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-size: 13px;
}

.about-photo-item .photo-caption {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  font-style: italic;
}

/* ================================================
   PHOTO GALLERY
   ================================================ */
.gallery {
  background: var(--navy);
  padding: 0;
  overflow: hidden;
}

.gallery-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 12px;
  animation: gallery-scroll 40s linear infinite;
  width: max-content;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-track img {
  height: 280px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

@keyframes gallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .gallery-track img {
    height: 200px;
  }
}

/* ================================================
   NONPROFIT EXPERIENCE
   ================================================ */
.nonprofits {
  background: #fff;
  padding: 80px 48px 90px;
  text-align: center;
}

.nonprofits h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--coral);
  margin-bottom: 60px;
  letter-spacing: 0.01em;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 48px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
}

.logo-item img {
  max-height: 100px;
  max-width: 160px;
  object-fit: contain;
  filter: none;
}

.logo-text-fallback {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--cream);
  padding: 48px 80px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.footer-brand h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: #666;
}

.footer-brand a {
  color: var(--coral);
}

/* Logo text fallback (when img fails) */
.footer-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--navy);
}

/* Footer logo image */
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* Footer logo (dark version) */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--navy);
}

.footer-logo .logo-name-top,
.footer-logo .logo-name-bottom {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--navy);
}

.footer-logo .logo-divider hr {
  border-top-color: var(--navy);
  opacity: 0.4;
}

.footer-logo .logo-events {
  font-size: 8px;
  color: var(--navy);
  opacity: 0.7;
}

.footer-logo .logo-icon path,
.footer-logo .logo-icon rect {
  stroke: var(--coral);
}

.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: var(--coral);
  line-height: 1.8;
  display: block;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-main {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }

  .hero { height: 420px; }

  .services, .nonprofits { padding: 60px 24px 70px; }
  .about { padding: 60px 24px 50px; }
  footer { padding: 40px 24px; }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .about-photos {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
