/*
Theme Name:   Dig U Down Under (Brand Colours)
Theme URI:    https://digudownunder.com.au
Description:  Standalone theme for Dig U Down Under (Hoeys Haulage and Excavations Pty Ltd) — tight-access excavation, trenching/drainage and tipper hire across South-West Brisbane. Charcoal/machinery-orange palette. Header/footer logos, hero content and hero background are editable via Appearance > Customize.
Author:       AI Sharp
Author URI:   https://aisharp.com.au
Version:      1.0.0
*/

/* ── VARIABLES ──
   Orange carried over from the original mockup (#E8761A) — matches the
   machinery-orange look the client already approved, dropped onto the
   newer J Scott Electrical theme architecture (sticky gradient nav,
   FAQ accordion, Customizer hero controls). */
:root {
  --charcoal:  #1C1C1C;
  --charcoal2: #262620;
  --orange:    #E8761A;
  --orange2:   #FFA542;
  --brand-gradient: linear-gradient(120deg, var(--orange), var(--orange2));
  --white:     #FFFFFF;
  --light:     #F7F6F4;
  --mid:       #EAE7E2;
  --grey:      #6B6660;
  --text:      #201E1A;
  --border:    #DFDBD4;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 0;
}

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

a { color: var(--charcoal); text-decoration: none; }
a:hover { color: var(--orange); }

/* ── CUSTOM NAV ── */
.ddu-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #1C1C1C !important;
  border-bottom: 3px solid transparent !important;
  border-image: var(--brand-gradient) 1 !important;
  padding: 0 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 64px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ddu-nav-logo {
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.ddu-nav-logo span {
  background: var(--brand-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--orange) !important; /* fallback for browsers without background-clip:text support */
}

.ddu-nav-logo-icon img { height: 28px; width: 28px; display: block; }

.ddu-nav-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.5rem !important;
}

.ddu-nav-links,
.ddu-nav-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.5rem !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ddu-nav-actions { gap: 0.75rem !important; }

.ddu-nav-links li,
.ddu-nav-actions li {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}

.ddu-nav-links li::before,
.ddu-nav-links li::marker,
.ddu-nav-actions li::before,
.ddu-nav-actions li::marker {
  display: none !important;
  content: none !important;
}

.ddu-nav-links a {
  color: #D8D4CC !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

.ddu-nav-links a:hover { color: #FFFFFF !important; }

.ddu-nav-cta {
  background: rgba(232,118,26,0.18) !important;
  color: #FFA542 !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 4px !important;
}

.ddu-nav-phone {
  background: var(--orange) !important;
  color: #FFFFFF !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.ddu-nav-phone:hover { background: #C7630F !important; opacity: 0.9; }

/* ── NAV — TIERED MOBILE LAYOUT ── */
@media (max-width: 760px) {
  .ddu-nav {
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 0.75rem 1.25rem !important;
    row-gap: 0.6rem !important;
  }

  .ddu-nav-right {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.6rem !important;
  }

  .ddu-nav-actions {
    order: 1 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .ddu-nav-links {
    order: 2 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1.1rem !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-accent { background: var(--brand-gradient); color: var(--white); }
.btn-accent:hover { background: var(--orange); color: var(--white); }
.btn-navy { background: var(--charcoal); color: var(--white); }
.btn-navy:hover { background: #2E2C26; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--charcoal); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── HERO ──
   No background photo dependency by default — Dave hasn't supplied real
   equipment photos yet, so this ships as a dark gradient (no stock-photo
   stand-in). Swap in a real photo any time via Appearance > Customize >
   Hero Background Image with zero CSS changes needed. */
.ddu-hero {
  background: linear-gradient(160deg, #1C1C1C 0%, #2A241C 60%, #1C1C1C 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ddu-hero.has-bg-image {
  background:
    linear-gradient(180deg, rgba(28,28,28,0.6) 0%, rgba(28,28,28,0.8) 55%, rgba(28,28,28,0.96) 100%),
    var(--ddu-hero-bg-url) center center / cover no-repeat;
}

.ddu-hero .container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ddu-hero .tag {
  display: inline-block;
  background: rgba(232,118,26,0.18);
  color: #FFA542;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.ddu-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 1.25rem;
}

.ddu-hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange); /* fallback */
}

.ddu-hero .sub {
  font-size: 1.1rem;
  color: #C7C2B8;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ── TRUST BADGE BAR / HERO METRICS ── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: #EDEAE4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.metric { text-align: center; }
.metric-number { font-size: 2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.metric-number span { font-size: 1.1rem; font-weight: 700; }
.metric-label { font-size: 0.82rem; color: #C7C2B8; margin-top: 0.35rem; }

/* ── SECTIONS ── */
.ddu-section { padding: 5rem 1.5rem; }
.ddu-section.bg-light { background: var(--light); }
.ddu-section.bg-black { background: var(--charcoal); }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: rgba(28,28,28,0.08);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.bg-black .section-label { background: rgba(232,118,26,0.15); color: var(--orange); }

.section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.75px;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.bg-black .section-heading { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 640px;
  line-height: 1.7;
  margin: 0 0 3rem;
}

.bg-black .section-sub { color: #C7C2B8; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover { border-color: var(--orange); box-shadow: 0 4px 20px rgba(232,118,26,0.15); }

.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-icon-img { height: 2.5rem; width: auto; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--charcoal); margin: 0 0 0.6rem; }
.service-card p { font-size: 0.88rem; color: var(--grey); line-height: 1.6; margin: 0; }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.why-card { padding: 1.5rem; border-left: 3px solid var(--orange); background: rgba(255,255,255,0.04); border-radius: 0 8px 8px 0; }
.why-card h4 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--white); }
.why-card p { margin: 0; font-size: 0.9rem; color: #C7C2B8; line-height: 1.6; }

/* ── ACCESS SPECS ── */
.specs-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: stretch; margin-top: 1rem; }
.spec-list { display: flex; flex-direction: column; gap: 0.9rem; }
.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.spec-label { color: #C7C2B8; font-size: 0.92rem; }
.spec-value { color: var(--white); font-weight: 700; font-size: 0.95rem; }
.spec-value.highlight { color: var(--orange); }

.specs-callout {
  background: rgba(232,118,26,0.1);
  border: 1px solid rgba(232,118,26,0.3);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.big-number { font-size: 3rem; font-weight: 800; color: var(--orange); line-height: 1; }
.big-number .unit { font-size: 1.5rem; }
.specs-callout p { color: #E5E1D9; font-size: 0.92rem; line-height: 1.6; margin: 1rem 0 0; }

/* ── SERVICE AREA ── */
.suburbs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1.5rem; }

.suburb-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

/* ── HOURS ── */
.hours-box { max-width: 480px; margin-top: 1rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.hours-row span:first-child { font-weight: 600; color: var(--charcoal); }
.hours-row span:last-child { color: var(--grey); }

/* ── QUOTE FORM ── */
.ddu-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--orange); }

.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-success {
  background: #fdf1e6;
  border: 1px solid #f3cd9f;
  color: #a35313;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f3c2bd;
  color: #a3291b;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.5;
  text-align: left;
}

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.blog-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s; background: var(--white); }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.blog-card-img {
  background: var(--mid);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-fallback-icon { height: 64px; width: auto; }

.blog-card-body { padding: 1.5rem; }

.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  display: block;
}

.bg-black .blog-card-cat { color: var(--orange); }

.blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin: 0 0 0.6rem; line-height: 1.4; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card p { font-size: 0.875rem; color: var(--grey); line-height: 1.6; margin: 0 0 1rem; }
.blog-card-meta { font-size: 0.8rem; color: #94908A; }

/* ── SINGLE BLOG POST ── */
.ddu-post { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }

.ddu-post h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.75px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.ddu-post .entry-content { line-height: 1.8; font-size: 1.05rem; }
.ddu-post .entry-content h2 { color: var(--charcoal); margin-top: 2.5rem; }
.ddu-post .entry-content h3 { color: var(--charcoal); margin-top: 2rem; }

.post-cta-box {
  background: var(--charcoal);
  color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 3rem;
  text-align: center;
}

.post-cta-box h3 { color: var(--white); margin: 0 0 0.5rem; }
.post-cta-box p { color: #C7C2B8; margin: 0 0 1.25rem; font-size: 0.9rem; }

/* ── FOOTER ── */
.ddu-footer { background: #141310; color: #C7C2B8; padding: 3rem 1.5rem; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .site-name { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; margin: 0; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #C7C2B8; font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #2A2822;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ── DYNAMIC LOGOS (Customizer) ── */
.ddu-nav-logo-img img { max-height: 44px; width: auto; display: block; }
.footer-logo-img { max-height: 40px; width: auto; margin-bottom: 0.75rem; }

/* ── FAQ PAGE ── */
.ddu-faq-hero { padding: 3.5rem 1.5rem; }

.ddu-faq-list { max-width: 780px; margin: 0 auto; }

.ddu-faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  background: var(--white);
}

.ddu-faq-toggle { display: none; }

.ddu-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
}

.ddu-faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--light);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ddu-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.ddu-faq-answer p {
  margin: 0;
  padding: 0 1.4rem 1.25rem;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ddu-faq-toggle:checked ~ .ddu-faq-answer { max-height: 400px; }
.ddu-faq-toggle:checked ~ .ddu-faq-question .ddu-faq-icon {
  transform: rotate(45deg);
  background: var(--brand-gradient);
  color: var(--white);
}

.ddu-faq-question:hover { color: var(--orange); }
.ddu-faq-toggle:focus-visible ~ .ddu-faq-question { outline: 2px solid var(--orange); outline-offset: -2px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .suburbs-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-bar, .hero-metrics { gap: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}
