:root {
  --dal-primary: #0d9488;
  --dal-primary-dark: #0f766e;
  --dal-primary-light: #14b8a6;
  --dal-water: #06b6d4;
  --dal-water-light: #e0f7fa;
  --dal-ocean: #0e7490;
  --dal-trust: #0c4a6e;
  --dal-bg-hero: linear-gradient(135deg, #0f766e 0%, #0e7490 50%, #0c4a6e 100%);
  --dal-shadow: 0 4px 24px rgba(13, 148, 136, 0.12);
  --dal-radius: 1rem;
  --dal-radius-lg: 1.5rem;
}

/* Hero - full-width water gradient */
.dal-hero {
  min-height: 85vh;
  margin-top: -110px;
  padding-top: 110px;
  background: var(--dal-bg-hero);
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.dal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.dal-hero-content {
  position: relative;
  z-index: 1;
}

.dal-hero h1 {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  letter-spacing: -0.02em;
}

.dal-hero .lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.dal-btn-cta {
  background: #fff;
  color: var(--dal-primary-dark);
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dal-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--dal-primary-dark);
}

/* Top bar - theme-aware: white text by default, adapts to light/dark mode */
.dal-topbar {
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Default: white text (visible over dark hero) */
.dal-topbar .dal-topbar-text,
.dal-topbar .dal-topbar-tagline,
.dal-topbar .nav-link.animate-target {
  color: #fff !important;
}
.dal-topbar .nav-link.animate-target:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Light mode: solid light background + dark text */
[data-bs-theme="light"] .dal-topbar {
  background: rgba(255, 255, 255, 0.97);
  color: var(--dal-trust);
  border-bottom-color: rgba(13, 148, 136, 0.12);
}
[data-bs-theme="light"] .dal-topbar .dal-topbar-text,
[data-bs-theme="light"] .dal-topbar .dal-topbar-tagline,
[data-bs-theme="light"] .dal-topbar .nav-link.animate-target {
  color: var(--dal-trust) !important;
}
[data-bs-theme="light"] .dal-topbar .nav-link.animate-target:hover {
  color: var(--dal-primary-dark) !important;
}

/* Dark mode: solid dark background + white text */
[data-bs-theme="dark"] .dal-topbar {
  background: rgba(15, 23, 42, 0.97);
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .dal-topbar .dal-topbar-text,
[data-bs-theme="dark"] .dal-topbar .dal-topbar-tagline,
[data-bs-theme="dark"] .dal-topbar .nav-link.animate-target {
  color: rgba(255, 255, 255, 0.95) !important;
}
[data-bs-theme="dark"] .dal-topbar .nav-link.animate-target:hover {
  color: var(--dal-primary-light) !important;
}

/* Category cards - water theme */
.dal-category-card {
  background: #fff;
  border-radius: var(--dal-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--dal-shadow);
  border: 1px solid rgba(13,148,136,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.dal-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,148,136,0.18);
  border-color: rgba(13,148,136,0.2);
}

.dal-category-card .ratio {
  background: linear-gradient(145deg, var(--dal-water-light) 0%, #fff 100%);
  border-radius: 50%;
}

.dal-category-card h3 {
  color: var(--dal-trust);
  font-weight: 600;
}

.dal-category-card a {
  color: var(--dal-primary-dark);
  text-decoration: none;
}

.dal-category-card a:hover {
  color: var(--dal-ocean);
}

/* Section headings */
.dal-section-title {
  color: var(--dal-trust);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.dal-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--dal-primary), var(--dal-water));
  border-radius: 2px;
}

.dal-section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Why Choose Us - feature blocks */
.dal-feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, var(--dal-water-light) 0%, #fff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dal-primary);
}

.dal-feature-card {
  background: #fff;
  border-radius: var(--dal-radius-lg);
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(13,148,136,0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dal-feature-card:hover {
  border-color: rgba(13,148,136,0.2);
  box-shadow: var(--dal-shadow);
}

.dal-feature-card h3 {
  color: var(--dal-trust);
  font-weight: 600;
}

/* Product cards on homepage */
.dal-product-card {
  background: #fff;
  border-radius: var(--dal-radius);
  overflow: hidden;
  box-shadow: var(--dal-shadow);
  border: 1px solid rgba(13,148,136,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.dal-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13,148,136,0.15);
}

/* Image box: fixed size (ratio-1x1), image fits inside only, rest space = gradient */
.dal-product-card .dal-product-img-wrap {
  background: linear-gradient(180deg, var(--dal-water-light) 0%, #fff 100%);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dal-product-card .dal-product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: static;
}

.dal-product-card .btn-dark {
  background: var(--dal-primary-dark);
  border-color: var(--dal-primary-dark);
}

.dal-product-card .btn-dark:hover {
  background: var(--dal-ocean);
  border-color: var(--dal-ocean);
}

/* Product detail page: sidebar CTA uses same primary as cards */
.dal-product-detail-sidebar .btn-dark {
  background: var(--dal-primary-dark);
  border-color: var(--dal-primary-dark);
}
.dal-product-detail-sidebar .btn-dark:hover {
  background: var(--dal-ocean);
  border-color: var(--dal-ocean);
}

/* Footer accent */
.footer.bg-dark .nav-link.animate-target:hover {
  color: var(--dal-primary-light) !important;
}

/* Navbar - subtle brand alignment */
.navbar-brand {
  font-weight: 700;
  color: var(--dal-trust) !important;
}

/* Breadcrumb / structure for SEO - ensure headings are visible to crawlers */
article section h2,
main section h2 {
  scroll-margin-top: 6rem;
}

/* ============================================
   Responsive images – any size looks good on mobile & desktop
   ============================================ */

/* 1) Utility: add .dal-img to any image for fluid, non-stretched display */
.dal-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 2) Images inside ratio boxes (category, product cards): fill box, keep aspect ratio */
.dal-category-card .ratio,
.dal-product-card .ratio,
.dal-product-img-wrap {
  position: relative;
  overflow: hidden;
}
.dal-category-card .ratio img,
.dal-product-card .ratio img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Product image wrap: image fits in box only (any size), rest = gradient – overrides above */
.dal-product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 3) Optional wrapper: drop any image inside for a fixed aspect ratio (e.g. 1:1) */
.dal-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dal-water-light);
}
.dal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.dal-img-wrap.dal-img-wrap-16x9 { aspect-ratio: 16 / 9; }
.dal-img-wrap.dal-img-wrap-4x3 { aspect-ratio: 4 / 3; }

/* 4) General content images (about, blog, etc.): responsive and centered */
main img:not(.ci-*):not([role="presentation"]) {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
main .ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
main .ratio.ratio-contain img {
  object-fit: contain;
}

/* 5) Catalog / product grid images (JS-rendered: img may have .ratio on itself) */
.card img,
.product-card img,
.product-container img,
#productGrid img,
[class*="catalog"] img,
[class*="product"] img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.card .ratio img,
.product-card .ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 6) Img with .ratio class on it (catalog JS pattern): treat as fluid */
img.ratio {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  img.ratio {
    max-height: 320px;
  }
}

/* ============================================
   Inner pages – page hero, breadcrumb, mobile-friendly
   ============================================ */

/* Page hero (inner pages – below nav) */
.dal-page-hero {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(14, 116, 144, 0.06) 50%, rgba(12, 74, 110, 0.04) 100%);
  padding: 2rem 0 2.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}
.dal-page-hero h1 {
  color: var(--dal-trust);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.dal-page-hero .dal-breadcrumb {
  font-size: 0.875rem;
  color: var(--dal-ocean);
}
.dal-page-hero .dal-breadcrumb a {
  color: var(--dal-primary-dark);
  text-decoration: none;
}
.dal-page-hero .dal-breadcrumb a:hover {
  text-decoration: underline;
}

/* Inner page content spacing – mobile first */
.dal-inner-content {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .dal-inner-content {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
}

/* Contact page – contact cards */
.dal-contact-card {
  background: #fff;
  border-radius: var(--dal-radius-lg);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(13, 148, 136, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dal-contact-card:hover {
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: var(--dal-shadow);
}
.dal-contact-card .dal-contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, var(--dal-water-light) 0%, #fff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dal-primary);
  font-size: 1.5rem;
}
.dal-contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dal-trust);
  margin-bottom: 0.5rem;
}
.dal-contact-card a {
  color: var(--dal-primary-dark);
  font-weight: 500;
}

/* Catalog / product list page */
.dal-catalog-title {
  color: var(--dal-trust);
  font-weight: 700;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--dal-primary);
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}
.dal-product-tile {
  background: #fff;
  border-radius: var(--dal-radius);
  overflow: hidden;
  padding: 1rem;
  height: 100%;
  border: 1px solid rgba(13, 148, 136, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dal-product-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--dal-shadow);
  border-color: rgba(13, 148, 136, 0.15);
}
.dal-product-tile .btn-dark {
  background: var(--dal-primary-dark);
  border-color: var(--dal-primary-dark);
}
.dal-product-tile .btn-dark:hover {
  background: var(--dal-ocean);
  border-color: var(--dal-ocean);
}

/* Store/location block on contact & about */
.dal-store-block {
  background: #fff;
  border-radius: var(--dal-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(13, 148, 136, 0.1);
}
.dal-store-block .dal-store-body {
  padding: 1.5rem 1.25rem;
}
@media (min-width: 768px) {
  .dal-store-block .dal-store-body {
    padding: 2rem 1.5rem;
  }
}

/* Store location cards – one card per store with clear CTA */
.dal-store-card {
  background: #fff;
  border-radius: var(--dal-radius-lg);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(13, 148, 136, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dal-store-card:hover {
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: var(--dal-shadow);
}
.dal-store-card .dal-store-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--dal-water-light) 0%, #fff 100%);
  border-radius: var(--dal-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dal-primary);
  font-size: 1.35rem;
}
.dal-store-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dal-trust);
  margin-bottom: 0.5rem;
}
.dal-store-card .dal-store-address {
  font-size: 0.9rem;
  color: var(--dal-trust);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.dal-store-card .dal-store-address a {
  color: var(--dal-primary-dark);
  text-decoration: none;
}
.dal-store-card .dal-store-address a:hover {
  text-decoration: underline;
}
.dal-store-card .dal-store-phone {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.dal-store-card .dal-store-phone a {
  color: var(--dal-primary-dark);
  font-weight: 500;
  text-decoration: none;
}
.dal-store-card .dal-store-phone a:hover {
  text-decoration: underline;
}
.dal-store-card .btn-dal-directions {
  background: var(--dal-primary-dark);
  border-color: var(--dal-primary-dark);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s, border-color 0.2s;
}
.dal-store-card .btn-dal-directions:hover {
  background: var(--dal-ocean);
  border-color: var(--dal-ocean);
  color: #fff;
}
@media (max-width: 767.98px) {
  .dal-store-card {
    padding: 1.25rem;
  }
}

/* About page: map + compact list (narrative "where we are") */
.dal-store-list-wrap {
  padding: 1.25rem 1rem;
}
@media (min-width: 992px) {
  .dal-store-list-wrap {
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  }
}
.dal-store-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dal-store-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
}
.dal-store-list-item:first-child {
  padding-top: 0;
}
.dal-store-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.dal-store-list-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dal-trust);
  margin-bottom: 0.25rem;
}
.dal-store-list-address {
  display: block;
  font-size: 0.9rem;
  color: var(--dal-primary-dark);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.dal-store-list-address:hover {
  text-decoration: underline;
}
.dal-store-list-meta {
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.dal-store-list-meta a {
  color: var(--dal-primary-dark);
  font-weight: 500;
  text-decoration: none;
}
.dal-store-list-meta a:hover {
  text-decoration: underline;
}
.dal-store-list-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dal-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.dal-store-list-link:hover {
  color: var(--dal-ocean);
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .dal-hero {
    min-height: 70vh;
    padding-top: 100px;
    margin-top: -100px;
  }
  .dal-hero h1 {
    font-size: 1.75rem;
  }
  .dal-page-hero {
    padding: 1.5rem 0 2rem;
  }
  .dal-contact-card {
    padding: 1.25rem;
  }
}
