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

/* ===== AniTrackers Public Site Styles ===== */

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

:root {
  --primary-color: #2c5282;
  --primary-dark: #1a365d;
  --accent-color: #b08900;
  --text-dark: #1a1a1a;
  --text-light: #555555;
  --bg-light: #d9d9d9;
  --bg-white: #f7f7f7;
  --border-color: #b3b3b3;
  --surface-base: #d9d9d9;
  --surface-elevated: #f3f3f3;
  --success-color: #2f855a;
  --error-color: #c53030;
  --focus-outline: 0 0 0 3px rgba(44, 82, 130, 0.18);
  --transition: all 0.25s ease;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.18);
  /* Motion variables */
  --dur-fast: 250ms;
  --dur-base: 600ms;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  background-color: #e8e8e8;
}

/* Page-load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-reveal animation */
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel/tab transition */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(to bottom, #e8e8e8 0%, #d9d9d9 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(44, 82, 130, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(176, 137, 0, 0.12), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Page-load entrance */
main {
  animation: fadeIn var(--dur-base) var(--ease-out);
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVBAR ===== */
header {
  background: var(--surface-base);
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-brand:hover {
  opacity: 0.85;
  text-decoration: none;
}

.navbar-brand-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.navbar-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.navbar-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.navbar-brand-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.05em;
  line-height: 1;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border-radius: 999px;
}

.navbar-menu a:hover {
  color: var(--primary-color);
  text-decoration: none;
  background: rgba(44, 82, 130, 0.08);
}

.navbar-menu a.active {
  color: var(--primary-color);
  background: rgba(44, 82, 130, 0.12);
}

/* Ranch Console Link - Make it stand out */
.navbar-menu a.console-link {
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(44, 82, 130, 0.15);
}

.navbar-menu a.console-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
  transform: translateY(-1px);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-dark);
  padding: 0.5rem;
  border-radius: 4px;
}

.navbar-toggle:focus {
  outline: var(--focus-outline);
}

/* Hamburger icon animation */
.hamburger {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
  transition: var(--transition);
}

.navbar-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 767px) {
  .navbar-toggle {
    display: flex;
    align-items: center;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .navbar-menu.open {
    max-height: 500px;
    padding: 1rem 0;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .navbar-menu a.active {
    background: var(--bg-light);
  }

  .navbar-menu a.console-link:hover {
    transform: none;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #d1d5db;
  margin-top: 0;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  opacity: 0.95;
}

.footer-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.footer-section h4 {
  color: #f1f5f9;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li:last-child {
  margin-bottom: 0;
}

.footer-section a {
  color: #94a3b8;
  transition: all 180ms ease-out;
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 400;
  display: inline-block;
  text-decoration: none;
}

.footer-section a:hover {
  color: #f1f5f9;
  text-decoration: none;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 2rem;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

@media (max-width: 767px) {
  footer {
    padding: 3rem 0 1.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-section {
    text-align: left;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  outline: var(--focus-outline);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-dark);
  box-shadow: 
    0 4px 12px rgba(44, 82, 130, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #f0f4f8;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(44, 82, 130, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(44, 82, 130, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/herd-of-cattle-grazing-in-lush-green-field.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  margin: 0;
  overflow: hidden;
}

/* Dark gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.50) 0%,
    rgba(0, 0, 0, 0.40) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

/* Hero content container */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 3.5rem 3rem;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content h1 {
  color: #1a1a1a;
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.25rem;
  color: #4a4a4a;
  line-height: 1.6;
  font-weight: 400;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero button overrides for proper theming */
.hero .btn-primary {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(44, 82, 130, 0.25);
}

.hero .btn-primary:hover {
  background: #1e3a8a;
  border-color: #1e3a8a;
  box-shadow: 0 6px 16px rgba(44, 82, 130, 0.35);
  transform: translateY(-2px);
}

.hero .btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero .btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 6px 16px rgba(44, 82, 130, 0.3);
  transform: translateY(-2px);
}

/* Remove old hero-image styles as we're using background now */
.hero-image {
  display: none;
}

@media (max-width: 767px) {
  .hero {
    min-height: 70vh;
    padding: 3.5rem 1rem;
  }

  .hero-content {
    padding: 2.5rem 1.75rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ===== SECTIONS ===== */
section {
  padding: 3.5rem 0;
}

section:nth-of-type(even) {
  background: rgba(217, 217, 217, 0.45);
  border-top: 1px solid rgba(179, 179, 179, 0.6);
  border-bottom: 1px solid rgba(179, 179, 179, 0.6);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Smaller section titles */
.section-title.compact h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-color);
}

.section-title.compact p {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.6;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 0.9rem;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--primary-color);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Feature Cards (clickable) */
.feature-card {
  cursor: pointer;
  user-select: none;
}

.feature-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card:active {
  transform: translateY(-1px);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1.25rem;
  max-width: 1100px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 3rem;
  text-align: center;
}

.modal-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #e8f0f7 0%, #f5f8fb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon:empty {
  display: none;
  margin: 0;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
  color: var(--primary-color);
}

.modal-body h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-body p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: left;
}

.modal-body ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-light);
}

.modal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.shepherd-announcement {
  text-align: center;
  padding: 0;
}

.shepherd-announcement p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  color: #333;
}

.shepherd-announcement .btn {
  margin-top: 1.5rem;
}

.shepherd-modal-image {
  margin: -2rem -2rem 0 -2rem;
  overflow: hidden;
}

.shepherd-modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.shepherd-announcement h4 {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: left;
}

@media (max-width: 767px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-body {
    padding: 2rem 1.5rem;
  }
  
  .shepherd-modal-image {
    margin: -2rem -1.5rem 0 -1.5rem;
  }

  .modal-body h2 {
    font-size: 1.5rem;
  }
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Two column layout for content + image */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Showcase grid for image cards */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.showcase-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  height: 420px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.showcase-card.clickable-card {
  cursor: pointer;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 50%, transparent 100%);
  padding: 2.5rem;
  color: white;
  transition: padding 0.4s ease;
}

.showcase-card:hover .showcase-overlay {
  padding-bottom: 3rem;
}

.showcase-overlay h3 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: white;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.showcase-overlay p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  font-weight: 400;
}

/* Gallery grid for smaller image cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 1.5rem;
  color: white;
}

.gallery-overlay h3 {
  margin: 0;
  font-size: 1.25rem;
  color: white;
}

.gallery-overlay p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
  .two-col-layout,
  .two-col-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col-reverse > :first-child {
    order: 2;
  }

  .two-col-reverse > :last-child {
    order: 1;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-card {
    height: 380px;
  }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--focus-outline);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== ACCORDION ===== */
.accordion {
  list-style: none;
}

.accordion-item {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  background: #f8f9fa;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #2c5282;
  transition: var(--transition);
  user-select: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
}

.accordion-header:hover {
  background: #e8e8e8;
}

.accordion-header:focus {
  outline: var(--focus-outline);
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  transition: var(--transition);
  color: #2c5282;
}

.accordion-item.open .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-white);
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 1.25rem;
  color: #555555;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ===== ALERT / MESSAGE STYLES ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #e0e7f0;
  color: #1a365d;
  border: 1px solid #2c5282;
}

.alert-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== PRODUCT GRID ===== */
.products-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.products-search {
  flex: 1;
  min-width: 200px;
}

.products-sort {
  min-width: 180px;
}

.product-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.product-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 16px rgba(44, 82, 130, 0.15);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img,
.product-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.product-description {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  line-height: 1.5;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-buy-btn {
  align-self: flex-start;
  width: 100%;
  padding: 0.75rem 1.5rem;
}

/* Coming Soon Product Card */
.coming-soon-product {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.coming-soon-product:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 16px rgba(44, 82, 130, 0.15);
  transform: translateY(-4px);
}

.coming-soon-image {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coming-soon-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.coming-soon-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.3);
}

.coming-soon-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.coming-soon-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.coming-soon-description {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  line-height: 1.5;
}

.coming-soon-launch {
  display: inline-block;
  background: #f0f4f8;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #d5dce8;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .product-image,
  .coming-soon-image {
    height: 140px;
  }
  .product-info,
  .coming-soon-info {
    padding: 1rem;
  }
  .product-info h3,
  .coming-soon-info h3 {
    font-size: 0.95rem;
  }
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, #f0f0f0 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  border-radius: 8px;
  height: 350px;
}

.skeleton-text {
  height: 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* ===== ERROR STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* ===== STEP CARDS ===== */
.step-card {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(44, 82, 130, 0.3);
  position: relative;
  z-index: 2;
}

.step-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.step-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 280px;
  margin: 0 auto;
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -2rem;
  top: 3.25rem;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--border-color) 100%);
  z-index: 1;
}

@media (max-width: 767px) {
  .step-card {
    padding: 2rem 1.5rem;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .step-number {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.35rem;
  }

  .step-card p {
    max-width: 100%;
  }
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--surface-base);
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.trust-items {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.trust-item {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 1rem;
}

.trust-item svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.trust-item strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

/* ===== CTA SECTION ===== */
.cta-section-wrapper {
  padding: 4rem 0;
}

.cta-section {
  background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
  color: var(--text-dark);
  text-align: center;
  padding: 4rem 3rem;
  border-radius: 1.25rem;
  margin: 0;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(26, 54, 93, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(26, 54, 93, 0.1);
}

.cta-overlay {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.cta-section h2 {
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cta-section p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}

.cta-section.faq-cta {
  background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 54, 93, 0.1);
}

.cta-section.faq-cta .cta-overlay {
  background: transparent;
  color: var(--text-dark);
  border: none;
  box-shadow: none;
  max-width: 100%;
  margin: 0;
}

.cta-section.faq-cta h2 {
  color: var(--primary-dark);
}

.cta-section.faq-cta p {
  color: var(--text-light);
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  font-size: 1.05rem;
  padding: 0.875rem 2.5rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-buttons .btn-primary {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.cta-buttons .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(44, 82, 130, 0.3);
  transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-buttons .btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 8px 20px rgba(44, 82, 130, 0.3);
  transform: translateY(-2px);
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none;
}

/* Scroll-reveal animation for sections */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.scroll-reveal.visible {
  animation: revealIn var(--dur-base) var(--ease-out) forwards;
}

/* Panel/tab content transition */
.panel-transition {
  animation: fadeIn var(--dur-fast) var(--ease-out);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

/* ===== SHOP PAGE STYLES ===== */
/* Breadcrumb hover effect */
nav[aria-label="Breadcrumb"] a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Shop header responsive styles */
@media (max-width: 767px) {
  main > section:nth-child(1) {
    padding: 0.5rem 0 !important;
  }
  
  main > section:nth-child(2) {
    padding: 1.5rem 0 1rem 0 !important;
  }
  
  main > section:nth-child(2) h1 {
    font-size: 1.5rem !important;
  }
  
  main > section:nth-child(2) p {
    font-size: 0.875rem !important;
  }
  
  main > section:nth-child(3) {
    padding: 0.75rem 0 !important;
  }
  
  main > section:nth-child(3) p {
    font-size: 0.8rem !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  header,
  footer {
    display: none;
  }
}
