/* ============================================================
   Affordable Appliances & More — Main Stylesheet
   (Google Fonts are loaded via <link> in each HTML <head>)
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --navy:    #0D1B2A;
  --blue:    #484bff;
  --blue-lt: #6c6fff;
  --amber:   #F5A623;
  --amber-dk:#B36B00;   /* amber with enough contrast on light backgrounds */
  --coral:   #FF6B6B;
  --slate:   #E8EDF2;
  --muted:   #546377;   /* darkened for readable contrast on white and slate */
  --white:   #ffffff;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius: 10px;
  --shadow: 0 6px 24px rgba(13,27,42,.12);
  --transition: 0.22s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* Keep flex children from collapsing */
body > * { flex-shrink: 0; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-dk);
  margin-bottom: .5rem;
}

/* Bright amber only on dark backgrounds */
.page-hero .eyebrow,
.gallery .eyebrow { color: var(--amber); }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: .02em;
  line-height: 1.1;
}

.nav__logo span { color: var(--amber); }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--white); }

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav__cta:hover { background: var(--blue-lt) !important; }
.nav__cta::after { display: none !important; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger -> X when open */
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 60%, #0f2040 100%);
  color: var(--white);
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
}

/* diagonal bottom cut */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

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

.hero__sub {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 1.6rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .02em;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-lt);
  border-color: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72,75,255,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}

.btn--outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.btn--amber {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

.btn--amber:hover {
  background: #f0a000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,.35);
}

/* hero visual — appliance showcase placeholder */
.hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__badge-wrap {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero__circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(72,75,255,.2), rgba(245,166,35,.15));
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}

.hero__circle-icon {
  font-size: 4rem;
  line-height: 1;
}

.hero__circle h3 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.hero__circle p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* ── SECTION DIVIDER ──────────────────────────────────────── */
.divider {
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--amber) 50%, var(--coral) 100%);
  border: none;
  margin: 0;
}

/* ── SPECIAL ──────────────────────────────────────────────── */
.special {
  background: var(--white);
}

.special__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.special__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.special__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--slate);
  transition: transform var(--transition);
}

.special__gallery img:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.special__gallery img:hover { transform: scale(1.02); }

.special__info { padding-top: .5rem; }

.special__badge {
  display: inline-block;
  background: #d94a4a;
  color: var(--white);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.special__info h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: .75rem;
}

.special__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.meta-tag {
  background: var(--slate);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 99px;
}

.special__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 1rem;
}

.special__desc {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services {
  background: var(--slate);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.services::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--navy);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.services .section { position: relative; z-index: 1; }

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: .75rem;
}

.section__header p {
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(13,27,42,.15);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: .6rem;
  color: var(--navy);
}

.service-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── GALLERY ──────────────────────────────────────────────── */
.gallery {
  background: var(--navy);
  padding: 6rem 0 5rem;
}

.gallery .section__header h2 { color: var(--white); }
.gallery .section__header p  { color: rgba(255,255,255,.65); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery__item:hover img { transform: scale(1.07); }

.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,27,42,.88));
  color: var(--white);
  padding: 1.5rem .9rem .75rem;
  font-size: .82rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-within .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Touch devices have no hover, so always show captions */
@media (hover: none) {
  .gallery__caption { opacity: 1; transform: none; }
}

.gallery__empty {
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 3rem;
  font-size: .95rem;
}

/* ── WHY US STRIP ─────────────────────────────────────────── */
.why {
  background: linear-gradient(135deg, var(--blue) 0%, #2d30d8 100%);
  padding: 4rem 0;
  color: var(--white);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why__item h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--amber);
  margin-bottom: .3rem;
}

.why__item p {
  font-size: .88rem;
  color: rgba(255,255,255,.9);
  font-weight: 500;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer__brand h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .75rem;
}

.footer__brand h3 span { color: var(--amber); }

.footer__brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 34ch;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.footer__col li + li { margin-top: .5rem; }

.footer__col a {
  font-size: .88rem;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}

.footer__bottom a { color: var(--amber); }

/* ── ABOUT / inner page hero ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: .75rem;
}

.page-hero p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 50ch;
}

.page-hero p.eyebrow { color: var(--amber); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.about__text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about__text p.eyebrow { margin-bottom: .5rem; }

.about__visual {
  background: linear-gradient(135deg, var(--slate) 0%, #d0d8e4 100%);
  border-radius: 16px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  padding: 1.5rem;
  border-left: 4px solid var(--blue);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.value-item h4 { font-size: 1rem; margin-bottom: .4rem; }
.value-item p  { font-size: .88rem; color: var(--muted); }

/* ── CONTACT page ─────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact__info p.eyebrow { margin-bottom: .5rem; }

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact__detail-icon {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__detail-text strong {
  display: block;
  font-size: .82rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact__detail-text span {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 500;
}

.contact__detail-text a { text-decoration: underline; text-underline-offset: 3px; }

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13,27,42,.06);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

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

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #c5cdd8;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(72,75,255,.18);
}

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

.form-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .75rem;
  text-align: center;
}

.form-note a { color: var(--blue); text-decoration: underline; }

/* ── SERVICES page ────────────────────────────────────────── */
.services-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
}

.service-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(13,27,42,.06);
  transition: all var(--transition);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,27,42,.14);
}

.service-detail-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.service-detail-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.service-detail-card p  { color: var(--muted); font-size: .9rem; line-height: 1.7; }

.service-detail-card ul {
  margin-top: .75rem;
  padding-left: .5rem;
}

.service-detail-card ul li {
  font-size: .88rem;
  color: var(--muted);
  padding: .25rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-detail-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber-dk);
  font-size: .8rem;
}

.cta-row { text-align: center; margin-top: 3.5rem; }
.cta-row .btn { margin: .25rem .5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; gap: 0; align-items: stretch; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 99;
  }
  .nav__links.open a { padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav__links.open a.nav__cta { margin-top: .75rem; text-align: center; border-bottom: none; padding: .7rem 1rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }

  .hero__inner        { grid-template-columns: 1fr; }
  .hero__visual       { display: none; }
  .hero               { padding: 4rem 0 5rem; }

  .special__inner     { grid-template-columns: 1fr; gap: 2rem; }
  .about__grid        { grid-template-columns: 1fr; gap: 2rem; }
  .about__visual      { height: 220px; }
  .contact__grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form       { padding: 1.5rem; }
  .form-row           { grid-template-columns: 1fr; }
  .footer__grid       { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom     { flex-direction: column; text-align: center; }
  .section            { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
