/* ============================================================
   THE ARATI ELECTRONICS — design tokens
   Color:  --ink (near-black navy), --blue / --blue-dark (brand),
           --red (logo flame accent), --paper (page bg), --white,
           --muted (secondary text), --line (hairline borders)
   Type:   "Sora" — display/headings, geometric + techy
           "Inter" — body copy, UI labels
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b1220;
  --blue: #1550d6;
  --blue-dark: #0d3aa6;
  --red: #e63328;
  --paper: #f5f6f8;
  --white: #ffffff;
  --muted: #5b6472;
  --line: #e3e6ec;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow-tag::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  max-width: 620px;
}

.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin-top: 10px;
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: #c9271e; }

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--ink); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); }

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ================= NAVBAR ================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 60px; width: auto; border-radius: 8px; }
.brand span {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); display: block;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.55; */
  transform: translateX(100%);
  transition: transform 0.8s ease;
}

.hero-slide.is-active {
  transform: translateX(0);
}

.hero-slide.is-leaving {
  transform: translateX(-100%);
}

/* .hero-shape {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: linear-gradient(160deg, rgba(21,80,214,.55), rgba(230,51,40,.45));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  filter: blur(0px);
} */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(11,18,32,0.96) 30%, rgba(11,18,32,0.35) 75%);
}

@media (min-width: 981px) {
  .hero::before {
    background: linear-gradient(90deg, rgba(11,18,32,0.8) 0%, rgba(11,18,32,0.35) 100%);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 640px; color: var(--white); }

.hero-content .eyebrow-tag { color: #ff8a80; }

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
}

.hero-sub {
  margin-top: 18px;
  font-size: 1.08rem;
  color: #cbd2e0;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-strip {
  margin-top: 46px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: #aeb6c6;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-strip span { color: var(--white); }

/* ================= ABOUT ================= */

.about {
  padding: 110px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-media .about-mini {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 44%;
  border-radius: 10px;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 18px 40px rgba(11,18,32,0.18);
}
.about-media .about-mini img { height: 140px; object-fit: cover; }

.about-media .about-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 18px 40px rgba(11,18,32,0.14);
  max-width: 220px;
  z-index: 2;
}
.about-badge strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  color: var(--blue);
}
.about-badge span { font-size: 0.85rem; color: var(--muted); }

.about-text p { color: var(--muted); margin-top: 18px; }

.about-points {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-point .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 8px;
  flex-shrink: 0;
}
.about-point p { margin: 0; color: var(--ink); font-weight: 500; }

/* ================= GALLERY ================= */

.gallery { padding: 0 0 90px; }

.gallery-head {
  margin-bottom: 32px;
}

.gallery-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-track {
  flex: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 calc(25% - 12px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gallery-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.gallery-nav svg { width: 18px; height: 18px; }

/* ================= PRODUCTS ================= */

.products { padding: 100px 0; background: var(--white); }

.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 52px;
}

.brand-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.brand-filter span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(11,18,32,0.1);
} 

.product-card.apple {
  background: #e3ecf7;
  border: 1px solid #5ea1f3;
}

.product-card.apple:hover {
  border-color: #1562c0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
} 

.product-badges {
    display: flex; 
    justify-content: space-between;
    align-items: start;
} 

.product-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    background: var(--red);
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 6px;
}

.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--ink);
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.product-brand.b-redmi { background: #f9552e; }
.product-brand.b-realme { background: #ffc001; color: #1a1200; }
.product-brand.b-vivo { background: #415fff; }
.product-brand.b-samsung { background: #1428a0; }
.product-brand.b-apple { background: #1d1d1f; }
.product-brand.b-oppo { background: #1bb26a; }
.product-brand.b-tecno { background: #0d6efd; }
.product-brand.b-infinix { background: #00d67f; color: #062017; }
.product-brand.b-motorola { background: #5b2a86; }

.product-art {
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.product-art svg { height: 130px; }
.product-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.product-specs {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-specs span {
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
}

.product-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--blue);
}
.product-price small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
}

.product-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
}

/* ================= CTA ================= */

.cta-banner {
  padding: 100px 0;
  background: var(--blue);
}

.cta-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-copy { max-width: 560px; }

.cta-copy .eyebrow-tag { color: #ffd8d4; justify-content: center; }
.cta-copy .eyebrow-tag::before { background: #ffd8d4; }

.cta-copy h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.cta-copy p {
  color: #dbe4ff;
  margin-top: 12px;
}

.cta-banner .cta-image {
  margin: 44px 0 36px;
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11,18,32,0.25);
}
.cta-banner .cta-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--white);
}

/* ================= CONTACT ================= */

.contact { padding: 110px 0; }

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 460px; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-strip {
  display: flex;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.contact-info-strip div { font-size: 0.88rem; }
.contact-info-strip strong { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 600; }

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 110px; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.form-consent a { color: var(--blue); font-weight: 600; }

.form-note {
  font-size: 0.8rem;
  margin-top: 14px;
  color: var(--muted);
}
.form-note.success { color: #147a3c; font-weight: 600; }

/* ================= FOOTER ================= */

.site-footer { background: var(--ink); color: #c6cbd6; padding: 80px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 42px; border-radius: 8px; }
.footer-brand span { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--white); }

.site-footer p { font-size: 0.9rem; line-height: 1.7; color: #9aa1b0; max-width: 300px; }

.footer-title {
  font-family: 'Sora', sans-serif;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 11px; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #8891a2;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: var(--white); }

.dev-tag {
  text-align: center;
  padding: 14px 0;
  font-size: 0.78rem;
  background: #070c16;
  color: #8891a2;
}
.dev-tag a { color: var(--white); font-weight: 600; }

/* ================= INNER PAGES (terms / privacy) ================= */

.page-hero {
  background: var(--ink);
  padding: 90px 0 60px;
  color: var(--white);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: #aeb6c6; margin-top: 10px; }

.legal-content { padding: 70px 0 100px; }
.legal-content .container { max-width: 820px; }
.legal-content h3 { font-size: 1.3rem; margin-bottom: 22px; }
.legal-content ol { padding-left: 22px; display: grid; gap: 16px; }
.legal-content ol li { color: var(--ink); font-size: 0.98rem; }
.legal-content h4 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.legal-content p { color: var(--muted); margin-bottom: 4px; }
.legal-content p + h4 { margin-top: 30px; }

/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
  .about .container,
  .contact .container { grid-template-columns: 1fr; }
  .about-media img { height: 340px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-slide { flex: 0 0 calc(33.333% - 11px); height: 170px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-media .about-mini { display: none; }
  .gallery-slide { flex: 0 0 100%; height: 400px; }
  .gallery-nav { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}