/*
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; }

/* ── Hero ── */
.hero {
  background: var(--brand);
  color: #fff;
  padding: 5rem 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-content p  { font-size: 1.15rem; opacity: 0.9; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── 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: 48px;
  height: 48px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand);
}
.service-icon svg { width: 24px; height: 24px; }
.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; }

/* ── 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 { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea,
.contact-form 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);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form 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; }

/* ── 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 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); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-image      { display: none; }
  .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; }
  .hero            { padding: 4rem 0; }
}
