/* ===========================
   Double R Services — Styles
   =========================== */

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

:root {
  --yellow:  #f5c400;
  --yellow-dark: #d4a800;
  --navy:    #111827;
  --navy-mid:#1f2937;
  --navy-light: #374151;
  --white:   #ffffff;
  --gray-50: #f9fafb;
  --gray-100:#f3f4f6;
  --gray-300:#d1d5db;
  --gray-600:#4b5563;
  --gray-700:#374151;
  --text:    #111827;
  --radius:  6px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.15;
  letter-spacing: .02em;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-ghost {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}
.btn-ghost:hover { background: var(--gray-100); border-color: var(--gray-100); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 9px 22px;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-full { width: 100%; text-align: center; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-dark { background: var(--navy); color: var(--white); padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.4rem; margin: 8px 0 14px; }
.section-header p { max-width: 540px; margin: 0 auto; color: var(--gray-600); font-size: 1.05rem; }
.section-header--light p { color: rgba(255,255,255,.65); }
.section-header--light h2 { color: var(--white); }

.section-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}

/* ========================
   HEADER / NAV
   ======================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
  transition: height .3s ease;
}
.site-header.scrolled .nav { height: 68px; }

.nav-logo img {
  height: 96px;
  width: auto;
  transition: height .3s ease;
}
.site-header.scrolled .nav-logo img { height: 52px; }

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

.nav-links a {
  color: rgba(255,255,255,.85);
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy) url('../img/job-dusk-two-machines.jpg') center/cover no-repeat;
  padding-top: 112px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,.92) 0%, rgba(17,24,39,.75) 60%, rgba(17,24,39,.6) 100%);
}

/* diagonal stripe accent */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 18px,
    rgba(245,196,0,.04) 18px,
    rgba(245,196,0,.04) 36px
  );
  pointer-events: none;
}

.hero-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ========================
   SERVICES
   ======================== */
.services { background: var(--gray-50); }

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--yellow);
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.service-card p { color: var(--gray-600); font-size: .95rem; }

/* ========================
   GALLERY
   ======================== */
.gallery { background: var(--gray-100); }

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
  background: var(--navy-light);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 32px 14px 12px;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
}

/* ========================
   ABOUT + CONTACT (combined)
   ======================== */
.about-contact { background: var(--navy); color: var(--white); padding: 80px 0; }

.ac-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ac-text .section-tag { margin-bottom: 12px; display: inline-block; }
.ac-text h2 { font-size: 2.2rem; margin-bottom: 18px; color: var(--white); }
.ac-text > p { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: 1.02rem; }

.why-list { margin-bottom: 0; display: flex; flex-direction: column; gap: 12px; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .97rem;
  color: rgba(255,255,255,.75);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  margin-top: 1px;
}

/* CTA box */
.cta-box {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 40px 36px;
  text-align: center;
}
.cta-box .section-tag { margin-bottom: 16px; display: inline-block; }
.cta-box h3 {
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-box > p {
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
  font-size: 1rem;
}
.btn-cta {
  font-size: 1.4rem;
  padding: 16px 36px;
  display: block;
  text-align: center;
  letter-spacing: .06em;
}
.cta-sub {
  margin-top: 12px;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cta-links { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.cta-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}
.cta-social svg { width: 16px; height: 16px; }
.cta-social:hover { color: var(--yellow); }

@media (max-width: 900px) {
  .ac-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ========================
   DARK MODE (system preference)
   ======================== */
@media (prefers-color-scheme: dark) {
  /* Only adjust the "light" sections — nav/hero/footer are already dark */
  .services { background: #161b24; }

  .service-card {
    background: #1f2937;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
  }
  .service-card h3 { color: #f3f4f6; }
  .service-card p  { color: #9ca3af; }

  .gallery { background: #1a2030; }
  .section-header p { color: #9ca3af; }

  body { background: #111827; color: #f3f4f6; }

  /* About/contact section — already dark navy, force text white */
  .about-contact,
  .about-contact .ac-text h2,
  .about-contact .cta-box h3 { color: #ffffff; }
  .about-contact .ac-text > p,
  .about-contact .why-list li { color: rgba(255,255,255,.75); }
  .about-contact .cta-box > p { color: rgba(255,255,255,.65); }

  .footer { background: #06090f; }
  .footer-copy { color: rgba(255,255,255,.45); }
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: #0a0f18;
  color: rgba(255,255,255,.6);
  padding: 28px 0;
  border-top: 3px solid var(--yellow);
}

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

.footer-logo { height: 48px; width: auto; }
.footer-copy { font-size: .85rem; }

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--yellow); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    border-top: 2px solid var(--yellow);
    padding: 24px;
    gap: 20px;
    text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-content h1 { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .section-dark { padding: 56px 0; }
}

@media (max-width: 480px) {
  .why-stats { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.9rem; }
}
