/* ============================================================
   TEMPERIS — Stylesheet
   Colours: Charcoal #0F1720 | Teal #2F7F8A | Orange #D96A2B
   Fonts: Sora (headings) | Inter (body)
   ============================================================ */

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

:root {
  --charcoal:  #0F1720;
  --charcoal2: #1A2535;
  --teal:      #2F7F8A;
  --teal-dim:  #234f57;
  --orange:    #D96A2B;
  --white:     #FFFFFF;
  --grey:      #8A9BAD;
  --grey-dim:  #3A4A5A;

  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1100px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 7rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* ---- Reveal animation ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, outline-offset 0.1s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

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

.btn--primary:hover {
  background: #c05a22;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--grey-dim);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---- Header ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1rem;
  background: transparent;
  transition: background 0.3s, border-bottom 0.3s;
}

.site-header.scrolled {
  background: rgba(15, 23, 32, 0.95);
  border-bottom: 1px solid var(--grey-dim);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand__logo {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand__logo.visible {
  opacity: 1;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(47, 127, 138, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(217, 106, 43, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .hero__logo {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-1 * var(--gutter));
  }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--grey);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Angled cut motif at base of hero */
.hero__cut {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--charcoal2);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---- Signals strip ---- */

.section--signals {
  background: var(--charcoal2);
  padding-block: 2.5rem;
}

.signals {
  display: flex;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}

.signal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.signal__mark {
  color: var(--teal);
  font-weight: 700;
}

/* ---- Contact section ---- */

.section--contact {
  padding-block: var(--section-pad);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

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

.contact-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-copy p {
  color: var(--grey);
  margin-bottom: 2rem;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-direct a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-direct a:hover {
  color: var(--white);
}

/* ---- Form ---- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
}

.contact-form input,
.contact-form textarea {
  background: var(--charcoal2);
  border: 1px solid var(--grey-dim);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--grey-dim);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.botcheck {
  display: none !important;
}

.btn--block {
  margin-top: 0.5rem;
}

.btn--block .btn__status {
  display: none;
}

.btn--block.loading .btn__label {
  display: none;
}

.btn--block.loading .btn__status {
  display: inline;
}

.form-feedback {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid;
}

.form-feedback--success {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(47, 127, 138, 0.08);
}

.form-feedback--error {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(217, 106, 43, 0.08);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--charcoal2);
  border-top: 1px solid var(--grey-dim);
  padding-block: 2rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__logo {
  height: 28px;
  width: auto;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--grey);
}
