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

:root {
  --primary: #1c2f66;
  --primary-dark: #14224a;
  --primary-foreground: #fafafa;
  --background: #fafafa;
  --foreground: #24262e;
  --card: #ffffff;
  --secondary: #e7e8ee;
  --secondary-foreground: #40425a;
  --muted-foreground: #6b6d7a;
  --border: #e4e4ea;
  --accent-green: #2f7d4f;
  --radius: 0.65rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.3px;
  background: var(--background);
  color: var(--foreground);
  font-size: 110%;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 0.5em;
}

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Section width variants, matching the production site's layout system */
.container-6xl { max-width: 1152px; }
.container-4xl { max-width: 896px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: rgba(28, 47, 102, 0.06); }

.btn-light {
  background: var(--primary-foreground);
  color: var(--primary);
}
.btn-light:hover { opacity: 0.92; }

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.site-nav .logo img {
  height: 106px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--foreground);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links .inquire {
  padding: 0.5rem 1.1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 0.5rem 0;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-menu.open { display: flex; }
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-card { background: var(--card); }
.section-primary { background: var(--primary); color: var(--primary-foreground); }

.hero {
  background: linear-gradient(to bottom right, var(--background), var(--background), #e7e8ee);
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-logo {
  display: none;
  justify-content: center;
}
.hero-logo img {
  max-width: 220px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text logo"
      "stats logo";
    gap: 1rem 3rem;
    align-items: start;
  }
  .hero-text { grid-area: text; }
  .hero-logo { grid-area: logo; align-self: center; display: flex; }
  .stats { grid-area: stats; }
  .hero-logo img { max-width: 490px; }
}

.text-hero {
  font-size: 3.3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .text-hero { font-size: 4.95rem; }
}

.lead {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.stats .num {
  font-size: 2.06rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}
.stats .label {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.section-title {
  font-size: 2.475rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .section-title { font-size: 3.3rem; }
}

.section-subtitle {
  font-size: 1.65rem;
  color: var(--muted-foreground);
  max-width: 42rem;
}
@media (min-width: 768px) {
  .section-subtitle { font-size: 2.06rem; }
}

.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--background);
  border-radius: 0.85rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted-foreground); margin: 0; }
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Product cards */
.product-category {
  margin-bottom: 4rem;
}
.product-category h2 { margin-bottom: 0.25rem; }
.product-category > p { color: var(--muted-foreground); font-size: 1.1rem; margin-bottom: 2rem; }

.product-card {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 2rem;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, rgba(28,47,102,0.08), rgba(28,47,102,0.03));
  border-bottom: 1px solid var(--border);
}
.product-card-header h3 { margin-bottom: 0.15rem; font-size: 1.3rem; }
.product-card-header .sku { color: var(--muted-foreground); margin: 0; }
.pill {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.product-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .product-card-body { grid-template-columns: 1fr 300px; }
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spec-grid .spec-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}
.spec-grid .spec-value { margin: 0; font-weight: 500; }

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.feature-tags span {
  background: rgba(231,232,238,0.7);
  color: var(--secondary-foreground);
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(231,232,238,0.4);
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 180px;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 2fr; }
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item .icon { color: var(--primary); flex-shrink: 0; }
.contact-item h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-item p { margin: 0; color: var(--muted-foreground); }
.contact-item a { color: var(--primary); }
.contact-item a:hover { text-decoration: underline; }

.hours-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.hours-box h3 { font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 0.75rem; }
.hours-box p { margin: 0.25rem 0; color: var(--muted-foreground); font-size: 0.95rem; }

form.inquiry {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--card);
  color: var(--foreground);
}
textarea { min-height: 8rem; resize: vertical; }

.checkbox-list, .radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.checkbox-list label, .radio-list label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}
.form-actions .btn { flex: 1; justify-content: center; }

/* About page lists */
.about-block { border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 3rem; }
.about-block:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.about-block p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.25rem; }
.about-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-list li { display: flex; gap: 0.75rem; margin-bottom: 0.6rem; }
.about-list li::before { content: "•"; color: var(--primary); font-weight: 700; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.5rem; }
.value-card p { margin: 0; color: var(--muted-foreground); }

/* Footer */
.site-footer {
  background: #1a1c24;
  color: rgba(250,250,250,0.9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-grid h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-grid p, .footer-grid a { color: rgba(250,250,250,0.75); font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(250,250,250,0.15);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(250,250,250,0.6);
}
.footer-bottom .links { display: flex; gap: 1.5rem; }
.footer-note {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(250,250,250,0.15);
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(250,250,250,0.7);
}

/* Carousel - matches production CompanyCarousel component */
.carousel {
  width: 100%;
  background: var(--background);
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--secondary);
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.carousel-slide.active { opacity: 1; z-index: 1; }

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

.carousel-slide.img-missing::before {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  background: rgba(231,232,238,0.6);
}

.carousel-caption-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
  pointer-events: none;
}
.carousel-caption-overlay p {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.5rem;
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--foreground);
  font-size: 1rem;
  z-index: 2;
  transition: background 0.2s ease;
}
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-btn:hover { background: #fff; }

.carousel-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.carousel-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card);
  overflow-x: auto;
}
.carousel-thumbs button {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: var(--secondary);
}
.carousel-thumbs button.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(28,47,102,0.25);
}
.carousel-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(231,232,238,0.4);
}
.carousel-dots button {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.carousel-dots button.active { background: var(--primary); width: 28px; }