/* =========================================
   SAWASDEE RENT A CAR
   Global Locked Stylesheet
   File: sawasdee-brand.css
   ========================================= */

/* 1. FONTS – LOCKED */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* 2. ROOT TOKENS */
:root {
  /* colors */
  --page-bg: #F2E4D8;
  --surface: #FFFFFF;
  --header-bg: #F2E4D8;
  --text: #2A2521;
  --muted: #8F847B;
  --accent: #FF6B35;
  --border-soft: rgba(0,0,0,0.03);

  /* layout */
  --max: 1180px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow: 0 20px 40px rgba(0,0,0,0.03);

  /* fonts */
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", "Times New Roman", serif;
}

/* 3. GLOBAL */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* 4. CONTAINER */
.container, .sd-container {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

/* 5. HEADER */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.topbar, .sd-topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-block img,
.sd-logo {
  height: 56px;
  width: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: #000;
}

.brand-title {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.brand-meta {
  font-size: 0.6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #50392B;
  font-family: var(--font-body);
}

.site-nav, .sd-nav {
  display: flex;
  gap: 1.45rem;
  flex-wrap: wrap;
}

.site-nav a,
.sd-nav a,
.sd-nav-link {
  text-decoration: none;
  color: #3D332C;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: color 0.3s ease;
}

.site-nav a.active,
.sd-nav a.active,
.sd-nav-link.active {
  color: #000;
  font-weight: 500;
}

/* Hover effect - turns orange */
.site-nav a:hover,
.sd-nav a:hover,
.sd-nav-link:hover {
  color: #FF6B35;  /* Orange */
}

/* 6. PAGE SECTION */
.page-section,
.sd-main {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  z-index: 1;
}

/* 7. TYPOGRAPHY */
.section-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.67rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.3rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.section-sub {
  font-family: var(--font-body);
  color: #6A5F58;
  font-weight: 400;
  font-size: 1rem;
  max-width: 50rem;
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  letter-spacing: -0.01em;
}

/* 8. CARD BLOCKS */
.card-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 2rem;
  box-shadow: var(--shadow);
}

.card-block h2 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.card-block p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

/* 9. CARS GRID */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.car-card {
  background: var(--surface);
  border-radius: 26px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.car-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: .75rem;
}

.car-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.car-card p {
  margin: 0;
  color: #72655D;
  font-family: var(--font-body);
}

/* 10. ORANGE PILLS */
.price-pill, .btn-pill {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: #E0643A;
  background: rgba(235, 139, 100, 0.08);
  border-radius: 999px;
  padding: .4rem .9rem .45rem;
  font-size: .78rem;
  font-weight: 500;
  margin-right: .35rem;
  font-family: var(--font-body);
}

/* 11. FORMS */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.7rem;
  margin-bottom: .25rem;
  color: #4b433e;
  font-family: var(--font-body);
}

.input, .sd-input, textarea {
  width: 100%;
  padding: .6rem .7rem;
  border-radius: .6rem;
  border: 1px solid rgba(0,0,0,0.04);
  background: #FAF6F2;
  font-family: var(--font-body);
}

.input:focus, .sd-input:focus, textarea:focus {
  outline: 1px solid rgba(255, 107, 53, 0.35);
}

/* 12. BUTTONS */
.btn, .sd-btn, .btn-outline {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  font-family: var(--font-body);
}
.btn:hover, .sd-btn:hover, .btn-outline:hover {
  background: rgba(255, 107, 53, 0.07);
}

/* 13. FOOTER */
.site-footer {
  background-color: #f5e9dd;
  color: #4a3f35;
  text-align: center;
  padding: 60px 0 40px;
  font-family: 'Helvetica Neue', sans-serif;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.03);
}

.footer-title {
  font-family: 'Didot', serif;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  color: #3a2f26;
}

.footer-sub {
  font-family: 'Helvetica Neue Light', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
  color: #6b5f55;
}

.footer-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.footer-line a {
  color: #FF6B35;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-line a:hover {
  color: #E0643A;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  color: #8b7d73;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-nav a {
  color: #FF6B35;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #E0643A;
}

.footer-nav span {
  color: #b39a88;
}


@media (max-width: 480px) {
  .site-footer {
    padding: 50px 0 35px;
  }

  .footer-logo {
    margin-bottom: 2.6rem;
  }

  .footer-line {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 1.2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: transparent;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  border-color: rgba(0,0,0,0.3);
  transform: scale(1.05);
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-social a:hover img {
  opacity: 1;
}

@media (max-width: 720px) {
  .footer-social {
    gap: 1rem;
    margin-top: 1.4rem;
  }
  .footer-social a {
    width: 34px;
    height: 34px;
  }
  .footer-social img {
    width: 18px;
    height: 18px;
  }
}


/* =========================================
   14. MOBILE RESPONSIVE - SIMPLIFIED
   (Mobile menu handled by mobile-menu-production.js)
   ========================================= */

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    z-index: 1002 !important;
  }
  
  .topbar {
    min-height: 54px;
    gap: 0.5rem;
    position: relative;
  }
  
  .brand-block {
    gap: 0.5rem;
  }
  
  .brand-block img {
    height: 38px;
    width: 38px;
  }
  
  .brand-title {
    font-size: 0.7rem;
    white-space: nowrap;
  }
  
  .brand-meta {
    font-size: 0.48rem;
    letter-spacing: .18em;
    white-space: nowrap;
  }
  
  
  /* CRITICAL: Hide ALL navigation on mobile */
  .site-nav,
  nav.site-nav,
  nav,
  header nav,
  .topbar > nav {
    display: none !important;
  }
}

/* =========================================
   HIDE AFS ANALYTICS ICON/BADGE
   ========================================= */

/* Hide AFS Analytics floating icon/badge while keeping tracking active */
#afsanalyticsicon,
#afsanalyticsbadge,
.afsanalytics-badge,
.afsanalytics-icon,
div[id*="afsanalytics"],
a[href*="afsanalytics.com"],
img[src*="afsanalytics"],
iframe[src*="afsanalytics"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide any AFS watermark or branding */
[class*="afs-"],
[id*="afs-"] {
  display: none !important;
}





/* ========================================
   FOOTER STYLES - UPDATED DESIGN
   ======================================== */

.site-footer {
  background: var(--sd-surface, #FFFFFF);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(0,0,0,0.03);
}

.footer-container {
  text-align: center;
}

.footer-logo {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}

.footer-logo img {
  width: 78px;
  height: 78px;
}

.footer-title {
  font-family: "Didot", "Bodoni", "Times New Roman", serif;
  margin: 0;
  font-size: 1.1rem;
}

.footer-sub {
  margin: .15rem 0 1rem;
  font-size: .72rem;
  color: rgba(43, 43, 43, 0.65);
}

/* FOOTER NAVIGATION - New Addition */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.footer-nav a {
  color: var(--sd-charcoal, #2B2B2B);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--sd-orange, #FF6B35);
}

.footer-nav span {
  color: rgba(43, 43, 43, 0.3);
}

/* FOOTER SOCIAL ICONS - Enhanced Design */
.footer-social {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 107, 53, 0.05);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

.footer-social img {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: .7rem;
  color: rgba(43, 43, 43, 0.5);
  margin: 0;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-nav {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  
  .footer-social {
    gap: 0.6rem;
  }
  
  .footer-social a {
    width: 38px;
    height: 38px;
  }
}
