/* ==========================================================================
   KADOR Creative Marketing Agency — Dark Editorial
   #0B0C0C · #F2F1ED · #0F2C59
   ========================================================================== */

:root {
  --black: #0B0C0C;
  --dark-soft: #111313;
  --off-white: #F2F1ED;
  --warm-white: #E8E6DF;
  --muted-grey: #8A8F8F;
  --line-subtle: rgba(242, 241, 237, 0.08);
  --line-dark: rgba(242, 241, 237, 0.16);
  --navy: #0F2C59;
  --navy-hover: #163d75;

  --bg-page: #0B0C0C;
  --bg-soft: #111313;
  --bg-footer: #070808;
  --text-heading: #F2F1ED;
  --text-body: rgba(242, 241, 237, 0.76);
  --text-label: rgba(242, 241, 237, 0.5);
  --text-muted: rgba(242, 241, 237, 0.5);

  --glass-bg: rgba(242, 241, 237, 0.055);
  --glass-bg-hover: rgba(242, 241, 237, 0.085);
  --glass-border: rgba(242, 241, 237, 0.16);
  --glass-border-hover: rgba(242, 241, 237, 0.26);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  --glass-fallback-bg: rgba(242, 241, 237, 0.07);

  --font-heading: 'Prata', Georgia, serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --header-h: 72px;
  --section-pad: clamp(3rem, 5vw, 5rem);
  --section-pad-mobile: clamp(3rem, 7vw, 4rem);
  --line: var(--line-dark);
  --ease: 220ms ease;
  --radius: 10px;
  --radius-capsule: clamp(22px, 2vw, 26px);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .btn--primary:hover,
  .btn--primary:focus-visible,
  .btn--secondary:hover,
  .btn--secondary:focus-visible,
  .capsule:hover {
    transform: none;
  }
}

body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

.container {
  width: min(var(--container), 100% - clamp(1.5rem, 5vw, 4rem));
  margin-inline: auto;
}

/* --- Section rhythm --- */
.section--page {
  background: var(--bg-page);
}

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-subtle);
}

.label {
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.85rem;
}

/* --- Buttons (premium frosted glass) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(
    180deg,
    rgba(15, 44, 89, 0.72) 0%,
    rgba(15, 44, 89, 0.48) 100%
  );
  border-color: rgba(242, 241, 237, 0.24);
  color: #F2F1ED;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 16px 38px rgba(15, 44, 89, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(
    180deg,
    rgba(22, 62, 122, 0.78) 0%,
    rgba(15, 44, 89, 0.56) 100%
  );
  border-color: rgba(242, 241, 237, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 48px rgba(15, 44, 89, 0.34);
  transform: translateY(-2px);
}

.btn--secondary {
  background: rgba(242, 241, 237, 0.045);
  border-color: rgba(242, 241, 237, 0.18);
  color: #F2F1ED;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(242, 241, 237, 0.075);
  border-color: rgba(242, 241, 237, 0.3);
  transform: translateY(-2px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn--primary {
    background: linear-gradient(
      180deg,
      rgba(15, 44, 89, 0.88) 0%,
      rgba(15, 44, 89, 0.72) 100%
    );
  }

  .btn--secondary {
    background: rgba(242, 241, 237, 0.07);
  }
}

.btn--sm {
  padding: 0.7rem 1.25rem;
  font-size: 0.8125rem;
}

/* --- Media --- */
.media {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 12, 12, 0.94);
  backdrop-filter: blur(12px);
  transition: border-color var(--ease);
}

.header--scrolled {
  border-bottom: 1px solid var(--line-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo__img {
  width: auto;
  height: clamp(2rem, 4vw, 2.75rem);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-heading);
  transition: color var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--warm-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-heading);
  transition: transform var(--ease), opacity var(--ease);
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Glass capsules (About + Services) --- */
.capsule-row {
  list-style: none;
  display: grid;
  gap: clamp(1rem, 1.75vw, 1.25rem);
}

.capsule {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.35rem, 2.2vw, 1.65rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-capsule);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--glass-inset), var(--glass-shadow);
  transition: all var(--ease);
}

.capsule:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .capsule {
    background: var(--glass-fallback-bg);
  }

  .capsule:hover {
    background: rgba(242, 241, 237, 0.09);
  }
}

.capsule__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.5vw, 1.35rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-heading);
}

.capsule__text {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.62;
  color: var(--text-body);
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--header-h) + clamp(1.25rem, 3vw, 2rem));
  padding-bottom: clamp(2.25rem, 4vw, 3.75rem);
  border-bottom: 1px solid var(--line-subtle);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.hero__content {
  max-width: 34rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.hero__title-line {
  display: block;
}

.hero__title-line--last {
  white-space: nowrap;
}

.hero__lead {
  color: var(--text-body);
  margin-bottom: 0.85rem;
  max-width: 30rem;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.62;
}

.hero__capabilities {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__figure {
  margin: 0;
}

.hero__image {
  width: 100%;
  max-height: min(580px, 64vh);
  border-radius: var(--radius);
}

/* --- About --- */
.about {
  padding-top: var(--section-pad);
  padding-bottom: calc(var(--section-pad) * 0.85);
}

.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.about__figure {
  margin: 0;
}

.about__statement {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--text-heading);
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
  max-width: 22ch;
}

.about__lead {
  color: var(--text-body);
  max-width: 36rem;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
}

.about__capsules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about__image {
  width: 100%;
  max-height: min(420px, 50vh);
  border-radius: var(--radius);
}

/* --- Services (glass capsules) --- */
.services {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.services__header {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.services__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text-heading);
  margin-bottom: 0.65rem;
}

.services__intro {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-body);
  max-width: 36rem;
}

.services__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services__grid .capsule__title {
  font-size: clamp(1.22rem, 1.55vw, 1.4rem);
}

.services__grid .capsule {
  min-height: 100%;
}

/* --- Contact --- */
.contact {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line-subtle);
}

.contact--cta .contact__title {
  max-width: 18ch;
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  color: var(--text-heading);
}

.contact__text {
  color: var(--text-body);
  max-width: 30rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact__detail-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 0.3rem;
}

.contact__link {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  color: var(--text-heading);
  transition: color var(--ease);
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--warm-white);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__image {
  width: 100%;
  max-height: min(500px, 58vh);
  border-radius: var(--radius);
}

/* --- Footer --- */
.footer {
  background: var(--bg-footer);
  color: var(--off-white);
  padding: clamp(1.25rem, 2.2vw, 1.5rem) 0;
  border-top: 1px solid var(--line-subtle);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
}

.footer__logo {
  width: auto;
  height: clamp(1.25rem, 2.2vw, 1.5rem);
  margin-bottom: 0.35rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--muted-grey);
}

.footer__capabilities {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(242, 241, 237, 0.42);
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 0.15rem;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(242, 241, 237, 0.45);
}

.footer__privacy {
  font-size: 0.8125rem;
  color: rgba(242, 241, 237, 0.45);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--ease);
}

.footer__privacy:hover,
.footer__privacy:focus-visible {
  color: rgba(242, 241, 237, 0.7);
}

/* --- Privacy page --- */
.page-privacy {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  min-height: 60vh;
}

.page-privacy__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.page-privacy__content {
  max-width: 38rem;
}

.page-privacy__content p {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
}

.page-privacy__back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-heading);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-privacy__back:hover,
.page-privacy__back:focus-visible {
  color: var(--warm-white);
}

/* --- Scroll offset --- */
section[id] {
  scroll-margin-top: var(--header-h);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .hero__layout,
  .about__intro,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .about__figure {
    order: -1;
  }

  .about__statement {
    max-width: none;
  }

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

  .contact__figure {
    order: -1;
  }

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

@media (max-width: 767px) {
  :root {
    --header-h: 72px;
    --section-pad: var(--section-pad-mobile);
  }

  .hero {
    padding-bottom: var(--section-pad-mobile);
  }

  .hero__title-line--last {
    white-space: normal;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 2rem 1.5rem;
    background: rgba(11, 12, 12, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-subtle);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--ease), opacity var(--ease), visibility var(--ease);
  }

  body.nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.5rem;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .header__cta {
    width: 100%;
  }

  .hero__actions,
  .contact__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .contact__actions .btn {
    width: 100%;
  }
}
