/*
 * ============================================================
 * landing.css — styles for the production landing page
 * src/styles/landing.css
 *
 * All design tokens (colours, fonts, spacing) are defined
 * as CSS custom properties in :root so you only need to
 * change them in one place.
 *
 * Sections:
 *   1. Reset
 *   2. Design tokens (colours, fonts)
 *   3. Base (html, body)
 *   4. Header / logo mark
 *   5. Main two-column layout
 *   6. Left column — title, subtitle, tagline
 *   7. Right column — contact form
 *   8. Footer
 *   9. Animations
 *  10. Responsive (mobile)
 * ============================================================
 */


/* ============================================================
   1. RESET
   Zero out browser default margins and make box-sizing sane.
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ============================================================
   2. DESIGN TOKENS
   Change colours and fonts here — nowhere else.

   Colour scale (dark to light):
     --bg      near-black background
     --bg-line separator line colour (semi-transparent accent)
     --acc     brand accent — burnt amber
     --warm    primary text — warm off-white
     --mid     secondary text — readable mid-tone
     --dim     tertiary text — muted
     --faint   ghost text — placeholders, footnotes

   Fonts:
     --serif   Cormorant Garamond — headings, taglines, italic moments
     --sans    DM Sans — UI text, labels, body copy
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:           #0C0C0B;
  --bg-glow:      rgba(200, 98, 42, 0.05); /* subtle radial accent glow */

  /* Brand accent */
  --acc:          #C8622A;
  --acc-line:     rgba(200, 98, 42, 0.18); /* for borders and separators */
  --acc-dim:      rgba(200, 98, 42, 0.25); /* for hover states */

  /* Text scale */
  --warm:         #EDE9E0; /* primary — headings, important labels */
  --mid:          #C8C4BC; /* secondary — tagline, subtitle */
  --dim:          #9A9690; /* tertiary — form labels */
  --faint:        #6A6760; /* ghost — placeholders, footer copy */
  --error:        #d45c4b; /* validation error */

  /* Field borders */
  --field-border:        rgba(200, 196, 188, 0.28);
  --field-border-focus:  var(--acc);

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', sans-serif;

  /* Spacing — page padding, responsive via clamp */
  --pad-x: clamp(2.5rem, 8vw, 7rem);  /* horizontal page margin */
  --pad-y: clamp(1.8rem, 5vh, 4rem);  /* vertical page margin */
}


/* ============================================================
   3. BASE
   Full-viewport layout: header at top, main fills space,
   footer anchored at bottom.
   ============================================================ */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Use token-based padding so margins are consistent */
  padding: var(--pad-y) var(--pad-x);

  background: var(--bg);
  color: var(--warm);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle warm glow in the background — purely decorative */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 70% at 70% 30%,
    var(--bg-glow) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* All direct children of body sit above the glow */
body > * { position: relative; z-index: 1; }


/* ============================================================
   4. HEADER / LOGO MARK
   Contains the logo mark (SVG block + wordmark text).
   Separated from main content by a thin accent line.
   ============================================================ */
header {
  display: flex;
  align-items: center;
  padding-bottom: clamp(1.2rem, 3vh, 2.5rem);
  border-bottom: 1px solid var(--acc-line);
}

/* The clickable logo unit — SVG block + stacked text */
.mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

/* SVG logo block — size set here, not on the SVG itself */
.mark-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
}

/* Stacked wordmark text */
.mark-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

/* "Continuo Films" — primary wordmark */
.mark-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--warm);
}

/* "Concert video production · Brussels" — small sub-label */
.mark-sub {
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--acc);
}


/* ============================================================
   5. MAIN — TWO-COLUMN LAYOUT
   Left half: brand identity (title, subtitle, tagline)
   Right half: contact form
   Collapses to single column on mobile.
   ============================================================ */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(3rem, 8vh, 6rem) 0;
}


/* ============================================================
   6. LEFT COLUMN — title, subtitle, tagline
   ============================================================ */
.left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Main title — "Continuo / Films" */
.left h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--warm);
}

/* Italic accent on "Films" */
.left h1 em {
  font-style: italic;
  color: var(--acc);
}

/* "Concert video production" — spaced uppercase descriptor */
.subtitle {
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.6;
}

/* "by musicians, for musicians" — italic serif tagline */
.tagline {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-style: italic;
  color: var(--mid);
  line-height: 1.45;
}


/* ============================================================
   7. RIGHT COLUMN — contact form
   Underline-only fields, no visible boxes.
   Labels sit above, animate to accent on focus.
   ============================================================ */
.right {
  display: flex;
  flex-direction: column;
}

/* Section label above the form: "Get in touch" */
.contact-label {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: inherit;
  /* color: var(--dim); */
  margin-bottom: 1.75rem;
}

/* Form — stacks fields vertically */
.cform {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

/* Each field: label + input stacked */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Field label — animates to accent when field is focused */
.field label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s ease;
}

.field:focus-within label {
  color: var(--acc);
}

/* Shared input / textarea styles — no box, underline only */
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--field-border);
  padding: 0.55rem 0;
  color: var(--warm);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  border-radius: 0; /* prevent iOS rounding */
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
  opacity: 0.75;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--field-border-focus);
}

/* Textarea — fixed min height, no manual resize handle */
.field textarea {
  resize: none;
  min-height: 80px;
  line-height: 1.65;
}

/* Two fields side by side (Name + Email) */
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Submit button — text + animated arrow, no box */
.btn-send {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--warm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  margin-top: 0.25rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

/* Arrow slides right on hover */
.btn-send::after {
  content: '→';
  font-size: 1rem;
  color: var(--acc);
}

.btn-send:hover {
  gap: 1.1rem;
  color: var(--acc);
}

.contact-backdrop { display: none; }
.contact-form-header { display: block; }

/* Validation error states */
.field--error label {
  color: var(--error);
}
.field--error input,
.field--error textarea {
  border-bottom-color: var(--error);
}
.field-error-msg {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--error);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.field--error .field-error-msg {
  max-height: 1.5rem;
  padding-top: 0.25rem;
}

/* Success message — fades in after form submit */
.fsuccess {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.fsuccess-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--acc);
}
.fsuccess-sub {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.contact-form-full {
  display: block;
}

.contact-form-mobile {
  display: none;
}

  .contact-form-header-title {
    font-family: var(--sans);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    /* color: var(--); */
  }

.contact-direct {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-direct-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  font-style: italic;
}

.contact-direct-email {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--warm);
  text-decoration: none;
  border-bottom: 1px solid var(--acc-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  width: fit-content;
}

.contact-direct-email:hover {
  color: var(--acc);
  border-color: var(--acc);
}

/* ============================================================
   8. FOOTER
   Two items: copyright left, "coming soon" right.
   Separated from main by a thin accent line.
   ============================================================ */
footer {
  padding-top: clamp(1.2rem, 3vh, 2rem);
  border-top: 1px solid var(--acc-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--faint);
  letter-spacing: 0.06em;
}

.footer-soon {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--faint);
}


/* ============================================================
   9. ANIMATIONS
   Fade + rise — applied to header, left column, right column,
   and footer with staggered delays (set inline via style= or
   a separate animation-delay on each element).
   ============================================================ */
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation helper classes — apply to each animated element */
.anim { opacity: 0; animation: up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-1 { animation-delay: 0.1s; }
.anim-2 { animation-delay: 0.3s; }
.anim-3 { animation-delay: 0.55s; }
.anim-4 { animation-delay: 0.8s; }


/* ============================================================
   10. RESPONSIVE
   Single column on mobile — form stacks below title.
   ============================================================ */
@media (max-width: 780px) {
  /* Reduce horizontal padding on small screens */
  :root {
    --pad-x: 1.8rem;
    --pad-y: 1.6rem;
  }

  /* Stack columns vertically */
  main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0;
  }

  /* Name + Email stack vertically on mobile */
  .frow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Footer stacks on small screens */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  /* "Get in touch" — clear outlined CTA button */
  .contact-label {
    cursor: pointer;
    width: 100%;
    border: 1px solid var(--acc);
    padding: 0.9rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--acc);
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    margin-bottom: 0;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .contact-label-arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
  }

  .contact-label:active {
    background: var(--acc-dim);
  }

  /* Dim backdrop behind the panel */
  .contact-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 11, 0.78);
    opacity: 0;
    pointer-events: none;
    z-index: 99;
    transition: opacity 0.3s ease;
  }

  body.form-open .contact-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Panel slides up from bottom */
  .contact-form-mobile {
    display: block;
  }

  .contact-form-full {
    display: none;
  }

  .contact-form-body {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 86vh;
    background: var(--bg);
    border-top: 2px solid var(--acc);
    z-index: 100;
    overflow-y: auto;
    padding: 1.75rem 1.8rem 3rem;
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.form-open .contact-form-body {
    transform: translateY(0);
  }

  /* Panel header: title + close button */
  .contact-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--acc-line);
  }

  .contact-form-header-title {
    font-family: var(--sans);
    font-size: 1rem;
    gap: 0.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--dim);
  }

  .contact-close {
    display: block;
    appearance: none;
    background: none;
    border: 1px solid var(--acc-line);
    color: var(--dim);
    font-size: 0.9rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .contact-close:hover {
    color: var(--warm);
    border-color: var(--warm);
  }

  .subtitle {
    margin-top: 0;
    margin-bottom: 1.25rem;
  }
  .left {
    gap: 0.75rem;
  }
}
