/* ==========================================================
   JEET COMPUTERS - style.css
   Simple, clean corporate design (black, white and grey only).
   Sections: 1 Variables · 2 Base · 3 Buttons · 4 Header ·
             5 Hero · 6 About · 7 Services · 8 Experience ·
             9 Contact · 10 Footer · 11 Responsive
   ========================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --white: #FFFFFF;
  --black: #111111;
  --grey-dark: #333333;
  --grey-light: #F5F5F5;
  --border: #E5E5E5;
  --grey-mid: #A8A8A8;      /* secondary text on black backgrounds */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --radius: 6px;
  --container: 1180px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);   /* anchors don't hide under the sticky header */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

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

.section { padding: 96px 0; }
.section-grey { background: var(--grey-light); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head p { font-size: 1.1rem; margin: 0; }

/* Visible keyboard focus */
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--black); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius); z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 22px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { padding: 13px 28px; }

/* Black button */
.btn-dark { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey-dark); border-color: var(--grey-dark); }

/* White button with black outline */
.btn-outline { background: var(--white); border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--black); color: var(--white);
  font-weight: 800; font-size: 1.2rem;
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: var(--black); }

.main-nav ul { display: flex; gap: 6px; }
.nav-link {
  display: block; padding: 8px 14px;
  text-decoration: none; font-weight: 500; color: var(--black);
  border-radius: var(--radius);
}
.nav-link:hover { background: var(--grey-light); }
.nav-link.is-active { font-weight: 700; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--black);
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero slider ----------
   Split layout: heading and buttons on the left, text-free photo on the right.
   All three slides sit in the same grid cell, so the hero height always
   matches the tallest slide and nothing overlaps. */
.hero {
  position: relative;
  background: var(--grey-light);
  overflow: hidden;
}
.slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(460px, 66vh, 580px);
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.slide-content {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  /* left edge lines up with the page container */
  padding: 56px 56px 112px max(24px, calc((100vw - var(--container)) / 2 + 24px));
}
.slide-content h1,
.slide-content .slide-title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: .45em;
}
.slide-content p {
  font-size: 1.15rem;
  max-width: 32em;
  margin-bottom: 1.6em;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.slide-image {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #d9d9d9;     /* shown if a photo is missing */
}

/* Controls sit in the bottom-left of the hero, under the text */
.slider-controls {
  position: absolute; z-index: 5;
  bottom: 40px;
  left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  display: flex; align-items: center; gap: 16px;
}
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--black);
  border: 1px solid var(--black); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.slider-btn:hover { background: var(--black); color: var(--white); }

.slider-dots { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  background: transparent; border: 2px solid var(--black); cursor: pointer;
  transition: background-color .2s, width .2s;
}
.dot.is-active { background: var(--black); width: 28px; border-radius: 6px; }

/* ---------- 6. About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-image img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius);
  background: #d9d9d9;
}
.about-text p { font-size: 1.1rem; }
.about-text .btn { margin-top: 12px; }

/* ---------- 7. Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.service-icon { color: var(--black); margin-bottom: 20px; }
.service-card h3 { margin-bottom: .4em; }
.service-card p { margin: 0; }

/* ---------- 8. Experience ---------- */
.section-dark { background: var(--black); color: var(--grey-mid); }
.section-dark h2 { color: var(--white); }
.section-dark .section-head { margin-bottom: 56px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-top: 1px solid #444444; padding-top: 24px; }
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat p { margin: 12px 0 0; font-size: 1.05rem; color: var(--grey-mid); }

/* ---------- 9. Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-info > p { font-size: 1.1rem; }

.contact-cards { margin: 28px 0; display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-icon { flex: none; color: var(--black); }
.contact-card > div { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-weight: 700; color: var(--black); }
.contact-card a { text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }
.contact-card span:not(.contact-label) { overflow-wrap: anywhere; }

.contact-form {
  background: var(--grey-light);
  border: 1px solid var(--border);
  padding: 36px; border-radius: var(--radius);
}
.contact-form h3 { margin-bottom: 24px; font-size: 1.35rem; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-weight: 600; color: var(--black); margin-bottom: 6px; }
.field input, .field textarea {
  font: inherit; color: var(--black);
  padding: 12px 14px; background: var(--white);
  border: 1px solid #c9c9c9; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.error { color: #c62828; font-size: .92rem; min-height: 1.2em; margin-top: 4px; }
.form-status { margin: 16px 0 0; font-weight: 600; color: var(--black); }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--black); color: var(--grey-mid); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px;
  padding-bottom: 48px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-mark { background: var(--white); color: var(--black); }
.footer-brand p { margin-top: 16px; max-width: 26ch; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; padding-bottom: 28px;
  border-top: 1px solid #333333; font-size: .95rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Hero: photo on top, text underneath */
  .slide { grid-template-columns: 1fr; grid-template-rows: 240px auto; min-height: 0; }
  .slide-image { order: -1; height: 240px; }
  .slide-content { padding: 32px 24px 104px; }
  .slider-controls { left: 24px; bottom: 32px; }

  /* Mobile menu */
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .nav-link { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-link:hover { background: none; }
  .nav-link.is-active { text-decoration: none; }
  .nav-cta-mobile { display: flex; margin-top: 20px; }
}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 28px 20px; }
  .service-card { padding: 28px 24px; }
  .slide-actions .btn { flex: 1 1 auto; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .btn, .dot, .menu-toggle span, .slider-btn { transition: none; }
}
