/* modern.css - minimalist overrides for a cleaner look */
:root {
  --primary-color: #2055a6; /* bespoke steel blue */
  --primary-dark: #173d77;
  --accent-color: #d4a24c; /* warm gold accent */
  --bg-primary: #f7f8fa;
  --bg-secondary: #ffffff;
  --text-primary: #161616;
  --text-secondary: #525252;
  --border-color: #e0e0e0;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 6px 16px rgba(0,0,0,.08);
}

/* Trim loud gradients and glass — prefer solid backgrounds and subtle shadows */
.premium-gradient,
.stats-legendary,
.footer-legendary,
.nav-legendary,
.card-legendary,
.glass-effect {
  background: var(--bg-secondary) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--border-color) !important;
}

.text-gradient,
.text-glow { text-shadow: none !important; -webkit-text-fill-color: initial !important; background: none !important; color: var(--text-primary) !important; }

/* Buttons */
.btn,
.btn-legendary { 
  background: var(--primary-color) !important; 
  color: #fff !important; 
  border-radius: 8px !important; 
  text-transform: none !important; 
  letter-spacing: 0 !important; 
  box-shadow: 0 6px 14px rgba(15,98,254,.18) !important; 
}
.btn:hover,
.btn-legendary:hover { filter: brightness(0.98) !important; transform: translateY(-1px) !important; }
.btn-secondary { background: #111 !important; box-shadow: 0 6px 14px rgba(0,0,0,.2) !important; }

/* Header and top bar */
.top-bar { background: #111 !important; color: #fff; }
.top-bar a { color: #e6e6e6; }
.main-header.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92) !important;
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--border-color) !important;
}
.main-header.navbar.scrolled { box-shadow: var(--shadow-sm); }
.main-header.navbar .nav-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.main-header.navbar .main-nav { display: flex; gap: 6px; align-items: center; }
.main-header.navbar .main-nav a { position: relative; padding: 12px 10px; border-radius: 8px; color: var(--text-primary); font-weight: 600; }
.main-header.navbar .main-nav a:hover { background: rgba(0,0,0,0.035); }
.main-header.navbar .main-nav a::after { content: ""; position: absolute; inset-inline: 10px; bottom: 4px; height: 2px; background: var(--primary-color); transform: scaleX(0); transform-origin: inset-inline-end; transition: transform .28s ease; border-radius: 2px; }
.main-header.navbar .main-nav a:hover::after { transform: scaleX(1); transform-origin: inset-inline-start; }
.main-header.navbar .main-nav a.active { color: var(--primary-color) !important; }
.main-header.navbar .main-nav a.active::after { transform: scaleX(1); }
.mobile-menu-btn span { background: #111; }
.mobile-menu-btn { border: 0; background: transparent; display: inline-grid; gap: 4px; padding: 6px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; }
@media (max-width: 900px) {
  .main-header.navbar .main-nav { display: none; }
  .main-header.navbar .main-nav.mobile-active { display: flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0; }
.hero .hero-bg { position: absolute; inset: 0; }
.hero .hero-bg .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero .hero-bg .slide.active { opacity: 1; }
.hero .hero-bg .slide { animation: hero-kenburns 16s ease-in-out infinite; }
.hero .hero-bg .slide.s2 { animation-delay: 5.33s; }
.hero .hero-bg .slide.s3 { animation-delay: 10.66s; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(255,255,255,0) 100%); pointer-events: none; }
.hero .hero-shapes .shape { position: absolute; border-radius: 50%; opacity: .25; filter: blur(20px); }
.hero .hero-shapes .s1 { width: 220px; height: 220px; background: #0f62fe; right: 8%; top: 20%; animation: float 8s ease-in-out infinite; }
.hero .hero-shapes .s2 { width: 160px; height: 160px; background: #111; left: 10%; bottom: 10%; animation: float 10s ease-in-out infinite reverse; }
.hero .hero-shapes .s3 { width: 120px; height: 120px; background: #5b8cff; right: 35%; bottom: 15%; animation: float 12s ease-in-out infinite; }
.hero .intro-content { position: relative; }
.intro-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; }
.intro-subtitle { font-size: clamp(16px, 2.2vw, 20px); margin: 12px 0 22px; }
.intro-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-sm { padding: 8px 12px; font-size: 0.9rem; }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

@keyframes hero-kenburns {
  0% { transform: scale(1) translateY(0); filter: brightness(.9); }
  50% { transform: scale(1.06) translateY(-1.5%); filter: brightness(1); }
  100% { transform: scale(1) translateY(0); filter: brightness(.9); }
}

/* Carousel */
.showcase-carousel-section { background: var(--bg-primary); padding: 24px 0 4px; border-top: 1px solid var(--border-color); }
.carousel { position: relative; overflow: hidden; border-radius: 16px; background: #000; }
.carousel-track { display: flex; transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.carousel-slide { min-width: 100%; position: relative; aspect-ratio: 16/7; color: #fff; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); }
.carousel-slide.is-active img { animation: kb-pan 12s ease-in-out both; }
.carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.carousel-caption { position: absolute; inset-inline-start: 24px; bottom: 24px; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow-md); }
.carousel-caption h3 { margin: 0 0 6px; font-size: clamp(18px,2.6vw,24px); }
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.86); color: #111; border: 1px solid var(--border-color); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.carousel-control:hover { background: #fff; box-shadow: var(--shadow-md); }
[dir="rtl"] .carousel-control.prev { inset-inline-start: 12px; }
[dir="rtl"] .carousel-control.next { inset-inline-end: 12px; }
[dir="ltr"] .carousel-control.prev { inset-inline-start: 12px; }
[dir="ltr"] .carousel-control.next { inset-inline-end: 12px; }
.carousel-dots { position: absolute; inset-inline-start: 50%; transform: translateX(-50%); bottom: 10px; display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); }
.carousel-dots button[aria-selected="true"] { background: #fff; width: 22px; border-radius: 999px; }

@keyframes kb-pan {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-1%); }
  100% { transform: scale(1) translateY(0); }
}

@media (max-width: 900px) {
  .main-header.navbar .main-nav { position: fixed; inset-inline: 0; top: 60px; background: rgba(255,255,255,.98); border-top: 1px solid var(--border-color); transform: translateY(-120%); transition: transform .3s ease; flex-direction: column; padding: 12px; }
  .main-header.navbar .main-nav.mobile-active { transform: translateY(0); }
}

/* Forms and contact blocks */
.contact-content { display: flex; gap: 2.5rem; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.contact-content > .left-col { flex: 1; min-width: 260px; max-width: 420px; }
.contact-company-info { flex: 1; min-width: 260px; max-width: 370px; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; justify-content: flex-start; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.contact-company-info i { color: var(--primary-color); }
.contact-company-info a { color: var(--primary-color); text-decoration: underline; }
.working-hours { margin-inline-end: 28px; line-height: 1.7; }
.comments-list { margin: 1rem 0 2rem; }

/* General link focus/hover refinements */
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }

/* Intro banner */
.intro-banner { background: #fff !important; border-bottom: 1px solid var(--border-color) !important; }
.intro-title { color: var(--text-primary) !important; }
.intro-subtitle { color: var(--text-secondary) !important; }

/* Cards */
.product-card,
.project-card,
.service-card,
.testimonial-card {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Stats */
.stat-item { background: #fff !important; }
.stat-number { color: var(--primary-color) !important; }
.stat-icon { color: var(--primary-color) !important; }

/* CTA */
.cta-section { background: #0f62fe0d !important; border-top: 1px solid var(--border-color) !important; border-bottom: 1px solid var(--border-color) !important; }

/* Footer */
.footer { background: #0a0a0a !important; }
.footer a:hover { color: #fff !important; }

/* Search overlay */
.search-overlay .glass-effect { background: #fff !important; border: 1px solid var(--border-color) !important; box-shadow: var(--shadow-md) !important; }

/* WhatsApp widget */
#whatsapp-widget.glass-effect { background: #fff !important; }

/* Reduce excessive hover motion for accessibility */
.legendary-hover:hover { transform: translateY(-4px) !important; box-shadow: var(--shadow-md) !important; }

/* Inline style removal for language dropdown */
.lang-dropdown { display: none; }
.lang-dropdown.show { display: block; }

/* Skip link for accessibility (replaces JS inline styles) */
.skip-link { position: absolute; top: -40px; left: 6px; background: #000; color: #fff; padding: 8px; text-decoration: none; z-index: 1000; }
.keyboard-navigation .skip-link:focus { top: 8px; }

/* Utilities to replace inline styles */
.mr-inline-28 { margin-inline-end: 28px; }
.lh-17 { line-height: 1.7; }
.text-strong { color: #222; font-weight: 600; }
.text-center { text-align: center; }
.mt-2rem { margin-top: 2rem; }
.w-80 { width: 80px; }
.rounded-12 { border-radius: 12px; }

/* About page specific tweaks */
.about-badge img { display: inline-block; box-shadow: var(--shadow-sm); }
.footer .footer-socials a[aria-label] { position: relative; }
.footer .footer-socials a[aria-label]:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }

/* Extra utilities added for inline-style cleanup */
.mb-2rem { margin-bottom: 2rem !important; }
.mb-1-5rem { margin-bottom: 1.5rem !important; }
.mt-3rem { margin-top: 3rem !important; }
.justify-start { justify-content: flex-start !important; }
.img-cover { object-fit: cover !important; width: 100%; display: block; }
.h-220 { height: 220px !important; }
.h-320 { height: 320px !important; }
.h-200 { height: 200px !important; }
.rounded-8 { border-radius: 8px !important; }
.fs-1-3rem { font-size: 1.3rem !important; }
.text-ink { color: #111 !important; }
.w-100 { width: 100% !important; }
.p-2rem { padding: 2rem !important; }

/* Product quick cards: background images per category */
.product-cards-grid .product-card.card-mini-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.product-cards-grid .product-card.card-mini-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  opacity: 0.14; /* subtle by default */
  z-index: -1;
  transition: opacity .25s ease, transform .25s ease;
}
.product-cards-grid .product-card.card-mini-link:hover::before {
  opacity: 0.22;
  transform: scale(1.03);
}

/* Assign images using existing assets */
.product-card--aluminum::before { background-image: url('smart-aluminium-windows-1024x683-1-1000x570.png'); }
.product-card--cladding::before { background-image: url('bg_header-cladding.jpg'); }
.product-card--wpc::before { background-image: url('9919016-1171360793.jpg'); }
.product-card--upvc::before { background-image: url('sasa6.jpg'); }

/* Improve readability over photo */
.product-card.card-mini-link .product-card-icon { position: relative; z-index: 1; }
.product-card.card-mini-link .product-card-title { position: relative; z-index: 1; }
