/* ============================================
   Darwin Innovation — Main Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-white: #fefefe;
  --color-black: #0c0c0c;
  --color-blue: #1f89de;
  --color-blue-light: #6fb5e1;
  --color-grey-light: #d6e6f2;

  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(12, 12, 12, 0.08);
  --shadow-md: 0 4px 12px rgba(12, 12, 12, 0.1);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-blue-light);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Headings --- */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-blue-light);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-name {
  font-family: 'Nunito', var(--font-family);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-blue);
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin-left: 1rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--color-black);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--color-blue);
}

.nav-cta {
  background: var(--color-blue);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-blue-light);
  color: var(--color-white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all var(--transition);
}

.nav-toggle span:nth-child(1) {
  top: 0;
}
.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span:nth-child(3) {
  bottom: 0;
}

.nav-toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(
    170deg,
    var(--color-white) 0%,
    var(--color-grey-light) 100%
  );
}

.hero-inner {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  color: var(--color-black);
}

.hero-sub {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ===========================
   NAME DISAMBIGUATION BANNER
   =========================== */
.name-banner {
  background: var(--color-grey-light);
  border-bottom: 1px solid #c5d5e4;
  padding: 1rem 0;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.name-banner a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.name-banner a:hover {
  color: var(--color-blue-light);
}

/* ===========================
   SERVICES
   =========================== */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-blue);
}

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

.service-card h3 {
  font-size: 1.15rem;
  color: var(--color-black);
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  padding: 5rem 0;
  background: var(--color-grey-light);
}

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

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ===========================
   TOOLS & TECHNOLOGIES
   =========================== */
.tools {
  padding: 5rem 0;
}

.tools-category {
  margin-bottom: 2.5rem;
}

.tools-category:last-child {
  margin-bottom: 0;
}

.tools-category h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 1rem;
}

.tools-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.tool-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
}

.tool-logo:hover {
  box-shadow: var(--shadow-sm);
  transform: scale(1.08);
}

.tool-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  padding: 5rem 0;
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
}

.contact h2 {
  color: var(--color-white);
}

.contact p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: #bbb;
  font-size: 1.05rem;
}

.contact-links {
  margin-bottom: 1.5rem;
}

.contact-meta {
  font-size: 0.9rem;
  color: #888;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  padding: 2.5rem 0;
  background: var(--color-black);
  border-top: 1px solid #222;
  color: #999;
  font-size: 0.85rem;
}

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

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: #999;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--color-blue-light);
}

.footer-legal p {
  margin-bottom: 0.25rem;
}

.footer-reg {
  font-size: 0.8rem;
  color: #666;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

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

  h2 {
    font-size: 1.6rem;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
