/*
Theme Name: Trio Auto
Theme URI: https://trio-auto.co.za
Author: Trio Auto
Author URI: https://trio-auto.co.za
Description: A professional WordPress theme for Trio Auto — auto mechanic workshop in Kempton Park, Gauteng. Includes service & city landing pages, contact form, WhatsApp button, and full SEO.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trio-auto
Tags: business, automotive, blue, custom-menu, custom-logo, featured-images, responsive-layout, threaded-comments
*/

/* =========================================================
   Trio Auto — Design System (American Blue)
   ========================================================= */
:root {
  --color-primary: #0a3d91;
  --color-primary-dark: #062a66;
  --color-primary-light: #1e5fc4;
  --color-accent: #d9261c;
  --color-bg: #ffffff;
  --color-surface: #f5f7fb;
  --color-border: #e3e8f0;
  --color-text: #0f172a;
  --color-muted: #5b6b85;
  --color-primary-foreground: #ffffff;
  --gradient-hero: linear-gradient(135deg, #062a66 0%, #0a3d91 55%, #1e5fc4 100%);
  --gradient-primary: linear-gradient(135deg, #0a3d91 0%, #1e5fc4 100%);
  --shadow-card: 0 4px 14px rgba(10, 61, 145, 0.08);
  --shadow-elegant: 0 18px 40px rgba(10, 61, 145, 0.18);
  --radius: 12px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; line-height: 1.2; margin: 0 0 0.5em; color: var(--color-text); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--muted { background: var(--color-surface); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); }
.muted { color: var(--color-muted); }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; text-decoration: none; }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-elegant); color: #fff; }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-header__logo img { height: 48px; width: auto; }
.site-nav { display: none; gap: 28px; }
.site-nav a { color: var(--color-text); font-weight: 600; font-size: 14px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--color-primary); }
.site-header__cta { display: none; }
.menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-nav { display: none; border-top: 1px solid var(--color-border); padding: 16px 20px; background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { padding: 10px 0; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero { position: relative; background: var(--gradient-hero); color: #fff; padding: 80px 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; opacity: 0.18; background-size: cover; background-position: center; }
.hero__inner { position: relative; display: grid; gap: 48px; }
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; backdrop-filter: blur(8px); }
.hero__phones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); border-color: var(--color-primary); }
.card__icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: var(--gradient-primary); color: #fff; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 22px; }
.card h3 { margin-bottom: 8px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Service media */
.service-row { display: grid; gap: 40px; align-items: center; margin-bottom: 64px; }
@media (min-width: 900px) { .service-row { grid-template-columns: 1fr 1fr; } .service-row.alt > div:first-child { order: 2; } }
.service-row img { border-radius: 24px; box-shadow: var(--shadow-elegant); }
.feature-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.feature-list li::before { content: "✓"; color: var(--color-primary); font-weight: 800; margin-right: 8px; }

/* Contact form */
.contact-form { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow-elegant); }
.contact-form h3 { margin-bottom: 4px; color: var(--color-primary); }
.contact-form .form-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .contact-form .form-grid.two { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-muted); margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; font-family: inherit; font-size: 14px; background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(10,61,145,0.12); }
.contact-form button { width: 100%; margin-top: 12px; }
.form-notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.form-notice.success { background: #e6f4ea; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-notice.error { background: #fdecea; color: #9b1c1c; border: 1px solid #f5c2c0; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--color-border); font-size: 13px; font-weight: 600; color: var(--color-text); margin: 4px 2px; transition: all .15s ease; }
.pill:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Footer */
.site-footer { background: var(--gradient-hero); color: rgba(255,255,255,0.88); padding: 56px 0 0; margin-top: 64px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 14px; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer__cities { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; font-size: 12px; }
.site-footer__cities a { margin-right: 6px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* WhatsApp floating */
.whatsapp-fab { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.4); z-index: 50; transition: transform .15s ease; }
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* Page header (interior) */
.page-hero { background: var(--gradient-hero); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1, .page-hero p { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 12px auto 0; }

/* Map embed */
.map-embed iframe { width: 100%; height: 280px; border: 0; border-radius: 14px; }

/* Misc */
.flow > * + * { margin-top: 16px; }
.tag { display: inline-block; padding: 4px 10px; background: rgba(255,255,255,0.15); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.alignwide, .alignfull { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
