/* =============================================
   Tantalum53 Inc. — Single Page Site
   ============================================= */

:root {
  --primary: #1B365D;
  --primary-dark: #0F2340;
  --accent: #C8102E;
  --accent-hover: #A50D25;
  --gold: #D4A843;
  --text: #2D3748;
  --text-light: #718096;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --bg-dark: #0F2340;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(27, 54, 93, 0.08);
  --shadow-lg: 0 12px 48px rgba(27, 54, 93, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-dark {
  background: var(--primary);
  color: #fff;
}

.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
}

.header-phone svg {
  color: var(--accent);
}

.header-cta {
  padding: 10px 20px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(15, 35, 64, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 35, 64, 0.88) 0%, rgba(27, 54, 93, 0.72) 50%, rgba(200, 16, 46, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--gold);
}

.hero-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 560px;
}

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

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.hero-feature svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* ========== SERVICES OVERVIEW ========== */
.services-overview {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 96px;
}

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

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(27, 54, 93, 0.18);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, #2A5298 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 20px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.service-card-link:hover {
  gap: 10px;
}

/* ========== APPLIANCE GRID ========== */
.appliance-grid {
  background: var(--bg-alt);
}

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

.appliance-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  group: appliance;
}

.appliance-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.appliance-item-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 10/7;
}

.appliance-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.appliance-item:hover .appliance-item-image img {
  transform: scale(1.06);
}

.appliance-item-body {
  padding: 20px 24px;
}

.appliance-item-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.appliance-item-body p {
  font-size: 14px;
  color: var(--text-light);
}

/* ========== PROMO BLOCKS ========== */
.promo-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.promo-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.promo-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.promo-block:hover img {
  transform: scale(1.04);
}

.promo-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 35, 64, 0.92) 0%, rgba(15, 35, 64, 0.3) 60%, transparent 100%);
}

.promo-block-content {
  position: relative;
  z-index: 1;
  padding: 36px;
  color: #fff;
}

.promo-block-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.promo-block-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 400px;
}

/* ========== BRANDS ========== */
.brands {
  background: var(--bg-dark);
  padding: 64px 0;
}

.brands-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: scroll-brands 30s linear infinite;
  width: max-content;
}

.brands-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-brands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brands-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brand-logo {
  flex-shrink: 0;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
}

.brand-logo img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity var(--transition);
}

.brand-logo:hover img {
  opacity: 1;
}

/* ========== WHY US ========== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-us-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-us-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.why-us-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.why-us-badge strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.why-us-badge span {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.why-us-content .section-label,
.why-us-content .section-title {
  text-align: left;
}

.why-us-list {
  margin-top: 28px;
}

.why-us-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.why-us-list li:last-child {
  border-bottom: none;
}

.why-us-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(200, 16, 46, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.why-us-list h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.why-us-list p {
  font-size: 14px;
  color: var(--text-light);
}

/* ========== STATS ========== */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--bg-alt);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-track {
  overflow: hidden;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 12px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
}

.testimonial-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ========== ABOUT TABS ========== */
.about-tabs {
  background: #fff;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: #fff;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tab-content p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.tab-content ul {
  text-align: left;
  max-width: 560px;
  margin: 24px auto 0;
}

.tab-content li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
}

.tab-content li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ========== CONTACT ========== */
.contact {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 35, 64, 0.94) 0%, rgba(27, 54, 93, 0.88) 100%);
}

.contact .container {
  position: relative;
  z-index: 1;
}

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

.contact-info {
  color: #fff;
}

.contact-info .section-label {
  color: var(--gold);
}

.contact-info .section-title {
  color: #fff;
  text-align: left;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.contact-detail strong {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-detail span,
.contact-detail a {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.contact-detail a:hover {
  color: var(--gold);
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success.show {
  display: block;
}

.form-success svg {
  color: #22C55E;
  margin-bottom: 16px;
}

.form-success h4 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
  font-size: 15px;
}

.contact-form.hide {
  display: none;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

/* ========== RESPONSIVE ========== */

/* Large tablets & small desktops */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }

  .hero-content {
    max-width: 620px;
  }

  .promo-block {
    min-height: 340px;
  }
}

/* Tablets (portrait & landscape) */
@media (max-width: 1024px) {
  html {
    scroll-padding-top: 68px;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .services-cards,
  .appliances {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-overview {
    margin-top: -40px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .why-us-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-us-image img {
    aspect-ratio: 16/10;
    max-height: 420px;
  }

  .why-us-content .section-label,
  .why-us-content .section-title {
    text-align: center;
  }

  .contact-info .section-title {
    text-align: center;
  }

  .contact-info > p {
    text-align: center;
  }

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

  .promo-blocks {
    gap: 24px;
  }

  .promo-block {
    min-height: 320px;
  }

  .promo-block-content h3 {
    font-size: 22px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .header-phone {
    font-size: 13px;
  }

  .nav {
    gap: 20px;
  }
}

/* Tablets portrait & large phones */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 64px;
  }

  .logo img {
    height: 34px;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 32px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }

  .nav-overlay {
    display: block;
  }

  .nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 16px;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 8px;
  }

  .nav-mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-alt);
    border-radius: 8px;
  }

  .nav-mobile-cta {
    width: 100%;
    padding: 14px 20px;
  }

  .header-phone,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 88px 0 48px;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 16px;
  }

  .hero-text {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-features {
    flex-direction: column;
    gap: 12px;
  }

  .hero-feature {
    font-size: 13px;
  }

  .services-overview {
    margin-top: 0;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .services-cards,
  .appliances,
  .promo-blocks {
    grid-template-columns: 1fr;
  }

  .service-card:hover {
    transform: none;
  }

  .appliance-item:hover {
    transform: none;
  }

  .promo-block {
    min-height: 280px;
  }

  .promo-block-content {
    padding: 28px 24px;
  }

  .promo-block-content p {
    font-size: 14px;
  }

  .brands {
    padding: 48px 0;
  }

  .brand-logo {
    width: 100px;
    height: 52px;
  }

  .why-us-badge {
    bottom: 16px;
    left: 16px;
    padding: 12px 18px;
  }

  .why-us-badge strong {
    font-size: 26px;
  }

  .why-us-list li {
    padding: 14px 0;
  }

  .stats {
    padding: 48px 0;
  }

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

  .stat-item strong {
    font-size: 32px;
  }

  .stat-item span {
    font-size: 13px;
  }

  .tabs-nav {
    margin-bottom: 32px;
    gap: 6px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    flex: 1 1 auto;
    min-width: calc(50% - 6px);
  }

  .tab-content p {
    font-size: 15px;
  }

  .testimonial-text {
    font-size: 16px;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .contact-grid {
    gap: 32px;
  }

  .contact-form-wrap {
    padding: 28px 24px;
  }

  .contact-detail {
    align-items: flex-start;
  }

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

  .footer {
    padding-top: 48px;
  }

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

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-payments {
    flex-wrap: wrap;
    justify-content: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-desc {
    font-size: 15px;
  }

  .hero-content {
    padding: 80px 0 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .appliance-item-body {
    padding: 16px 18px;
  }

  .appliance-item-body h3 {
    font-size: 16px;
  }

  .promo-block {
    min-height: 260px;
  }

  .promo-block-content h3 {
    font-size: 20px;
  }

  .promo-block-content .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-item strong {
    font-size: 28px;
  }

  .tab-btn {
    min-width: 100%;
  }

  .testimonial-slide {
    padding: 0;
  }

  .testimonial-card {
    padding: 24px 18px;
  }

  .testimonial-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .contact-form-wrap {
    padding: 20px 16px;
  }

  .contact-form-wrap h3 {
    font-size: 20px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .payment-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* Desktop-only: hide mobile nav extras */
@media (min-width: 769px) {
  .nav-mobile-actions {
    display: none;
  }
}

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

  .brands-track {
    animation: none;
  }

  .testimonial-slides {
    transition: none;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .header-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .back-to-top {
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
  }
}
