/* =====================================================
   Radiant Imagings — Global Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #FF0000;
  --primary-dark: #cc0000;
  --primary-light: #fff0f0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #334155;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: white; }

/* ── Navigation ── */
.glass-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.glass-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

nav a.nav-link {
  color: #475569;
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
nav a.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}
nav a.nav-link:hover, nav a.nav-link.active { color: var(--primary); }
nav a.nav-link:hover::after, nav a.nav-link.active::after { width: 100%; }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(255,0,0,0.3);
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  align-items: flex-start;
  font-family: 'Century Gothic', Arial, sans-serif;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
  user-select: none;
  transition: opacity 0.2s;
  line-height: 1;
}
.logo-wrap:hover { opacity: 0.85; }
.logo-rad { font-size: 2.2rem; letter-spacing: 0.18em; margin-top: 1rem; }
.logo-i-col { display: flex; flex-direction: column; align-items: center; margin: 0 3px; }
.logo-dot { width: 12px; height: 12px; background: var(--primary); margin-bottom: 6px; }
.logo-stem { width: 12px; height: 48px; background: #0f172a; }
.logo-ant-wrap { display: flex; flex-direction: column; }
.logo-ant { font-size: 2.2rem; letter-spacing: 0.18em; margin-top: 1rem; }
.logo-magings { font-size: 0.72rem; letter-spacing: 0.22em; font-weight: 700; margin-top: 4px; }
.logo-wrap.light .logo-rad,
.logo-wrap.light .logo-ant,
.logo-wrap.light .logo-magings { color: white; }
.logo-wrap.light .logo-stem { background: white; }

/* ── Hero ── */
.hero-section {
  background-image: linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.95)),
    url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?q=80&w=2053&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(255,0,0,0.35);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,0,0,0.4);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
  background: none; border: none; cursor: pointer;
}
.btn-ghost:hover { color: var(--primary-dark); gap: 10px; }
.btn-quote {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255,0,0,0.3);
  cursor: pointer;
  border: none;
}
.btn-quote:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,0,0,0.4);
}

/* ── Section Helpers ── */
.section-label {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.section-title.light { color: white; }
.section-divider {
  width: 60px; height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin-top: 16px;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

/* ── Cards ── */
.card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.card-icon {
  width: 56px; height: 56px;
  background: #fff0f0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* ── Product Cards ── */
.product-card { background: white; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.product-card .card-img { position: relative; height: 220px; overflow: hidden; background: #f1f5f9; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .card-img img { transform: scale(1.08); }
.product-card .card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.category-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.coming-soon-ribbon {
  position: absolute; top: 0; right: 0;
  background: #f59e0b;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 24px;
  transform: rotate(45deg) translate(20px, -10px);
  transform-origin: top right;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 120px;
  text-align: center;
}
.feature-list { list-style: none; margin: 0.75rem 0 1rem; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: #64748b; padding: 4px 0; }
.feature-list li::before { content: ''; width: 6px; height: 6px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), #94a3b8);
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.55rem; top: 4px;
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(255,0,0,0.2);
}
.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.timeline-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.timeline-desc { font-size: 0.9rem; color: #64748b; line-height: 1.6; }

/* ── Service cards ── */
.service-card {
  background: white; border-radius: 16px; border: 1px solid #e2e8f0;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .enquire-btn { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.service-card:hover .enquire-btn { opacity: 1; transform: translateY(0); }

/* ── Stats bar ── */
.stats-bar {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  padding: 2rem;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { font-size: 0.78rem; font-weight: 600; color: #94a3b8; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }
.stat-divider { width: 1px; background: #e2e8f0; align-self: stretch; margin: 1rem 0; }

/* ── Contact form ── */
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── Footer ── */
.site-footer { background: #0a0f1e; border-top: 1px solid #1e293b; }
.footer-link { color: #94a3b8; font-size: 0.875rem; text-decoration: none; transition: color 0.2s; display: block; padding: 3px 0; }
.footer-link:hover { color: var(--primary); }
.made-in-india-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #FF9933 33.33%, #FFFFFF 33.33% 66.66%, #138808 66.66%);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── Pulse dot ── */
.pulse-dot { position: relative; display: inline-flex; }
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.7;
  animation: ping 1.2s cubic-bezier(0,0,0.2,1) infinite;
}
.pulse-dot-inner { position: relative; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }

/* ── WhatsApp button ── */
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.45);
}

/* ── Alert / Toast ── */
.alert { display: flex; align-items: center; gap: 10px; padding: 1rem 1.25rem; border-radius: 10px; font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; }
.alert-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #15803d; }
.alert-error { background: #fff1f2; border: 1.5px solid #fca5a5; color: #b91c1c; }

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 8px 18px;
  margin-bottom: 1.5rem;
}
.hero-badge span { color: white; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Team Cards ── */
.team-card { background: white; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; transition: transform 0.3s, box-shadow 0.3s; text-align: center; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.team-card-avatar { width: 100%; height: 220px; background: linear-gradient(135deg, var(--primary) 0%, #7c0000 100%); display: flex; align-items: center; justify-content: center; }
.team-card-avatar svg { width: 80px; height: 80px; color: rgba(255,255,255,0.4); }
.team-card-avatar .initials { font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.85); font-family: 'Century Gothic', Arial, sans-serif; }
.team-card-body { padding: 1.5rem; }
.team-card-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.team-card-role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-top: 4px; }
.team-card-desc { font-size: 0.85rem; color: #64748b; margin-top: 10px; line-height: 1.6; }

/* ── Category Tabs ── */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  background: white;
  color: #64748b;
  transition: all 0.2s;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 12px rgba(255,0,0,0.3); }

/* ── Quote page ── */
.quote-info-panel { background: var(--dark); color: white; border-radius: 20px 0 0 20px; padding: 3rem; position: relative; overflow: hidden; }
.quote-info-panel::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: rgba(255,0,0,0.1); border-radius: 50%; }
.quote-info-panel::after { content: ''; position: absolute; bottom: -40px; left: -40px; width: 160px; height: 160px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 2rem; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-info-label { font-size: 0.75rem; font-weight: 700; color: #94a3b8; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.contact-info-value { color: white; font-weight: 500; font-size: 0.95rem; }

/* ── Admin ── */
.admin-sidebar { background: var(--dark); min-height: 100vh; width: 260px; position: fixed; left: 0; top: 0; z-index: 100; overflow-y: auto; }
.admin-content { margin-left: 260px; min-height: 100vh; background: #f1f5f9; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0.75rem 1.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  margin: 2px 12px;
  text-decoration: none;
  border: none; background: none; width: calc(100% - 24px); text-align: left;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.07); color: white; }
.admin-nav-item.active { background: rgba(255,0,0,0.15); color: var(--primary); }
.admin-card { background: white; border-radius: 14px; padding: 1.5rem; border: 1px solid #e2e8f0; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8fafc; padding: 12px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; color: #64748b; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }
.admin-table td { padding: 14px 16px; font-size: 0.875rem; color: #334155; border-bottom: 1px solid #f1f5f9; }
.admin-table tr:hover td { background: #f8fafc; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.status-new { background: #fff0f0; color: var(--primary); }
.status-read { background: #fefce8; color: #b45309; }
.status-resolved { background: #f0fdf4; color: #15803d; }

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.mt-2{margin-top:.5rem} .mt-4{margin-top:1rem} .mt-6{margin-top:1.5rem} .mt-8{margin-top:2rem} .mt-12{margin-top:3rem} .mt-16{margin-top:4rem}
.mb-2{margin-bottom:.5rem} .mb-4{margin-bottom:1rem} .mb-6{margin-bottom:1.5rem} .mb-8{margin-bottom:2rem}
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Animations ── */
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Responsive — comprehensive ── */

/* ─────────────────────────────────────
   Hamburger Menu (mobile nav toggle)
───────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  cursor: pointer;
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  gap: 5px;
  padding: 6px;
  transition: border-color .2s;
}
.hamburger:hover { border-color: var(--primary); }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 88px 0 0 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 1.5rem;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer a {
  color: #334155;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 12px;
  transition: all .2s;
  display: block;
}
.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active { background: var(--primary-light); color: var(--primary); }
.mobile-nav-drawer .nav-cta { margin-top: 6px; text-align: center; justify-content: center; }

/* ─────────────────────────────────────
   Laptop / Large tablet  ≤ 1280px
───────────────────────────────────── */
@media (max-width: 1280px) {
  .container { padding: 0 1.25rem; }
}

/* ─────────────────────────────────────
   Tablet landscape  ≤ 1024px
───────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-section { background-attachment: scroll; }
  /* Quote form stacked */
  .quote-info-panel { border-radius: 20px 20px 0 0; }
}

/* ─────────────────────────────────────
   Tablet portrait  ≤ 768px
───────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Nav ── */
  .hamburger { display: flex; }
  .desktop-nav { display: none !important; }

  /* ── Grids ── */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* ── Hero ── */
  .hero-section {
    background-attachment: scroll;
    padding: 2rem 0 3rem;
    min-height: auto;
  }

  /* ── Stats bar ── */
  .stats-bar { padding: 1.25rem; border-radius: 14px; }
  .stats-bar > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .stat-item { border-right: none !important; border-bottom: 1px solid #e2e8f0; }
  .stat-item:nth-child(2n) { border-right: none !important; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-num { font-size: 1.6rem; }

  /* ── Product cards ── */
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-card .card-img { height: 180px; }

  /* ── Service cards ── */
  .service-card { padding: 1.5rem; }
  .service-card > div > div[style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* ── Quote / get-a-quote layout ── */
  .quote-layout { grid-template-columns: 1fr !important; }
  .quote-info-panel { border-radius: 16px 16px 0 0; padding: 2rem; }
  .quote-form-panel { padding: 2rem !important; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Section ── */
  .section { padding: 3rem 0; }

  /* ── Admin sidebar hidden ── */
  .admin-sidebar { display: none; width: 100%; }
  .admin-content { margin-left: 0; }
  .admin-sidebar.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    width: 260px;
  }

  /* ── Detail modal ── */
  #detail-inner { grid-template-columns: 1fr !important; }
  #dm-gallery { min-height: 220px !important; max-height: 240px !important; }

  /* ── About team grid ── */
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ─────────────────────────────────────
   Phone landscape + small tablet  ≤ 640px
───────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 15px; }

  /* ── Container ── */
  .container { padding: 0 1rem; }

  /* ── Nav ── */
  .hamburger { display: flex; }

  /* ── Hero buttons ── */
  .hero-btns {
    flex-direction: column !important;
    width: 100%;
  }
  .hero-btns a, .hero-btns button {
    width: 100%;
    justify-content: center;
  }

  /* ── Product cards: 1 column ── */
  .product-grid { grid-template-columns: 1fr !important; }

  /* ── Stats: 2 col ── */
  .stats-bar > div { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Section spacing ── */
  .section { padding: 2.5rem 0; }

  /* ── Service card icon/text ── */
  .service-card .card-icon { width: 56px !important; height: 56px !important; border-radius: 14px !important; }

  /* ── Buttons ── */
  .btn-primary, .btn-outline { padding: 0.85rem 1.5rem; font-size: 0.9rem; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr !important; }

  /* ── Quote form ── */
  .quote-form-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .quote-info-panel { padding: 1.5rem; }

  /* ── Contact page cards ── */
  .contact-cards-grid { grid-template-columns: 1fr !important; }

  /* ── About page timeline ── */
  .about-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: 1fr !important; }

  /* ── Admin ── */
  .admin-card { padding: 1rem; }
  .admin-table th, .admin-table td { padding: 10px 10px; font-size: .8rem; }
  .admin-table th:nth-child(n+4),
  .admin-table td:nth-child(n+4) { display: none; }
}

/* ─────────────────────────────────────
   Phone portrait  ≤ 480px
───────────────────────────────────── */
@media (max-width: 480px) {
  /* ── Logo ── */
  .logo-rad, .logo-ant { font-size: 1.7rem !important; letter-spacing: .12em !important; }
  .logo-stem { height: 38px !important; }
  .logo-dot { width: 9px !important; height: 9px !important; }

  /* ── Nav ── */
  nav > div { padding: 0 .75rem !important; height: 72px !important; }
  body { padding-top: 72px !important; }

  /* ── Hero ── */
  .hero-section { min-height: 90vh; padding: 1rem 0 2.5rem; }

  /* ── Stats ── */
  .stat-num { font-size: 1.4rem; }

  /* ── Cards ── */
  .product-card .card-img { height: 160px; }
  .product-card .card-body { padding: 1.1rem; }

  /* ── Service card ── */
  .service-card { padding: 1.2rem; }

  /* ── Buttons ── */
  .btn-primary, .btn-outline, .btn-quote { padding: .75rem 1.2rem; font-size: .875rem; }
  .whatsapp-btn { padding: .7rem 1.2rem; font-size: .85rem; }

  /* ── Section heading ── */
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* ── Quote page ── */
  .quote-info-panel { padding: 1.25rem; }
  .quote-layout > div:last-child { padding: 1.5rem !important; }

  /* ── Detail modal ── */
  #detail-modal > div { padding: .5rem !important; }
  #detail-inner { border-radius: 16px !important; }
  #dm-gallery { min-height: 190px !important; max-height: 190px !important; }
  #detail-inner > div:last-child { padding: 1.25rem !important; }
  #dm-name { font-size: 1.2rem !important; }

  /* ── Category tabs ── */
  .cat-tabs { gap: 6px; }
  .cat-tab { padding: 6px 14px; font-size: .8rem; }

  /* ── Footer ── */
  .site-footer > div > div { padding: 2.5rem 0 1.5rem !important; }
}

/* ─────────────────────────────────────
   Landscape orientation fix
   (phones held sideways)
───────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section { min-height: 100svh; padding: 1rem 0; }
  .mobile-nav-drawer { inset: 72px 0 0 0; }
  #dm-gallery { min-height: 160px !important; max-height: 160px !important; }
}

