/*
Theme Name: OwnerBuilder Direct Launch
Theme URI: https://subbieconnect.com/
Author: Codex
Description: Lightweight service website theme for Australian owner-builder sourcing and project support.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: subbieconnect-launch
*/

:root {
  --sc-ink: #182126;
  --sc-muted: #5f6b72;
  --sc-line: #dce4e7;
  --sc-cloud: #f5f8f8;
  --sc-paper: #ffffff;
  --sc-blue: #1f5f74;
  --sc-green: #376b59;
  --sc-orange: #d96f32;
  --sc-orange-dark: #b95825;
  --sc-max: 1160px;
  --sc-radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--sc-ink);
  background: var(--sc-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--sc-blue); }
a:hover { color: var(--sc-orange-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--sc-line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  color: var(--sc-ink);
  text-decoration: none;
  line-height: 1.15;
  max-width: 260px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
  display: block;
}

.brand-text > span {
  color: var(--sc-muted);
  font-size: 12px;
  display: none;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-navigation {
  flex: 0 0 auto;
}

.main-navigation ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-navigation a {
  color: var(--sc-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.main-navigation a:hover { color: var(--sc-blue); }

.nav-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 104px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--sc-orange);
  color: #fff !important;
}

.site-main { min-height: 70vh; }

.sc-section {
  padding: 74px 22px;
}

.sc-section.alt { background: var(--sc-cloud); }

.sc-wrap {
  max-width: var(--sc-max);
  margin: 0 auto;
}

.sc-hero {
  padding: 86px 22px 54px;
  background:
    linear-gradient(90deg, rgba(24, 33, 38, 0.88), rgba(31, 95, 116, 0.62)),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.sc-hero .sc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 42px;
  align-items: end;
}

.sc-kicker {
  margin: 0 0 12px;
  color: var(--sc-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-hero .sc-kicker { color: #cde6dd; }

h1, h2, h3 {
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 { max-width: 830px; font-size: clamp(40px, 6vw, 70px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 23px; }

.sc-lede {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--sc-muted);
  font-size: 20px;
}

.sc-hero .sc-lede { color: #eef7f4; }

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.sc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--sc-orange);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.sc-button:hover { background: var(--sc-orange-dark); color: #fff !important; }

.sc-button.secondary {
  background: #fff;
  color: var(--sc-ink) !important;
}

.sc-card {
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  padding: 24px;
}

.sc-hero .sc-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--sc-ink);
  border: 0;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sc-card p:last-child,
.sc-card ul:last-child { margin-bottom: 0; }

.sc-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.sc-list li { margin: 8px 0; }

.sc-steps {
  counter-reset: step;
}

.sc-step {
  position: relative;
  padding-left: 56px;
}

.sc-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sc-blue);
  color: #fff;
  font-weight: 800;
}

.sc-notice {
  border-left: 4px solid var(--sc-orange);
  background: #fff7f1;
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
}

.sc-band {
  background: var(--sc-ink);
  color: #fff;
}

.sc-band .sc-lede { color: #dce8ea; }

.site-footer {
  background: #11181c;
  color: #d7e0e2;
  padding: 42px 22px;
}

.footer-inner {
  max-width: var(--sc-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .footer-inner,
  .sc-hero .sc-wrap {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  .sc-grid,
  .sc-grid.two,
  .sc-grid.four {
    grid-template-columns: 1fr;
  }

  .sc-hero { padding-top: 58px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sc-section { padding: 52px 18px; }
  .header-inner { padding: 12px 18px; }
  .brand { max-width: 100%; }
  .brand-mark {
    flex-basis: 18px;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    max-height: 18px;
  }
  .brand strong { font-size: 16px; }
  .brand-text > span { display: none; }
  .main-navigation a { font-size: 14px; }
  .nav-cta a { min-height: 38px; padding: 8px 12px; }
}
