:root {
  /* Legacy names kept for safety */
  --primary: #153147;
  --accent: #E1701E;
  --bg: #f3f4f6;
  --text: #23313f;
  --light: #ffffff;

  /* HomeFix specific */
  --hf-navy: #153147;
  --hf-orange: #E1701E;
  --hf-cream: #fff7f0;
  --hf-light-blue: #e4ecf3;
  --hf-gray: #f4f6f8;
  --hf-text: #23313f;

  /* Softer tints */
  --hf-navy-soft: #e3edf7;
  --hf-orange-soft: #ffe1c4;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base */
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hf-text);
  /* Warmer gradient that matches the logo */
  background: radial-gradient(circle at top right, #fff2e4 0%, #f8fafc 42%, #fff7f0 100%);
}

body {
  line-height: 1.5;
}

/* Layout container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =====================
   Buttons (clean system)
   ===================== */

button,
.btn,
.cart-go,
.cart-clear,
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.08s ease;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Primary (navy) */
.btn-primary,
.cart-go {
  background: var(--hf-navy);
  color: #ffffff;
  border-color: var(--hf-navy);
}

.btn-primary:hover,
.cart-go:hover {
  background: var(--hf-orange);
  border-color: var(--hf-orange);
  transform: translateY(-1px);
}

/* Outline (orange) */
.btn-outline,
.cart-clear {
  background: transparent;
  color: var(--hf-orange);
  border-color: var(--hf-orange);
}

.btn-outline:hover,
.cart-clear:hover {
  background: var(--hf-orange);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Add to Booking buttons: orange primary */
.add-to-cart-btn {
  background: var(--hf-orange);
  color: #ffffff;
  border-color: var(--hf-orange);
}

.add-to-cart-btn:hover {
  background: var(--hf-navy);
  border-color: var(--hf-navy);
}

/* Small variant */
.btn-small,
.btn.btn-small {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(21, 49, 71, 0.06);
  color: var(--hf-navy);
}

.badge-soft {
  background: rgba(21, 49, 71, 0.03);
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* =================
   Header & Navigation
   ================= */

.site-header {
  background: #ffffff;
  border-bottom: 4px solid var(--hf-orange);
  padding: 1rem 1.25rem 0.85rem;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 50px;
}

.site-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--hf-navy);
  letter-spacing: 0.6px;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--hf-navy);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--hf-orange);
  border-bottom-color: var(--hf-orange);
}

/* Mobile nav toggle (icon only; you can wire JS later if needed) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 3px;
  background: var(--hf-navy);
  border-radius: 999px;
}

/* =================
   Main & Sections
   ================= */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

section {
  margin-top: 2.5rem;
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--hf-navy);
}

/* =================
   HERO (home)
   ================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.05fr);
  gap: 1.75rem;
  align-items: stretch;
}

/* Adds a card feel + subtle color ribbon behind the hero */
.hero-home {
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(21, 49, 71, 0.04), rgba(225, 112, 30, 0.03)),
    #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(21, 49, 71, 0.08);
  position: relative;
  overflow: hidden;
}

/* Little colored stripe tucked behind the hero */
.hero-home::before {
  content: "";
  position: absolute;
  inset: -40px auto auto -40px;
  width: 45%;
  height: 16px;
  background: linear-gradient(90deg, var(--hf-orange), #fbbf24);
  opacity: 0.25;
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero-left {
  padding: 1.25rem 0;
}

.hero-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.hero-home h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--hf-navy);
}

.hero-home h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #475569;
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero p {
  margin-top: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.hero-note {
  font-size: 0.87rem;
  color: #4b5563;
}

/* HERO right side: browse + popular card */

.hero-categories {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-categories h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  color: var(--hf-navy);
}

.category-pill-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.category-pill {
  display: block;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--hf-navy-soft);
  color: var(--hf-navy);
  text-decoration: none;
  border: 1px solid rgba(21, 49, 71, 0.18);
}

.category-pill:hover {
  background: var(--hf-orange-soft);
  color: var(--hf-navy);
  border-color: var(--hf-orange);
}

/* Popular This Week card – light theme, on-brand */

.hero-card {
  background: #fffdf9; /* was #ffffff */
  border-radius: 18px;
  border: 1px solid rgba(21, 49, 71, 0.08);
  padding: 0.9rem 1rem 1.1rem;
}

.hero-card-label {
  color: var(--hf-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin: 0 0 0.4rem;
}

/* List styling inside the hero card */
.hero-card-list {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-card-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.hero-card-list li:last-child {
  border-bottom: none;
}

/* Label side (with icons + badges) */
.hero-card-list li span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Price text */
.hero-card-list .tool-price {
  color: var(--hf-navy);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Best Value Badge */
.best-value-badge {
  background: var(--hf-orange);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}

/* Most Rented Badge */
.most-rented-badge {
  background: rgba(225, 112, 30, 0.12);
  color: var(--hf-orange);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(225, 112, 30, 0.5);
  font-weight: 600;
}

/* Row highlight */
.most-rented-row {
  background: rgba(225, 112, 30, 0.06);
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
}

/* =================
   Why section
   ================= */

.why-section {
  margin-top: 3rem;
  background: var(--hf-cream);
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.9rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(225, 112, 30, 0.16);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

/* =================
   How it works preview
   ================= */

.how-preview {
  background: linear-gradient(135deg, rgba(21, 49, 71, 0.03), rgba(225, 112, 30, 0.06)), #ffffff;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(21, 49, 71, 0.08);
}

.how-header {
  text-align: center;
  margin-bottom: 1rem;
}

.how-header h2 {
  margin: 0 0 0.25rem;
  color: var(--hf-navy);
}

.how-header p {
  margin: 0;
  color: #4b5563;
}

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}

.how-image-wrap {
  display: flex;
  justify-content: center;
}

.how-steps-image {
  max-width: 100%;
  height: auto;
  max-height: 240px;
  display: block;
}

.steps-list {
  padding-left: 1.2rem;
  margin: 0;
}

.steps-list li {
  margin-bottom: 0.6rem;
}

.steps-list li strong {
  color: var(--hf-navy);
}

.how-footer {
  margin-top: 1.4rem;
  text-align: center;
}

/* =================
   Tools page
   ================= */

.page-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-header p {
  max-width: 700px;
  margin: 0.25rem auto;
}

.category-section {
  margin-bottom: 2.2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Category tiles on Tools page */
.category-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(21, 49, 71, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.category-card .category-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e5e7eb;
}

.category-card .badge {
  align-self: flex-start;
  margin-top: 0.8rem;
  margin-left: 1rem;
  background: rgba(225, 112, 30, 0.1);
  color: var(--hf-orange);
}

.category-card h3 {
  margin: 0.45rem 1rem 0.15rem;
}

.category-card p {
  margin: 0 1rem 0.9rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.tool-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.6rem;
  background: #e5e7eb;
}

.tool-card h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.35rem;
}

.tool-card .tool-desc {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.tool-card .tool-price {
  font-weight: 700;
  color: var(--hf-navy);
  font-size: 0.95rem;
}

.tool-card .tool-note {
  font-size: 0.82rem;
  color: #6b7280;
}

.tool-addons {
  font-weight: 600;
  color: #b45309; /* warm amber-style accent */
}

.tools-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Cart bar */
.cart-bar {
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cart-items {
  flex: 1 1 220px;
}

.cart-items h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.cart-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #92400e;
}

.cart-list {
  margin-top: 0.4rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0;
  font-size: 0.85rem;
}

.cart-remove {
  background: transparent;
  border-radius: 999px;
  border: none;
  padding: 0.1rem 0.35rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #92400e;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.cart-count {
  font-size: 0.85rem;
  color: #92400e;
  margin: 0;
}

/* =================
   Contact page
   ================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.contact-info {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  font-size: 0.95rem;
}

.contact-info p {
  margin: 0.25rem 0;
}

.booking-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.3rem 1.4rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.booking-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--hf-orange);
  box-shadow: 0 0 0 2px rgba(225, 112, 30, 0.25);
}

.booking-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Terms & Conditions box on contact page */

.terms-section {
  max-width: 900px;
  margin: 2.5rem 0 0;
  padding: 1.75rem 1.5rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.terms-section h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.terms-section p.subtitle {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #64748b;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-item {
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.terms-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.terms-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--hf-navy);
}

.terms-item p {
  margin: 0.15rem 0;
  font-size: 0.92rem;
  color: #4b5563;
}

/* Inline checkbox row */
.terms-row-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.terms-row-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.terms-label-inline {
  display: inline-block;
  font-size: 0.95rem;
  cursor: pointer;
  color: #444;
}

.terms-label-inline a {
  color: var(--hf-orange);
  text-decoration: underline;
}

/* Alert box on contact page */
.alert-soft {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
  color: #7c2d12;
  margin-bottom: 0.8rem;
}

/* =================
   Footer
   ================= */

.site-footer {
  background: #0b1927;
  color: #e5e7eb;
  padding: 1rem 0.8rem 1.2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a {
  color: #e5e7eb;
}

/* =================
   Responsive
   ================= */

@media (max-width: 960px) {
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-home {
    margin-top: 1rem;
  }

  .hero-categories {
    order: -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.05rem;
  }

  .how-layout {
    grid-template-columns: 1fr;
  }

  .how-steps-image {
    max-height: 180px;
  }
}

@media (max-width: 540px) {
  main {
    padding-inline: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .cart-bar {
    align-items: stretch;
  }

  .cart-actions {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .main-nav a {
    margin: 6px 10px;
  }
}

/* =================
   FAQ Section
   ================= */

.faq-section {
  background: #ffffff;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  margin-top: 2.5rem;
}

.faq-section h2 {
  margin-top: 0;
  color: var(--hf-navy);
  margin-bottom: 1rem;
}

.faq-item + .faq-item {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.faq-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--hf-navy);
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}


.site-footer a {
  color: #f28c28;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
