/*
 * Clickhop Landing Page Style Sheet
 * Theme: Terracotta & Earthy Tones
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-primary: #BC5B39;
  --color-primary-hover: #A34E31;
  --color-primary-dark: #5D2D1C;
  --color-primary-light: #FEDECC;
  --color-primary-subtle: #FDF8F5;
  --color-bg-light: #FCFAF9;
  --color-bg-white: #FFFFFF;
  --color-text-dark: #2A1610;
  --color-text-muted: #6D554F;
  --color-border: rgba(188, 91, 57, 0.1);
  --color-card-shadow: rgba(42, 22, 16, 0.04);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --nav-height: 80px;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Nav Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(252, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(252, 250, 249, 0.95);
  box-shadow: 0 4px 20px rgba(42, 22, 16, 0.03);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.logo svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.logo-icon-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-icon-wrapper img {
  width: 68px; /* Enlarge the image substantially to zoom past the wide whitespace margin */
  height: 68px;
  max-width: none;
  object-fit: contain;
}

header .logo-icon-wrapper img {
  mix-blend-mode: multiply; /* Blends the logo white background into the off-white header */
}

footer .logo-icon-wrapper {
  background-color: var(--color-bg-white);
  padding: 2px;
}

footer .logo-icon-wrapper img {
  width: 60px;
  height: 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  box-shadow: 0 4px 14px rgba(188, 91, 57, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 91, 57, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-subtle);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: var(--transition);
}

/* Hero Section (80% of Viewport) */
.hero {
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(254, 222, 204, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(253, 187, 156, 0.15) 0%, transparent 60%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-slider {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-slider .slide {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  transform: translateY(15px);
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.4s;
  pointer-events: none;
  margin: 0;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
  transition-delay: 0s;
  width: 100%;
}

.hero-slider .slide span {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-slider .slide span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background-color: var(--color-primary-light);
  z-index: -1;
  border-radius: 4px;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.4s;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

/* Features Showcase Section */
.features-section {
  padding: 8rem 0;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
}

.section-title-wrap {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 6rem auto;
}

.section-title-wrap h2 {
  font-size: 2.5rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.section-title-wrap p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Alternate Feature Grid */
.feature-item {
  display: flex;
  align-items: center;
  gap: 6rem;
  margin-bottom: 8rem;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-info {
  flex: 1;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--color-primary-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-info h3 {
  font-size: 2.25rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.feature-pain {
  background-color: rgba(42, 22, 16, 0.02);
  border-left: 3px solid #E53E3E;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin-bottom: 1.5rem;
}

.feature-pain strong {
  color: #C53030;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.feature-pain p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-solution {
  background-color: var(--color-primary-subtle);
  border-left: 3px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
}

.feature-solution strong {
  color: var(--color-primary-hover);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.feature-solution p {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-image {
  flex: 1;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--color-card-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  position: relative;
  aspect-ratio: 1 / 1;
}

.feature-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(93, 45, 28, 0.03));
  pointer-events: none;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.feature-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(42, 22, 16, 0.08);
}

.feature-image:hover img {
  transform: scale(1.03);
}

/* Signup CTA Section */
.signup-cta {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-hover) 100%);
  color: var(--color-bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.signup-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
}

.signup-cta .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.signup-cta h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.signup-cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  font-weight: 400;
}

.signup-cta .btn-primary {
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.signup-cta .btn-primary:hover {
  background-color: var(--color-primary-subtle);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Footer Section */
footer {
  padding: 4rem 0 3rem 0;
  background-color: var(--color-text-dark);
  color: rgba(253, 248, 245, 0.6);
  font-size: 0.9rem;
  border-top: 1px solid rgba(254, 222, 204, 0.05);
}

footer .logo {
  color: var(--color-bg-white);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-links a:hover {
  color: var(--color-bg-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a:hover {
  color: var(--color-bg-white);
}

/* Scroll Entrance Animation Class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-slider .slide {
    font-size: 2.75rem;
  }
  
  .feature-item {
    gap: 3.5rem;
    margin-bottom: 6rem;
  }
  
  .feature-info h3 {
    font-size: 1.85rem;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1100;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-bg-white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    transition: var(--transition);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero {
    height: auto;
    min-height: calc(100vh - 70px);
    padding: 6rem 0;
  }
  
  .hero-slider .slide {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .feature-item, .feature-item:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
  }
  
  .feature-image {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  
  .signup-cta h2 {
    font-size: 2.25rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }
}
