/* TRADIES AUSTRALIA - DESKTOP CSS - PROFESSIONAL */

:root {
  --primary: #d97757;
  --primary-dark: #c25a3a;
  --primary-light: #e89676;
  --sage: #8a9a7b;
  --sage-dark: #6d7d62;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6b6b6b;
  --border: #e0ddd5;
  --border-light: #ebe8e0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Caveat', cursive;
  font-size: 40px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo span {
  font-size: 36px;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

nav a:hover {
  color: var(--primary);
  background: rgba(217, 119, 87, 0.08);
}

nav a:hover::after {
  transform: scaleX(1);
}

.mobile-toggle,
.mobile-menu {
  display: none;
}

/* ============================================================================
   HERO SECTIONS
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--sage) 100%);
  color: white;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Caveat', cursive;
  font-size: 72px;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 22px;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  opacity: 0.95;
}

.hero .btn {
  font-size: 18px;
  padding: 20px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ============================================================================
   LAYOUT WITH SIDEBAR
   ============================================================================ */

.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 1600px;
  margin: var(--space-2xl) auto;
  padding: 0 40px;
}

.sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.sidebar h3 {
  color: var(--text);
  font-size: 20px;
  margin-bottom: var(--space-md);
  font-weight: 700;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.sidebar-section {
  margin-bottom: var(--space-lg);
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 4px;
}

.sidebar a {
  display: block;
  color: var(--text-medium);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar a:hover,
.sidebar a.active {
  color: var(--primary);
  background: rgba(217, 119, 87, 0.08);
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.sidebar-cta h4 {
  font-size: 16px;
  margin-bottom: var(--space-sm);
}

.sidebar-cta p {
  font-size: 14px;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.sidebar-cta .btn {
  width: 100%;
  text-align: center;
  background: white;
  color: var(--primary);
  font-size: 14px;
  padding: 12px;
}

.sidebar-cta .btn:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ============================================================================
   MAIN CONTENT AREA
   ============================================================================ */

.main-content {
  min-width: 0;
}

.content-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.content-section h2 {
  color: var(--primary);
  font-size: 32px;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.content-section h3 {
  color: var(--text);
  font-size: 24px;
  margin: var(--space-lg) 0 var(--space-md);
  font-weight: 700;
}

.content-section p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* ============================================================================
   GRIDS
   ============================================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.state-grid,
.region-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1600px;
  margin: var(--space-2xl) auto;
  padding: 0 40px;
}

.card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  display: block;
}

.card h3 {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.card p {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================================
   FORMS & SELECTORS
   ============================================================================ */

.selector-container {
  max-width: 700px;
  margin: var(--space-2xl) auto;
  padding: 0 40px;
}

.selector-group {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
}

.selector-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
}

.selector-group select {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 17px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.selector-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.1);
}

.selector-group select:disabled {
  background: var(--cream);
  cursor: not-allowed;
  opacity: 0.6;
}

.form-section {
  max-width: 900px;
  margin: var(--space-2xl) auto;
  padding: 0 40px;
}

.form-box {
  background: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-help {
  font-size: 14px;
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--sage);
}

.btn-secondary:hover {
  background: var(--sage-dark);
}

.btn-large {
  padding: 22px 44px;
  font-size: 19px;
}

.btn-block {
  width: 100%;
}

/* ============================================================================
   BLOG CARDS
   ============================================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.blog-card-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--primary), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.blog-card-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  display: inline-block;
  background: rgba(217, 119, 87, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.blog-card-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  background: var(--text);
  color: white;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-2xl) 40px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-bottom: var(--space-2xl);
}

.footer-col h4 {
  color: var(--primary);
  margin-bottom: var(--space-md);
  font-size: 18px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  padding-left: 0;
  border-left: 2px solid transparent;
}

.footer-col a:hover {
  color: white;
  padding-left: 12px;
  border-left-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--primary);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
