/* ═══════════════════════════════════════════════
   Kirmer Electric & Appliance — Custom Styles
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6E8)
   Fonts: Nunito (headings/UI) + Lora (body)
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --burgundy:       #7B2D3B;
  --burgundy-dark:  #5C1F2B;
  --burgundy-light: #9E3A4C;
  --blush:          #F5E6E8;
  --blush-light:    #FBF3F4;
  --blush-mid:      #EFD0D6;
  --cream:          #FFFAFA;
  --white:          #FFFFFF;
  --text-dark:      #2D1F23;
  --text-mid:       #5A4248;
  --text-light:     #8A6F75;
  --shadow-sm:      0 2px 8px rgba(123,45,59,0.08);
  --shadow-md:      0 4px 20px rgba(123,45,59,0.12);
  --shadow-lg:      0 8px 40px rgba(123,45,59,0.16);
  --radius-sm:      10px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading:   'Nunito', 'Segoe UI', sans-serif;
  --font-body:      'Lora', 'Georgia', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.938rem;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(123,45,59,0.3);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123,45,59,0.4);
}

.btn-light {
  background: var(--white);
  color: var(--burgundy);
  box-shadow: var(--shadow-md);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ── Section Shared ── */
.section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.813rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--blush);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-sub {
  font-size: 1.063rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,250,250,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123,45,59,0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.063rem;
  color: var(--burgundy);
}

.logo-icon { color: var(--burgundy); }

.logo-accent {
  font-weight: 600;
  color: var(--burgundy-light);
}

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

.nav-links a:not(.btn) {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--burgundy);
  background: var(--blush);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px 0;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92,31,43,0.88) 0%,
    rgba(123,45,59,0.78) 50%,
    rgba(92,31,43,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.813rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-body);
  color: var(--blush);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.188rem);
  color: rgba(245,230,232,0.9);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--blush);
}

.trust-item svg {
  opacity: 0.8;
}

/* ── Products ── */
.products {
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.product-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-body {
  padding: 24px 28px 28px;
}

.product-body h3 {
  font-size: 1.188rem;
  margin-bottom: 10px;
  color: var(--burgundy);
}

.product-body p {
  font-size: 0.938rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Services ── */
.services {
  background: var(--blush-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(123,45,59,0.06);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(123,45,59,0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush);
  border-radius: var(--radius-md);
  color: var(--burgundy);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--burgundy);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.938rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── About ── */
.about {
  background: var(--white);
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -32px;
  right: -24px;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
}

.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: -16px;
  left: -16px;
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.813rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-content .section-tag { margin-bottom: 16px; }

.about-content .section-title {
  margin-bottom: 24px;
}

.about-text {
  font-size: 1.063rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.938rem;
  color: var(--text-dark);
}

.value-item svg {
  color: var(--burgundy);
  flex-shrink: 0;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  padding: 80px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--white);
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1.063rem;
  color: var(--blush);
  max-width: 480px;
  line-height: 1.7;
}

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

/* ── Contact ── */
.contact {
  background: var(--blush-light);
}

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

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

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.info-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush);
  border-radius: var(--radius-md);
  color: var(--burgundy);
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.info-card p {
  font-size: 0.938rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.info-card a {
  color: var(--burgundy);
  font-weight: 600;
  transition: var(--transition);
}

.info-card a:hover {
  color: var(--burgundy-dark);
  text-decoration: underline;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ── Contact Form ── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--blush-mid);
  border-radius: var(--radius-sm);
  background: var(--blush-light);
  color: var(--text-dark);
  font-size: 0.938rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(123,45,59,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group select {
  appearance: none;
  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='%237B2D3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  color: #2E7D32;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.938rem;
}

.form-success svg { flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--burgundy-dark);
  color: var(--blush);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245,230,232,0.15);
}

.logo-light { color: var(--blush); margin-bottom: 16px; }
.logo-light .logo-icon { color: var(--blush); }
.logo-light .logo-accent { color: var(--blush-mid); }

.footer-brand p {
  font-size: 0.938rem;
  color: rgba(245,230,232,0.7);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.938rem;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.938rem;
  color: rgba(245,230,232,0.7);
  transition: var(--transition);
}

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

.footer-contact p {
  font-size: 0.938rem;
  color: rgba(245,230,232,0.7);
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--blush);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.813rem;
  color: rgba(245,230,232,0.5);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
}

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

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

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,250,250,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(123,45,59,0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a:not(.btn) {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-links .btn { margin-top: 8px; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img-accent {
    right: 16px;
    bottom: -20px;
    width: 50%;
  }

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

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

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }

  .hero-content { padding: 100px 20px 60px; }

  .hero-actions { flex-direction: column; align-items: center; }

  .hero-trust { gap: 20px; }

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

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

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

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

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

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