/* Trusted Kanine — Landing page styles */
:root {
  --color-bg: #faf8f5;
  --color-bg-hero: #1a2520;
  --color-surface: #ffffff;
  --color-text: #2d2a26;
  --color-text-muted: #6b6560;
  --color-accent: #c17f59;
  --color-accent-hover: #a96b48;
  --color-border: #e8e4df;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(45, 42, 38, 0.08);
  --shadow-hover: 0 8px 32px rgba(45, 42, 38, 0.12);
  --container: min(1120px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

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

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

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(12, 40, 18, 0.95) 100%);
  z-index: -1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: brightness(1.12) saturate(1.2) contrast(1.05);
}

.hero-slide.active {
  opacity: 1;
  z-index: 0;
}

.hero-slide-1 {
  background-image: url('images/hero-slide-1.png');
  background-position: 65% center !important;
}

.hero-slide-2 {
  background-image: url('images/hero-slide-2.png');
  background-position: 70% center !important;
}

.hero-slide-3 {
  background-image: url('images/hero-slide-3.png');
  background-position: 80% center !important; /* push dog further right so text stays left */
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 37, 32, 0.5) 0%, rgba(26, 37, 32, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  margin-right: auto;
  margin-left: 10%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  text-align: left;
}

.hero-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
}

.hero-tag-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-tag-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

.btn-order {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  background: var(--color-text);
  color: #fff;
}

.btn-order:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Section titles */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--color-text-muted);
  margin: 0 0 2.5rem;
  max-width: 42rem;
}

.products-loading {
  color: var(--color-text-muted);
  margin: 0;
}

/* About */
.about {
  padding: 3.5rem 0;
}

.about-text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* Services */
.services {
  padding: 0 0 3rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.service-desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.service-card .btn {
  margin-top: auto;
}

/* Products */
.products {
  padding: 2rem 0 4rem;
}

.category {
  margin-bottom: 3.5rem;
}

.category:last-of-type {
  margin-bottom: 0;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #e8e4df 0%, #d4cfc8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-image img[data-images] {
  cursor: pointer;
}

.product-image-hint {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 1;
  pointer-events: none;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

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

.product-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  flex: 1;
}

.product-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-accent);
  margin: 0;
}

/* Contact */
.contact {
  padding: 4rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.contact-inner {
  max-width: 32rem;
}

.btn-whatsapp {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    height: 3.5rem;
    padding: 0 0.25rem 0 0;
  }

  .logo {
    gap: 0.4rem;
    min-width: 0;
  }

  .logo-mark {
    height: 28px;
    width: 28px;
    flex-shrink: 0;
  }

  .logo-text {
    font-size: 1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

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

  .nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Hero: centered on mobile */
  .hero .container {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-inner {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
    min-height: auto;
  }

  .hero-tag {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin: 0 0 0.75rem;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin: 0 0 0.75rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin: 0 auto 1.5rem;
    max-width: 20rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 18rem;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  /* Sections: centered on mobile */
  .about .container,
  .services .container,
  .products .container,
  .contact .container {
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .section-sub {
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .about {
    padding: 2.5rem 0;
  }

  .about-inner {
    text-align: center;
  }

  .about-text {
    font-size: 0.95rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .products {
    padding: 1.5rem 0 3rem;
  }

  .services {
    padding: 0 0 2.25rem;
  }

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

  .service-card {
    padding: 1rem;
  }

  .category {
    margin-bottom: 2.5rem;
  }

  .category-title {
    font-size: 1.1rem;
    text-align: center;
    display: block;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-image {
    height: 220px;
  }

  .product-image-hint {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    top: 0.35rem;
  }

  .product-body {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-desc {
    font-size: 0.85rem;
  }

  .btn-order {
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .contact {
    padding: 2.5rem 0;
  }

  .contact-inner {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-whatsapp {
    min-height: 48px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .footer-brand {
    font-size: 1rem;
  }

  .footer-copy {
    font-size: 0.85rem;
  }
}
