/* Generated by generate.py — base.css + theme-d.css concatenated */

/* ===== theme-d.css ===== */

/* ============================================================
   THEME D — Maroon / Cream  (heritage, warm, established)
   ============================================================ */

:root {
  /* Brand */
  --color-primary: #6B2D2D;
  --color-primary-dark: #4A1F1F;
  --color-primary-light: #8B4242;
  --color-accent: #D4A574;
  --color-accent-dark: #B5874D;

  /* Surface */
  --color-bg: #FFF8F0;
  --color-bg-alt: #FFFFFF;
  --color-bg-dark: #4A1F1F;
  --color-surface: #FFFDF8;

  /* Text */
  --color-text: #2D1F1F;
  --color-text-muted: #6B5A5A;
  --color-text-light: #998888;
  --color-text-on-dark: #FFF8F0;
  --color-text-on-accent: #2D1F1F;

  /* Fixed CTAs */
  --color-call: #D32F2F;
  --color-call-dark: #B71C1C;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;

  /* Borders */
  --color-border: #E8DBC8;
  --color-border-dark: #C5B299;
  --color-focus-ring: rgba(212, 165, 116, 0.30);

  /* Treatment — rounded, soft shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(107, 45, 45, 0.08);
  --shadow-md: 0 4px 14px rgba(107, 45, 45, 0.12);
  --shadow-lg: 0 14px 36px rgba(107, 45, 45, 0.16);
  --shadow-hard: 0 10px 28px rgba(212, 165, 116, 0.30);

  /* Header / accents */
  --header-border: 1px solid #E8DBC8;
  --card-accent-border: 4px solid #D4A574;
  --form-accent-border: 4px solid #D4A574;
  --hero-overlay-from: rgba(74, 31, 31, 0.78);
  --hero-overlay-to: rgba(74, 31, 31, 0.55);

  /* Typography */
  --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --heading-weight: 700;
  --heading-tracking: 0.0em;

  /* Spacing & layout */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.1rem;
  --space-lg: 1.65rem;
  --space-xl: 2.75rem;
  --space-2xl: 4.5rem;
  --container-max: 1200px;
  --header-height: 76px;

  /* Motion */
  --transition-fast: 200ms ease;
  --transition-md: 300ms ease;
}

/* Theme D treatment — warm soft section divider */
.section-heading h2 {
  border-bottom: 0;
  position: relative;
  padding-bottom: 1rem;
}
.section-heading h2::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transform: translateX(-50%);
  border-radius: 999px;
}

/* Theme D — softer card style */
.feature-card, .coverage-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}


/* ===== base.css ===== */

/* ============================================================
   BASE — structural CSS shared across all themes.
   Theme variables are defined in theme-{a,b,c,d}.css.
   The site's final css/theme.css = base.css + theme-X.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw + 0.5rem, 17px);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  letter-spacing: var(--heading-tracking);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: var(--heading-weight); }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem); font-weight: var(--heading-weight); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem); font-weight: 700; }

p { margin: 0 0 var(--space-md); }
ul, ol { margin: 0 0 var(--space-md); padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-2xl) 0; }
section.alt { background: var(--color-bg-alt); }

/* ----- HEADER ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg-alt);
  border-bottom: var(--header-border);
  height: var(--header-height);
  transition: box-shadow var(--transition-md);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-logo img { height: 44px; width: auto; }

.main-nav { display: none; }
@media (min-width: 992px) {
  .main-nav { display: flex; gap: var(--space-lg); align-items: center; }
  .main-nav a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; }
  .main-nav a:hover { color: var(--color-accent-dark); text-decoration: none; }
  .nav-dropdown { position: relative; }
  .nav-dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
  .dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--color-bg-alt); border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg); border-radius: var(--radius-md);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition-fast);
    padding: 0.5rem 0;
  }
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .dropdown-menu a { display: block; padding: 0.5rem 1rem; }
  .dropdown-menu a:hover { background: var(--color-bg); }
}

.header-cta { display: none; gap: var(--space-sm); }
@media (min-width: 992px) { .header-cta { display: flex; } }

.btn-call-header, .btn-whatsapp-header {
  padding: 0.5rem 1rem;
  font-weight: 700; font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.btn-call-header { background: var(--color-call); color: #fff; }
.btn-call-header:hover { background: var(--color-call-dark); color: #fff; text-decoration: none; }
.btn-whatsapp-header { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp-header:hover { background: var(--color-whatsapp-dark); color: #fff; text-decoration: none; }

.hamburger { display: block; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--color-primary); margin: 5px 0; transition: all var(--transition-md); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 992px) { .hamburger { display: none; } }

.mobile-menu {
  position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: var(--color-bg-alt); padding: var(--space-lg);
  transform: translateY(-110%); transition: transform var(--transition-md);
  overflow-y: auto;
  z-index: 99;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; padding: 0.75rem 0; font-size: 1.1rem; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.mobile-menu .submenu { padding-left: 1rem; }

/* ----- HERO ----- */
.hero {
  position: relative; padding: var(--space-2xl) 0;
  background: var(--color-primary); color: var(--color-text-on-dark);
}
.hero h1 { color: var(--color-accent); margin-bottom: var(--space-md); }
.hero .lead { font-size: clamp(1.05rem, 1vw + 0.7rem, 1.25rem); margin-bottom: var(--space-lg); max-width: 60ch; }
.hero-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.btn { display: inline-block; padding: 0.85rem 1.75rem; font-weight: 700; font-size: 1rem; border-radius: var(--radius-md); border: 0; cursor: pointer; transition: all var(--transition-fast); text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-call { background: var(--color-call); color: #fff; }
.btn-call:hover { background: var(--color-call-dark); color: #fff; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); color: #fff; }
.btn-primary { background: var(--color-accent); color: var(--color-text-on-accent); }
.btn-primary:hover { background: var(--color-accent-dark); color: var(--color-text-on-accent); }

/* Hero — Full-bleed variant */
.hero.full-bleed { text-align: center; padding: var(--space-2xl) 0; min-height: 70vh; display: flex; align-items: center; }
.hero.full-bleed::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--hero-overlay-from), var(--hero-overlay-to)), url('../images/hero.jpg') center/cover;
}
.hero.full-bleed > .container { position: relative; z-index: 1; }
.hero.full-bleed .hero-cta { justify-content: center; }

/* Hero — Split variant */
.hero.split .container { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 992px) { .hero.split .container { grid-template-columns: 1.1fr 1fr; } }
.hero.split .hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hard); }

/* Hero — Centered variant */
.hero.centered { text-align: center; }
.hero.centered .hero-cta { justify-content: center; }
.hero.centered::after {
  content: ''; position: absolute; right: -10%; bottom: -10%;
  width: 60%; height: 80%;
  background: url('../images/truck-silhouette.svg') right bottom/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

/* ----- SECTIONS ----- */
.intro { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 768px) { .intro { grid-template-columns: 1fr 1fr; } }

.feature-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 576px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--color-bg-alt); padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: var(--card-accent-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-md);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .icon { width: 48px; height: 48px; color: var(--color-accent); margin-bottom: var(--space-md); }
.feature-card h3 { color: var(--color-primary); }

.coverage-grid { display: grid; gap: var(--space-md); }
@media (min-width: 576px) { .coverage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .coverage-grid { grid-template-columns: repeat(4, 1fr); } }

.coverage-card {
  display: block; padding: var(--space-lg);
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-md);
}
.coverage-card:hover { border-color: var(--color-accent); transform: translateY(-2px); text-decoration: none; }
.coverage-card h3 { color: var(--color-primary); margin-bottom: 0.5rem; }
.coverage-card p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* ----- FORM ----- */
.form-section {
  background: var(--color-bg-alt);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: var(--form-accent-border);
}
.form-row { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--color-text); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.7rem 0.9rem;
  font-family: inherit; font-size: 1rem;
  border: 1px solid var(--color-border-dark); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text);
  transition: border-color var(--transition-fast);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-focus-ring);
}
.form-status { padding: 0.85rem; border-radius: var(--radius-sm); margin-top: var(--space-md); display: none; }
.form-status.success { background: #E8F5E9; color: #1B5E20; display: block; }
.form-status.error { background: #FFEBEE; color: #B71C1C; display: block; }

/* ----- FAQ ----- */
.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: var(--space-md) var(--space-lg);
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--color-primary);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--color-bg); }
.faq-question .chevron { transition: transform var(--transition-md); flex-shrink: 0; }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-md); padding: 0 var(--space-lg); }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: var(--space-md); }

/* ----- BREADCRUMB ----- */
.breadcrumb { padding: var(--space-md) 0; font-size: 0.9rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumb [aria-current='page'] { color: var(--color-text); }

/* ----- TABLES ----- */
.responsive-table {
  width: 100%; border-collapse: collapse;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.responsive-table th, .responsive-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.responsive-table th { background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-weight: 700; letter-spacing: var(--heading-tracking); }
.responsive-table tbody tr:hover { background: var(--color-bg); }

/* ----- FOOTER ----- */
.site-footer { background: var(--color-primary-dark); color: var(--color-text-on-dark); padding: var(--space-2xl) 0 var(--space-lg); }
.site-footer h3 { color: var(--color-accent); font-size: 1.1rem; margin-bottom: var(--space-md); }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--color-accent); text-decoration: none; }
.footer-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-bottom { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); text-align: center; }
.social-icons { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.social-icons a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-sm); transition: background var(--transition-fast); }
.social-icons a:hover { background: var(--color-accent); }
.social-icons svg { width: 20px; height: 20px; fill: #fff; }

/* ----- FLOATING MOBILE CTA ----- */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; gap: 1px;
  background: var(--color-primary);
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}
.floating-cta a {
  flex: 1; padding: 0.85rem;
  text-align: center; color: #fff; font-weight: 700;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px;
  font-size: 0.95rem;
}
.floating-cta a:hover { color: #fff; text-decoration: none; }
.floating-cta .fc-call { background: var(--color-call); }
.floating-cta .fc-whatsapp { background: var(--color-whatsapp); }
@media (min-width: 768px) { .floating-cta { display: none; } }

/* ----- UTILITIES ----- */
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.section-heading { text-align: center; margin-bottom: var(--space-xl); }
.section-heading h2 { display: inline-block; padding-bottom: 0.5rem; border-bottom: 4px solid var(--color-accent); }

@media (max-width: 767px) { body { padding-bottom: 60px; } }


/* ===== Site-specific overrides (Towing Tangkak) ===== */
:root {
  --font-heading: 'Anton', 'Oswald', 'Impact', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --heading-tracking: 0.01em;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: 0.015em; }
.hero-phone { letter-spacing: 0.06em; }

/* Inline icon used in headers + lists */
.svg-icon { width: 1em; height: 1em; vertical-align: -0.12em; fill: currentColor; }

/* Service deep-dive blocks (services page) */
.service-block { padding: var(--space-xl) 0; border-bottom: 1px solid var(--color-border); }
.service-block:last-child { border-bottom: 0; }
.service-block .grid { display: grid; gap: var(--space-lg); align-items: start; }
@media (min-width: 768px) { .service-block .grid { grid-template-columns: 1fr 2fr; } }
.service-block h2 { color: var(--color-primary); margin-top: 0; }
.service-block .tag { display: inline-block; background: var(--color-accent); color: var(--color-text-on-accent); padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; margin-bottom: var(--space-sm); letter-spacing: 0.05em; text-transform: uppercase; }

/* Checked list */
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; background: var(--color-accent); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19l12-12-1.4-1.4z'/></svg>") no-repeat center / contain; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19l12-12-1.4-1.4z'/></svg>") no-repeat center / contain; }

/* Final CTA strip */
.cta-strip { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: var(--color-text-on-dark); text-align: center; padding: var(--space-2xl) var(--space-md); border-radius: var(--radius-lg); margin: var(--space-xl) 0; }
.cta-strip h2 { color: var(--color-accent); margin-top: 0; }
.cta-strip p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-strip .hero-cta { justify-content: center; margin-top: var(--space-md); }

/* Page header for subpages */
.page-header { background: var(--color-primary); color: var(--color-text-on-dark); padding: var(--space-xl) 0; }
.page-header h1 { color: var(--color-accent); margin: 0 0 var(--space-sm); }
.page-header p { margin: 0; max-width: 60ch; opacity: 0.92; }

/* Two-column generic */
.two-col { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Service summary table tweak */
.responsive-table.compact th, .responsive-table.compact td { padding: 0.6rem 0.85rem; font-size: 0.95rem; }

/* Definition-style intro paragraph */
.lead-para { font-size: 1.1rem; color: var(--color-text); }

/* WhatsApp floating bar icon */
.fc-icon { width: 18px; height: 18px; fill: currentColor; }

/* Mobile menu submenu indent */
.mobile-menu .submenu a { padding-left: 1rem; font-size: 1rem; color: var(--color-text-muted); }

/* Skip-to-content link (a11y) */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* Tight footer list */
.footer-grid ul { list-style: none; padding-left: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 0.4rem; }

/* ===== MYTOW standardization: footer disclaimer + PDPA form consent ===== */
.footer-bottom .footer-company { margin: 0 0 0.5rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.footer-bottom .footer-disclaimer { max-width: 80ch; margin: 0 auto 0.75rem; font-size: 0.85rem; line-height: 1.55; color: rgba(255, 255, 255, 0.65); }
.footer-bottom .footer-links { margin: 0 0 0.75rem; font-size: 0.85rem; }
.footer-bottom .footer-links a { color: rgba(255, 255, 255, 0.85); }
.footer-bottom .footer-links a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-bottom .footer-copyright { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.form-consent { margin: var(--space-md) 0 0; }
.form-consent .consent-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; line-height: 1.5; }
.form-consent input[type="checkbox"] { margin-top: 0.25rem; flex-shrink: 0; }
.form-pdpa-notice { margin-top: var(--space-md); color: var(--color-text-muted, #666); line-height: 1.5; }

/* ===== Legal pages (terma / privasi) ===== */
.legal-content { max-width: 80ch; margin: 0 auto; }
.legal-content h2 { margin-top: var(--space-xl); }
.legal-content h3 { margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.legal-content p, .legal-content li { line-height: 1.7; }
.legal-content ol, .legal-content ul { padding-left: 1.4rem; }
.legal-content .legal-meta { color: var(--color-text-muted, #666); font-size: 0.95rem; }
