/* ============================================
   The Rusty Bucket — Johnson City, KS
   Custom Styles
============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-700);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--slate-800);
  line-height: 1.2;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-800);
}

.logo svg {
  flex-shrink: 0;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  display: block;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--teal-700);
  background: var(--teal-50);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--slate-100);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-600);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: var(--teal-700);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--slate-700);
  border: 2px solid var(--slate-200);
}

.btn-secondary:hover {
  border-color: var(--teal-300);
  color: var(--teal-700);
  background: var(--teal-50);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--slate-50) 0%, #ffffff 50%, var(--teal-50) 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid var(--teal-100);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--slate-900);
  margin-bottom: 24px;
  line-height: 1.15;
}

.text-teal {
  color: var(--teal-600);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--slate-500);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-800);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--slate-200);
}

/* Hero image */
.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--teal-200);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.floating-card {
  position: absolute;
  bottom: 40px;
  left: -40px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.floating-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  color: var(--teal-600);
  flex-shrink: 0;
}

.floating-card-text {
  display: flex;
  flex-direction: column;
}

.floating-card-text strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--slate-800);
}

.floating-card-text span {
  font-size: 0.8rem;
  color: var(--slate-400);
}

/* ---------- Section shared ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--teal-100);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--slate-900);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.8;
}

/* ---------- About Section ---------- */
.about {
  padding: 100px 0;
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  max-width: 480px;
}

.about-subtitle {
  font-size: 1.5rem;
  color: var(--slate-800);
  margin-bottom: 20px;
}

.about-text {
  color: var(--slate-500);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--slate-700);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  color: var(--teal-600);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* ---------- Products Section ---------- */
.products {
  padding: 100px 0;
  background: var(--slate-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--slate-100);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--teal-100);
}

.product-image {
  overflow: hidden;
  height: 220px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--slate-800);
}

.product-info p {
  font-size: 0.925rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.products-cta {
  text-align: center;
}

.products-cta p {
  color: var(--slate-500);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ---------- Testimonial Section ---------- */
.testimonial {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 100%);
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote-icon {
  color: var(--teal-300);
  margin-bottom: 24px;
  opacity: 0.6;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-200);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Contact Section ---------- */
.contact {
  padding: 100px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contact-card:hover {
  background: var(--teal-50);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--teal-600);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.contact-card-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--slate-800);
}

.contact-card-content p {
  font-size: 0.925rem;
  color: var(--slate-500);
  line-height: 1.6;
}

.contact-card-content a {
  color: var(--teal-600);
  font-weight: 600;
  transition: var(--transition);
}

.contact-card-content a:hover {
  color: var(--teal-800);
  text-decoration: underline;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 4px;
}

/* Contact form */
.contact-form-wrapper {
  background: var(--slate-50);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--slate-100);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--slate-800);
}

.form-note {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-800);
  background: #ffffff;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-300);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  color: var(--teal-600);
  border-radius: 50%;
}

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--slate-800);
}

.form-success p {
  color: var(--slate-500);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--slate-800);
  color: var(--slate-300);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.8;
  color: var(--slate-400);
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-200);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.925rem;
  color: var(--slate-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-contact p {
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--teal-400);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--teal-300);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--slate-700);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* ---------- Scroll reveal animations ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-container {
    gap: 40px;
  }

  .hero-img-wrapper {
    max-width: 480px;
  }

  .about-grid {
    gap: 40px;
  }

  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--slate-100);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .floating-card {
    left: 10px;
    bottom: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    max-width: 100%;
    order: -1;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
