/*
Theme Name: Chainsaw Sharpening
Theme URI: https://www.chainsawsharpening.com.au/
Author: Ranga Studio
Author URI: https://www.rangastudio.com.au/
Description: A custom WordPress theme for Chainsaw Sharpening — a local father and son chainsaw chain sharpening service in Cockatoo, Officer and Wantirna South. Single page layout with full SEO and structured data baked in.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: All rights reserved
License URI: https://www.rangastudio.com.au/
Text Domain: chainsaw-sharpening
Tags: business, custom-colors, custom-logo, custom-menu, threaded-comments, translation-ready
*/

/* =========================================================
   Chainsaw Sharpening — Design System
   Brand: Father & son. Local. Friendly. Sharp.
   ========================================================= */

:root {
  /* Palette (matches Tailwind stone + orange) */
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;

  --green-100: #dcfce7;
  --green-600: #16a34a;

  --bg:        var(--stone-50);
  --ink:       var(--stone-800);
  --body:      var(--stone-600);
  --line:      var(--stone-200);

  --maxw-nav:  1152px;
  --maxw:      1152px;
  --maxw-md:   960px;
  --maxw-sm:   768px;
  --maxw-xs:   640px;

  --radius:    0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 1.75rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.10);
  --shadow-2xl: 0 25px 60px rgba(0,0,0,.18);

  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-brand: "Oswald", "Inter", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, .brand-font {
  font-family: var(--ff-brand);
  font-weight: 700;
  color: var(--stone-900);
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
.body-font { font-family: var(--ff-body); }

.eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(234, 88, 12, .92); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container.md { max-width: var(--maxw-md); }
.container.sm { max-width: var(--maxw-sm); }
.container.xs { max-width: var(--maxw-xs); }

.section { padding: 80px 0; }
.section-lg { padding: 96px 0; }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s, border-color .18s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--orange-700); transform: translateY(-2px); }

.btn-dark { background: var(--stone-900); color: #fff; }
.btn-dark:hover { background: var(--orange-600); }

.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff; border: 2px solid #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; color: var(--stone-900); }

.btn-orange-shadow:hover { box-shadow: 0 12px 28px rgba(234,88,12,.25); }

.icon-arrow { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.nav-inner { max-width: var(--maxw-nav); margin-inline: auto; padding: 0 24px; }
.nav {
  display: flex; justify-content: space-between; align-items: center; height: 80px; gap: 16px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-brand); font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: -.01em; color: var(--stone-900);
}
.brand-mark .accent { color: var(--orange-600); }
.brand-mark .axe { width: 32px; height: 32px; color: var(--orange-600); flex: none; }

.nav-links { display: flex; align-items: center; gap: 32px; font-weight: 500; }
.nav-links a {
  color: var(--stone-600); transition: color .15s;
}
.nav-links a:hover { color: var(--orange-600); }
.nav-links a.cta {
  padding: 9px 18px; background: var(--stone-900); color: #fff; border-radius: var(--radius); font-weight: 600;
}
.nav-links a.cta:hover { background: var(--orange-600); color: #fff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--stone-900); border-radius: 2px; position: relative; transition: background .2s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2.5px; background: var(--stone-900); border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 16px;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.7)),
    url("https://images.unsplash.com/photo-1598336337839-4d618d350992?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover; background-position: center;
}
.hero-inner { max-width: 760px; display: grid; gap: 24px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 3.75rem); }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--stone-200); max-width: 640px; margin-inline: auto;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding-top: 16px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--stone-900); color: #fff; padding: 48px 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.trust-item .ti-icon {
  width: 32px; height: 32px; margin: 0 auto 8px; color: var(--orange-500);
}
.trust-item h3 { color: #fff; font-family: var(--ff-body); font-size: 1rem; font-weight: 700; }
.trust-item p { color: var(--stone-400); font-size: .9rem; margin-top: 4px; }

/* ---------- About ---------- */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  height: 400px;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--orange-600); color: #fff; padding: 24px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-badge .b-big { font-family: var(--ff-brand); font-size: 1.875rem; font-weight: 700; }
.about-badge .b-small { font-size: .85rem; opacity: .92; }
.about-body { display: grid; gap: 20px; }
.about-body p { color: var(--body); font-size: 1.05rem; }
.checklist { display: grid; gap: 12px; padding-top: 12px; }
.checklist li {
  display: flex; align-items: center; gap: 12px; color: var(--stone-700);
}
.checklist .ic { width: 20px; height: 20px; color: var(--orange-600); flex: none; }
.checklist .strong { color: var(--stone-900); font-weight: 700; }

/* ---------- Pricing ---------- */
.pricing { background: var(--stone-100); }
.pricing-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.pricing-head p { color: var(--body); margin-top: 12px; }
.pricing-card {
  max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--orange-500);
  overflow: hidden;
}
.pricing-body { padding: 32px; display: grid; gap: 22px; }
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--stone-100);
  gap: 16px;
}
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row h3 { font-family: var(--ff-body); font-size: 1.25rem; font-weight: 700; color: var(--stone-900); }
.price-row p { color: var(--stone-500); font-size: .9rem; margin-top: 4px; }
.price-amount { font-size: 1.875rem; font-weight: 700; color: var(--orange-600); white-space: nowrap; }

.pricing-foot {
  background: var(--stone-50); padding: 24px; border-top: 1px solid var(--stone-200); text-align: center;
}
.pricing-foot .free {
  color: var(--orange-600); font-weight: 700; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.pricing-foot .free .ic { width: 20px; height: 20px; }
.pricing-foot small {
  display: block; color: var(--body); font-size: .88rem; margin: 8px 0 18px;
}

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.faq-head p { color: var(--body); margin-top: 12px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 1.1rem; color: var(--stone-900);
}
.faq-q .pm {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(234,88,12,.1); color: var(--orange-600);
  display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s;
}
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 0 22px; color: var(--body); }

/* ---------- Contact ---------- */
.contact { background: #fff; padding: 96px 0; }
.contact-card {
  max-width: var(--maxw-md); margin: 0 auto;
  background: #fff; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl); border: 1px solid var(--line);
  overflow: hidden;
}
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; }
.contact-info {
  position: relative; padding: 48px;
  background: var(--stone-900); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  overflow: hidden;
}
.contact-info::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 128px; height: 128px;
  background: var(--orange-600); opacity: .9;
  border-bottom-left-radius: 100px;
  z-index: 0;
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h2 { color: #fff; font-size: 2.25rem; letter-spacing: .01em; }
.contact-info p.intro { color: var(--stone-300); margin: 24px 0; line-height: 1.6; }
.contact-info ul { display: grid; gap: 24px; }
.contact-info li { display: flex; align-items: flex-start; gap: 16px; }
.contact-info li .ic-box {
  background: var(--stone-800); padding: 8px; border-radius: 10px; flex: none;
}
.contact-info li .ic-box svg { width: 20px; height: 20px; color: var(--orange-500); }
.contact-info li .label {
  font-size: .72rem; color: var(--stone-400); text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.contact-info li a, .contact-info li span.val { color: #fff; font-weight: 500; word-break: break-word; transition: color .15s; }
.contact-info li a:hover { color: var(--orange-400); }

.contact-form-wrap { padding: 48px; background: #fff; }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--stone-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px;
  background: var(--stone-50); border: 1px solid var(--stone-200);
  border-radius: var(--radius); color: var(--stone-800);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--stone-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange-600); background: #fff;
  box-shadow: 0 0 0 4px rgba(234,88,12,.1);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form-wrap form { display: grid; gap: 24px; }
.field-select { position: relative; }
.field-select select { appearance: none; cursor: pointer; padding-right: 40px; }
.field-select::after {
  content: ""; position: absolute; right: 14px; top: calc(50% + 8px);
  width: 10px; height: 10px;
  border-right: 2px solid var(--stone-400);
  border-bottom: 2px solid var(--stone-400);
  transform: translateY(-50%) rotate(45deg); pointer-events: none;
}
.submit-btn {
  width: 100%; padding: 16px; font-weight: 700; font-size: 1rem;
  background: var(--orange-600); color: #fff; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.submit-btn:hover { background: var(--orange-700); box-shadow: 0 12px 28px rgba(234,88,12,.25); }
.submit-btn:active { transform: scale(.98); }
.submit-btn[disabled] { opacity: .7; cursor: progress; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--stone-900); color: var(--stone-400);
  padding: 36px 0; border-top: 1px solid var(--stone-800);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
}
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { font-size: .88rem; color: var(--stone-400); margin-top: 4px; }
.footer-meta { text-align: right; font-size: .88rem; line-height: 1.6; }
.footer-meta a { color: var(--stone-400); transition: color .15s; }
.footer-meta a:hover { color: #fff; }
.footer-meta .credit { color: #ed9802; }
.footer-meta .credit:hover { color: var(--orange-500); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .3s;
}
.modal.show { display: flex; opacity: 1; }
.modal-card {
  background: #fff; padding: 32px; border-radius: var(--radius-xl);
  max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow-2xl);
  transform: scale(.95); transition: transform .3s var(--ease);
}
.modal.show .modal-card { transform: scale(1); }
.modal-icon {
  margin: 0 auto 24px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center;
}
.modal-icon svg { width: 32px; height: 32px; }
.modal h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modal p { color: var(--body); margin-bottom: 28px; line-height: 1.6; }
.modal .btn-close {
  width: 100%; padding: 12px; font-weight: 700;
  background: var(--stone-900); color: #fff; border-radius: var(--radius);
  transition: background .15s, transform .15s;
}
.modal .btn-close:hover { background: var(--stone-800); transform: translateY(-2px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 36px; }
  .contact-form-wrap { padding: 36px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; padding: 14px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav-links.open a { padding: 14px; border-radius: 8px; }
  .nav-links.open a.cta { text-align: center; }
  .nav-toggle { display: flex; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .section { padding: 64px 0; }
  .about-image { height: 320px; }
  .about-badge { display: none; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .price-amount { align-self: flex-end; }
  .contact-info { padding: 28px; }
  .contact-form-wrap { padding: 28px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-meta { text-align: center; }
}
