/* =========================================================
   JELENA MARITIME LTD — Site Styles
   Wilshire structure · Visual Template T03 "Industrial Block"
   Palette derived from the Jelena logo (navy / hull blue / sea teal)
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand — from logo */
  --primary-color: #142a57;
  --primary-light: #2a4a85;
  --secondary-color: #1b6fb5;
  --secondary-light: #3d8bcc;
  --accent-color: #0b7e87;
  --accent-dark: #096b73;
  --accent-bright: #3ccfd2;   /* teal for use on dark surfaces */
  --ink: #081226;             /* deepest navy: footer, overlays */
  --text: #2b3445;
  --muted: #667085;
  --line: #dde2e9;
  --soft: #f7f8f9;

  /* template tokens — T03 */
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container-max: 1240px;
  --section-pad: clamp(48px, 6.3vw, 78px);
  --grid-gap: 1rem;
  --radius: 0px;
  --btn-radius: 50px;
  --card-pad: clamp(1.1rem, 2vw, 1.5rem);
  --shadow: none;
  --h1-size: clamp(2.3rem, 5.4vw, 4rem);
  --h2-size: clamp(1.6rem, 3vw, 2rem);
  --body-size: clamp(0.9rem, 0.25vw + 0.85rem, 0.95rem);
  --body-lh: 1.7;
  --hero-h: clamp(520px, 86vh, 900px);
  --tap: 44px;                /* minimum touch target */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary-color); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-color); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  line-height: 1.1;
  letter-spacing: .01em;
}
p { margin-bottom: 1rem; }
.container { max-width: var(--container-max); padding-left: clamp(1rem, 3vw, 1.5rem); padding-right: clamp(1rem, 3vw, 1.5rem); }
.row { --bs-gutter-x: var(--grid-gap); }
.row.g-4 { --bs-gutter-x: var(--grid-gap); --bs-gutter-y: var(--grid-gap); }
.row.g-5 { --bs-gutter-x: clamp(1.5rem, 4vw, 3.5rem); --bs-gutter-y: 2.5rem; }

/* accessibility helpers */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--primary-color); color: #fff; padding: 10px 18px; border-radius: var(--btn-radius);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }

.section-padding { padding: var(--section-pad) 0; }
.bg-light-soft { background: var(--soft); }
.section-tag { display: none; }   /* T03 / D7: heading only, no tag */
.section-title {
  font-size: var(--h2-size);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.text-center .section-title { margin-bottom: 0; }
.text-center.mb-5 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem) !important; }

/* ---------- 3. Buttons (pill, uppercase) ---------- */
.btn-brand, .btn-brand-outline, .btn-brand-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  padding: 12px 30px;
  border-radius: var(--btn-radius);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-lg.btn-brand, .btn-lg.btn-brand-outline, .btn-lg.btn-brand-secondary { padding: 14px 32px; font-size: 1.05rem; }
.btn-brand { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-brand-outline { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-brand-outline:hover, .btn-brand-outline:focus { background: #fff; border-color: #fff; color: var(--primary-color); }
.btn-brand-secondary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-brand-secondary:hover, .btn-brand-secondary:focus { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 4. Top bar (dark, micro caps) ---------- */
.top-bar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 0;
}
.top-bar a { color: rgba(255,255,255,.88); text-transform: lowercase; }
.top-bar a:hover { color: var(--accent-bright); }
.top-bar i { color: var(--accent-bright); margin-right: 8px; font-size: .8rem; }
.top-bar .addr-text:empty { display: inline-block; min-width: 1px; }

/* ---------- 5. Navbar ---------- */
.main-navbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  transition: padding .25s, box-shadow .25s;
  z-index: 1030;
}
.main-navbar.scrolled { padding: 4px 0; box-shadow: 0 6px 18px rgba(8,18,38,.08); }
.main-navbar .navbar-brand { padding: 0; margin-right: 1rem; }
.main-navbar .navbar-brand img { height: clamp(52px, 6vw, 72px); width: auto; transition: height .25s; }
.main-navbar.scrolled .navbar-brand img { height: clamp(46px, 5vw, 58px); }
.main-navbar .nav-link {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--primary-color);
  padding: 7px 16px !important;
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius);
  transition: color .2s, border-color .2s;
}
.main-navbar .nav-link:hover { color: var(--accent-color); }
.main-navbar .nav-link.active { color: var(--accent-color); border-color: var(--accent-color); }
.main-navbar .nav-link.active::after { content: none; }
.main-navbar .btn-brand {            /* G2 — dark pill */
  background: var(--primary-color); border-color: var(--primary-color);
  text-transform: none; letter-spacing: .02em; font-size: 1rem; padding: 10px 22px;
  white-space: nowrap;
}
.main-navbar .btn-brand:hover { background: var(--accent-color); border-color: var(--accent-color); }
.main-navbar .navbar-toggler {
  border: 1.5px solid var(--primary-color); border-radius: 8px;
  width: 48px; height: var(--tap); padding: 0;
}
.main-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(60,207,210,.45); }
/* dropdown classes (unused on flat service lists, kept for the framework) */
.main-navbar .dropdown-menu { border: 1px solid var(--line); border-radius: 0; padding: 6px 0; margin-top: 8px; }
.main-navbar .dropdown-item { font-size: .88rem; padding: 9px 18px; color: var(--primary-color); }
.main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus { background: var(--soft); color: var(--accent-color); }
.main-navbar .dropdown-toggle::after { display: none; }
.nav-products-row { display: flex; align-items: center; }
.mobile-cat-toggle { background: none; border: 0; width: var(--tap); height: var(--tap); color: var(--primary-color); transition: transform .2s; }
.mobile-cat-toggle.open { transform: rotate(180deg); }

/* ---------- 6. Hero slider (C5 · A3 bottom-left · B3 right) ---------- */
.hero-slider { position: relative; background: var(--ink); }
.hero-slide {
  position: relative;
  min-height: var(--hero-h);
  display: flex; align-items: center;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  color: #fff;
  padding: 70px 0 96px;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,18,38,.82) 0%, rgba(8,18,38,.52) 52%, rgba(8,18,38,.3) 100%);
}
.hero-slide .container {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding-right: clamp(1rem, 7vw, 6rem);
}
.hero-copy { max-width: 660px; }
.hero-slide .hero-tag {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: .9rem; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; padding-left: 46px; position: relative; margin-bottom: 1rem;
}
.hero-slide .hero-tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 34px; height: 2px; background: var(--accent-bright); }
.hero-slide h1 {
  font-size: var(--h1-size);
  line-height: 1.05; color: #fff;
  margin-bottom: 1.1rem;
}
.hero-slide h1 span { display: block; }
.hero-slide h1 .accent { color: var(--accent-bright); }   /* two-tone headline */
.hero-slide p { max-width: 470px; font-size: clamp(.92rem, .4vw + .85rem, 1.02rem); color: rgba(255,255,255,.88); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; flex-shrink: 0; padding-bottom: .25rem; }
.hero-actions .btn { margin: 0 !important; }

.hero-slider .carousel-indicators {
  justify-content: flex-start;
  margin: 0; bottom: 36px; right: auto;
  left: max(clamp(1rem, 3vw, 1.5rem), calc((100vw - var(--container-max)) / 2 + 1.5rem));
  gap: 10px;
}
.hero-slider .carousel-indicators button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; background: transparent; opacity: 1; margin: 0;
  box-sizing: border-box; transition: background-color .25s, width .25s;
  position: relative;
}
.hero-slider .carousel-indicators button::after { content: ""; position: absolute; inset: -14px; } /* bigger tap area */
.hero-slider .carousel-indicators button.active { background: var(--accent-bright); border-color: var(--accent-bright); width: 30px; border-radius: 12px; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 50px; height: 50px; border-radius: 50%;
  top: 50%; bottom: auto; left: auto; right: clamp(12px, 2vw, 28px);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 1; transition: background-color .25s;
}
.hero-slider .carousel-control-prev { transform: translateY(-58px); }
.hero-slider .carousel-control-next { transform: translateY(6px); }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover { background: var(--accent-color); }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }

/* ---------- 7. Page hero ---------- */
.page-hero {
  position: relative;
  min-height: clamp(210px, 26vw, 300px);
  display: flex; align-items: flex-end;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  padding: 40px 0 clamp(26px, 4vw, 44px);
  color: #fff;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,38,.82), rgba(8,18,38,.55)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: .4rem; }
.page-hero .breadcrumb-custom { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.page-hero .breadcrumb-custom a { color: var(--accent-bright); }
.page-hero .breadcrumb-custom a:hover { color: #fff; }

/* ---------- 8. About rows (F3 — outlined frame + circular inset) ---------- */
.about-img-wrap {
  position: relative;
  border: 2px solid var(--accent-color);
  border-radius: 18px;
  padding: clamp(8px, 1.2vw, 14px);
  margin: 0 clamp(0px, 2vw, 26px) 30px 0;
}
.about-img-wrap > img:first-child { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.about-img-wrap .img-inset {
  position: absolute; right: -26px; bottom: -30px;
  width: 36%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 6px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-color);
}
.bg-light-soft .about-img-wrap .img-inset { border-color: var(--soft); }
.about-img-wrap .badge-float {
  position: absolute; left: -2px; top: 26px;
  background: var(--primary-color); color: #fff;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  padding: 12px 20px 12px 18px; line-height: 1.2;
}
.about-img-wrap .badge-float .num { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: .02em; color: var(--accent-bright); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--primary-color); }
.check-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons";
  position: absolute; left: 0; top: 8px; color: var(--accent-color); font-size: 1.15rem; line-height: 1.4;
}

/* ---------- 9. Cards (J2 + E2 — hairline, icon inline with title) ---------- */
.feature-card, .value-pill, .mv-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--card-pad);
  display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; row-gap: .7rem; align-items: center; align-content: start;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.feature-card .icon-wrap, .value-pill > i, .mv-card > i {
  grid-row: 1; grid-column: 1;
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-color); color: #fff; font-size: 1.15rem;
  transition: background-color .3s var(--ease);
}
.feature-card h5, .value-pill h6, .mv-card h4 { grid-row: 1; grid-column: 2; margin: 0; font-size: 1.12rem; letter-spacing: .03em; transition: color .3s var(--ease); }
.mv-card h4 { font-size: 1.4rem; }
.feature-card p, .value-pill p, .mv-card p { grid-column: 1 / -1; margin: 0; font-size: .86rem; line-height: 1.65; color: var(--muted); transition: color .3s var(--ease); }
.mv-card { border-top: 4px solid var(--accent-color); padding: clamp(1.4rem, 3vw, 2.2rem); }
.mv-card p { font-size: var(--body-size); color: var(--text); }
/* card motion — one behaviour site-wide: darken */
.feature-card:hover, .value-pill:hover { background: var(--primary-color); border-color: var(--primary-color); }
.feature-card:hover h5, .value-pill:hover h6 { color: #fff; }
.feature-card:hover p, .value-pill:hover p { color: rgba(255,255,255,.8); }
.feature-card:hover .icon-wrap, .value-pill:hover > i { background: var(--accent-color); }

/* ---------- 10. Service / product cards (3:2, label over image, darken) ---------- */
.product-card, .item-card {
  position: relative; overflow: hidden; height: 100%;
  background: var(--ink); border-radius: var(--radius);
}
.product-card .product-img, .item-card .item-img { aspect-ratio: 3 / 2; }
.product-card .product-img img, .item-card .item-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card::after, .item-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,18,38,0) 45%, rgba(8,18,38,.88) 100%);
  transition: background-color .35s var(--ease);
}
.product-card:hover::after, .item-card:hover::after { background-color: rgba(8,18,38,.45); }
.product-card .product-body, .item-card .item-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1rem 1.1rem; border-left: 4px solid var(--accent-bright);
}
.product-card .product-body h5, .item-card .item-body h5 { color: #fff; margin: 0; font-size: 1.15rem; letter-spacing: .05em; }
.category-card-link { display: block; height: 100%; color: inherit; }
.category-card-link:hover .product-card h5 { color: #fff; }

/* ---------- 11. CTA (H2 — heading left, button right) ---------- */
.cta-section {
  position: relative;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  color: #fff;
}
.cta-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,42,87,.94), rgba(20,42,87,.72)); }
.cta-section .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; column-gap: 2.5rem; align-items: center; text-align: left;
}
.cta-section h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 .4rem; grid-column: 1; text-wrap: balance; }
.cta-section p { color: rgba(255,255,255,.85); margin: 0 !important; grid-column: 1; max-width: 620px; }
.cta-section .btn { grid-column: 2; grid-row: 1 / span 2; background: #fff; border-color: #fff; color: var(--primary-color); }
.cta-section .btn:hover, .cta-section .btn:focus { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }

/* ---------- 12. Contact ---------- */
.contact-info-card { background: var(--primary-color); color: #fff; padding: clamp(1.4rem, 3vw, 2.2rem); height: 100%; }
.contact-info-card h4 { color: #fff; font-size: 1.6rem; margin-bottom: 1.2rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-info-item .ci-icon { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-color); color: #fff; font-size: 1.1rem; }
.contact-info-item .ci-text { min-width: 0; overflow-wrap: anywhere; }
.contact-info-item .ci-text small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 2px; }
.contact-info-item .ci-text span, .contact-info-item .ci-text a { display: block; color: #fff; font-weight: 500; font-size: .98rem; line-height: 1.5; min-height: 1.5em; }
.contact-info-item .ci-text a:hover { color: var(--accent-bright); }
.contact-form-wrap { border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); height: 100%; background: #fff; }
.contact-form-wrap h4 { font-size: 1.6rem; }
.contact-form-wrap .form-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; color: var(--primary-color); margin-bottom: .3rem; }
.contact-form-wrap .form-label .req { color: #b42318; }
.contact-form-wrap .form-control {
  border: 1px solid #c9d0da; border-radius: 0;
  min-height: 48px; padding: 11px 14px;
  font-size: 1rem;              /* 16px: stops iOS zooming into fields */
  color: var(--text);
}
.contact-form-wrap textarea.form-control { min-height: 150px; resize: vertical; }
.contact-form-wrap .form-control:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(11,126,135,.18); }
.map-frame { display: none; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.site-footer .footer-top { padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.site-footer .footer-brand { display: inline-block; margin-bottom: 1.1rem; }
.site-footer .footer-brand img { height: clamp(96px, 11vw, 124px); width: auto; }
.site-footer .footer-brand-text { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.site-footer .footer-brand-text img { height: 40px; width: auto; }
.site-footer p { font-size: .88rem; max-width: 420px; margin: 0; }
.site-footer h5 { color: #fff; font-size: 1.15rem; letter-spacing: .1em; margin-bottom: 1.2rem; padding-bottom: .7rem; position: relative; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--accent-bright); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { font-size: .9rem; padding: 6px 0; display: flex; align-items: flex-start; overflow-wrap: anywhere; }
.site-footer ul li i { color: var(--accent-bright); flex: none; margin-top: 3px; }
.site-footer ul li a { color: rgba(255,255,255,.78); display: inline-block; padding: 2px 0; }
.site-footer ul li a:hover { color: var(--accent-bright); }
.site-footer .footer-social a { color: #fff; }
.site-footer .footer-social a:hover { color: var(--accent-bright); }
.footer-bottom { background: var(--accent-color); color: #fff; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 14px 0; }  /* I1 */
.footer-bottom a { color: #fff; }

/* ---------- 14. Back to top ---------- */
.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1020;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-color); color: #fff; border: 2px solid #fff;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent-color); color: #fff; }
.preloader-fade { opacity: 0; transition: opacity .3s; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1199.98px) {
  .main-navbar .nav-link { padding: 6px 11px !important; font-size: 1rem; }
  .main-navbar .btn-brand { padding: 9px 16px; font-size: .95rem; }
}

@media (max-width: 991.98px) {
  .top-bar { display: none; }
  .main-navbar .navbar-collapse { flex-basis: 100%; }
  .main-navbar .navbar-nav { padding: 10px 0 14px; gap: 4px; align-items: stretch !important; }
  .main-navbar .nav-link { padding: 11px 16px !important; border-radius: 6px; font-size: 1.1rem; min-height: var(--tap); display: flex; align-items: center; }
  .main-navbar .nav-link.active { background: rgba(11,126,135,.08); }
  .main-navbar .navbar-nav .nav-item { margin-left: 0 !important; }
  .main-navbar .btn-brand { width: 100%; margin-top: 6px; }
  .main-navbar .navbar-nav .dropdown-menu { border: 0; padding-left: 12px; margin: 0; }

  .hero-slide .container { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-right: clamp(1rem, 3vw, 1.5rem); }
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { top: auto; bottom: 22px; width: 44px; height: 44px; transform: none; }
  .hero-slider .carousel-control-prev { right: calc(clamp(12px, 2vw, 28px) + 54px); }

  .about-img-wrap { margin-right: 22px; }
  .cta-section .container { grid-template-columns: 1fr; row-gap: 1.1rem; }
  .cta-section .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (max-width: 767.98px) {
  :root { --hero-h: clamp(480px, 82svh, 660px); }
  .hero-slide, .page-hero, .cta-section { background-image: var(--bg-sm, var(--bg)); }
  .hero-slide { align-items: flex-end; padding: 56px 0 92px; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(8,18,38,.45) 0%, rgba(8,18,38,.88) 78%); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 150px; }
}

@media (max-width: 575.98px) {
  /* layered image device collapses to a single framed image */
  .about-img-wrap { margin: 0 0 6px; border-radius: 14px; }
  .about-img-wrap .img-inset { display: none; }
  .about-img-wrap .badge-float { top: 18px; padding: 9px 14px; }
  .about-img-wrap .badge-float .num { font-size: 1.5rem; }
  .btn-brand, .btn-brand-outline, .btn-brand-secondary { padding: 12px 22px; }
  .contact-form-wrap .btn { width: 100%; }
  .cta-section .btn { justify-self: stretch; }
  .site-footer .footer-top { text-align: left; }
  .back-to-top { right: 12px; bottom: 12px; }
}

/* hover styles only where a real pointer exists — avoids "sticky" hover on touch */
@media (hover: none) {
  .feature-card:hover, .value-pill:hover { background: #fff; border-color: var(--line); }
  .feature-card:hover h5, .value-pill:hover h6 { color: var(--primary-color); }
  .feature-card:hover p, .value-pill:hover p { color: var(--muted); }
  .feature-card:hover .icon-wrap, .value-pill:hover > i { background: var(--primary-color); }
  .product-card:hover::after, .item-card:hover::after { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .carousel-item { transition: none !important; }
}

@media print {
  .top-bar, .main-navbar .navbar-toggler, .back-to-top, .hero-slider .carousel-indicators,
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none !important; }
}
