/* =========================
   GLOBAL STYLES
   ========================= */

:root {
  --primary: #1f6f78;
  --secondary: #f3b27a;
  --accent: #e85d75;
  --dark: #1f2933;
  --light: #f9fafb;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================
   HEADER
   ========================= */

header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.mobile-menu-button {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
   HERO
   ========================= */

.hero {
  background: linear-gradient(rgba(31, 111, 120, 0.85), rgba(31, 111, 120, 0.85)),
              url("replacewith[oman-hero-landscape.jpg]") center/cover no-repeat;
  color: white;
  padding: 5rem 1.25rem 4rem;
}

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

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* =========================
   SEARCH BAR
   ========================= */

.search-bar {
  background: white;
  border-radius: 999px;
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.search-bar input,
.search-bar select {
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: #f3f4f6;
}

.search-bar input {
  flex: 1 1 220px;
}

.search-bar select {
  flex: 1 1 150px;
}

.search-bar button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
}

/* =========================
   SECTIONS
   ========================= */

section {
  padding: 3.5rem 1.25rem;
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

.view-all {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* =========================
   CATEGORIES
   ========================= */

.categories {
  background: white;
}

.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.category-card {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-card:hover {
  background: var(--primary);
  color: white;
}

/* =========================
   EVENTS
   ========================= */

.events {
  background: #f9fafb;
}

.event-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.event-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.event-content {
  padding: 1rem 1.25rem 1.25rem;
}

.event-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.event-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.event-date,
.event-location {
  font-size: 0.85rem;
  color: #6b7280;
}

/* =========================
   FOOTER
   ========================= */

footer {
  background: #111827;
  color: #e5e7eb;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: white;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  border-top: 1px solid #1f2933;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 70px;
    background: white;
    flex-direction: column;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
  }

  nav ul.show {
    display: flex;
  }

  .mobile-menu-button {
    display: block;
  }

  .search-bar {
    border-radius: 24px;
  }
}
