/* =============================================
   DUBAI TOURISM WEBSITE - styles.css
   Student: O584MW | Module: COM4014
   ============================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --gold: #C9A84C;
  --dark-gold: #A07830;
  --navy: #0A1628;
  --deep-blue: #142444;
  --sand: #F5EDD6;
  --light-sand: #FBF7EE;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid: #4A4A6A;
  --text-light: #8A8AAA;
  --accent: #E8C06A;
  --shadow: rgba(10, 22, 40, 0.18);
  --radius: 10px;
  --transition: all 0.35s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--light-sand);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gold);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

header {
  background-color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--gold);
}

nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 5px;
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
  background-color: rgba(201,168,76,0.12);
}

nav ul li a.nav-cta {
  background-color: var(--gold);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 5px;
}

nav ul li a.nav-cta:hover {
  background-color: var(--accent);
  color: var(--navy);
}

/* =============================================
   HERO SECTION (Home Page)
   ============================================= */

.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--deep-blue) 55%, #1E3A5F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.30;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,22,40,0.45) 0%, rgba(10,22,40,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 22px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 38px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  margin-left: 14px;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* =============================================
   PAGE HERO (Inner Pages)
   ============================================= */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: var(--light-sand);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* =============================================
   SECTION STRUCTURE
   ============================================= */

.section {
  padding: 80px 24px;
}

.section-alt {
  background-color: var(--sand);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color:  #8B6508;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: 50px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* =============================================
   CARDS
   ============================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(10,22,40,0.22);
}

.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 22px 24px 26px;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.94rem;
  color: var(--text-mid);
  margin-bottom: 18px;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.card-link:hover {
  color: var(--dark-gold);
}

/* =============================================
   STATS BAR
   ============================================= */

.stats-bar {
  background: var(--navy);
  padding: 40px 24px;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   FEATURE BLOCKS
   ============================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.feature-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: 0 3px 16px var(--shadow);
  border-top: 4px solid var(--gold);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-mid);
  font-size: 0.94rem;
}

/* =============================================
   GALLERY GRID
   ============================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item.tall img {
  height: 476px;
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,22,40,0.75));
  color: var(--white);
  padding: 20px 16px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* =============================================
   CONTACT FORM
   ============================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 3px;
}

.contact-detail p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 38px;
  box-shadow: 0 8px 36px var(--shadow);
}

.form-card h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #DDD8CC;
  border-radius: 7px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #FDFAF5;
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
  background: var(--white);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,22,40,0.2);
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px var(--shadow);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(201,168,76,0.4);
}

.about-badge span {
  font-size: 1.6rem;
  display: block;
}

.about-text h2 {
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-list {
  margin: 22px 0;
}

.about-list li {
  padding: 8px 0;
  color: var(--text-mid);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #EDE8D8;
}

.about-list li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* =============================================
   DESTINATIONS PAGE
   ============================================= */

.dest-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.filter-btn {
  padding: 9px 22px;
  border: 2px solid #DDD8CC;
  background: var(--white);
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.4px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.dest-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10,22,40,0.22);
}

.dest-img-wrap {
  position: relative;
}

.dest-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.dest-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--navy);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dest-body {
  padding: 22px 24px 26px;
}

.dest-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--text-light);
}

.dest-body h3 {
  font-size: 1.22rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.dest-body p {
  font-size: 0.93rem;
  color: var(--text-mid);
  margin-bottom: 18px;
}

.dest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #EDE8D8;
}

.dest-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 700;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.86rem;
  border-radius: 50px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  transition: var(--transition);
}

.btn-sm:hover {
  background: var(--gold);
  color: var(--navy);
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 28px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.65);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.93rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 14px 16px;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  nav ul li a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .hero {
    height: auto;
    padding: 100px 20px;
  }

  .about-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-badge {
    right: 0;
    bottom: -16px;
    width: 90px;
    height: 90px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.tall img {
    height: 230px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 12px;
  }
}