/* =========================
   FONT DECLARATION (SELF)
========================= */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =========================
   ROOT VARIABLES
========================= */

:root {
  --bg-color: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4b4e55;
  --accent-color: #9e1a3d;
  --border-color: #e5e5e5;
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --section-padding: 140px 5%;
}

/* =========================
   RESET
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   ACCESSIBILITY
========================= */

.skip-link {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 5%;
  top: 20px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--text-primary);
  color: var(--bg-color);
  z-index: 1000;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: var(--section-padding);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

/* =========================
   NAVIGATION
========================= */

header nav {
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
}

/* =========================
   BUTTON
========================= */

.btn {
  display: inline-block;
  background-color: var(--text-primary);
  color: var(--bg-color);
  padding: 18px 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

/* =========================
   HERO
========================= */

.hero {
  padding-top: 180px;
  padding-bottom: 180px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 30px;
  max-width: 900px;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 50px;
}

/* =========================
   GRID
========================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

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

/* =========================
   SECTION DETAILS
========================= */

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
}

.block-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--text-primary);
  display: inline-block;
  width: 100%;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.stack > * + * {
  margin-top: 24px;
}

/* =========================
   CREDIBILITY LIST
========================= */

.credibility-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
}

.credibility-list li {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 40px;
  align-items: start;
}

.credibility-list li strong {
  color: var(--text-primary);
  font-weight: 500;
}

.selective-note {
  margin-top: 40px;
  font-style: italic;
  color: var(--text-primary);
}

/* =========================
   CLOSING
========================= */

.closing {
  text-align: center;
  padding-top: 160px;
  padding-bottom: 160px;
  background-color: #fafafa;
}

.closing h2 {
  font-size: 3.5rem;
  margin-bottom: 30px;
}

.closing p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 60px 5%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .credibility-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  :root {
    --section-padding: 80px 5%;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

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