/* Main Styles for Palmithra Casino Hotel Website */

/* =============== Base Styles =============== */
:root {
  /* Color Palette */
  --harvest-gold: #E6A817;
  --tangerine: #F28500;
  --sunset-orange: #FF4500;
  --ivory: #FFFFF0;
  
  /* Neutral Colors */
  --black: #000000;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #CCCCCC;
  --white: #FFFFFF;
  
  /* Semantic Colors */
  --primary: var(--harvest-gold);
  --secondary: var(--tangerine);
  --accent: var(--sunset-orange);
  --background: var(--ivory);
  --text: var(--dark-gray);
  --text-light: var(--white);
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --line-height-heading: 1.2;
  --line-height-body: 1.5;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container Widths */
  --container-max: 1200px;
  --container-narrow: 900px;
}

/* Box sizing for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--line-height-body);
  color: var(--text);
  background-color: var(--background);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* =============== Typography =============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--dark-gray);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  margin: var(--space-xs) auto 0;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =============== Buttons =============== */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.center {
  text-align: center;
}

/* =============== Header & Navigation =============== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color var(--transition-medium);
  padding: var(--space-sm) 0;
}

#header.scrolled {
  background-color: var(--black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  padding: 0 var(--space-md);
}

.logo img {
  height: 60px;
  transition: height var(--transition-medium);
}

#header.scrolled .logo img {
  height: 50px;
}

.nav-left, .nav-right {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-left li, .nav-right li {
  margin: 0 var(--space-sm);
}

.main-nav a {
  color: var(--white);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  padding: var(--space-xs) 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

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

.main-nav a:hover, 
.main-nav a.active {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: all var(--transition-medium);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  background-color: var(--black);
  z-index: 999;
  padding: var(--space-md) 0;
  transform: translateY(-100%);
  transition: transform var(--transition-medium);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
  color: var(--white);
  font-size: 1.1rem;
  display: block;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

/* =============== Hero Section =============== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('/images/mainbg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

/* =============== Page Header =============== */
.page-header {
  background-image: url('/images/pahegeader.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 120px 0 60px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =============== Sections =============== */
section {
  padding: var(--space-xxl) 0;
}

section.alt-bg {
  background-color: rgba(230, 168, 23, 0.05);
}

/* =============== CTA Section =============== */
.cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/cta-buttonbg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

/* =============== Footer =============== */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-logo img {
  height: 60px;
  margin-bottom: var(--space-md);
}

.footer-col h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  margin-top: var(--space-xs);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

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

.social-icons {
  display: flex;
  margin-top: var(--space-md);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: var(--space-sm);
  transition: background-color var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--primary);
  color: var(--white);
}

address p {
  margin-bottom: var(--space-xs);
}

address a {
  color: var(--light-gray);
}

address a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* =============== Back To Top Button =============== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

/* Icon classes for the social icons and other icons */
[class^="icon-"] {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-facebook {
  background-image: url('../images/icons/facebook.svg');
}

.icon-twitter {
  background-image: url('../images/icons/twitter.svg');
}

.icon-instagram {
  background-image: url('../images/icons/instagram.svg');
}

.icon-youtube {
  background-image: url('../images/icons/youtube.svg');
}

.icon-arrow-up {
  background-image: url('../images/icons/arrow-up.svg');
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============== Responsive Styles =============== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-left, .nav-right {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.3rem;
  }
  
  section {
    padding: var(--space-xl) 0;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.1rem;
  }
  
  .section-header {
    margin-bottom: var(--space-lg);
  }
}