/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --font-sans: 'Roboto', sans-serif;
  --bg-white: #ffffff;
  --text-slate-900: #0f172a;
  --text-slate-800: #1e293b;
  --text-slate-600: #475569;
  --text-slate-500: #64748b;
  --text-slate-400: #94a3b8;
  
  --brown-50: #f8f5f2;
  --brown-100: #ebe1d9;
  --brown-400: #a37c62;
  --brown-500: #875d41;
  --brown-600: #654321;
  --brown-700: #4d3319;

  --amber-300: #fcd34d;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-slate-900);
  line-height: 1.5;
  overflow-x: hidden;
}

.min-h-screen { min-height: 100vh; }
.relative { position: relative; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-36 { padding-top: 9rem; }
.pb-24 { padding-bottom: 6rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 2.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 0;
}
.btn-brown {
  background-color: var(--brown-600);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(158, 75, 49, 0.3);
}
.btn-brown:hover {
  background-color: var(--brown-700);
  transform: translateY(-2px);
}
.btn-black {
  background-color: black;
  color: white;
}
.btn-black:hover {
  background-color: #1e293b;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
}
header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}
header:not(.scrolled) {
  background-color: transparent;
  padding: 1.5rem 0;
}
.logo-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  transition: all 0.3s;
}
header.scrolled .logo-img {
  width: 2.5rem;
  height: 2.5rem;
}
.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

/* Grid Layouts */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Typography */
.text-slate-500 { color: var(--text-slate-500); }
.text-slate-800 { color: var(--text-slate-800); }
.text-slate-900 { color: var(--text-slate-900); }
.text-brown-600 { color: var(--brown-600); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Hero Section */
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
}
.hero-pills-container {
  position: relative;
  height: 550px;
  display: none;
}
@media (min-width: 1024px) {
  .hero-pills-container { display: block; margin-top: -8rem; }
}
.pill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100px;
  border: 12px solid white;
  overflow: hidden;
}
.pill-left, .pill-right {
  width: 16rem;
  height: 350px;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  transform: translateY(-30px);
}
.pill-left { left: 0; }
.pill-right { right: 0; }
.pill-center {
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18rem;
  height: 450px;
  z-index: 20;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 0;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-slate-600);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Feature Box */
.feature-box {
  background-color: white;
  padding: 2.5rem;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-xl);
  position: relative;
}

/* Carousel */
.carousel-container {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 2rem;
  padding-top: 1rem;
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
}
.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.carousel-container.active {
  cursor: grabbing;
}
.carousel-item {
  background-color: white;
  padding: 2rem;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  width: 85vw;
  scroll-snap-align: center;
  transition: box-shadow 0.3s;
}
@media (min-width: 640px) {
  .carousel-item { width: 380px; }
}
.carousel-item:hover {
  box-shadow: var(--shadow-xl);
}
.icon-container {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}
.carousel-item:hover .icon-container {
  transform: scale(1.1);
}

/* Workflow Steps */
.step-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
}
.step-icon-wrapper {
  width: 6rem;
  height: 6rem;
  background-color: white;
  border-radius: 9999px;
  border: 4px solid #f8fafc;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform 0.3s;
}
.step-container:hover .step-icon-wrapper {
  transform: translateY(-8px);
}
.step-number {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--text-slate-900);
  color: white;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

/* Search Portal */
.search-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: white;
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  border: 1px solid #f1f5f9;
  border-radius: 0;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .search-input-wrapper { flex-direction: row; align-items: center; }
}
.search-input {
  flex: 1;
  height: 2.75rem;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-slate-800);
  outline: none;
  text-align: center;
  background: transparent;
}
@media (min-width: 640px) {
  .search-input { height: 4rem; text-align: left; padding-left: 1rem;}
}
.search-input::placeholder {
  color: #cbd5e1;
}

/* Search Results */
#search-results {
  width: 100%;
  margin-top: 4rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.result-card {
  width: 100%;
  background: white;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid rgba(226, 232, 240, 0.6);
  animation: zoomIn 0.5s ease-out;
}
.result-header {
  background: linear-gradient(to right, #0f172a, #1e293b);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .result-header { flex-direction: row; align-items: center; justify-content: space-between; }
}
.text-white { color: white; }

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Footer */
footer {
  background-color: black;
  color: var(--text-slate-400);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
footer a {
  color: var(--text-slate-400);
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: var(--brown-400);
}
footer ul {
  list-style: none;
}


/* Responsive Grid & Utility Classes */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Text Sizing */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

/* Desktop Hero adjustments */
.hero-title { font-size: 3rem; line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; }

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:text-6xl { font-size: 3.75rem; }
  
  .hero-title { font-size: 3.75rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:text-7xl { font-size: 4.5rem; }
  
  .hero-title { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:block { display: block !important; }
  .lg\:hidden { display: none !important; }
  .lg\:flex { display: flex !important; }
}

/* Ensure images scale down */
img {
  max-width: 100%;
  height: auto;
}

/* Adjust padding on small devices */
@media (max-width: 639px) {
  .px-6 { padding-left: 1rem; padding-right: 1rem; }
  .py-12 { padding-top: 2rem; padding-bottom: 2rem; }
  .pt-36 { padding-top: 6rem; }
  .gap-16 { gap: 2rem; }
  .gap-8 { gap: 1.5rem; }
  .text-3xl { font-size: 2rem; }
  .hero-pills-container { display: none; } /* Hide complex hero pills on very small screens to save space */
  .carousel-item { width: 85vw; min-width: 280px; }
  .search-input-wrapper { flex-direction: column; }
  .search-input-wrapper .btn-black { width: 100%; margin-top: 0.5rem; }
}
