/* ============================================
   Pepe Software Research Limited — Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: -0.01em;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #888888;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #f0f0f0;
}

/* --- Hamburger toggle --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f0f0f0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 0.8125rem 2rem;
  background: #4a9e5c;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
}

.btn:hover {
  background: #3d8a4e;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(74, 158, 92, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

/* --- Section shared --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  color: #ffffff;
}

/* --- Hero --- */
.hero {
  padding: 12rem 0 8rem;
  text-align: center;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #777777;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* --- Services --- */
.services {
  padding: 6rem 0;
  border-top: 1px solid #151515;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 2.25rem;
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: #303030;
  transform: translateY(-2px);
}

.service-icon {
  width: 36px;
  height: 36px;
  color: #4a9e5c;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: #f0f0f0;
  letter-spacing: -0.015em;
}

.service-card p {
  font-size: 0.9375rem;
  color: #777777;
  line-height: 1.7;
}

/* --- About --- */
.about {
  padding: 6rem 0;
  border-top: 1px solid #151515;
}

.about-content {
  max-width: 700px;
}

.about-text {
  font-size: 1.125rem;
  color: #888888;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #c0c0c0;
}

/* --- Contact --- */
.contact {
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid #151515;
}

.contact-text {
  font-size: 1.25rem;
  color: #777777;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid #111111;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-company {
  font-size: 0.875rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 0.25rem;
}

.footer-address {
  font-size: 0.8125rem;
  color: #3a3a3a;
  line-height: 1.6;
}

.footer-legal {
  font-size: 0.8125rem;
  color: #3a3a3a;
  text-align: right;
  white-space: nowrap;
}

/* ============================================
   Responsive — 768px (tablet)
   ============================================ */
@media (max-width: 768px) {

  .hero {
    padding: 9rem 0 5rem;
  }

  .hero-title {
    font-size: 2.875rem;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-legal {
    text-align: left;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid #1a1a1a;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    font-size: 1.125rem;
    color: #c0c0c0;
  }
}

/* ============================================
   Responsive — 480px (mobile)
   ============================================ */
@media (max-width: 480px) {

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .services,
  .about,
  .contact {
    padding: 4rem 0;
  }

  .service-card {
    padding: 1.625rem;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    word-break: break-all;
  }

  .logo-text {
    font-size: 0.9375rem;
  }
}

/* ============================================
   Cookie Consent overrides
   ============================================ */
.cc-window {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.875rem !important;
  border-top: 1px solid #1e1e1e !important;
}

.cc-btn {
  font-family: inherit !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
}
