/* Patio Language School — brand tokens (see Brief Style Guide PDF) */
:root {
  --praia: #C19D5F;
  --terracota: #B8593A;
  --mar: #617C7B;
  --chocolate: #2B1F18;
  --galao: #726651;
  --cream: #FBF6EE;
  --max-width: 1120px;

  /* Headlines: DM Serif Display (elegant editorial serif). The brand's original
     Duke Fill is a licensed font — swap it in here if/when a web license is bought. */
  --font-headline: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--chocolate);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 400; /* DM Serif Display ships at 400; it's already heavy */
  letter-spacing: 0;
  margin: 0 0 0.5em;
  color: var(--chocolate);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--terracota); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid rgba(43,31,24,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 42px; width: auto; display: block; }

.brand-name {
  font-family: var(--font-headline);
  color: var(--chocolate);
  font-size: 1rem;
  line-height: 1.1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--chocolate);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.15s ease;
}

nav a:hover, nav a.active {
  border-color: var(--terracota);
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; }
  nav ul { flex-wrap: wrap; gap: 16px 20px; width: 100%; padding-top: 10px; }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, #F3ECDD 100%);
  padding: 72px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-mark { width: 100%; max-width: 320px; justify-self: center; }

.eyebrow {
  display: inline-block;
  color: var(--terracota);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.lede { font-size: 1.15rem; color: var(--galao); max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--terracota);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--chocolate);
  border: 2px solid var(--chocolate);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Sections */
section { padding: 64px 0; }

.section-alt { background: #F3ECDD; }

.section-dark {
  background: var(--chocolate);
  color: #F3ECDD;
}

.section-dark h2, .section-dark h3 { color: var(--praia); }
.section-dark a { color: var(--praia); }

.section-intro { max-width: 68ch; margin-bottom: 40px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(43,31,24,0.06);
  border-top: 4px solid var(--terracota);
}

.card:nth-child(2) { border-top-color: var(--mar); }
.card:nth-child(3) { border-top-color: var(--praia); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--galao); margin-bottom: 0; }

/* Pricing */
.price-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.price-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  border: 2px solid rgba(43,31,24,0.08);
}

.price-card .amount {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  color: var(--terracota);
  display: block;
  margin: 6px 0;
}

.note-box {
  background: #F3ECDD;
  border-left: 4px solid var(--mar);
  padding: 18px 22px;
  border-radius: 6px;
  color: var(--galao);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--chocolate);
  color: #F3ECDD;
  padding: 48px 0 28px;
}

.site-footer a { color: var(--praia); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

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

.footer-grid img { height: 34px; margin-bottom: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.85rem;
  color: var(--galao);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icons { display: flex; gap: 14px; margin-top: 10px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #F3ECDD;
  font-size: 0.85rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

form { display: flex; flex-direction: column; gap: 16px; }

label { font-weight: 600; font-size: 0.9rem; }

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid rgba(43,31,24,0.15);
  background: #fff;
  color: var(--chocolate);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terracota);
}

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

.contact-detail { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-detail .icon { font-size: 1.3rem; }
