/* =========================================================================
   Cortado Labs — placeholder stylesheet

   Intentionally simple and neutral. Real design direction (colors, type,
   imagery) will be provided later, so everything visual is centralized in
   the CSS custom properties below to make it cheap to swap out.
   Do not over-invest in visual polish here. See CLAUDE.md.
   ========================================================================= */

:root {
  /* Palette (neutral placeholder) */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f8;
  --color-text: #1c1f23;
  --color-muted: #5b6066;
  --color-border: #e3e5e8;
  --color-accent: #1a5c4a; /* muted padel-court green as a mild placeholder */
  --color-accent-contrast: #ffffff;

  /* Layout */
  --maxw: 1080px;
  --maxw-narrow: 720px;
  --space: 1rem;
  --radius: 8px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: var(--maxw-narrow);
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-lead {
  max-width: 60ch;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
}

.site-nav .nav-cta {
  padding: 0.45rem 0.9rem;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  text-decoration: none;
  opacity: 0.92;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
}

/* ----- Hero ----- */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  max-width: 16ch;
}

.hero-lead {
  max-width: 58ch;
  font-size: 1.15rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

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

/* ----- Cards ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
}

/* ----- Contact ----- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.contact-form .btn {
  align-self: start;
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status.is-success {
  color: var(--color-accent);
}

.form-status.is-error {
  color: #b3261e;
}

/* ----- Legal pages ----- */
.legal h1 {
  margin-bottom: 0.25rem;
}

.legal-meta {
  color: var(--color-muted);
  margin: 0 0 2rem;
  font-size: 0.9rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal ul {
  padding-left: 1.25rem;
}

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

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 1.5rem 0;
  margin-top: 1rem;
}

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

.footer-brand {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

.footer-nav a {
  color: var(--color-text);
  font-size: 0.9rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */

/* Tablet */
@media (max-width: 860px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem;
  }

  /* Toggled open via js/main.js */
  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
  }

  .header-inner {
    position: relative;
  }

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

  .hero {
    padding: 3rem 0 2.5rem;
  }
}
