/*
Theme Name: TBM Theme
Theme URI: https://taxibookmelbourne.com.au
Author: MH Tech Solutions
Author URI: https://mhtechsol.com
Description: Custom WordPress theme for Taxi Book Melbourne — built with orange brand identity, Poppins + Inter typography, and a clean card-based layout system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: Private
Text Domain: tbm-theme
*/

/* ============================================================
   DESIGN SYSTEM — CSS VARIABLES
   ============================================================ */

:root {
  /* Brand */
  --orange:        #F5821F;
  --orange-dark:   #D96E10;
  --orange-light:  #FFF4EB;
  --orange-mid:    #FDDEC0;

  /* Neutrals */
  --dark:          #1E1E1E;
  --dark2:         #111111;
  --dark3:         #2C2C2C;
  --text:          #1E1E1E;
  --text-muted:    #5C5C5C;
  --text-light:    #999999;
  --border:        #E5E5E5;
  --bg-light:      #F8F8F6;
  --bg-section:    #F4F4F2;
  --white:         #FFFFFF;

  /* Typography */
  --font-head:     'Poppins', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Radius — distinct from bmt2 which uses pill/50px */
  --radius:        8px;
  --radius-sm:     4px;
  --radius-card:   12px;
  --radius-btn:    6px;
  --radius-lg:     20px;

  /* Shadows */
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --shadow-orange: 0 4px 20px rgba(245,130,31,0.25);

  /* Spacing */
  --section-pad:   80px 0;
  --container:     1180px;
  --gap:           24px;

  /* Transitions */
  --transition:    0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
}

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

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

.section-pad { padding: var(--section-pad); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

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

.text-center { text-align: center; }
.text-orange { color: var(--orange); }

/* ============================================================
   SECTION LABEL / EYEBROW
   ============================================================ */

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-light);
  border-left: 3px solid var(--orange);
  padding: 4px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1rem;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  text-align: left;
}

.section-sub.center { text-align: center; margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark3);
  border-color: var(--dark3);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
  transform: translateY(-1px);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--orange-mid);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card-icon svg, .card-icon img {
  width: 26px;
  height: 26px;
}

/* ============================================================
   DIVIDER
   ============================================================ */

.tbm-divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 3px;
  margin: 1rem 0;
}

.tbm-divider.center { margin: 1rem auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  :root { --section-pad: 44px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 11px 20px; font-size: 0.9rem; }
}
