/* ============================================================
   FAHEEM ELECTRONICS — shared stylesheet
   ============================================================ */

:root {
  --bg: #f6f8fa;
  --bg-2: #eef1f4;
  --card: #ffffff;
  --card-2: #fafbfc;
  --border: rgba(13, 17, 22, 0.09);
  --border-strong: rgba(240, 90, 39, 0.4);
  --text: #1a1d21;
  --muted: #5f6b76;
  --accent: #f05a27;
  --accent-soft: rgba(240, 90, 39, 0.1);
  --accent-2: #d94718;
  --green: #37d67a;
  --danger: #ff5c5c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(15, 23, 32, 0.1);
  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --maxw: 1180px;
  --header-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #c9d2da;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- background texture ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(240, 90, 39, 0.08), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(240, 90, 39, 0.05), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(11, 15, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 15, 20, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section {
  padding: 96px 0;
}

.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 18px;
}

.section-title .accent {
  color: var(--accent);
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 17px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}

/* ---------- header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 32, 0.08);
}

.header-inner {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.logo img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(240, 90, 39, 0.35);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(240, 90, 39, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(240, 90, 39, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-inner > *,
.about-grid > *,
.contact-grid > *,
.footer-top > * {
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 26px;
  max-width: 100%;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(55, 214, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0); }
}

.hero h1 {
  font-size: clamp(30px, 6vw, 64px);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.hero h1 .accent {
  color: var(--accent);
  position: relative;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(240, 90, 39, 0.35), transparent);
  border-radius: 6px;
  z-index: -1;
}

.hero p.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 46px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 560px;
}

.hero-stats .stat {
  background: var(--card);
  padding: 22px 20px;
}

.hero-stats .stat b {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--accent);
  display: block;
}

.hero-stats .stat span {
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-panel {
  position: relative;
  border-radius: 24px;
  padding: 40px 36px;
  background:
    linear-gradient(160deg, rgba(240, 90, 39, 0.08), transparent 45%),
    var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(240, 90, 39, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-panel .panel-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.hero-panel h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-panel p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.brand-chip {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}

.brand-chip:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.hero-float {
  position: absolute;
  right: -14px;
  top: -18px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}

.hero-float .f-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

.hero-float .f-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.hero-float b {
  font-size: 14px;
  display: block;
}

.hero-float span {
  font-size: 12px;
  color: var(--muted);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- marquee ---------- */

.marquee {
  border-block: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: #ffffff;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.card-link svg {
  width: 15px;
  height: 15px;
  fill: var(--accent);
  transition: transform 0.25s;
}

.card-link:hover svg {
  transform: translateX(5px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* ---------- features / why us ---------- */

.feature {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature .f-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: 24px;
  padding: 64px 56px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(240, 90, 39, 0.16), transparent 60%),
    linear-gradient(140deg, #ffffff, #fff4ee);
  border: 1px solid var(--border-strong);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 70%, rgba(240, 90, 39, 0.14), transparent 55%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- testimonials ---------- */

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.testimonial .stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial blockquote {
  color: var(--text);
  font-size: 15.5px;
  margin-bottom: 22px;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.testimonial .who b {
  display: block;
  font-size: 14.5px;
}

.testimonial .who span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: calc(var(--header-h) + 60px) 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 320px at 70% 0%, rgba(240, 90, 39, 0.08), transparent 60%),
    var(--bg-2);
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--muted);
  max-width: 620px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- about page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual .card {
  padding: 0;
  overflow: hidden;
}

.about-visual img,
.about-visual svg {
  width: 100%;
  height: auto;
}

.about-visual .cap {
  padding: 18px 22px;
  font-size: 14px;
  color: var(--muted);
}

.value-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.value-row svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  flex-shrink: 0;
}

.value-row b {
  font-size: 16px;
  display: block;
}

.value-row span {
  font-size: 14px;
  color: var(--muted);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border));
}

.timeline .t-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline b {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.timeline h3 {
  font-size: 17px;
  margin: 6px 0;
}

.timeline p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- services page ---------- */

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 200px at 100% 0%, rgba(240, 90, 39, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.process-step {
  text-align: center;
  padding: 34px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.process-step .p-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-soft);
  -webkit-text-stroke: 1px var(--border-strong);
  color: transparent;
  display: block;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 14px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--accent-soft);
}

.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td:last-child {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
}

.pricing-table tr {
  transition: background 0.2s;
}

.pricing-table tbody tr:hover {
  background: #ffffff;
}

/* ---------- products ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.product-card .p-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card .p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .p-img img {
  transform: scale(1.04);
}
.product-card .p-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.product-card .p-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.product-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.product-card .p-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.g-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--card);
}

.g-item img,
.g-item svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.g-item:hover img,
.g-item:hover svg {
  transform: scale(1.06);
}

.g-item .g-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(5, 8, 12, 0.9));
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.g-item:hover .g-cap {
  opacity: 1;
  transform: translateY(0);
}

.g-item .g-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #0a0e13;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(250, 251, 252, 0.96);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  text-align: center;
  max-width: min(900px, 100%);
}

.lightbox img,
.lightbox svg {
  max-height: 74vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

.lb-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.lb-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
  transform: scale(1.06);
}

.lb-close {
  top: 26px;
  right: 26px;
}

.lb-prev {
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev:hover {
  transform: translateY(-50%) scale(1.06);
}
.lb-next:hover {
  transform: translateY(-50%) scale(1.06);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.info-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: border-color 0.25s, transform 0.25s;
}

.info-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.info-card .ic-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-card .ic-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.info-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.info-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.info-card a:hover {
  color: var(--accent);
}

.form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.field label em {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(240, 90, 39, 0.12);
}

.field select option {
  background: #ffffff;
}

#contactForm.was-validated input:invalid,
#contactForm.was-validated textarea:invalid {
  border-color: var(--danger);
}

.map-wrap {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 21 / 8;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.95);
}

.hours-list {
  display: grid;
  gap: 10px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
}

.hours-list li span {
  color: var(--muted);
}

.hours-list li b {
  font-weight: 700;
}

.hours-list .closed {
  border-color: var(--border-strong);
}

.hours-list .closed span {
  color: var(--danger);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 130%);
  z-index: 300;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 16px 26px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.toast.show {
  transform: translate(-50%, 0);
}

.toast .t-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #0a0e13;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.toast.error .t-icon {
  background: var(--danger);
  color: #fff;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  margin-top: 40px;
}

.footer-top {
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer h4 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 300px;
}

.footer .logo {
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-bottom .credit {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- reveal animations ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ---------- responsive ---------- */

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 18px 5%;
    transform: translateY(-140%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav a {
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav a::after {
    display: none;
  }

  .nav .nav-cta {
    margin: 10px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-float {
    display: none;
  }

  .cta-band {
    padding: 48px 26px;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .gallery-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats .stat {
    padding: 16px 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .logo {
    font-size: 13px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .logo-mark svg {
    width: 18px;
    height: 18px;
  }

  .logo small {
    font-size: 8px;
    letter-spacing: 0.24em;
  }

  .header-phone {
    padding: 10px 11px;
  }

  .header-phone svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
  }

  .header-phone span {
    display: none;
  }

  .hero h1 .accent::after {
    display: none;
  }

  .hero-panel {
    padding: 28px 22px;
  }

  .brand-chip {
    font-size: 10px;
    padding: 11px 6px;
    letter-spacing: 0.02em;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .form-wrap {
    padding: 24px 20px;
  }

  .toast {
    width: min(92%, 420px);
  }

  .lightbox {
    padding: 16px;
  }

  .map-wrap {
    aspect-ratio: 4 / 3;
  }

  .hero {
    padding-top: calc(var(--header-h) + 44px);
  }
}

@media (max-width: 360px) {
  .hero-stats .stat b {
    font-size: 17px;
  }

  .hero-stats .stat span {
    font-size: 10.5px;
  }

  .brand-chip {
    font-size: 9px;
    letter-spacing: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .hero-float {
    animation: none;
  }

  .hero-badge .dot {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .g-item:hover img,
  .g-item:hover svg {
    transform: none;
  }

  .card:hover,
  .feature:hover,
  .brand-chip:hover,
  .btn:hover {
    transform: none;
  }
}
