/* Base styles */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Open+Sans:wght@300;400;600&display=swap');

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background-color: #f8f8f8;
}

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

/* Layout helpers */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Top header (white bar with crest + title) */

.top-header {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 20px;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  height: 40px; /* keep crest around text height */
  width: auto;
  margin-right: 12px;
}

.header-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #4b0017;
  margin: 0;
}

/* Hero */

.hero {
  background: url('BAJAWebsitePic.jpg') center/cover no-repeat;
  position: relative;
  color: #fff;
  min-height: 65vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 2, 3, 0.75),
    rgba(75, 0, 23, 0.6)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 800px;
}

.hero .crest {
  width: 80px; /* not huge; roughly inline with text block */
  max-width: 20vw;
  flex-shrink: 0;
}

.hero-text h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  margin: 0 0 0.25rem;
}

.hero-text h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.hero-text p {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

/* Section titles */

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin: 0 0 1.5rem;
  text-align: left;
  color: #4b0017;
}

/* About */

.about {
  padding: 3rem 0 2.5rem;
  background-color: #ffffff;
}

.about p {
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 0 0 0.9rem;
}

/* Gallery */

.gallery {
  padding: 3rem 0;
  background-color: #ffffff;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.grid-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Sponsorship */

.sponsorship {
  padding: 3rem 0;
  background-color: #f3f3f7;
}

.sponsorship p {
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.sponsorship table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sponsorship th,
.sponsorship td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.sponsorship th {
  background-color: #800020;
  color: #fff;
}

.sponsorship tr:nth-child(even) td {
  background-color: #fafafa;
}

.sponsorship-level {
  font-weight: 600;
}

.sponsorship .note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* Contact */

.contact {
  padding: 3rem 0 3.5rem;
  background-color: #f8f8f8;
}

.contact p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  margin-top: 0.5rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  background-color: #800020;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.92;
}

/* Footer */

.footer {
  background-color: #111;
  color: #ccc;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 768px) {
  .header-title {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 55vh;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

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

  .hero-text h2 {
    font-size: 1rem;
  }
}
