/*
Theme Name:  Two Guys Theme
Theme URI:   https://twoguys.com.au
Author:      Two Guys Enterprises
Author URI:  https://twoguys.com.au
Description: Base theme for all Two Guys business websites.
Version:     1.0.0
License:     Private
Text Domain: two-guys-theme
*/

/* ── Design tokens ── */
:root {
  --brand:        #C2562E;   /* overridden per child theme */
  --brand-dark:   color-mix(in srgb, var(--brand) 75%, black);
  --brand-light:  color-mix(in srgb, var(--brand) 15%, white);
  --bg:           #ffffff;
  --bg-alt:       #f5f5f3;
  --surface:      #ffffff;
  --text:         #1a1a1a;
  --text-muted:   #6b6b6b;
  --border:       #e2e2e2;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,.10);
  --max-width:    1160px;
  --transition:   0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.section-title {
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

/* ── Site Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
/* Nav logo — override WP's inline width/height attributes */
.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
  max-height: 44px !important;
  max-width: 280px !important;
  width: auto !important;
  height: auto !important;
}

/* Hero logo — white card so it reads on any brand-colour background */
.hero-logo {
  display: inline-block;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.hero-logo img,
.hero-logo .custom-logo {
  max-height: 100px !important;
  max-width: 420px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--transition);
  text-decoration: none;
}
.main-nav a:hover { color: var(--brand); }
.nav-cta { margin-left: 1rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ── Buttons (hero variants) ── */
.btn-white {
  background: #fff;
  color: var(--brand);
}
.btn-white:hover {
  background: rgba(255,255,255,.88);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--brand);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 520px;
}

/* Left — brand colour panel */
.hero-brand {
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 5rem 5% 5rem 0;
}
.hero-brand-inner {
  max-width: 580px;
  margin-left: auto;
  padding-left: 1.5rem;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1rem;
}
.hero-brand-inner h1 {
  color: #fff;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.hero-phone:hover { opacity: 1; text-decoration: none; }
.hero-phone svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Right — white panel with logo (or photo) */
.hero-visual {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.hero-visual .custom-logo-link,
.hero-visual img,
.hero-visual .custom-logo {
  max-width: 340px !important;
  max-height: 180px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
.hero-site-name {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--brand);
}

/* Photo mode — full-bleed image with no padding */
.hero-visual--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  min-height: 400px;
}

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.service-icon {
  width: 64px;
  height: 64px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent);
  flex-shrink: 0;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p  { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ── Why Us / feature list ── */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 2px;
}
.feature-check svg { width: 16px; height: 16px; }
.feature-item h4 { margin-bottom: 0.25rem; }
.feature-item p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* ── Trust bar ── */
.trust-bar {
  background: var(--brand-light);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.trust-icon {
  color: var(--brand);
  display: flex;
}
.trust-icon svg { width: 18px; height: 18px; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  text-align: left;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; font-style: italic; margin-bottom: 1rem; color: var(--text); }
.testimonial-author { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0; }

/* ── Service Areas ── */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.area-tag {
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Form success ── */
.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── CTA band ── */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p  { opacity: 0.9; margin-bottom: 2rem; font-size: 1.05rem; }
.cta-band .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.contact-detail svg { color: var(--brand); flex-shrink: 0; width: 20px; height: 20px; }
.contact-form .form-group,
.modal .form-group { margin-bottom: 1.25rem; }
.contact-form label,
.modal label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select,
.modal input,
.modal textarea,
.modal select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.modal textarea { min-height: 90px; resize: vertical; }

/* ── Footer ── */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .8; }
.footer-brand p { font-size: 0.875rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col h4 a { color: #fff; }
.footer-col h4 a:hover { color: var(--brand); text-decoration: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #aaa; font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--brand); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--brand); }

/* ── Footer social icons ── */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  color: #aaa;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--brand);
  color: #fff;
}
.footer-social svg { width: 18px; height: 18px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero            { grid-template-columns: 1fr; }
  .hero-visual     { display: none; }
  .hero-brand      { padding: 4rem 1.5rem; }
  .hero-brand-inner { max-width: 100%; margin: 0; padding: 0; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav        { display: none; }
  .nav-toggle      { display: block; }
  .main-nav.open   { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem; }
  .main-nav.open ul { flex-direction: column; gap: 1rem; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .section         { padding: 3rem 0; }
}

/* ── Modals ──────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface, #fff);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform .2s ease;
}
.modal-overlay.is-open .modal {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  color: var(--text-muted, #666);
  line-height: 0;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-close:hover { color: var(--text, #111); }
.modal h2 { margin: 0 0 .5rem; font-size: 1.5rem; padding-right: 2rem; }
.modal-intro { color: var(--text-muted, #555); margin: 0 0 1.5rem; font-size: .95rem; }
.modal-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.modal-success::before {
  content: "✓";
  display: block;
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

/* Form row (2-col) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.btn-full { width: 100%; justify-content: center; }

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-muted, #555);
  padding: 0;
  margin-bottom: 1rem;
}
.btn-back:hover { color: var(--brand); }
.btn-back svg { width: 16px; height: 16px; }

/* Slot picker */
.slot-loading {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted, #555);
  padding: 2rem 0;
}
.spin {
  width: 24px;
  height: 24px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.slot-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: .25rem;
}
.slot-day {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
}
.slot-day-label {
  font-weight: 600;
  font-size: .9rem;
}
.slot-times {
  display: flex;
  gap: .5rem;
}
.slot-btn {
  padding: .35rem .75rem;
  border-radius: 6px;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.slot-btn:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
}
.slot-btn.is-selected {
  background: var(--brand);
  color: #fff;
}
.slot-btn:disabled {
  border-color: var(--border, #e5e7eb);
  color: var(--text-muted, #aaa);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Confirm area */
.selected-slot-summary {
  background: var(--brand-light, #f0f7ff);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--text, #111);
}

@media (max-width: 560px) {
  .modal { padding: 1.5rem 1rem; border-radius: 8px; }
  .slot-day { grid-template-columns: 1fr; }
  .slot-times { justify-content: flex-start; }
}
