/* Estimate Page Styles */

/* CSS Variables - Import from design system */
:root {
  /* Brand */
  --fox-orange: #B45628;
  --fox-orange-hover: #AF7551;

  /* Neutrals */
  --ink: #000000;
  --white: #FFFFFF;
  --cloud: #E6E7E8;
  --gray: #6D6E70;

  /* Backgrounds */
  --bg-primary: #EFDBBB;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;

  /* Text */
  --text-primary: #5E4E41;
  --text-secondary: #3C4242;
  --text-muted: #6D6E70;

  /* Links */
  --link: #B45628;
  --link-hover: #3C4242;

  /* Buttons */
  --button-bg: #B45628;
  --button-bg-hover: #3C4242;

  /* Borders */
  --border-light: rgba(0, 0, 0, 0.12);
  --border-default: rgba(0, 0, 0, 0.18);

  /* Shadows */
  --shadow-soft: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.08);

  /* Inputs */
  --input-bg: rgba(0, 0, 0, 0.05);
  --input-bg-hover: #E6E6E6;
  --input-text: #000000;
  --input-border: transparent;
  --input-border-focus: rgba(0, 0, 0, 0.18);
}

/* Body Reset - Override index.css */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  display: block;
}

/* Main Container */
.estimate {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 80px);
}

/* Header */
.estimate__header {
  text-align: center;
  margin-bottom: 3rem;
}

.estimate__header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.estimate__header p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}

/* Services Section */
.estimate__services {
  margin-bottom: 3rem;
}

.estimate__services h2 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2.25rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.service-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow-soft);
  padding: 1rem;
  min-width: 0;
}

.service-group h3 {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-list li {
  margin: 0;
  min-width: 0;
}

.service-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  background: var(--button-bg);
  border: none;
  border-radius: 6px;
  padding: 0.82rem 0.9rem;
  font-family: "Inter", sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-align: left;
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.service-link:hover {
  color: var(--white);
  background: var(--button-bg-hover);
}

.service-link:focus-visible {
  outline: 2px solid var(--button-bg);
  outline-offset: 2px;
}

/* Estimate Details Section */
.estimate__details {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.estimate__details h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.estimate-summary {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 8px;
}

/* Actions */
.estimate-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease;
  display: inline-block;
  text-align: center;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--button-bg);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--button-bg-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .estimate {
    padding: 2rem 1.5rem;
  }

  .estimate__header h1 {
    font-size: 2rem;
  }

  .estimate__header p {
    font-size: 1rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-groups {
    grid-template-columns: 1fr;
  }

  .estimate__details {
    padding: 1.5rem;
  }

  .estimate-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    font-size: 1rem;
    padding: 12px 24px;
  }
}
