/*
Theme Name: PWB Services Website
Theme URI: https://pwbservices.com.au/
Author: PWB Services
Description: Custom WordPress theme for PWB Services.
Version: 2.1.0
*/

/* =========================================================
   1. GLOBAL RESET
   ========================================================= */

:root {
  --pwb-navy: #10233f;
  --pwb-dark-navy: #09182c;
  --pwb-dark-green: #17351f;
  --pwb-green: #557f3e;
  --pwb-green-hover: #426731;
  --pwb-light-green: #eef5e9;
  --pwb-soft-green: #f4f8f1;
  --pwb-soft-grey: #f5f7f8;
  --pwb-white: #ffffff;
  --pwb-text: #263442;
  --pwb-muted: #5e6974;
  --pwb-border: #dce4e8;
  --pwb-shadow: 0 10px 30px rgba(16, 35, 63, 0.08);
  --pwb-shadow-hover: 0 18px 42px rgba(16, 35, 63, 0.14);
  --pwb-radius: 14px;
  --pwb-container: 1160px;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--pwb-white);
  color: var(--pwb-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

a {
  color: var(--pwb-green);
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--pwb-navy);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 23px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
}

ul,
ol {
  margin-top: 0;
}

.container {
  width: min(var(--pwb-container), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.center {
  text-align: center;
}

/* =========================================================
   2. WORDPRESS ADMIN BAR
   ========================================================= */

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

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* =========================================================
   3. TOP CONTACT BAR
   ========================================================= */

.top-bar {
  background: #0d2014;
  color: var(--pwb-white);
  font-size: 14px;
}

.top-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 42px;
}

.top-bar a {
  color: var(--pwb-white);
}

.top-bar a:hover {
  color: #c8e2ba;
}

.top-bar-item {
  text-align: center;
}

/* =========================================================
   4. HEADER AND NAVIGATION
   ========================================================= */

.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--pwb-white);
  box-shadow: 0 3px 15px rgba(16, 35, 63, 0.08);
}

.site-header-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-height: 92px;
}

.site-logo,
.custom-logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.custom-logo,
.site-logo img {
  width: auto;
  max-width: 100px;
  max-height: 76px;
  object-fit: contain;
}

.site-navigation,
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

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

.site-navigation li,
.main-navigation li,
.menu li {
  position: relative;
}

.site-navigation a,
.main-navigation a,
.menu a {
  display: block;
  padding: 12px 0;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.site-navigation a:hover,
.main-navigation a:hover,
.menu a:hover,
.current-menu-item > a,
.current_page_item > a {
  color: var(--pwb-green);
}

.header-quote-button,
.header-cta {
  flex: 0 0 auto;
}

/* Dropdown menus */

.main-navigation ul ul,
.site-navigation ul ul,
.menu ul {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 9999;
  display: none;
  min-width: 235px;
  padding: 12px 0;
  border: 1px solid var(--pwb-border);
  border-radius: 10px;
  background: var(--pwb-white);
  box-shadow: var(--pwb-shadow);
}

.main-navigation li:hover > ul,
.site-navigation li:hover > ul,
.menu li:hover > ul {
  display: block;
}

.main-navigation ul ul li,
.site-navigation ul ul li,
.menu ul li {
  width: 100%;
}

.main-navigation ul ul a,
.site-navigation ul ul a,
.menu ul a {
  padding: 11px 18px;
  white-space: nowrap;
}

.main-navigation ul ul a:hover,
.site-navigation ul ul a:hover,
.menu ul a:hover {
  background: var(--pwb-light-green);
}

/* =========================================================
   5. BUTTONS
   ========================================================= */

.btn,
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  border-radius: 30px;
  background: var(--pwb-green);
  color: var(--pwb-white) !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  background: var(--pwb-green-hover);
  color: var(--pwb-white) !important;
  box-shadow: 0 8px 20px rgba(23, 53, 31, 0.2);
}

.btn-primary {
  background: var(--pwb-green);
  color: var(--pwb-white) !important;
}

.btn-outline {
  border: 2px solid var(--pwb-white);
  background: transparent;
  color: var(--pwb-white) !important;
}

.btn-outline:hover {
  background: var(--pwb-white);
  color: var(--pwb-dark-green) !important;
}

.btn-outline-dark {
  border: 2px solid var(--pwb-dark-green);
  background: transparent;
  color: var(--pwb-dark-green) !important;
}

.btn-outline-dark:hover {
  background: var(--pwb-dark-green);
  color: var(--pwb-white) !important;
}

/* =========================================================
   6. HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(
      90deg,
      rgba(8, 26, 14, 0.88) 0%,
      rgba(15, 46, 25, 0.72) 50%,
      rgba(25, 70, 37, 0.48) 100%
    ),
    url("assets/images/lawn7.jpg") center center / cover no-repeat;
}

.hero-overlay {
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 90px 0;
}

.hero-content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero .eyebrow {
  color: #d2e8c6;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  color: var(--pwb-white);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
}

.hero-text {
  max-width: 850px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: 19px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* =========================================================
   7. EYEBROWS AND SECTION HEADINGS
   ========================================================= */

.eyebrow {
  margin-bottom: 10px;
  color: var(--pwb-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.section {
  padding: 80px 0;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 17px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--pwb-muted);
  font-size: 18px;
  line-height: 1.7;
}

/* =========================================================
   8. TRUST STRIP
   ========================================================= */

.trust-strip {
  padding: 24px 0;
  background: var(--pwb-dark-green);
}

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

.trust-grid > div {
  padding: 8px 12px;
  color: var(--pwb-white);
  font-weight: 800;
  text-align: center;
}

/* =========================================================
   9. FEATURE CARDS
   ========================================================= */

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

.feature-card {
  padding: 30px 25px;
  border: 1px solid var(--pwb-border);
  border-radius: var(--pwb-radius);
  background: var(--pwb-white);
  box-shadow: var(--pwb-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pwb-shadow-hover);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--pwb-muted);
}

/* =========================================================
   10. MAIN SERVICE CARDS
   ========================================================= */

.services-section {
  background: var(--pwb-soft-grey);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pwb-border);
  border-radius: var(--pwb-radius);
  background: var(--pwb-white);
  box-shadow: var(--pwb-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pwb-shadow-hover);
}

.service-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.service-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.service-card h3 {
  margin-bottom: 11px;
}

.service-card p {
  margin-bottom: 18px;
  color: var(--pwb-muted);
}

.service-card a {
  margin-top: auto;
  color: var(--pwb-green);
  font-weight: 800;
}

.service-card a:hover {
  text-decoration: underline;
}

/* =========================================================
   11. SPECIALISED CLIENT SERVICES
   ========================================================= */

.specialised-services-section {
  padding: 82px 0;
  background:
    linear-gradient(
      180deg,
      #edf4e9 0%,
      #f8faf7 100%
    );
}

.specialised-services-section .section-heading {
  margin-bottom: 44px;
}

.specialised-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.specialised-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #d5e0d0;
  border-radius: 18px;
  background: var(--pwb-white);
  box-shadow: var(--pwb-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.specialised-service-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -65px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(85, 127, 62, 0.08);
  pointer-events: none;
}

.specialised-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pwb-shadow-hover);
}

.specialised-card-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  margin-bottom: 21px;
  padding: 8px 15px;
  border-radius: 30px;
  background: var(--pwb-green);
  color: var(--pwb-white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.specialised-service-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 13px;
  font-size: 27px;
}

.specialised-service-card p {
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
  color: var(--pwb-muted);
  font-size: 16px;
  line-height: 1.7;
}

.specialised-card-button {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
}

.specialised-ndis {
  border-top: 6px solid #335f78;
}

.specialised-ndis .specialised-card-icon {
  background: #335f78;
}

.specialised-aged {
  border-top: 6px solid var(--pwb-green);
}

.specialised-aged .specialised-card-icon {
  background: var(--pwb-green);
}

.specialised-seniors {
  border-top: 6px solid #8a7542;
}

.specialised-seniors .specialised-card-icon {
  background: #8a7542;
}

.specialised-homecare {
  border-top: 6px solid #416f74;
}

.specialised-homecare .specialised-card-icon {
  background: #416f74;
}

.specialised-help-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  padding: 32px 35px;
  border-radius: 16px;
  background: var(--pwb-dark-green);
  box-shadow: var(--pwb-shadow);
}

.specialised-help-box > div {
  flex: 1;
}

.specialised-help-box h3 {
  margin-bottom: 8px;
  color: var(--pwb-white);
  font-size: 25px;
}

.specialised-help-box p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
}

.specialised-help-box .btn {
  flex: 0 0 auto;
  background: var(--pwb-white);
  color: var(--pwb-dark-green) !important;
}

/* =========================================================
   12. ABOUT PREVIEW
   ========================================================= */

.about-preview {
  background: var(--pwb-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}

.about-grid h2 {
  margin-bottom: 18px;
}

.about-grid p {
  color: var(--pwb-muted);
}

.about-grid img {
  width: 100%;
  min-height: 430px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--pwb-shadow);
}

/* =========================================================
   13. GALLERY
   ========================================================= */

.gallery-preview {
  background: var(--pwb-soft-grey);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  border-radius: 10px;
  object-fit: cover;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--pwb-shadow);
}

/* =========================================================
   14. SERVICE AREAS
   ========================================================= */

.service-areas {
  background: var(--pwb-light-green);
}

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

.area-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #cad9c1;
  border-radius: 30px;
  background: var(--pwb-white);
  color: var(--pwb-navy);
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.area-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--pwb-green);
  color: var(--pwb-green);
}

/* =========================================================
   15. QUOTE SECTION
   ========================================================= */

.quote-section {
  padding: 80px 0;
  background:
    linear-gradient(
      115deg,
      var(--pwb-dark-green) 0%,
      #2c5936 58%,
      var(--pwb-green) 100%
    );
}

.quote-box {
  text-align: center;
}

.quote-box h2 {
  max-width: 850px;
  margin: 0 auto 16px;
  color: var(--pwb-white);
}

.quote-box p {
  max-width: 750px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.quote-box .btn-primary {
  background: var(--pwb-white);
  color: var(--pwb-dark-green) !important;
}

.quote-box .btn-outline-dark {
  border-color: var(--pwb-white);
  color: var(--pwb-white) !important;
}

/* =========================================================
   16. STANDARD PAGE CONTENT
   ========================================================= */

.site-main,
main {
  min-height: 400px;
}

.page-content,
.entry-content {
  width: min(var(--pwb-container), calc(100% - 40px));
  margin: 0 auto;
}

.entry-content > * {
  max-width: 100%;
}

.entry-header {
  padding: 70px 0;
  background:
    linear-gradient(
      110deg,
      #132d1a 0%,
      #3e7137 100%
    );
}

.entry-header h1,
.page-header h1 {
  width: min(var(--pwb-container), calc(100% - 40px));
  margin: 0 auto;
  color: var(--pwb-white);
}

/* Prevent raw CSS or code from overflowing */

pre,
code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================================================
   17. FORMS
   ========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cfd9de;
  border-radius: 7px;
  background: var(--pwb-white);
  color: var(--pwb-text);
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pwb-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(85, 127, 62, 0.12);
}

.wpcf7-form p,
.wpforms-field {
  margin-bottom: 18px;
}

/* =========================================================
   18. FOOTER
   ========================================================= */

.site-footer {
  padding: 65px 0 25px;
  background: #0e1d13;
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 45px;
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #a8cf70;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: var(--pwb-white);
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.footer-logo img {
  max-width: 210px;
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-align: center;
}

/* Floating call button */

.call-now,
.call-now-button,
.floating-call-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 21px;
  border-radius: 30px;
  background: var(--pwb-green);
  color: var(--pwb-white) !important;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(16, 35, 63, 0.22);
}

/* =========================================================
   19. TABLETS
   ========================================================= */

@media (max-width: 1050px) {
  .site-header-inner,
  .header-inner {
    gap: 20px;
  }

  .site-navigation ul,
  .main-navigation ul,
  .menu {
    gap: 18px;
  }

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

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

  .specialised-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   20. MOBILE NAVIGATION AND LAYOUT
   ========================================================= */

@media (max-width: 820px) {
  .top-bar .container {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0;
  }

  .site-header-inner,
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 0;
  }

  .site-navigation,
  .main-navigation {
    width: 100%;
    order: 3;
  }

  .site-navigation ul,
  .main-navigation ul,
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }

  .header-quote-button,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    padding: 75px 0;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid img {
    min-height: 320px;
  }

  .specialised-help-box {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }
}

/* =========================================================
   21. SMALL MOBILE
   ========================================================= */

@media (max-width: 620px) {
  .container,
  .page-content,
  .entry-content {
    width: min(100% - 26px, var(--pwb-container));
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    min-height: 520px;
  }

  .hero-overlay {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 49px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-buttons,
  .quote-box .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn,
  .quote-box .btn {
    width: 100%;
  }

  .trust-grid,
  .feature-grid,
  .service-grid,
  .specialised-service-grid,
  .gallery-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 220px;
  }

  .specialised-services-section {
    padding: 60px 0;
  }

  .specialised-service-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .specialised-card-button {
    width: 100%;
  }

  .specialised-help-box {
    padding: 27px 22px;
    text-align: center;
  }

  .specialised-help-box .btn {
    width: 100%;
  }

  .gallery-grid img {
    height: 240px;
  }

  .quote-section {
    padding: 62px 0;
  }

  .call-now,
  .call-now-button,
  .floating-call-button {
    right: 12px;
    bottom: 12px;
    padding: 11px 17px;
  }
}