@import 'variables.css';

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  min-height: 60vh;
  padding: 2.5rem 0 4rem;
}

/* ── Header / Nav (single bar — matches assets.derenzyit.com pattern) ─────── */
.site-header {
  background: rgba(26, 53, 101, var(--header-alpha, 1));
  transition: background 0.15s ease, backdrop-filter 0.15s ease, -webkit-backdrop-filter 0.15s ease;
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  min-height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,.30);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent); /* accent stripe stays fully opaque */
}

/* Left: logo + title */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0.6rem 0;
}

.header-logo-link { line-height: 0; border-radius: 50%; }
.header-logo-link:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; }

.header-logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-title {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.title-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  text-decoration: none;
}
.title-main:hover { color: var(--white); text-decoration: none; }

.title-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}
.header-phone {
  color: inherit;
  text-decoration: none;
}
.header-phone:hover {
  color: #fff;
}

/* ── Navigation (inside header) ────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  color: var(--white);
  line-height: 0;
  transition: background 0.15s;
}

.nav-toggle:hover { background: rgba(255,255,255,.2); }

/* Hamburger → X animation */
.nav-toggle svg line {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-box: view-box;
  transform-origin: center;
}
.nav-toggle.open svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open svg line:nth-child(2) { opacity: 0; }
.nav-toggle.open svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Shared styles for <a> and <button> nav links */
.nav-link,
.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0.85rem;
  height: 64px;
  color: rgba(255,255,255,.88);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.nav-link:hover,
.nav-link-btn:hover,
.nav-item.open > .nav-link,
.nav-item.open > .nav-link-btn {
  background: rgba(196,98,42,.3);
  color: var(--white);
  text-decoration: none;
}

.help-me-link {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  height: 64px;
  color: #22c55e;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  transition: color 0.2s, background 0.15s;
  line-height: 1;
}

.help-me-link:hover {
  background: rgba(196,98,42,.3);
  color: #22c55e;
  text-decoration: none;
}

.help-me-link.clicked {
  color: #ef4444;
}

.help-me-link.clicked:hover {
  color: #ef4444;
}

.nav-caret {
  opacity: 0.7;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-item.open > .nav-link-btn .nav-caret {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 220px;
  background: rgba(26, 53, 101, var(--header-alpha, 1));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s ease;
  border: none;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.12);
  z-index: 200;
  list-style: none;
  padding: 0.35rem 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Left-aligned for first items so they don't go off-screen */
.nav-item:nth-child(-n+4) .nav-dropdown {
  left: 0;
  right: auto;
}

.nav-item.open .nav-dropdown {
  display: block;
  animation: navMenuIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,.82);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.nav-dropdown-divider {
  border-top: 1px solid rgba(255,255,255,.15);
  margin: 0.35rem 0;
}

/* ── Hero / Slideshow ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  height: calc(100vh - 67px); /* full viewport minus sticky header height */
}

.hero-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.hero-slide.active {
  display: block;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-caption h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-caption p {
  font-size: 1.1rem;
  margin-top: 0.35rem;
}

.hero-controls {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-dot.active {
  background: var(--white);
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: var(--white);
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s;
  z-index: 10;
}

.hero-prev { left: 0; }
.hero-next { right: 0; }
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,0.65); }

/* ── Product grid (home page) ──────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
}

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

.product-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 1rem;
  border-top: 3px solid var(--accent);
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Services Category Section (home page) ────────────────────────────────── */
.services-section {
  padding: 2.5rem 0 3rem;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.category-group {
  flex: 1 1 45%;
  min-width: 300px;
}

.category-header {
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 4px solid var(--accent);
}

.category-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.category-header p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.sub-card-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sub-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.sub-card:first-child {
  border-radius: 0 0 0 0;
  border-top: 1px solid var(--gray-200);
}

.sub-card:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.sub-card:only-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.sub-card:hover {
  background: var(--primary-50);
  box-shadow: var(--shadow);
  transform: translateX(4px);
  z-index: 1;
}

.sub-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.sub-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: color 0.2s;
}

.sub-card:hover .sub-card-icon {
  background: var(--primary);
}

.sub-card:hover .sub-card-icon svg {
  color: var(--white);
}

.sub-card-icon--dual {
  gap: 4px;
}

.sub-card-icon--dual svg {
  width: 20px;
  height: 20px;
}

/* ── DeRenzy Difference cards ───────────────────────────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-card-link {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-lg);
}

.diff-card-link:hover .diff-card {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.diff-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.diff-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.diff-card-header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-bottom: 4px solid var(--accent);
}

.diff-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.diff-card-body {
  padding: 1.25rem;
}

.diff-card-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .diff-grid { grid-template-columns: 1fr; }
}

.sub-card-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.15rem;
  transition: color 0.2s;
}

.sub-card:hover .sub-card-content h3 {
  color: var(--primary-dark);
}

.sub-card-content p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0;
}

.sub-card::after {
  content: "→";
  position: absolute;
  right: 1rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.sub-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Page hero banner ──────────────────────────────────────────────────────── */
.page-banner {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.page-banner h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.page-banner p {
  margin-top: 0.35rem;
  opacity: 0.85;
}

/* ── Section headings ──────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ── Two-column content layout ─────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

/* ── Content prose ─────────────────────────────────────────────────────────── */
.prose h2 { font-size: 1.4rem; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.prose h3 { font-size: 1.15rem; color: var(--primary-dark); margin: 1rem 0 0.35rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0.5rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--primary-dark); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Service cards ─────────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--primary-50);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.service-card h3 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin: 0;
}

/* ── Specials / featured box ───────────────────────────────────────────────── */
/* ── Promo info bar ────────────────────────────────────────────────────────── */
.promo-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.promo-bar-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-bar-body {
  flex: 1;
  min-width: 0;
}

.promo-bar-headline {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.promo-bar-detail {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0;
}

.promo-bar-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.promo-bar-expires {
  font-size: 0.78rem;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .promo-bar { flex-direction: column; align-items: flex-start; }
  .promo-bar-cta { align-items: flex-start; }
}

.featured-box {
  background: var(--accent-50);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.featured-box h2 {
  color: var(--accent-dark);
  font-size: 1.4rem;
}

/* ── Contact form / info ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.6rem;
  color: var(--gray-700);
}

.contact-info a:not(.btn) {
  color: var(--primary);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
}

/* ── Alert / message banners ───────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-success { background: var(--green-bg); color: var(--green); border-left: 4px solid var(--green); }
.alert-error   { background: var(--red-bg);   color: var(--red);   border-left: 4px solid var(--red);   }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: var(--gray-300);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.15s;
}

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

.footer-social a[href^="tel:"] {
  color: var(--accent);
  transition: color 0.15s;
}
.footer-social a[href^="tel:"]:hover {
  color: var(--accent-light);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gray-300);
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ── Admin styles ──────────────────────────────────────────────────────────── */
.admin-layout {
  min-height: 100vh;
  background: var(--gray-100);
}

.admin-topbar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-topbar h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-topbar nav a {
  color: var(--gray-300);
  font-size: 0.875rem;
  margin-left: 1.25rem;
  transition: color 0.15s;
}

.admin-topbar nav a:hover { color: var(--white); }

.admin-main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.admin-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-50);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table td {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
}

/* Login page */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo img {
  height: 60px;
  margin: 0 auto;
}

.login-logo h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col      { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .category-group { flex: 1 1 100%; }
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-toggle { display: flex; }

  /* No position:relative on header-nav — the nav-list positions against
     site-header (sticky) so top:100% lands flush on the 3px border-bottom,
     merging both orange stripes into one. */

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    flex-direction: column;
    background: rgba(26, 53, 101, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-top: 3px solid var(--accent);
    border-radius: 0 0 0 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
    z-index: 300;
    padding: 0.4rem 0;
    overflow: hidden;
  }

  .nav-list.open {
    display: flex;
    animation: navMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-item { flex-direction: column; align-items: stretch; }

  .nav-link,
  .nav-link-btn {
    height: auto;
    padding: 0.7rem 1.1rem;
    padding-left: calc(1.1rem - 3px);
    justify-content: space-between;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-left-color 0.15s;
  }

  .nav-link:hover,
  .nav-link-btn:hover,
  .nav-item.open > .nav-link,
  .nav-item.open > .nav-link-btn {
    background: rgba(255,255,255,.07);
    color: var(--white);
    border-left-color: var(--accent);
  }

  .nav-dropdown {
    position: static;
    border: none;
    border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 0;
    min-width: 0;
    background: rgba(0,0,0,.15);
  }

  .nav-dropdown li a {
    padding-left: 1.75rem;
    color: rgba(255,255,255,.68);
    font-size: 0.85rem;
  }

  .nav-dropdown li a:hover {
    background: rgba(255,255,255,.07);
    color: var(--white);
  }

  .nav-item:nth-child(-n+4) .nav-dropdown {
    left: auto;
    right: auto;
  }

  .header-logo { height: 38px; width: 38px; }
  .title-sub  { display: none; }
}

@keyframes navMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stat-grid    { grid-template-columns: 1fr; }
  .hero { height: 56vw; min-height: 220px; max-height: 420px; }
  .hero-caption h1 { font-size: 1.25rem; }
  .hero-caption p  { font-size: 0.9rem; }
}

/* ── Product model grid ─────────────────────────────────────────────────────── */
.product-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 0 1rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.product-model-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.product-model-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.product-model-photo:empty {
  border-bottom: 2px dashed #c0c8d8;
  background: var(--surface, #eef0f4);
}

.product-model-photo .slideshow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.product-model-photo .slideshow-img.fading {
  opacity: 0;
}

.product-model-info {
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-model-name-bar {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  text-align: center;
  padding: 0.6rem 1rem;
  border-top: 4px solid var(--accent);
}

/* ── Product modal ───────────────────────────────────────────────────────────── */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-modal.open {
  display: flex;
}

.product-modal-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
}

.product-modal-header {
  background: var(--primary);
  border-bottom: 4px solid var(--accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.product-modal-logo {
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.product-modal-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.product-modal-sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin: 0;
}

.product-modal-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.product-modal-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  background: #f5f6f8;
  padding: 0.5rem;
}

.product-modal-desc h3 {
  color: var(--primary);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.product-modal-desc p {
  color: var(--gray-700);
  font-size: 0.9rem;
  margin: 0;
}

.product-modal-features {
  padding-left: 1.25rem;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.product-modal-features li {
  margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
  .product-modal-body { grid-template-columns: 1fr; }
}

.product-model-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 53, 101, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-model-card:hover .product-model-overlay {
  opacity: 1;
}

.product-model-overlay-text {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #fff;
  border-radius: var(--radius, 8px);
  padding: 0.5rem 1.1rem;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ── Product variant card arrows ─────────────────────────────────────────── */
.product-variant-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 53, 101, 0.8);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-variant-card:hover .product-variant-btn {
  opacity: 1;
}
.product-variant-btn:hover {
  background: var(--accent);
}
.product-variant-prev { left: 0.5rem; }
.product-variant-next { right: 0.5rem; }

.product-model-bar {
  height: 0.85rem;
  background: #dde2ea;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: 75%;
}

.product-model-bar.narrow {
  width: 50%;
  height: 0.7rem;
  background: #c8d0de;
}

@media (max-width: 700px) {
  .product-model-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .product-model-grid { grid-template-columns: 1fr; }
}

/* ── Team grid ──────────────────────────────────────────────────────────────── */
.team-section-header {
  background: var(--primary);
  border-bottom: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-align: center;
  margin: 3rem 0 1.25rem;
  box-shadow: var(--shadow-sm);
}

.team-section-header--owners-width {
  max-width: 66.666%;
  margin-left: auto;
  margin-right: auto;
}

.team-section-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-owners {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0 0 0;
}

.team-owners .team-card {
  width: calc(33.333% - 1rem);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin: 2.5rem 0 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius, 8px);
  margin-bottom: 1rem;
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface, #eef0f4);
  border: 2px dashed #c0c8d8;
  border-radius: var(--radius, 8px);
  margin-bottom: 1rem;
}

.team-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: var(--gray-900, #111);
}

.team-title {
  font-size: 0.9rem;
  color: var(--gray-700, #444);
  margin: 0 0 0.25rem;
}

.team-email {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: underline;
}

.team-email:hover {
  color: var(--accent);
}

.team-info-placeholder {
  width: 60%;
  height: 1rem;
  background: #dde2ea;
  border-radius: 4px;
  margin: 0.35rem auto;
}

.team-info-placeholder.narrow {
  width: 45%;
  height: 0.85rem;
}

.team-info-placeholder.link {
  width: 70%;
  height: 0.75rem;
  background: #c8d0de;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-owners .team-card { width: calc(50% - 1rem); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-owners { flex-direction: column; align-items: center; }
  .team-owners .team-card { width: 100%; }
}
