/*
Theme Name:   GateDig
Theme URI:    https://gatedig.com
Description:  Standalone theme for GateDig — restricted access excavation lead-gen site
Author:       David Rich
Author URI:   https://davejrich.com
Version:      1.0.0
*/

/* ── VARIABLES ── */
:root {
  --black:    #1C1C1C;
  --orange:   #E8761A;
  --white:    #FFFFFF;
  --light:    #F5F5F5;
  --mid:      #E8E8E8;
  --grey:     #666666;
  --text:     #222222;
  --border:   #DDDDDD;
}

/* ── 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(--orange); text-decoration: none; }
a:hover { color: var(--black); }

/* ── CUSTOM NAV ── */
.gd-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #1C1C1C !important;
  border-bottom: 3px solid #E8761A !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;
}

.gd-nav-logo {
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.gd-nav-logo span { color: #E8761A !important; }

.gd-nav-links {
  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;
}

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

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

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

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

.gd-nav-cta {
  background: rgba(232,118,26,0.15) !important;
  color: #E8761A !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 4px !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-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #C4600F; color: var(--white); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #333; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ── HERO ── */
.gd-hero {
  background: var(--black);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.gd-hero .tag {
  display: inline-block;
  background: rgba(232,118,26,0.2);
  color: var(--orange);
  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;
}

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

.gd-hero h1 span { color: var(--orange); }

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

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

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

.metric { text-align: center; }
.metric-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.metric-number span { color: var(--orange); }
.metric-label {
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.4rem;
}

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

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

.section-label {
  display: inline-block;
  background: rgba(232,118,26,0.12);
  color: var(--orange);
  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;
}

.section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--black);
  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: #AAAAAA; }

/* ── 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.1); }

.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); margin: 0 0 0.6rem; }
.service-card p { font-size: 0.9rem; color: var(--grey); line-height: 1.6; margin: 0; }

/* ── SPECS SECTION ── */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.spec-list { display: flex; flex-direction: column; gap: 1rem; }

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.spec-label { font-size: 0.9rem; color: #AAAAAA; }
.spec-value { font-size: 1rem; font-weight: 700; color: var(--white); }
.spec-value.highlight { color: var(--orange); }

.specs-callout {
  background: var(--orange);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  color: var(--white);
}

.specs-callout .big-number { font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -3px; display: block; }
.specs-callout .unit { font-size: 2rem; }
.specs-callout p { font-size: 0.95rem; margin-top: 1rem; opacity: 0.9; }

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

.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;
}

/* ── WHY-BOOK-HERE ── */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1rem; }
.why-card { padding: 1.5rem; border-left: 3px solid var(--orange); background: var(--light); border-radius: 0 8px 8px 0; }
.why-card h4 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--black); }
.why-card p { margin: 0; font-size: 0.9rem; color: var(--grey); line-height: 1.6; }

/* ── QUOTE FORM ── */
.gd-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: #eafaf0;
  border: 1px solid #b7e4c7;
  color: #1e7a3c;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ── 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; }
.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-body { padding: 1.5rem; }

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

.blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--black); 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: #AAAAAA; }

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

.gd-post h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--black);
  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);
}

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

.post-cta-box {
  background: var(--black);
  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: #AAAAAA; margin: 0 0 1.25rem; font-size: 0.9rem; }

/* ── FOOTER ── */
.gd-footer { background: #111111; color: #AAAAAA; padding: 3rem 1.5rem; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 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: #AAAAAA; 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 #2A2A2A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

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

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