/* =========================================
   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;         /* your screenshot beige */
  --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 (same layout as your current page) */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  position: sticky;     /* stays in view */
  top: 0;
  z-index: 100;         /* above content */
  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; /* fallback */
}

.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);
}

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

/* 6. PAGE SECTION */
.page-section,
.sd-main {
  padding: 4.5rem 0 3.5rem;   /* was 2.5rem, now more to clear header */
}


/* 7. TYPOGRAPHY (this is where your change is) */
.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 (white rounded) */
.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 (for cars.html) */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.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 (contact) */
.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 (beige, logo 90x90) */
/* ==========================
/* FOOTER */
.site-footer {
  background-color: #f5e9dd; /* your beige tone */
  color: #222;
  text-align: center;
  padding: 60px 0 40px;
  font-family: 'Helvetica Neue', sans-serif;
}

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

.footer-logo {
  margin-bottom: 2.2rem; /* key fix: creates breathing space before title */
}

.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;
}

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

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

.footer-line a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-line a:hover {
  color: #ff6b35;
}

.footer-copy {
  font-size: 0.85rem;
  color: #666;
}

/* Responsive fine-tuning for small screens */
@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;              /* spacing between icons */
  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. RESPONSIVE */
/* MOBILE HEADER TWEAKS */
@media (max-width: 720px) {
  .topbar {
    min-height: 54px;
    gap: 0.5rem;
    flex-wrap: nowrap;           /* CRITICAL: prevent wrapping */
    overflow-x: auto;            /* allow horizontal scroll if needed */
    -webkit-overflow-scrolling: touch;
  }
  
  .brand-block {
    flex-shrink: 0;              /* prevent logo/title from shrinking */
    gap: 0.5rem;
  }
  
  .brand-block img {
    height: 38px;
    width: 38px;                 /* smaller logo on phone */
    flex-shrink: 0;
  }
  
  .brand-title {
    font-size: 0.7rem;
    white-space: nowrap;         /* keep title on one line */
  }
  
  .brand-meta {
    font-size: 0.48rem;
    letter-spacing: .18em;
    white-space: nowrap;         /* keep meta on one line */
  }
  
  .site-nav {
    gap: 0.6rem;
    flex-shrink: 0;              /* prevent nav from shrinking */
    display: flex;
    white-space: nowrap;
  }
  
  .site-nav a {
    font-size: 0.72rem;
    padding: .25rem 0;
    flex-shrink: 0;              /* prevent links from shrinking */
  }
}
