/* Kayma GmbH - one-page site
   Palette: deep charcoal #1F1F1F / #2B2B2B, copper #B5651D, off-white #F4F2EF
   Font: IBM Plex Sans (self-hosted)
*/

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #2B2B2B;
  --charcoal-deep: #1F1F1F;
  --charcoal-mid: #333333;
  --copper: #B5651D;
  --copper-hover: #c7772e;
  --white: #ffffff;
  --off-white: #f4f2ef;
  --muted-on-dark: #c8c4bf;
  --muted-on-light: #5c5c5c;
  --border-light: #e4dfd8;
  --border-dark: #3a3a3a;
  --max: 1100px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 7.25rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--charcoal);
}

.theme-dark a:hover {
  color: #f0ebe4;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--copper);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* Header - dark for depth */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 31, 31, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.95rem;
  min-height: 4.25rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-svg {
  display: block;
  width: clamp(140px, 22vw, 180px);
  height: auto;
}

.footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 0.75rem;
}


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

.nav a {
  color: #f0ebe4;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: #f0ebe4;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-secondary {
  background: transparent;
  color: #f0ebe4;
  border-color: rgba(240, 235, 228, 0.35);
}

.btn-secondary:hover {
  border-color: var(--copper);
  color: var(--copper-hover);
}

.btn-on-light {
  background: var(--charcoal-deep);
  color: var(--white);
}

.btn-on-light:hover {
  background: var(--copper);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--border-light);
}

.btn-outline-light:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(5rem, 14vw, 8.5rem) clamp(4rem, 11vw, 7rem);
  text-align: center;
  color: #f7f4f0;
  background-color: var(--charcoal-deep);
  background-image: linear-gradient(rgba(20, 20, 20, 0.78), rgba(20, 20, 20, 0.86)),
    url("assets/img/arch.webp");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 auto 1.15rem;
  max-width: 16ch;
  font-size: clamp(2.15rem, 5.2vw, 3.45rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-lead {
  margin: 0 auto 2.25rem;
  max-width: 38rem;
  color: var(--muted-on-dark);
  font-size: 1.125rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-hover);
}

/* Sections */
.section {
  padding-block: var(--section-y);
}

.section-dark {
  background: var(--charcoal-deep);
  color: #f7f4f0;
}

.section-dark .section-head h2 {
  color: #ffffff;
}

.section-dark .section-head p {
  color: var(--muted-on-dark);
}

.section-light {
  background: var(--off-white);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--muted-on-light);
}

.placeholder {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(181, 101, 29, 0.18);
  color: #d4893a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.section-dark .placeholder {
  background: rgba(181, 101, 29, 0.28);
  color: #e09a4d;
}

/* Services */
.services-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: stretch;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: var(--charcoal-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 600;
  color: #ffffff;
}

/* Cards side by side: reserve two title lines so card bodies line up */
@media (min-width: 901px) {
  .card h3 {
    min-height: calc(2 * 1.3em);
  }
}

.card p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.96rem;
}

.card-icon {
  width: 2rem;
  height: 0.32rem;
  margin-bottom: 1rem;
  border-radius: 2px;
  background: var(--copper);
}

.card:nth-child(2) .card-icon { width: 2.4rem; }
.card:nth-child(3) .card-icon { width: 1.7rem; }
.card:nth-child(4) .card-icon { width: 2.1rem; }

.services-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 100%;
  background: var(--charcoal-mid);
}

.services-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.services-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.45), transparent 55%);
  pointer-events: none;
}

/* Photo band */
.photo-band {
  position: relative;
  min-height: clamp(220px, 32vw, 360px);
  background-color: var(--charcoal-deep);
  background-image: linear-gradient(rgba(20, 20, 20, 0.35), rgba(20, 20, 20, 0.55)),
    url("assets/img/landscape.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.photo-band-caption {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin: 0 auto;
  padding-block: 1.5rem;
  color: #f0ebe4;
  font-size: 0.92rem;
}

.photo-band-caption strong {
  color: var(--copper-hover);
  font-weight: 600;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: var(--muted-on-light);
}

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

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--charcoal-mid);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.about-aside {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about-aside h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.about-aside p {
  margin: 0;
  color: var(--muted-on-light);
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-intro p {
  margin: 0 0 1.25rem;
  color: var(--muted-on-light);
}

.contact-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-meta li {
  margin-bottom: 0.65rem;
  color: var(--muted-on-light);
}

.contact-meta strong {
  display: block;
  color: var(--charcoal);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.contact-address {
  font-style: normal;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.92rem;
}

.optional {
  color: var(--muted-on-light);
  font-weight: 400;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.15s ease;
}

.form-row input:hover,
.form-row textarea:hover {
  border-color: #cfc9c2;
}

.form-row textarea {
  min-height: 9rem;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted-on-light);
}

/* Footer */
.site-footer {
  background: var(--charcoal-deep);
  border-top: 1px solid var(--border-dark);
  padding-block: 2.25rem;
  color: var(--muted-on-dark);
  font-size: 0.92rem;
}

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

.site-footer a {
  color: #e0d9d0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--copper-hover);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Simple / legal pages */
.simple-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: 4rem;
  background: var(--off-white);
}

.simple-card {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.simple-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.simple-card p {
  margin: 0 0 1.5rem;
  color: var(--muted-on-light);
}

.legal-page {
  padding-block: 3rem 5rem;
  background: var(--off-white);
}

.legal-page h1 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal-page p {
  color: var(--muted-on-light);
  max-width: 42rem;
}

/* Responsive */
@media (max-width: 900px) {
  .services-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .services-visual {
    min-height: 220px;
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal-deep);
    border-bottom: 1px solid var(--border-dark);
    padding: 0.5rem var(--pad) 1rem;
  }

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

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    text-align: left;
  }


  .hero h1 {
    max-width: none;
  }

  .hero-lead {
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Legal pages: lists and details */
.legal-page ul {
  color: var(--muted-on-light);
  max-width: 42rem;
  padding-left: 1.2rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

.legal-updated {
  font-size: 0.9rem;
}

.form-note a {
  color: inherit;
}
