/* ============================================
   Cambodia Private Car Services
   Custom Tailwind Configuration & Utilities
   ============================================ */

/* --- Tailwind CDN inline config --- */
/* Applied via <script> in HTML head:
   tailwind.config = {
     theme: {
       extend: {
         colors: {
           'primary-container': '#1a1a2e',
           'tertiary-container': '#beab59',
           'tertiary-fixed-dim': '#dbc671',
           'on-primary': '#ffffff',
           'on-surface': '#1c1c18',
           'on-surface-variant': '#47464c',
           'surface': '#fcf9f3',
           'surface-container-low': '#f6f3ed',
         },
         fontFamily: {
           serif: ['"Noto Serif"', 'Georgia', 'serif'],
         },
       },
     },
   }
*/

/* ============================================
   Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Serif', Georgia, serif;
  color: #1c1c18;
  background-color: #fcf9f3;
  line-height: 1.7;
}

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

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

/* ============================================
   Content Container
   ============================================ */

.content-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .content-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .content-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ============================================
   Sculpted Border
   ============================================ */

.sculpted-border {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sculpted-border-b {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sculpted-border-t {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   Module Isolation
   ============================================ */

.module-isolation {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .module-isolation {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

@media (min-width: 1024px) {
  .module-isolation {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

/* ============================================
   Negative Space Y
   ============================================ */

.negative-space-y {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .negative-space-y {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
}

/* ============================================
   Image Accent
   ============================================ */

.image-accent {
  position: relative;
  overflow: hidden;
}

.image-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #beab59;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(252, 249, 243, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .navbar-inner {
    height: 5rem;
  }
}

.navbar-logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1c1c18;
}

@media (min-width: 768px) {
  .navbar-logo {
    font-size: 0.85rem;
  }
}

.navbar-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-links a {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #47464c;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: #1c1c18;
}

.navbar-lang-toggle {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #47464c;
}

.navbar-lang-toggle a:hover {
  color: #1c1c18;
}

.btn-book {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #1c1c18;
  color: #1c1c18;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-book:hover {
  background-color: #1c1c18;
  color: #ffffff;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: #1c1c18;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background-color: #fcf9f3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1c1c18;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background-color: #fcf9f3;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-style: italic;
  font-weight: 300;
  font-size: 0.9rem;
  color: #47464c;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: #47464c;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1c1c18;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #47464c;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: #1c1c18;
  color: #ffffff;
  border-color: #1c1c18;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #47464c;
}

/* ============================================
   Scroll Animations
   ============================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1c1c18;
  text-align: left;
}

.faq-question .icon {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #47464c;
  line-height: 1.7;
}

/* ============================================
   Honeypot (anti-spam)
   ============================================ */

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
