/*
Theme Name: HomeServices
Theme URI: http://localhost/yused/
Author: Yused
Description: Custom WordPress theme for a multi-service home services company.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: homeservices
*/

:root {
  --ink: #17211d;
  --muted: #5c6762;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #dde5df;
  --green: #2f6846;
  --green-dark: #204933;
  --blue: #1c6f8c;
  --yellow: #f3b33d;
  --coral: #d95f45;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.12);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner,
.container {
  width: var(--container);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.primary-menu .current-menu-item > a,
.primary-menu a:hover {
  color: var(--green-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--green-dark);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/hero-services.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.78) 42%, rgba(251, 250, 247, 0.18) 100%),
    linear-gradient(0deg, rgba(23, 33, 29, 0.26), rgba(23, 33, 29, 0.02));
}

.hero-content {
  width: min(680px, calc(100vw - 40px));
  padding: 80px 0 120px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 58ch;
  color: #334039;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

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

.trust-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(23, 33, 29, 0.9);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: #eef4f0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 54ch;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.process-step,
.contact-panel,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(23, 33, 29, 0.06);
}

.service-card {
  min-height: 248px;
  padding: 22px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #ecf6f1;
  color: var(--green);
  font-size: 1.35rem;
}

.service-card ul,
.footer-links,
.legal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 32px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.process-step {
  padding: 26px;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 900;
}

.cta-band {
  padding: 58px 0;
  background: var(--green-dark);
  color: #fff;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .button {
  background: var(--yellow);
  color: #241a03;
}

.page-hero {
  padding: 80px 0 54px;
  background: #eef4f0;
}

.page-hero p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-content {
  padding: 66px 0 90px;
}

.content-card {
  padding: min(6vw, 48px);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
}

.contact-panel {
  padding: 28px;
}

.contact-panel address {
  color: var(--muted);
  font-style: normal;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  background: #141d19;
  color: #fff;
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer p,
.site-footer a,
.footer-links {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer a:hover {
  color: #fff;
}

.footer-title {
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: none;
  width: min(420px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-notice.is-visible {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-navigation {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 12px;
  }

  .header-actions .button {
    display: none;
  }

  .services-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-layout,
  .cta-band .container {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .admin-bar .site-header {
    top: 0;
  }

  .hero {
    min-height: 760px;
    align-items: start;
  }

  .hero-content {
    padding-top: 58px;
  }

  h1 {
    font-size: 3rem;
  }

  .section,
  .page-content {
    padding: 58px 0;
  }

  .section-head,
  .footer-bottom {
    display: grid;
  }

  .services-grid,
  .trust-grid,
  .process-grid,
  .footer-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 14px;
  }
}
