/*
Theme Name: Shedz
Theme URI: https://shedz.com.au
Description: Clean, mobile-first theme for Shedz - Australia's custom kit shed supplier.
Author: Brian Best
Author URI: https://shedz.com.au
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shedz
*/

/* ──── SHEDZ COLOUR PALETTE ──── */
:root {
  --shedz-orange: #e8491d;
  --shedz-orange-hover: #d03d15;
  --shedz-dark: #1e2a38;
  --shedz-dark-light: #2c3e50;
  --shedz-white: #ffffff;
  --shedz-light-grey: #f5f5f5;
  --shedz-text: #333333;
  --shedz-text-light: #444444;
}

/* ──── GLOBAL STYLES ──── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--shedz-text);
  line-height: 1.6;
}

/* ──── NUKE TT5 DEFAULTS ──── */
.wp-site-blocks {
  padding: 0 !important;
}

/* TT5 adds margin-block-start:1.2rem between all children — kill it */
:where(.wp-site-blocks) > *,
:where(.is-layout-flow) > *,
:where(.is-layout-constrained) > *,
.wp-block-post-content > *,
.entry-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remove TT5 global padding */
.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove TT5 block gap */
:root {
  --wp--style--block-gap: 0 !important;
  --wp--style--root--padding-top: 0 !important;
  --wp--style--root--padding-right: 0 !important;
  --wp--style--root--padding-bottom: 0 !important;
  --wp--style--root--padding-left: 0 !important;
}

body, .wp-site-blocks, main {
  background: var(--shedz-light-grey);
}

/* ──── HEADER ──── */
.shedz-topbar {
  background: var(--shedz-dark);
  color: var(--shedz-white);
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.shedz-header {
  background: var(--shedz-white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.shedz-header img.shedz-logo {
  height: 44px;
  width: auto;
}

.shedz-header nav a {
  color: var(--shedz-text);
  text-decoration: none;
  font-weight: 500;
  margin: 0 12px;
  font-size: 15px;
}

.shedz-header nav a:hover {
  color: var(--shedz-orange);
}

.shedz-cta-btn {
  background: var(--shedz-orange) !important;
  color: var(--shedz-white) !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.shedz-cta-btn:hover {
  background: var(--shedz-orange-hover) !important;
}

/* ──── HERO ──── */
.shedz-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--shedz-white);
  background-size: cover;
  background-position: center 65%;
  padding: 80px 20px;
}

.shedz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
}

.shedz-hero > * {
  position: relative;
  z-index: 1;
}

.shedz-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.shedz-hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 24px;
  opacity: 0.95;
}

/* ──── USP BADGES ──── */
.shedz-usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: var(--shedz-dark);
}

.shedz-usp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  color: var(--shedz-white);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.shedz-usp:last-child {
  border-right: none;
}

.shedz-usp svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  fill: var(--shedz-orange);
}

.shedz-usp span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .shedz-usps {
    grid-template-columns: 1fr 1fr;
  }
  .shedz-usp {
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ──── SECTION BASICS ──── */
.shedz-section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.shedz-section-dark {
  background: var(--shedz-dark);
  color: var(--shedz-white);
  padding: 30px 20px;
}

.shedz-section-grey {
  background: var(--shedz-light-grey);
  padding: 30px 20px;
}

.shedz-section-full {
  padding: 30px 20px;
}

.shedz-section h2,
.shedz-section-dark h2,
.shedz-section-grey h2,
.shedz-section-full h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.shedz-section-dark h2 {
  color: var(--shedz-white);
}

.shedz-subtitle {
  text-align: center;
  color: var(--shedz-text-light);
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 20px;
}

.shedz-section-dark .shedz-subtitle {
  color: rgba(255,255,255,0.8);
}

/* ──── ICON FEATURES ──── */
.shedz-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.shedz-feature {
  text-align: center;
  padding: 15px 15px;
}

.shedz-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
}

.shedz-feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.shedz-section-dark .shedz-feature h3 {
  color: var(--shedz-white);
}

.shedz-feature p {
  font-size: 0.95rem;
  color: var(--shedz-text-light);
  line-height: 1.5;
  font-weight: 500;
}

.shedz-section-dark .shedz-feature p {
  color: rgba(255,255,255,0.75);
}

/* ──── 3 EASY STEPS ──── */
.shedz-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.shedz-step {
  background: var(--shedz-white);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.shedz-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--shedz-orange);
  color: var(--shedz-white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.shedz-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.shedz-step p {
  font-size: 0.95rem;
  color: var(--shedz-text-light);
  line-height: 1.5;
}

/* ──── SERVICE CARDS ──── */
.shedz-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.shedz-service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: flex-end;
}

.shedz-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shedz-service-card .shedz-card-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  width: 100%;
  padding: 30px 20px 20px;
  color: var(--shedz-white);
}

.shedz-service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--shedz-white);
}

.shedz-service-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 10px;
  color: var(--shedz-white);
}

.shedz-service-card a {
  color: var(--shedz-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* ──── STATS BAR ──── */
.shedz-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  text-align: center;
}

.shedz-stat {
  padding: 30px 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.shedz-stat:last-child {
  border-right: none;
}

.shedz-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--shedz-orange);
  line-height: 1;
  margin-bottom: 4px;
}

.shedz-stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .shedz-stats {
    grid-template-columns: 1fr 1fr;
  }
  .shedz-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ──── SUPPLIER LOGOS ──── */
.shedz-suppliers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.shedz-suppliers img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
  filter: grayscale(100%);
}

.shedz-suppliers img:hover {
  opacity: 1;
  filter: none;
}

/* ──── FOOTER ──── */
.shedz-footer {
  background: var(--shedz-dark);
  color: var(--shedz-white);
  padding: 40px 20px 20px;
}

.shedz-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.shedz-footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--shedz-orange);
}

.shedz-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  font-size: 0.9rem;
}

.shedz-footer a:hover {
  color: var(--shedz-orange);
}

.shedz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 1200px;
  margin: 0 auto;
}

/* ──── CONTENT PAGES ──── */
.shedz-page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.shedz-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,42,56,0.65);
}

.shedz-page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--shedz-white);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.shedz-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.7;
}

.shedz-content h2 {
  text-align: left;
  margin-top: 32px;
}

.shedz-content img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* ──── CTA BANNER ──── */
.shedz-cta-banner {
  background: var(--shedz-orange);
  color: var(--shedz-white);
  text-align: center;
  padding: 40px 20px;
}

.shedz-cta-banner h2 {
  color: var(--shedz-white);
  margin-bottom: 8px;
}

.shedz-cta-banner p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 20px;
}

.shedz-cta-btn-white {
  background: var(--shedz-white) !important;
  color: var(--shedz-orange) !important;
  padding: 12px 32px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block;
  font-size: 1rem;
  transition: transform 0.2s;
}

.shedz-cta-btn-white:hover {
  transform: translateY(-2px);
}

/* ──── MOBILE MENU ──── */
.shedz-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  color: var(--shedz-text);
}

@media (max-width: 900px) {
  .shedz-mobile-toggle {
    display: block;
  }
  .shedz-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--shedz-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 16px;
  }
  .shedz-header nav.open {
    display: block;
  }
  .shedz-header nav a {
    display: block;
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid #eee;
  }
  .shedz-hero {
    min-height: 400px;
    padding: 40px 16px;
  }
  .shedz-services {
    grid-template-columns: 1fr;
  }
  .shedz-service-card {
    height: 250px;
  }
  .shedz-section,
  .shedz-section-dark,
  .shedz-section-grey,
  .shedz-section-full {
    padding: 20px 16px;
  }
  .shedz-features {
    grid-template-columns: 1fr 1fr;
  }
}

/* ──── GRAVITY FORMS OVERRIDE ──── */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 10px 12px !important;
  font-size: 15px !important;
}

.gform_wrapper .gform_button {
  background: var(--shedz-orange) !important;
  color: var(--shedz-white) !important;
  border: none !important;
  padding: 12px 32px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

/* Hide TT5 default header/footer - we use our own */
.wp-block-template-part:has(.wp-block-site-title),
header.wp-block-template-part,
footer.wp-block-template-part {
  display: none !important;
}

/* ========== Blog Styles ========== */
.shedz-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.shedz-blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.shedz-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.shedz-blog-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.shedz-blog-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: #f5f5f5;
  font-size: 3rem;
}
.shedz-blog-card-body {
  padding: 20px;
}
.shedz-blog-date {
  font-size: 0.85rem;
  color: var(--shedz-text-light);
  margin-bottom: 6px;
}
.shedz-blog-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.shedz-blog-card-body h3 a {
  color: var(--shedz-text);
  text-decoration: none;
}
.shedz-blog-card-body h3 a:hover {
  color: var(--shedz-orange);
}
.shedz-read-more {
  color: var(--shedz-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.shedz-read-more:hover {
  text-decoration: underline;
}
/* Single blog post */
.shedz-blog-single .shedz-featured-image {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}
.shedz-blog-single .shedz-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.shedz-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.shedz-post-content h2, .shedz-post-content h3 {
  margin-top: 30px;
}
.shedz-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.shedz-post-nav a {
  color: var(--shedz-orange);
  text-decoration: none;
  font-weight: 500;
}

/* Mini hero for sub-pages */
.shedz-hero-mini {
  background: var(--shedz-charcoal);
  color: #fff;
  text-align: center;
  padding: 60px 20px 50px;
}
.shedz-hero-mini h1 {
  font-size: 2.2rem;
  margin: 0 0 10px;
  color: #fff;
}
.shedz-hero-mini p {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .shedz-blog-grid {
    grid-template-columns: 1fr;
  }
  .shedz-hero-mini h1 {
    font-size: 1.6rem;
  }
}

/* Sheds hub grid hover */
.shedz-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Responsive: sheds grid */
@media (max-width: 900px) {
  .shedz-sheds-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .shedz-sheds-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Force Gravity Forms visible (GF orbital theme hides then unhides via JS, but JS init fails) */
.gform_wrapper {
  display: block !important;
}
