/* ============================================================
   PRO REPAIRS .AE — Site Stylesheet
   Appliance & electronics repair, Dubai/UAE
   ============================================================ */

:root {
  --black: #0A0A0A;
  --charcoal: #1B1F1D;
  --charcoal-light: #23281F;
  --green: #2ECC71;
  --green-deep: #1E9E52;
  --orange: #E8792C;
  --orange-deep: #C4621F;
  --orange-tint: #2A1C12;
  --off-white: #F5F5F3;
  --sage-grey: #8A938C;
  --line: #2B2F2B;
  --max-width: 1180px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--off-white);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

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

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}

.brand-mark {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 0;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.brand-mark .brand-icon {
  height: 100%;
  width: auto;
  flex-shrink: 0;
}

.brand-mark .brand-logo-full {
  height: 100%;
  width: auto;
  max-width: 100%;
  flex-shrink: 1;
  object-fit: contain;
}

.brand-mark .brand-text {
  font-size: 19px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-mark .brand-text .accent { color: var(--green); }

nav.main-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 34px;
}

nav.main-nav a {
  font-size: 15px;
  color: var(--sage-grey);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--off-white);
  border-bottom-color: var(--green);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--black) !important;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  border-bottom: none !important;
}

.nav-cta:hover { background: var(--green-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--off-white);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Mobile dropdown panel — hidden by default, shown when .site-header has .nav-open */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 28px 18px;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.mobile-nav a {
  padding: 13px 4px;
  font-size: 16px;
  color: var(--sage-grey);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--off-white);
}

.mobile-nav .nav-cta {
  margin-top: 10px;
  justify-content: center;
}

.site-header.nav-open .mobile-nav {
  display: flex;
}

/* ---------------- Buttons (shared) ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-outline {
  border-color: var(--line);
  color: var(--off-white);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Hero ---------------- */

.hero {
  border-bottom: 1px solid var(--line);
  padding: 74px 0 84px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero .kicker {
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 18px;
  max-width: 15ch;
}

.hero p.lede {
  color: var(--sage-grey);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 480px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* ---------------- Floating WhatsApp button ---------------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  border: 2px solid var(--black);
}

.whatsapp-float:hover { background: var(--green-deep); }

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--black);
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}

/* ---------------- Trust strip ---------------- */

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
}

.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 26px 28px;
  justify-content: space-between;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  color: var(--sage-grey);
}

.trust-item strong {
  color: var(--off-white);
  font-size: 15px;
}

/* ---------------- Section shared ---------------- */

.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }

.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--sage-grey); font-size: 16px; }

/* ---------------- Services grid (home preview + full page) ---------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-cell {
  background: var(--charcoal);
  padding: 26px 24px;
}

.service-cell h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-cell p {
  color: var(--sage-grey);
  font-size: 14px;
}

/* ---------------- How it works (process — legitimate sequence) ---------------- */

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.process-list li {
  border-top: 2px solid var(--green);
  padding-top: 16px;
}

.process-list .step-index {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.process-list h3 { font-size: 17px; margin-bottom: 8px; }
.process-list p { color: var(--sage-grey); font-size: 14.5px; }

/* ---------------- Gallery ---------------- */

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

.gallery-item {
  aspect-ratio: 1/1;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item .tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10,10,10,0.82);
  color: var(--off-white);
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 4px;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-grey);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
}

.cta-band .wrap {
  padding: 60px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: var(--sage-grey); font-size: 15px; }

/* ---------------- Contact page ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
}

.contact-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card + .contact-card { margin-top: 18px; }

.contact-card .label {
  color: var(--sage-grey);
  font-size: 13px;
  margin-bottom: 6px;
}

.contact-card .value {
  font-size: 19px;
  font-weight: 600;
}

.contact-card .value a:hover { color: var(--green); }

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

.field label {
  display: block;
  font-size: 14px;
  color: var(--sage-grey);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--off-white);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
}

.form-note {
  font-size: 13px;
  color: var(--sage-grey);
}

/* ---------------- Footer ---------------- */

footer.site-footer {
  padding: 44px 0;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage-grey);
  font-size: 14px;
}

footer.site-footer .foot-brand img { height: 26px; width: 26px; }

footer.site-footer .foot-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--sage-grey);
}

footer.site-footer .foot-links a:hover { color: var(--green); }

/* ---------------- Placeholder marker (for content you'll swap) ---------------- */

.placeholder {
  outline: 1px dashed var(--green);
  outline-offset: 3px;
}

/* ---------------- About page (orange secondary accent) ---------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  background: var(--charcoal);
  padding: 28px 24px;
  text-align: center;
}

.stat-cell .stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}

.stat-cell .stat-label {
  color: var(--sage-grey);
  font-size: 13.5px;
}

.about-highlight {
  background: var(--orange-tint);
  border: 1px solid var(--orange-deep);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.about-highlight h3 {
  color: var(--orange);
  font-size: 18px;
  margin-bottom: 10px;
}

.about-highlight p {
  color: var(--off-white);
  font-size: 15px;
}

.pull-quote {
  border-left: 3px solid var(--orange);
  padding: 6px 0 6px 24px;
  margin: 8px 0;
}

.pull-quote p {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--off-white);
  line-height: 1.45;
}

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

.value-cell {
  border-top: 2px solid var(--orange);
  padding-top: 16px;
}

.value-cell h3 { font-size: 16.5px; margin-bottom: 8px; }
.value-cell p { color: var(--sage-grey); font-size: 14.5px; }

.team-photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 480px;
}

.team-photo-frame img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-strip .wrap { gap: 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero h1 { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}
