/*
Theme Name: Sheet Sorted
Author: Matt Hawkins
Version: 1.0
Description: Custom theme for Sheet Sorted.
*/

/* =========================
   Base Reset
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: #1f2933;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Typography
========================= */

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #0f172a;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* =========================
   Layout
========================= */

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

section {
  padding: 3.5rem 0;
}

/* =========================
   Header
========================= */

header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
}

.logo span {
  color: #2563eb;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo a:visited,
.logo a:active,
.logo a:hover {
  color: inherit;
}

nav a {
  margin-left: 1.8rem;
  text-decoration: none;
  font-weight: 500;
  color: #374151;
  transition: 0.2s ease;
}

nav a:hover {
  color: #2563eb;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* =========================
   Hero
========================= */

.hero {
  background-color: #f8fafc;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  text-align: center;
  padding: 4.5rem 0 3.5rem 0;
}
.hero h1 {
  margin-bottom: 0.5rem;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: #2563eb;
  z-index: 1;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -0.05em;
  height: 0.35em;
  background: rgba(59, 130, 246, 0.18);
  border-radius: 12px;
  z-index: 0;
  opacity: 0;
  transform: scaleX(0.9);
  transform-origin: left;
  transition: all 0.6s ease;
}

.hero.loaded h1 span::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 1.2rem auto 2rem auto;
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-block;
  text-align: center;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  background: #3b82f6;
  color: white;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}

.btn-outline {
  display: inline-block;
  text-align: center;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

.btn-outline:hover {
  background: #3b82f6;
  color: white;
}

/* =========================
   Problems Section
========================= */

.problems {
  background: #ffffff;
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-item {
  text-align: left;
  padding: 1.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  transition: all 0.25s ease;
}

.problem-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.problem-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: #2563eb;
}

.problem-item p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0;
}

/* =========================
   Services
========================= */

.services {
  padding: 2rem 0;
  background: #f9fafb;
}

.services h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.services-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
  color: #4b5563;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 1.2rem;
}

.card p {
  color: #374151;
  margin-bottom: 1rem;
}

.card ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.card ul li {
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: auto;
  margin-bottom: 1rem;
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #2563eb;
  color: white;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.featured {
  border: 2px solid #2563eb;
  transform: scale(1.03);
}

/* =========================
   Services CTA
========================= */

.services-cta {
  margin-top: 3rem;
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.services-cta-small {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.services-cta h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

/* =========================
   CTA Section
========================= */

.cta {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta .btn {
  background: #ffffff;
  color: #2563eb;
  margin-top: 1.5rem;
}

.cta .btn:hover {
  background: #f3f4f6;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {

  h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 2rem 0;
  }

  nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    right: 5%;
    top: 70px;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 10px;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 0.6rem 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* =========================
   FAQ Section
========================= */

.faq {
  background: #f8fafc;
  text-align: center;
}

.faq h2 {
  margin-bottom: 2.5rem;
}

.faq-item {
  max-width: 750px;
  margin: 0 auto 1rem auto;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f172a;
}

.faq-question:hover {
  color: #2563eb;
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding-bottom: 1.2rem;
  color: #4b5563;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* =========================
   Contact
========================= */

.contact {
  background: #ffffff;
  text-align: center;
}

.contact form {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

input,
textarea {
  padding: 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: 0.2s ease;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

#drop-zone {
    border: 2px dashed #999;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

#drop-zone.dragover {
    background-color: #f0f0f0;
}

#file-list {
    list-style: none;
    padding-left: 0;
}

#file-list li {
    margin-bottom: 5px;
}

/* File list */
#file-list li {
    margin-bottom: 5px;
}

/* Progress container */
.progress-wrapper {
    margin-bottom: 10px;
}

.progress-bar {
    width: 0%;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-background {
    width: 100%;
    background-color: #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* =========================
   How It Works (Final Polished)
========================= */

.how {
  background: #f8fafc;
  text-align: center;
}

.how h2 {
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.steps div {
  background: #ffffff;
  padding: 2.8rem 2.2rem;
  border-radius: 22px;
  position: relative;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid #eef2f7;
  overflow: hidden;
}

/* Accent line (default blue gradient) */
.steps div::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

/* Make Step 3 green */
.steps div:nth-child(3)::after {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

/* Ultra-soft oversized background numbers */
.steps div:nth-child(1)::before { content: "1"; }
.steps div:nth-child(2)::before { content: "2"; }
.steps div:nth-child(3)::before { content: "3"; }

.steps div::before {
  position: absolute;
  top: 8px;
  right: 22px;
  font-size: 6rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #e5e7eb;   /* very light grey */
  opacity: 0.15;   /* controlled softness */
  z-index: 0;
}

/* Subtle playful tilt */
.steps div:nth-child(1) {
  transform: rotate(-1.2deg);
}

.steps div:nth-child(2) {
  transform: rotate(1deg);
}

.steps div:nth-child(3) {
  transform: rotate(-0.8deg);
}

/* Hover = straighten + lift */
.steps div:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

/* Headings */
.steps h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Body text */
.steps p {
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.for-you {
  padding: 3.5rem 0;
  background: #ffffff;
  text-align: center;
}

.for-you h2 {
  margin-bottom: 2rem;
}

.for-you ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: left;
}

.for-you li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1.05rem;
}

.for-you li:last-child {
  border-bottom: none;
}

.for-you .closing {
  font-weight: 600;
  font-size: 1.2rem;
}
/* =========================
   Credibility Section
========================= */

.credibility {
  background: #f8fafc;
  text-align: center;
  padding: 2rem 0;
}

.credibility .container {
  max-width: 800px;
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
}

.credibility p:first-child {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 0.8rem;
}

.credibility p:last-child {
  font-size: 1rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto;
}

.credibility p:first-child::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #2563eb;
  margin: 0.8rem auto 0 auto;
  border-radius: 12px;
}

footer {
  background: #111827;
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

footer p {
  margin: 0;
}

footer a {
  color: #3b82f6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

section + section {
  border-top: 1px solid #f1f5f9;
}