/*
Theme Name: SMO Carpet Cleaning
Theme URI: https://smocarpetcleaning.local/
Author: SMO Carpet Cleaning
Description: A lightweight, SEO-focused WordPress theme for SMO Carpet Cleaning in Wagga Wagga, NSW.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smo-carpet-cleaning
*/

:root {
  --smo-black: #000;
  --smo-charcoal: #171717;
  --smo-ink: #242424;
  --smo-muted: #666;
  --smo-line: #e8e8e8;
  --smo-soft: #f6f6f4;
  --smo-white: #fff;
  --smo-focus: #8cc7ff;
  --smo-max: 1320px;
  --smo-radius: 8px;
  --smo-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--smo-ink);
  background: var(--smo-white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--smo-focus); outline-offset: 3px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--smo-max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--smo-white);
  color: var(--smo-black);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--smo-black);
  color: var(--smo-white);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 250px;
}

.brand a {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 330px;
  max-height: 94px;
  object-fit: contain;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
}

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

.main-navigation a {
  color: var(--smo-white);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.main-navigation .button-light { color: var(--smo-black); }
.main-navigation .button-light:hover { color: var(--smo-black); background: #f1f1f1; }

.main-navigation a:hover,
.main-navigation .current-menu-item > a { text-decoration: underline; }

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--smo-black);
  border-radius: var(--smo-radius);
  background: var(--smo-black);
  color: var(--smo-white);
  font: 800 15px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover { background: var(--smo-charcoal); }
.button-light { background: var(--smo-white); color: var(--smo-black); border-color: var(--smo-white); }
.button-outline { background: transparent; color: var(--smo-black); }
.button-outline:hover { color: var(--smo-white); }
.phone-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.phone-links a { font-weight: 800; }
.hero-phone-links,
.cta-phone-links { display: inline-flex; }
.header-calls {
  justify-content: flex-end;
  gap: 8px;
}
.header-call {
  min-height: 42px;
  padding: 10px 12px;
  white-space: nowrap;
}
.site-header .header-call,
.hero .button-light,
.section-black .button-light {
  background: var(--smo-white);
  border-color: var(--smo-white);
  color: var(--smo-black);
}
.hero .button-light.button-outline,
.section-black .button-light.button-outline {
  background: transparent;
  border-color: var(--smo-white);
  color: var(--smo-white);
}
.hero .button-light.button-outline:hover,
.section-black .button-light.button-outline:hover {
  background: var(--smo-white);
  color: var(--smo-black);
}

.menu-toggle {
  display: none;
  width: 46px;
  min-width: 46px;
  padding: 0;
  border-color: rgba(255,255,255,.35);
  background: transparent;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--smo-white);
  margin: 4px auto;
}

.hero {
  background: var(--smo-black);
  color: var(--smo-white);
  overflow: hidden;
}

.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
  padding: 70px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d7d7d7;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 18px;
  color: var(--smo-black);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--smo-white);
  font-size: clamp(44px, 4.2vw, 64px);
  max-width: 680px;
}

h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(29px, 3.2vw, 44px); }
h3 { font-size: 22px; }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: #f0f0f0;
  max-width: 620px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-phone {
  margin-top: 20px;
  font-size: 17px;
  color: #dedede;
}

.hero-phone a { color: var(--smo-white); font-weight: 800; }

.hero-media img {
  width: 100%;
  border-radius: var(--smo-radius);
  box-shadow: var(--smo-shadow);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-height: 380px;
}

.section { padding: 76px 0; }
.section-soft { background: var(--smo-soft); }
.section-black { background: var(--smo-black); color: var(--smo-white); }
.section-black h2, .section-black h3 { color: var(--smo-white); }
.section-black .button-outline { color: var(--smo-white); }
.section-black .button-outline:hover { background: var(--smo-white); color: var(--smo-black); }
.section-black .button-light.button-outline { color: var(--smo-white); border-color: var(--smo-white); }
.section-black .button-light.button-outline:hover { color: var(--smo-black); }
.section-header { max-width: 790px; margin-bottom: 34px; }
.section-header p { color: var(--smo-muted); font-size: 18px; }
.section-black .section-header p { color: #d9d9d9; }
.mt-28 { margin-top: 28px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--smo-line);
  border-block: 1px solid var(--smo-line);
}
.trust-item {
  background: var(--smo-white);
  padding: 28px;
}
.trust-item strong { display: block; font-size: 18px; margin-bottom: 8px; }
.trust-item span { color: var(--smo-muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.area-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: var(--smo-white);
  background: rgba(255,255,255,.06);
  font-size: 14px;
  font-weight: 800;
}
.area-directory {
  columns: 3;
  column-gap: 30px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}
.area-directory li {
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px solid var(--smo-line);
  border-radius: var(--smo-radius);
  background: var(--smo-white);
  font-weight: 800;
}

.card {
  border: 1px solid var(--smo-line);
  border-radius: var(--smo-radius);
  background: var(--smo-white);
  overflow: hidden;
}
.card-body { padding: 26px; }
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card p { color: var(--smo-muted); margin-bottom: 22px; }
.card a:not(.button) { font-weight: 800; }

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--smo-black);
}
.section-black .feature-list li::before { background: var(--smo-white); }

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.process-step {
  padding: 22px;
  border: 1px solid var(--smo-line);
  border-radius: var(--smo-radius);
  background: var(--smo-white);
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--smo-black);
  color: var(--smo-white);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--smo-line);
  border-radius: var(--smo-radius);
  background: var(--smo-white);
  padding: 20px 22px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--smo-black);
}
.faq-list p { color: var(--smo-muted); margin-bottom: 0; }

.page-hero {
  padding: 84px 0;
  background: var(--smo-soft);
}
.page-hero .container { max-width: 900px; }
.page-hero p { font-size: 20px; color: var(--smo-muted); }

.content-main {
  padding: 68px 0;
}
.content-main p,
.content-main li { font-size: 17px; }
.content-main p { max-width: 860px; }

.breadcrumb {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--smo-muted);
}
.breadcrumb a { font-weight: 700; }

.quote-panel {
  border: 1px solid var(--smo-line);
  border-radius: var(--smo-radius);
  padding: 30px;
  background: var(--smo-white);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.quote-form .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 800; }
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cfcfcf;
  border-radius: var(--smo-radius);
  background: var(--smo-white);
  color: var(--smo-ink);
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--smo-radius);
  font-weight: 700;
}
.form-alert.success { background: #eaf7ee; color: #145b2b; }
.form-alert.error { background: #fff1f1; color: #8a1f1f; }
.form-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--smo-black);
  background: var(--smo-soft);
  color: var(--smo-muted);
  font-size: 14px;
}

.site-footer {
  background: var(--smo-black);
  color: var(--smo-white);
  padding: 54px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-logo { width: 300px; margin-bottom: 18px; }
.footer-phones {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.site-footer h2,
.site-footer h3 { color: var(--smo-white); font-size: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--smo-white); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #d0d0d0;
  font-size: 14px;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--smo-black);
  border-top: 1px solid rgba(255,255,255,.15);
}
.mobile-cta a {
  flex: 1;
  min-height: 58px;
  display: grid;
  place-items: center;
  color: var(--smo-white);
  font-weight: 900;
  text-decoration: none;
}
.mobile-cta a + a { border-left: 1px solid rgba(255,255,255,.18); }

@media (max-width: 940px) {
  body { padding-bottom: 58px; }
  .header-inner { min-height: 82px; justify-content: space-between; }
  .brand { min-width: 0; }
  .brand img { width: 235px; max-height: 72px; }
  .menu-toggle { display: inline-block; }
  .main-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 20px;
    background: var(--smo-black);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .main-navigation.is-open { display: flex; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-navigation a { display: block; padding: 13px 0; }
  .header-calls { justify-content: stretch; margin-top: 8px; }
  .header-call { width: 100%; }
  .hero-phone-links,
  .cta-phone-links { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 52px 0 42px; gap: 30px; }
  .hero-media { order: -1; }
  .hero-media img { min-height: 0; }
  .trust-strip,
  .grid-3,
  .grid-2,
  .process,
  .footer-grid { grid-template-columns: 1fr; }
  .area-directory { columns: 2; }
  .quote-form { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--smo-max)); }
  .section { padding: 54px 0; }
  .page-hero { padding: 58px 0; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 18px; }
  .hero-actions .button,
  .cta-row .button { width: 100%; }
  .quote-panel { padding: 22px; }
  .area-directory { columns: 1; }
}
