/* =====================================================
   House Clearance Paignton – Main Stylesheet
   Modern, clean, trustworthy local-service design
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colours */
  --primary: #0f4c5c;          /* Deep teal / navy */
  --primary-dark: #0a353f;
  --primary-light: #1a6b7c;
  --accent: #2a9d8f;           /* Fresh green */
  --accent-dark: #21867a;
  --accent-light: #e8f5f3;

  /* Neutrals */
  --dark: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  /* Feedback */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Transitions */
  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  margin-bottom: var(--space-4);
}

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

/* ---------- Layout Containers ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-narrow {
  max-width: 760px;
}

.container-wide {
  max-width: 1320px;
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-lg {
  padding: var(--space-16) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

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

/* Primary */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* Accent / Secondary */
.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

/* Outline */
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-accent:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* Ghost / Light */
.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border-color: transparent;
}
.btn-ghost:hover {
  background-color: var(--accent-light);
  color: var(--primary-dark);
}

/* Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}
.btn-xl {
  padding: 1.15rem 2.5rem;
  font-size: var(--font-size-xl);
}

/* Full width */
.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--light);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--light);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card-text {
  color: var(--text-light);
  margin-bottom: var(--space-4);
}

/* Card variations */
.card-bordered {
  box-shadow: none;
  border: 1px solid var(--border);
}

.card-flat {
  box-shadow: none;
  background: var(--light);
}

.card-primary {
  border-top: 4px solid var(--primary);
}

.card-accent {
  border-top: 4px solid var(--accent);
}

/* ---------- Boxes & Containers ---------- */
.box {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.box-sm {
  padding: var(--space-4);
}

.box-lg {
  padding: var(--space-8);
}

.box-bordered {
  box-shadow: none;
  border: 1px solid var(--border);
}

.box-primary {
  background: var(--primary);
  color: var(--white);
}
.box-primary h2,
.box-primary h3,
.box-primary h4 {
  color: var(--white);
}

.box-accent {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
}

.box-dark {
  background: var(--dark);
  color: var(--white);
}

.box-light {
  background: var(--light);
}

/* ---------- Pills / Badges / Tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

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

.pill-accent {
  background: var(--accent);
  color: var(--white);
}

.pill-light {
  background: var(--accent-light);
  color: var(--primary);
}

.pill-outline {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text);
}

.pill-success {
  background: #d1fae5;
  color: #065f46;
}

.pill-warning {
  background: #fef3c7;
  color: #92400e;
}

/* ---------- Feature / Icon Boxes ---------- */
.feature-box {
  text-align: center;
  padding: var(--space-6);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

/* ---------- Grid System (simple) ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Form Alerts ---------- */
.form-alert {
  padding: var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
}

.form-alert-error {
  background: #fee2e2;
  border: 1px solid var(--error);
  color: #991b1b;
}

.form-alert-success {
  background: #d1fae5;
  border: 1px solid var(--success);
  color: #065f46;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.15);
}

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

/* ---------- Shadows Utility ---------- */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow    { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* ---------- Rounded Utility ---------- */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ---------- Background & Text Helpers ---------- */
.bg-primary { background-color: var(--primary); color: var(--white); }
.bg-accent  { background-color: var(--accent); color: var(--white); }
.bg-light   { background-color: var(--light); }
.bg-white   { background-color: var(--white); }
.bg-dark    { background-color: var(--dark); color: var(--white); }

.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-light   { color: var(--text-light); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

/* ---------- Hero Section Example ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: var(--space-16) 0;
  position: relative;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  max-width: 600px;
  margin-bottom: var(--space-6);
}

/* ---------- Hero with image (service pages) ---------- */
.hero-grid {
  align-items: center;
}

.hero-content p {
  max-width: none;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

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

  .hero-image {
    order: 2;
    margin-top: var(--space-6);
  }

  .hero-content {
    order: 1;
  }
}

/* ---------- Header / Nav basics ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.nav-logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: var(--space-12) 0 var(--space-6);
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  font-size: var(--font-size-sm);
  text-align: center;
}

/* ---------- Utility Spacing ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* ---------- Responsive helpers ---------- */
/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    position: absolute;
    left: 0;
    top: 100%;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--border);
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .section {
    padding: var(--space-10) 0;
  }
}