/* ============================================
   Discover Singapore - Styles
   ============================================ */

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

:root {
  --sg-red: #EE2536;
  --sg-dark: #0D1117;
  --sg-charcoal: #1A1F2B;
  --sg-cream: #FAF7F2;
  --sg-warm-gray: #E8E2D9;
  --sg-text: #2D2D2D;
  --sg-text-light: #6B7280;
  --sg-white: #FFFFFF;
  --font-heading: 'Noto Serif SC', 'DM Serif Display', Georgia, serif;
  --font-body: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--sg-text);
  background-color: var(--sg-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--sg-red);
  color: var(--sg-white);
}

.btn-primary:hover {
  background-color: #CC1F2E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 37, 54, 0.3);
}

.btn-full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-smooth);
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--sg-white);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.nav.scrolled .nav-logo {
  color: var(--sg-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--sg-red);
  transition: width 0.3s var(--ease-smooth);
}

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

.nav.scrolled .nav-links a {
  color: var(--sg-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--sg-white);
  transition: all 0.3s;
}

.nav.scrolled .nav-toggle span {
  background-color: var(--sg-dark);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 17, 23, 0.85) 0%,
    rgba(13, 17, 23, 0.4) 60%,
    rgba(13, 17, 23, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 24px;
  margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sg-red);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-smooth) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--sg-white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-smooth) 0.5s forwards;
}

.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-smooth) 0.7s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--sg-red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- Section Base --- */
.section {
  padding: 120px 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sg-red);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--sg-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--sg-text-light);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* --- About --- */
.about {
  background-color: var(--sg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--sg-text-light);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background-color: var(--sg-cream);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--sg-dark);
  line-height: 1;
}

.stat-unit {
  font-size: 0.8125rem;
  color: var(--sg-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--sg-text-light);
  margin-top: 8px;
}

/* --- Attractions --- */
.attractions {
  background-color: var(--sg-cream);
}

.attractions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.attraction-card {
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--sg-white);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.attraction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.attraction-card--large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.attraction-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.attraction-card--large .attraction-img-wrap {
  aspect-ratio: auto;
  min-height: 360px;
}

.attraction-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.attraction-card:hover .attraction-img-wrap img {
  transform: scale(1.05);
}

.attraction-info {
  padding: 32px;
}

.attraction-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sg-red);
  background-color: rgba(238, 37, 54, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.attraction-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--sg-dark);
  margin-bottom: 12px;
}

.attraction-info p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--sg-text-light);
}

/* --- Food --- */
.food {
  background-color: var(--sg-dark);
}

.food .section-label {
  color: var(--sg-red);
}

.food .section-title {
  color: var(--sg-white);
}

.food-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.food-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.food-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.food-intro {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 48px;
}

.food-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.food-item {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.food-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.food-item-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--sg-red);
  flex-shrink: 0;
  width: 48px;
}

.food-item h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--sg-white);
  margin-bottom: 8px;
}

.food-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Culture --- */
.culture {
  background-color: var(--sg-white);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.culture-card {
  background-color: var(--sg-cream);
  border-radius: 20px;
  padding: 32px 24px;
  transition: transform 0.3s var(--ease-smooth);
}

.culture-card:hover {
  transform: translateY(-4px);
}

.culture-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
}

.culture-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.culture-card:hover .culture-img-wrap img {
  transform: scale(1.05);
}

.culture-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--sg-red);
}

.culture-icon svg {
  width: 100%;
  height: 100%;
}

.culture-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--sg-dark);
  margin-bottom: 12px;
}

.culture-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--sg-text-light);
}

/* --- Singlish --- */
.singlish {
  background-color: var(--sg-cream);
  padding: 120px 0;
}

.singlish-card {
  background-color: var(--sg-white);
  border-radius: 24px;
  padding: 64px;
}

.singlish .section-title {
  text-align: center;
  margin-bottom: 12px;
}

.singlish-intro {
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sg-text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

.singlish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.singlish-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background-color: var(--sg-cream);
  border-radius: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

.singlish-item:hover {
  transform: translateY(-3px);
}

.singlish-word {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--sg-red);
}

.singlish-meaning {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--sg-text-light);
}

/* --- Contact --- */
.contact {
  background-color: var(--sg-charcoal);
}

.contact .section-label {
  color: var(--sg-red);
}

.contact .section-title {
  color: var(--sg-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--sg-red);
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--sg-white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sg-red);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Footer --- */
.footer {
  background-color: var(--sg-dark);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  line-height: 1.7;
}

.footer-brand .nav-logo {
  color: var(--sg-red);
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--sg-white);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a:hover {
  color: var(--sg-red);
}

.footer-links > p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: var(--sg-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--sg-red);
}

.newsletter-form .btn {
  padding: 12px 24px;
  font-size: 0.8125rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .culture-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--sg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.25rem;
    color: var(--sg-white) !important;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .attractions-grid {
    grid-template-columns: 1fr;
  }

  .attraction-card--large {
    grid-template-columns: 1fr;
  }

  .food-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .food-image-wrap {
    position: static;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .singlish-card {
    padding: 40px 24px;
  }

  .singlish-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    margin-left: 24px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
