/* ===== KAYRENIX STYLESHEET ===== */

/* ----- 1. Foundation ----- */
:root {
  --black: #000000;
  --surface: #0e0e10;
  --surface-2: #17171a;
  --line: #2a2a2f;
  --red: #e0162b;
  --red-bright: #ff3b4e;
  --silver: #d9dce1;
  --text: #f2f3f5;
  --muted: #a0a4ad;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;

  --radius: 14px;
  --max: 1160px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
  color: var(--muted);
  max-width: 62ch;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-head {
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--silver);
  color: var(--silver);
}

.btn-outline:hover {
  background: var(--silver);
  border-color: var(--silver);
  color: var(--black);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Keyboard focus and accessibility */
:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
/* ----- 2. Navigation ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(100% - 2.5rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a:not(.btn) {
  font-size: 0.95rem;
  color: var(--silver);
  position: relative;
  padding: 0.3rem 0;
}

.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s;
}

.nav-menu a:not(.btn):hover::after {
  width: 100%;
}

/* Menu button: hidden on large screens, shown on phones */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--silver);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ----- 3. Hero ----- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224, 22, 43, 0.34) 0%, rgba(224, 22, 43, 0.1) 38%, transparent 68%);
  pointer-events: none;
  animation: glow-breathe 7s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}

.hero-inner {
  position: relative;
  width: min(100% - 2.5rem, 820px);
  margin-inline: auto;
}

.hero-logo {
  width: min(340px, 70vw);
  margin: 0 auto 1.5rem;
  animation: logo-rise 1.1s ease-out both;
}

@keyframes logo-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.hero h1 {
  margin-bottom: 0.5em;
}

.hero-text {
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ----- Navigation on phones and tablets ----- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }

  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu li:last-child {
    border-bottom: 0;
    padding-top: 1rem;
  }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
  }
}/* ----- 4. About ----- */
.about {
  border-top: 1px solid var(--line);
}

.about-intro {
  max-width: 760px;
  margin-bottom: 3.5rem;
}

.about-intro p {
  font-size: 1.15rem;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.about-point {
  padding: 2rem 2rem 1rem 0;
}

.about-point + .about-point {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.about-point h3 {
  color: var(--silver);
}

/* ----- 5. Services ----- */
.services {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service {
  padding: 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}

.service:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.service h3 {
  color: var(--text);
}

.service p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* The featured service is wider and carries the red accent */
.service-featured {
  grid-column: 1 / -1;
  padding: 2.5rem;
  background:
    radial-gradient(ellipse at top left, rgba(224, 22, 43, 0.28), transparent 60%),
    var(--surface-2);
  border-color: var(--red);
}

.service-featured h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.service-featured p {
  font-size: 1.1rem;
  max-width: 56ch;
  color: var(--silver);
}

.services-cta {
  margin: 2.5rem 0 0;
  max-width: none;
}

.services-cta a {
  color: var(--red-bright);
  border-bottom: 1px solid currentColor;
}

.services-cta a:hover {
  color: var(--text);
}

/* ----- About and Services on tablets and phones ----- */
@media (max-width: 960px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .about-points {
    grid-template-columns: 1fr;
  }

  .about-point,
  .about-point + .about-point {
    padding: 1.75rem 0;
    border-left: 0;
  }

  .about-point + .about-point {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service-featured {
    padding: 1.75rem;
  }
}