/* =========================================================
   KORVESTA YAPI MALZEMELERİ ÜRETİM FABRİKASI
   Wilshire build · Visual template T10 — Architectural Layered
   Palette derived from the client logo (purple #401268 + black).
   ========================================================= */

:root {
  /* Brand colours (from logo) */
  --primary-color: #401268;
  --primary-light: #6A3C8F;
  --secondary-color: #0F0B14;
  --secondary-light: #2A2433;
  --accent-color: #5E1F96;
  --accent-dark: #401268;
  --accent-soft: #F3EDF8;

  /* Neutrals */
  --text-dark: #1A1620;
  --text-muted: #5F5A68;
  --light-bg: #F4F4F4;
  --line: #E4E2E8;
  --white: #FFFFFF;
  --footer-bg: #140F1B;
  --footer-bar: #1E1828;

  /* Template tokens — T10 Architectural Layered */
  --font-display: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1200px;
  --section-pad: 105px;
  --grid-gap: 1.75rem;
  --h1-size: clamp(2rem, 1.35rem + 2.6vw, 3.2rem);
  --h2-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
  --body-size: 1rem;
  --body-lh: 1.8;
  --radius: 4px;
  --btn-radius: 50px;
  --photo-border: 8px;
  --shadow: 0 12px 34px rgba(15, 11, 20, 0.08);
  --shadow-hover: 0 22px 46px rgba(15, 11, 20, 0.14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body); font-size: var(--body-size); line-height: var(--body-lh);
  color: var(--text-dark); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-color); text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; color: var(--secondary-color); line-height: 1.22; }
p { color: var(--text-muted); }
.container { max-width: var(--container-max); }

:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--accent-color); color: var(--white); padding: 10px 18px; border-radius: 50px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }

.section-padding { padding: var(--section-pad) 0; }
.bg-light-soft { background-color: var(--light-bg); }

/* Section tag — D3: + TAG + */
.section-tag {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--accent-color); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px;
}
.section-tag::before, .section-tag::after { content: '+'; font-size: 1.05rem; font-weight: 400; letter-spacing: 0; color: var(--primary-light); }
.section-title { font-size: var(--h2-size); margin-bottom: 1.1rem; }
.section-head { max-width: 680px; margin: 0 auto 3.25rem; text-align: center; }
.section-head p { margin-bottom: 0; }

/* ---------- Buttons: pill with › glyph ---------- */
.btn-brand, .btn-brand-outline, .btn-brand-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; letter-spacing: .02em;
  border-radius: var(--btn-radius); padding: 12px 28px; min-height: 48px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-brand .bi-chevron-right, .btn-brand-outline .bi-chevron-right, .btn-brand-secondary .bi-chevron-right { font-size: .8rem; transition: transform .25s var(--ease); }
.btn:hover .bi-chevron-right { transform: translateX(3px); }
.btn-brand { background: var(--accent-color); color: var(--white); border: 2px solid var(--accent-color); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-brand-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.8); }
.btn-brand-outline:hover, .btn-brand-outline:focus-visible { background: var(--white); border-color: var(--white); color: var(--primary-color); }
.btn-brand-secondary { background: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); }
.btn-brand-secondary:hover, .btn-brand-secondary:focus-visible { background: var(--accent-color); color: var(--white); }
.btn-lg { padding: 13px 32px; font-size: 1.02rem; }

/* =========================================================
   TOP BAR — white hairline
   ========================================================= */
.top-bar { background: var(--white); border-bottom: 1px solid var(--line); font-size: .88rem; padding: 8px 0; color: var(--text-muted); }
.top-bar a { color: var(--text-muted); }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { color: var(--accent-color); margin-right: 8px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar { background: var(--white); padding: 10px 0; box-shadow: 0 1px 0 var(--line); transition: padding .3s var(--ease), box-shadow .3s var(--ease); z-index: 1030; }
.main-navbar.scrolled { padding: 5px 0; box-shadow: 0 10px 28px rgba(15,11,20,.08); }
.main-navbar .navbar-brand { padding: 0; margin-right: 1.5rem; }
.main-navbar .navbar-brand img { height: 68px; width: auto; transition: height .3s var(--ease); }
.main-navbar.scrolled .navbar-brand img { height: 56px; }
.main-navbar .nav-link {
  color: var(--secondary-color); font-weight: 600; font-size: 1.02rem;
  margin: 0 15px; padding: 8px 0 !important; position: relative;
}
.main-navbar .nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-color); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease);
}
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: var(--accent-color); }
.main-navbar .nav-link.active::after, .main-navbar .nav-link:hover::after { transform: translateX(-50%) scale(1); }

/* Navbar CTA — G2 accent pill */
.main-navbar .btn-brand.nav-cta { font-size: .9rem; padding: 9px 22px; min-height: 44px; white-space: nowrap; }

.navbar-toggler { border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(94,31,150,.25); }
.navbar-toggler-icon {
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23401268' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

/* Products dropdown */
.main-navbar .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(15,11,20,.14); padding: 10px; margin-top: 4px; min-width: 250px;
}
.main-navbar .dropdown-item {
  color: var(--secondary-color); font-weight: 600; padding: 11px 16px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.main-navbar .dropdown-item::after { content: '\F285'; font-family: 'bootstrap-icons'; font-size: .7rem; opacity: 0; transition: opacity .2s; }
.main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus, .main-navbar .dropdown-item.active { background: var(--accent-soft); color: var(--accent-color); }
.main-navbar .dropdown-item:hover::after, .main-navbar .dropdown-item.active::after { opacity: 1; }
.mobile-nav-contact { display: none; }

@media (min-width: 992px) {
  .main-navbar .dropdown-menu { display: none; animation: dropIn .22s var(--ease) both; }
  .main-navbar .dropdown-menu.show { display: block; }
  #productsDropdown { padding-right: 16px !important; }
  #productsDropdown::before { content: '\F282'; font-family: 'bootstrap-icons'; font-size: .65rem; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   HERO — C3/C8 framed translucent panel, A5 lines, B2 chevrons
   ========================================================= */
.hero-slider { position: relative; background: var(--secondary-color); }
.hero-slide {
  height: 82vh; min-height: 580px; max-height: 900px;
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(15,11,20,.40); }
.hero-slide .container { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero-panel {
  position: relative; max-width: 780px; width: 100%; text-align: center;
  background: rgba(40,34,48,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 58px 56px 54px;
}
.hero-panel::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.45); pointer-events: none; }
.hero-slide .hero-tag { display: inline-flex; gap: 12px; color: rgba(255,255,255,.9); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.hero-slide .hero-tag::before, .hero-slide .hero-tag::after { content: '+'; letter-spacing: 0; font-weight: 400; }
.hero-slide h1, .hero-slide .h1 { color: var(--white); font-size: var(--h1-size); font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.hero-slide p { color: rgba(255,255,255,.85); font-size: clamp(1rem, .96rem + .25vw, 1.15rem); margin: 0 auto 28px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-slider .carousel-indicators { bottom: 28px; margin-bottom: 0; gap: 10px; z-index: 3; }
.hero-slider .carousel-indicators [data-bs-target] {
  width: 44px; height: 3px; margin: 0; border: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  background-clip: padding-box; background-color: rgba(255,255,255,.45); opacity: 1; transition: background-color .3s, width .3s var(--ease);
}
.hero-slider .carousel-indicators .active { background-color: var(--white); width: 56px; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 7%; opacity: .75; z-index: 3; }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { opacity: 1; }
.hero-slider .carousel-control-prev-icon, .hero-slider .carousel-control-next-icon { width: 2.2rem; height: 2.2rem; }

.carousel-item.active .hero-panel { animation: panelIn .9s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   PAGE HERO — 320px, diagonal overlay, left, frame retained
   ========================================================= */
.page-hero { min-height: 320px; padding: 80px 0; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(15,11,20,.86) 0%, rgba(15,11,20,.66) 48%, rgba(64,18,104,.38) 100%); }
.page-hero::after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.3); pointer-events: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 10px; }
.page-hero .breadcrumb-custom { color: rgba(255,255,255,.75); font-weight: 600; font-size: .95rem; }
.page-hero .breadcrumb-custom a { color: var(--white); }
.page-hero .breadcrumb-custom a:hover { color: #D9C2EE; }

/* =========================================================
   ABOUT — F2 overlapping bordered photo pair
   ========================================================= */
.about-img-wrap { position: relative; padding: 0 0 70px; }
.about-img-wrap > img {
  width: 80%; aspect-ratio: 4 / 3; object-fit: cover;
  border: var(--photo-border) solid var(--white); box-shadow: var(--shadow);
}
.about-img-wrap .img-front {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 13 / 14; object-fit: cover;
  border: var(--photo-border) solid var(--white); box-shadow: 0 24px 50px rgba(15,11,20,.22);
}
.about-img-wrap .badge-float {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  background: var(--accent-color); color: var(--white); padding: 16px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; line-height: 1.3; box-shadow: var(--shadow);
}
.about-img-wrap .badge-float .num { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.about-img-wrap.reverse > img { margin-left: auto; }
.about-img-wrap.reverse .img-front { right: auto; left: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 14px; color: var(--text-dark); font-weight: 600; }
.check-list li::before {
  content: '\F633'; font-family: 'bootstrap-icons'; font-weight: 400;
  position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--accent-color); color: var(--accent-color); font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   WHY CHOOSE US — J1 white card + E1 large centred icon
   ========================================================= */
.feature-card {
  height: 100%; background: var(--white); border-radius: var(--radius);
  padding: 2.6rem 1.9rem 2.2rem; text-align: center; box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-bottom-color: var(--accent-color); }
.feature-card .icon-wrap { font-size: 2.8rem; line-height: 1; color: var(--accent-color); margin-bottom: 20px; }
.feature-card h5 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { font-size: .95rem; margin-bottom: 0; }

/* =========================================================
   CTA — H1 image + dark gradient, centred eyebrow + serif heading
   ========================================================= */
.cta-section { position: relative; background-size: cover; background-position: center; color: var(--white); }
.cta-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,20,.78) 0%, rgba(40,14,64,.84) 100%); }
.cta-section::after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
.cta-section .container { position: relative; z-index: 1; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-section .section-tag { color: #D9C2EE; }
.cta-section .section-tag::before, .cta-section .section-tag::after { color: #D9C2EE; }
.cta-section h2 { color: var(--white); font-size: var(--h2-size); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.08rem; }

/* =========================================================
   PRODUCT / CATEGORY / ITEM CARDS — 2:3 gallery plates
   ========================================================= */
.category-card-link { display: block; color: inherit; height: 100%; }
.category-card-link:hover { color: inherit; }
.product-card, .item-card {
  height: 100%; background: var(--white); padding: 10px; border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover, .item-card:hover, .category-card-link:focus-visible .product-card { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-hover); }
.product-img, .item-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--light-bg); }
.product-img img, .item-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img::after, .item-img::after { /* inner white border that thickens on hover */
  content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 rgba(255,255,255,.95);
  transition: box-shadow .35s var(--ease);
}
.product-card:hover .product-img::after, .item-card:hover .item-img::after { box-shadow: inset 0 0 0 10px rgba(255,255,255,.95); }
.product-body, .item-body { padding: 18px 10px 10px; text-align: center; }
.product-body h5, .item-body h5 { font-size: 1.12rem; margin: 0; transition: color .25s var(--ease); }
.category-card-link:hover h5 { color: var(--accent-color); }
.product-body .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-color); }

/* Category switcher (category pages) */
.cat-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 2.75rem; }
.cat-switch a { font-weight: 600; font-size: .95rem; padding: 9px 22px; border-radius: 50px; color: var(--secondary-color); border: 1px solid var(--line); background: var(--white); }
.cat-switch a:hover { border-color: var(--accent-color); color: var(--accent-color); }
.cat-switch a.active { background: var(--accent-color); border-color: var(--accent-color); color: var(--white); }

/* =========================================================
   MISSION / VISION
   ========================================================= */
.mv-card {
  position: relative; height: 100%; background: var(--white); text-align: center;
  padding: 3rem 2.5rem 2.6rem; box-shadow: var(--shadow); border-radius: var(--radius);
}
.mv-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--line); pointer-events: none; }
.mv-card i { font-size: 2.6rem; color: var(--accent-color); display: block; margin-bottom: 16px; line-height: 1; }
.mv-card h4 { font-size: 1.5rem; margin-bottom: 12px; }
.mv-card p { margin: 0; }
.mv-card.dark { background: var(--secondary-color); }
.mv-card.dark::before { border-color: rgba(255,255,255,.14); }
.mv-card.dark h4 { color: var(--white); }
.mv-card.dark p { color: rgba(255,255,255,.75); }
.mv-card.dark i { color: #CDA8EE; }

/* value-pill is part of the class inventory; Korvesta's document lists no core values */
.value-pill { background: var(--white); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); height: 100%; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-info-card { position: relative; height: 100%; background: var(--secondary-color); color: var(--white); padding: 3rem 2.4rem; border-radius: var(--radius); }
.contact-info-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.contact-info-card h4 { color: var(--white); margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,.7); margin-bottom: 26px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); position: relative; }
.contact-info-item .ci-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-color); color: var(--white); font-size: 1.05rem; }
.contact-info-item .ci-text small { display: block; color: #CDA8EE; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-item .ci-text a, .contact-info-item .ci-text span { color: var(--white); font-weight: 600; word-break: break-word; }
.contact-info-item .ci-text a:hover { color: #CDA8EE; }

.contact-form-wrap { background: var(--white); padding: 2.9rem; box-shadow: var(--shadow); border-radius: var(--radius); height: 100%; }
.contact-form-wrap .form-label { font-weight: 600; color: var(--secondary-color); margin-bottom: 6px; }
.contact-form-wrap .req { color: var(--accent-color); font-weight: 700; }
.contact-form-wrap .form-control {
  border: 1px solid #D8D5DE; border-radius: var(--radius); padding: 13px 16px; font-size: 1rem; min-height: 50px;
  background: #FAFAFB; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.contact-form-wrap .form-control:focus { border-color: var(--accent-color); background: var(--white); box-shadow: 0 0 0 4px rgba(94,31,150,.12); }
.contact-form-wrap textarea.form-control { min-height: 150px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   FOOTER — dark, 4-column, serif headings, tinted bar (I4)
   ========================================================= */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.66); }
.site-footer .footer-top { padding: 84px 0 54px; }
.site-footer .footer-logo { display: inline-block; margin-bottom: 20px; }
.site-footer .footer-logo img { height: 92px; width: auto; }
.site-footer p { color: rgba(255,255,255,.62); font-size: .96rem; max-width: 380px; }
.site-footer h5 { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; font-size: .97rem; }
.site-footer .footer-links a { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 8px; }
.site-footer .footer-links a::before { content: '+'; color: #CDA8EE; font-weight: 600; transition: transform .25s var(--ease); }
.site-footer .footer-links a:hover { color: var(--white); }
.site-footer .footer-links a:hover::before { transform: rotate(90deg); }
.site-footer .footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer .footer-contact i { color: #CDA8EE; margin-top: 3px; }
.site-footer .footer-contact a { color: rgba(255,255,255,.72); word-break: break-word; }
.site-footer .footer-contact a:hover { color: var(--white); }
.footer-bottom { background: var(--footer-bar); color: rgba(255,255,255,.6); padding: 18px 0; font-size: .9rem; }
.footer-bottom a { color: var(--white); }

/* =========================================================
   BACK TO TOP + REVEAL
   ========================================================= */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: var(--white); font-size: 1.15rem; box-shadow: 0 10px 24px rgba(64,18,104,.3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--secondary-color); color: var(--white); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199.98px) {
  .main-navbar .nav-link { margin: 0 11px; }
}

@media (max-width: 991.98px) {
  :root { --section-pad: 80px; }
  .top-bar { display: none; }
  .main-navbar .navbar-brand img, .main-navbar.scrolled .navbar-brand img { height: 54px; }
  .main-navbar .navbar-collapse { flex-basis: 100%; width: 100%; }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing { margin-top: 10px; padding: 6px 0 18px; border-top: 1px solid var(--line); max-height: calc(100vh - 90px); overflow-y: auto; }
  .main-navbar .navbar-nav { flex-direction: column; align-items: stretch !important; }
  .main-navbar .navbar-nav .nav-item { width: 100%; border-bottom: 1px solid var(--line); }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 14px 4px !important; font-size: 1.08rem; }
  .main-navbar .nav-link::after { display: none; }
  .nav-products-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .mobile-cat-toggle {
    background: var(--accent-soft); border: 0; width: 42px; height: 42px; border-radius: 50%;
    color: var(--accent-color); font-size: .95rem; cursor: pointer; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; transition: transform .25s var(--ease), background .25s;
  }
  .mobile-cat-toggle.open { transform: rotate(180deg); background: var(--accent-color); color: var(--white); }
  .main-navbar .navbar-nav .dropdown-menu {
    position: static !important; box-shadow: none !important; border: 0 !important;
    background: var(--light-bg) !important; padding: 6px !important; margin: 0 0 12px !important;
    animation: none !important; display: none; transform: none !important;
  }
  .main-navbar .navbar-nav .dropdown-menu.show { display: block; }
  .main-navbar .dropdown-item { padding: 12px 14px; }
  .main-navbar .dropdown-item::after { opacity: .5; }
  .main-navbar .nav-item.nav-cta-item { border-bottom: 0; padding-top: 16px; }
  .main-navbar .btn-brand.nav-cta { width: 100%; min-height: 52px; font-size: .98rem; }
  .mobile-nav-contact { display: block; padding: 16px 4px 0; font-size: .95rem; color: var(--text-muted); }
  .mobile-nav-contact div { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
  .mobile-nav-contact i { color: var(--accent-color); }
  .mobile-nav-contact a { color: var(--text-muted); }

  .hero-slide { height: 640px; min-height: 0; }
  .about-img-wrap { margin-bottom: 1rem; max-width: 620px; }
  .contact-form-wrap { padding: 2.25rem; }
}

@media (max-width: 767.98px) {
  :root { --section-pad: 64px; --photo-border: 6px; }
  .section-head { margin-bottom: 2.4rem; }
  .page-hero { min-height: 240px; padding: 60px 0; }
  .page-hero::after, .cta-section::after { inset: 10px; }
  .page-hero .container, .cta-section .container { padding-left: 30px; padding-right: 30px; }
  .hero-panel { padding: 42px 28px 40px; }
  .hero-panel::before { inset: 10px; }
  .site-footer .footer-top { padding: 64px 0 34px; }
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }
}

@media (max-width: 575.98px) {
  .hero-slide { height: clamp(560px, 84svh, 680px); align-items: center; }
  .hero-slide::before { background: rgba(15,11,20,.5); }
  .hero-slide .container { padding: 0 14px; }
  .hero-panel { padding: 36px 20px 34px; }
  .hero-slide .hero-tag { font-size: .7rem; letter-spacing: .14em; gap: 8px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
  .hero-slider .carousel-indicators [data-bs-target] { width: 32px; }
  .hero-slider .carousel-indicators .active { width: 44px; }
  .about-img-wrap { padding-bottom: 54px; }
  .about-img-wrap > img { width: 86%; }
  .about-img-wrap .img-front { width: 50%; }
  .about-img-wrap .badge-float { left: 10px; bottom: 6px; padding: 12px 16px; font-size: .82rem; }
  .about-img-wrap .badge-float .num { font-size: 1.5rem; }
  .feature-card { padding: 2.2rem 1.4rem 1.9rem; }
  .mv-card { padding: 2.6rem 1.6rem 2.2rem; }
  .contact-info-card { padding: 2.5rem 1.6rem; }
  .contact-form-wrap { padding: 1.9rem 1.25rem; }
  .cta-section .btn { width: 100%; }
  .cat-switch { gap: 8px; }
  .cat-switch a { padding: 8px 16px; font-size: .9rem; }
  /* Two-up gallery plates on phones */
  .product-card, .item-card { padding: 6px; }
  .product-body, .item-body { padding: 12px 4px 6px; }
  .product-body h5, .item-body h5 { font-size: .95rem; line-height: 1.3; }
  .product-body .go { font-size: .7rem; letter-spacing: .1em; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
