/* ============================================================
   TRADIE WEBSITE TEMPLATE — style.css
   Design: Purple #7c3aed + Orange #f97316, Inter, mobile-first
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #ede9fe;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--gray-600); }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 64px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  font-family: var(--font);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 12px;
  color: var(--gray-900);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
}

/* ---------- Fade-up Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   STICKY PHONE BAR (mobile)
   ============================================================ */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sticky-call a {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .sticky-call { display: block; }
  body { padding-bottom: 64px; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--purple);
  white-space: nowrap;
}

.nav-brand span {
  color: var(--orange);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1rem;
  white-space: nowrap;
}

.nav-phone svg {
  color: var(--orange);
  flex-shrink: 0;
}

.nav-cta {
  display: none;
}

@media (min-width: 600px) {
  .nav-cta {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, #6d28d9 100%);
  color: var(--white);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 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.04'%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") repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fed7aa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  color: var(--white);
  margin-bottom: 8px;
}

.hero-title .highlight {
  color: var(--orange);
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.hero-phone-block {
  margin-bottom: 32px;
}

.hero-phone-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-phone a {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.hero-phone a:hover {
  color: var(--orange);
}

.hero-phone-icon {
  background: var(--orange);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.hero-trust-item svg {
  color: var(--orange);
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--gray-50);
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 500px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-light);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--purple);
  font-size: 1.4rem;
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--gray-900);
}

.service-card p {
  font-size: 0.95rem;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why {
  background: var(--white);
}

.why-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .why-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.why-visual {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border-radius: 20px;
  padding: 40px 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.why-visual::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 240px;
  height: 240px;
  background: rgba(249,115,22,0.15);
  border-radius: 50%;
}

.why-stat {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.why-stat:last-child {
  margin-bottom: 0;
}

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

.why-stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

.why-item-text h3 {
  color: var(--gray-900);
  margin-bottom: 2px;
}

.why-item-text p {
  font-size: 0.9rem;
}

/* ============================================================
   SERVICE AREA
   ============================================================ */
.areas {
  background: var(--gray-900);
  color: var(--white);
}

.areas-header {
  text-align: center;
  margin-bottom: 40px;
}

.areas-header .section-label {
  background: rgba(124,58,237,0.3);
  color: #c4b5fd;
}

.areas-header .section-title {
  color: var(--white);
}

.areas-header .section-subtitle {
  color: var(--gray-400);
  margin: 0 auto;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.area-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: background var(--transition), border-color var(--transition);
}

.area-tag:hover {
  background: rgba(124,58,237,0.3);
  border-color: var(--purple);
  color: #c4b5fd;
}

.areas-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--gray-50);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: relative;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--purple-light);
  line-height: 0.5;
  position: absolute;
  top: 0;
  left: -4px;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================================================
   CONTACT / QUOTE FORM
   ============================================================ */
.contact {
  background: var(--white);
}

.contact-inner {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.contact-info h2 {
  color: var(--gray-900);
  margin-bottom: 12px;
}

.contact-info p {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--purple-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 1rem;
}

.contact-detail-text a:hover {
  color: var(--purple);
}

/* Form */
.quote-form {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 400px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: 8px;
  margin-top: 4px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  gap: 40px;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand span {
  color: var(--orange);
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

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

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-list li strong {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  display: block;
  margin-bottom: 1px;
}

.footer-list a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }

  .why-visual {
    order: -1;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
