/* ==========================================================================
   Attic Solutions Landing Pages
   Conversion-focused, mobile-first, OKLCH color system
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  /* Brand Colors (OKLCH) */
  --green-primary: oklch(0.48 0.16 145);
  --green-dark: oklch(0.42 0.13 145);
  --green-light: oklch(0.92 0.04 145);

  /* Warm accent (amber/gold for secondary CTAs) */
  --amber-accent: oklch(0.72 0.14 75);
  --amber-dark: oklch(0.62 0.14 75);

  /* Neutrals */
  --cream: oklch(0.97 0.008 85);
  --cream-dark: oklch(0.94 0.01 85);
  --warm-gray: oklch(0.88 0.01 80);
  --text-primary: oklch(0.22 0.02 250);
  --text-secondary: oklch(0.42 0.02 250);
  --text-light: oklch(0.98 0.005 85);
  --white-tinted: oklch(0.99 0.003 85);
  --border-light: oklch(0.90 0.01 80);

  /* Trust bar */
  --trust-bg: oklch(0.30 0.08 145);

  /* Typography Scale (clamp, mobile-first) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.76rem + 0.26vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.87rem + 0.33vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 0.96rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.7rem + 2.75vw, 3.5rem);

  /* Spacing */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-md: clamp(1.25rem, 1rem + 1.25vw, 2rem);
  --space-lg: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --space-xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* Layout */
  --content-width: min(72rem, 92vw);
  --narrow-width: min(56rem, 90vw);

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

a {
  color: var(--green-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

/* --- Utility --- */
.container {
  width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.container--narrow {
  width: var(--narrow-width);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--green-primary);
  color: var(--text-light);
  border-color: var(--green-primary);
}

.btn--primary:hover {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--text-light);
}

.btn--secondary {
  background-color: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}

.btn--secondary:hover {
  background-color: var(--green-light);
  color: var(--green-dark);
}

.btn--amber {
  background-color: var(--amber-accent);
  color: var(--text-primary);
  border-color: var(--amber-accent);
}

.btn--amber:hover {
  background-color: var(--amber-dark);
  border-color: var(--amber-dark);
}

.btn--large {
  padding: 1.1em 2.2em;
  font-size: var(--text-lg);
}

.btn--phone {
  gap: 0.4em;
}

.btn--phone::before {
  content: "\260E";
  font-size: 1.1em;
}

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white-tinted);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-xs) 0;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  height: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  width: auto;
}

.site-header__phone {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--green-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.4em 0.8em;
  border: 2px solid var(--green-primary);
  border-radius: var(--radius-md);
  transition: background-color 0.2s, color 0.2s;
}

.site-header__phone:hover {
  background-color: var(--green-primary);
  color: var(--text-light);
}

.site-header__phone::before {
  content: "\260E";
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: var(--space-lg) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(180deg, var(--green-light) 0%, transparent 100%);
  opacity: 0.3;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-lg);
  }
}

.hero__content {
  animation: fadeSlideUp 0.6s ease-out both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.4em 0.9em;
  border-radius: 2em;
  margin-bottom: var(--space-sm);
}

.hero__badge::before {
  content: "\2605";
  color: var(--amber-accent);
}

.hero h1 {
  margin-bottom: var(--space-xs);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 38ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.hero__trust-item::before {
  content: "\2713";
  color: var(--green-primary);
  font-weight: 700;
}

.hero__image {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  animation: fadeSlideUp 0.6s ease-out 0.15s both;
}

/* --- Trust Bar --- */
.trust-bar {
  background-color: var(--trust-bg);
  color: var(--text-light);
  padding: var(--space-md) 0;
  animation: fadeSlideUp 0.6s ease-out 0.3s both;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}

.trust-bar__icon {
  font-size: var(--text-2xl);
  line-height: 1;
}

.trust-bar__label {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--text-sm);
}

/* --- Section Styles --- */
.section {
  padding: var(--space-xl) 0;
}

.section--cream {
  background-color: var(--cream);
}

.section--cream-dark {
  background-color: var(--cream-dark);
}

.section--green-light {
  background-color: var(--green-light);
}

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

.section__header h2 {
  margin-bottom: var(--space-xs);
}

.section__header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 55ch;
}

/* --- Benefits Section --- */
.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .benefits__grid {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-lg) var(--space-md);
  }

  .benefit-item:nth-child(even) {
    padding-top: var(--space-md);
  }
}

.benefit-item {
  padding: var(--space-md);
  background: var(--white-tinted);
  border-left: 3px solid var(--green-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.benefit-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--green-dark);
}

.benefit-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Social Proof / Reviews --- */
.reviews__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .reviews__layout {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-md);
  }
}

.review-card {
  background: var(--white-tinted);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.review-card--featured {
  border-left: 4px solid var(--amber-accent);
  border-color: var(--amber-accent);
}

.review-card__stars {
  color: var(--amber-accent);
  font-size: var(--text-lg);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.review-card__text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.review-card--featured .review-card__text {
  font-size: var(--text-lg);
}

.review-card__author {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.review-card__source {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.reviews__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --- How It Works --- */
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  counter-reset: step;
}

@media (min-width: 768px) {
  .process__grid {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}

.process-step {
  position: relative;
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 1rem);
  background: var(--white-tinted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  position: absolute;
  top: calc(-0.75em);
  left: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  background-color: var(--green-primary);
  color: var(--text-light);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  border-radius: 50%;
}

.process-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Guarantee --- */
.guarantee {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--cream) 100%);
  padding: var(--space-lg) 0;
}

.guarantee__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
}

@media (max-width: 767px) {
  .guarantee__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.guarantee__icon {
  font-size: var(--text-4xl);
  line-height: 1;
}

.guarantee h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
  color: var(--green-dark);
}

.guarantee p {
  color: var(--text-secondary);
  max-width: 55ch;
}

/* --- Lead Capture Form --- */
.form-section {
  background: var(--cream-dark);
  padding: var(--space-xl) 0;
}

.form-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .form-section__inner {
    grid-template-columns: 1fr 1.2fr;
  }
}

.form-section__heading h2 {
  margin-bottom: var(--space-sm);
}

.form-section__heading p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.form-section__trust-list {
  list-style: none;
}

.form-section__trust-list li {
  padding: 0.4em 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.form-section__trust-list li::before {
  content: "\2713";
  color: var(--green-primary);
  font-weight: 700;
}

.lead-form {
  background: var(--white-tinted);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.06);
}

.lead-form__field {
  margin-bottom: var(--space-sm);
}

.lead-form label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.3em;
  color: var(--text-primary);
}

.lead-form input,
.lead-form select {
  width: 100%;
  padding: 0.75em 1em;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--cream);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.16 145 / 0.15);
}

.lead-form__optional {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.lead-form .btn {
  width: 100%;
  margin-top: var(--space-xs);
}

.lead-form__privacy {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* --- FAQ --- */
.faq__list {
  max-width: 48rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item summary {
  padding: var(--space-sm) 0;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--text-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  color: var(--text-primary);
}

.faq-item summary::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--green-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__answer {
  padding-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 60ch;
}

/* --- Final CTA --- */
.final-cta {
  background: var(--trust-bg);
  color: var(--text-light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.final-cta h2 {
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.final-cta p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.final-cta .btn--primary {
  background-color: var(--amber-accent);
  border-color: var(--amber-accent);
  color: var(--text-primary);
}

.final-cta .btn--primary:hover {
  background-color: var(--amber-dark);
  border-color: var(--amber-dark);
}

.final-cta__areas {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  opacity: 0.8;
}

.final-cta__address {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  opacity: 0.7;
}

/* --- Footer --- */
.site-footer {
  background-color: oklch(0.18 0.02 250);
  color: oklch(0.75 0.01 250);
  padding: var(--space-md) 0;
  font-size: var(--text-xs);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.site-footer a {
  color: oklch(0.75 0.01 250);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

/* --- Mobile Sticky Bottom Bar --- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--green-primary);
    padding: 0.6em var(--space-sm);
    justify-content: center;
    gap: var(--space-xs);
    box-shadow: 0 -2px 12px oklch(0 0 0 / 0.15);
  }

  .mobile-cta-bar .btn {
    flex: 1;
    padding: 0.7em 1em;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
  }

  .mobile-cta-bar .btn--phone {
    background: var(--text-light);
    color: var(--green-dark);
    border-color: var(--text-light);
  }

  .mobile-cta-bar .btn--amber {
    background: var(--amber-accent);
    color: var(--text-primary);
    border-color: var(--amber-accent);
  }

  /* Add bottom padding to body so content isn't hidden behind sticky bar */
  body {
    padding-bottom: 4rem;
  }
}

/* --- Thank You Page --- */
.thankyou {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
}

.thankyou__inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.thankyou__icon {
  font-size: clamp(3rem, 2rem + 5vw, 5rem);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.thankyou h1 {
  margin-bottom: var(--space-sm);
  color: var(--green-dark);
}

.thankyou p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.thankyou__next-steps {
  text-align: left;
  background: var(--white-tinted);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: var(--space-md);
}

.thankyou__next-steps h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.thankyou__next-steps ol {
  padding-left: 1.5em;
  color: var(--text-secondary);
}

.thankyou__next-steps li {
  padding: 0.3em 0;
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeSlideUp 0.5s ease-out both;
}

.animate-in--d1 { animation-delay: 0.1s; }
.animate-in--d2 { animation-delay: 0.2s; }
.animate-in--d3 { animation-delay: 0.3s; }
.animate-in--d4 { animation-delay: 0.4s; }
.animate-in--d5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .mobile-cta-bar,
  .trust-bar {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
}
