/* Colours and font names come from assets/burntberry-tokens.css (brand package copy). */

@font-face {
  font-family: 'Inter';
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-weight: 700 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin.woff2) format('woff2');
}

:root {
  --cherry: var(--burntberry-color-blackCherry);
  --copper: var(--burntberry-color-warmCopper);
  --offwhite: var(--burntberry-color-warmOffWhite);
  --fog: var(--burntberry-color-fog);
  --slate: var(--burntberry-color-slate);
  --display: 'Manrope', Arial, Helvetica, sans-serif;
  --body: 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--cherry);
  font: 400 17px/1.6 var(--body);
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

h1, h2, h3, dt { font-family: var(--display); margin: 0; }
h1 { font-weight: 800; font-size: clamp(42px, 5.8vw, 80px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.section { padding-block: 96px; }
.section p { color: var(--slate); max-width: 460px; margin-top: 16px; }

.button {
  display: inline-block;
  background: var(--cherry);
  color: var(--offwhite);
  font: 600 17px/1.4 var(--body);
  text-decoration: none;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.button:hover { background: #55182f; }
.button-copper { background: var(--copper); color: var(--cherry); }
.button-copper:hover { background: #d98a5a; }
.button-block { display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 12px; }

/* Header and hero */
.hero-band { background: var(--cherry); color: var(--offwhite); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 24px; }
.logo { display: flex; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 32px; font-weight: 500; font-size: 16px; }
.site-header nav a { text-decoration: none; padding: 12px 0; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-block: 64px 112px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.lead { margin: 28px 0 40px; font-size: 21px; line-height: 1.5; color: var(--fog); max-width: 540px; }

.client-card { flex: 0 1 400px; min-width: 0; background: var(--offwhite); color: var(--cherry); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.client-card h2 { font-size: 28px; }
.client-card p { color: var(--slate); }
.small { font-size: 15px; }

/* Services */
.services { margin: 48px 0 0; border-bottom: 1px solid var(--fog); }
.services > div { display: grid; grid-template-columns: 320px minmax(0, 640px); gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--fog); }
.services > div:first-child { border-top: 2px solid var(--cherry); }
.services dt { font-weight: 700; font-size: 24px; }
.services dd { margin: 0; color: var(--slate); }

/* Portal */
.fog-band { background: var(--fog); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split .button { margin-top: 32px; }

.ticket { margin: 0; background: var(--offwhite); border-radius: 20px; padding: 32px; }
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--fog); }
.ticket h3 { font-weight: 700; font-size: 20px; }
.status { background: var(--cherry); color: var(--offwhite); font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.thread { display: flex; flex-direction: column; gap: 16px; padding-block: 20px; }
.message { max-width: 85%; }
.message-us { align-self: flex-end; }
.ticket .who { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.message-us .who { text-align: right; }
.ticket .bubble { margin: 0; max-width: none; color: var(--cherry); background: var(--fog); padding: 14px 18px; border-radius: 4px 16px 16px 16px; }
.message-us .bubble { background: var(--cherry); color: var(--offwhite); border-radius: 16px 4px 16px 16px; }
.ticket figcaption { font-size: 14px; color: var(--slate); }

/* Contact */
.section .contact-line { margin-top: 32px; color: var(--cherry); font: 700 24px/1.3 var(--display); overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--cherry); color: var(--fog); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 40px; }
.site-footer a { color: var(--offwhite); font-weight: 600; padding: 12px 0; }

@media (max-width: 720px) {
  .wrap { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 32px 64px; }
  .site-header nav { gap: 0 24px; }
  .services > div { grid-template-columns: 1fr; }
  .client-card, .ticket { padding: 24px; }
  .client-card { flex-basis: 100%; }
}
