/* ==========================================================================
   DANDI ART — Design System & Stylesheet
   Mô hình giáo dục mỹ thuật sáng tạo cho trẻ 3–6 tuổi
   Bảng màu chuẩn theo Brand Guidelines của Dandi Art:
   - Bright Sun (Vàng rực rỡ): #FFCB04
   - Warm Orange (Cam ấm):     #F7941D
   - Fresh Green (Xanh tươi):  #00AC82
   - Coral Red (Đỏ san hô):    #F04E5E
   Typography: 'Be Vietnam Pro' (Tiêu đề) & 'Inter' (Nội dung)
   ========================================================================== */

:root {
  /* Brand Palette */
  --sun: #FFCB04;
  --sun-rgb: 255, 203, 4;
  --orange: #F7941D;
  --orange-rgb: 247, 148, 29;
  --green: #00AC82;
  --green-rgb: 0, 172, 130;
  --coral: #F04E5E;
  --coral-rgb: 240, 78, 94;
  --coral2: #F7941D; /* Tương thích ngược */
  --teal: #00AC82;   /* Tương thích ngược */

  /* Neutrals & Surfaces */
  --bg: #FFFDF9;
  --bg-card: #FFFFFF;
  --bg-warm: #FFF8EE;
  --card: #FFFFFF;
  --ink: #1A232C;
  --ink-light: #374151;
  --muted: #64748B;
  --line: #EFE7DC;
  --line-light: #F7F2EB;

  /* Typography */
  --font-heading: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  /* Curves & Radii */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius: 26px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(70, 50, 30, 0.04);
  --shadow-sm: 0 6px 18px rgba(70, 50, 30, 0.06);
  --shadow: 0 12px 32px rgba(70, 50, 30, 0.07);
  --shadow-md: 0 16px 38px -8px rgba(70, 50, 30, 0.1), 0 4px 12px rgba(70, 50, 30, 0.03);
  --shadow-lg: 0 24px 50px -10px rgba(70, 50, 30, 0.15), 0 8px 20px rgba(70, 50, 30, 0.04);
  --shadow-orange: 0 12px 28px -4px rgba(247, 148, 29, 0.38);

  /* Layout */
  --max: 1140px;
  --transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: -0.018em;
}

h1 {
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 0.35em;
}

p {
  margin: 0 0 1.1em;
}

p b, li b {
  color: var(--ink);
  font-weight: 600;
}

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

a:hover {
  color: var(--orange);
}

em {
  font-style: normal;
  color: var(--orange);
  background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.center {
  text-align: center;
}

.tiny {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c95d00;
  background: rgba(var(--orange-rgb), 0.1);
  border: 1px solid rgba(var(--orange-rgb), 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2.5px rgba(var(--orange-rgb), 0.28);
}

.eyebrow.center {
  display: table;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(239, 231, 220, 0.88);
  box-shadow: 0 2px 14px rgba(70, 50, 30, 0.02);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition);
}

.brand:hover {
  transform: scale(1.02);
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav nav a {
  color: var(--ink-light);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background-color var(--transition);
}

.nav nav a:hover {
  color: var(--orange);
  background-color: rgba(var(--orange-rgb), 0.08);
}

.nav nav a.cta {
  background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 4px 14px rgba(var(--orange-rgb), 0.32);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  margin-left: 8px;
}

.nav nav a.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--orange-rgb), 0.44);
  filter: brightness(1.04);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(52px, 6.5vw, 84px) 0 clamp(44px, 5.5vw, 68px);
  background:
    radial-gradient(900px 520px at 90% 5%, rgba(var(--sun-rgb), 0.18) 0%, rgba(var(--sun-rgb), 0) 65%),
    radial-gradient(750px 420px at 85% -15%, rgba(var(--orange-rgb), 0.15) 0%, rgba(var(--orange-rgb), 0) 60%),
    radial-gradient(650px 420px at -5% 35%, rgba(var(--green-rgb), 0.10) 0%, rgba(var(--green-rgb), 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 253, 249, 1) 100%);
  overflow: hidden;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.lead {
  font-size: clamp(16.5px, 1.7vw, 18px);
  color: #4b5563;
  line-height: 1.72;
  margin-bottom: 22px;
}

.btns {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn.primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(var(--orange-rgb), 0.46);
  filter: brightness(1.05);
}

.btn.ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.btn.ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero .tiny {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #78716c;
  background: rgba(255, 255, 255, 0.75);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(239, 231, 220, 0.85);
  box-shadow: var(--shadow-xs);
}

.hero-art {
  position: relative;
  z-index: 1;
}

/* Artistic decorative backdrop card */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -14px -12px 12px 14px;
  background: linear-gradient(135deg, rgba(var(--sun-rgb), 0.38) 0%, rgba(var(--orange-rgb), 0.24) 100%);
  border-radius: var(--radius-xl);
  transform: rotate(-2.5deg);
  z-index: -1;
  transition: transform 0.4s ease;
}

.hero-art:hover::before {
  transform: rotate(-3.8deg) scale(1.02);
}

.hero-art img {
  width: 100%;
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 4px solid #ffffff;
  background-color: #ffffff;
  transition: transform 0.4s ease;
}

.badge {
  position: absolute;
  left: -12px;
  bottom: 24px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow-md);
  color: var(--orange);
  border: 2px solid rgba(255, 203, 4, 0.4);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.badge span {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   Sections Layout & Common Styles
   ========================================================================== */
.sec {
  padding: clamp(56px, 7vw, 92px) 0;
  position: relative;
}

.sec.alt {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5.5vw, 64px);
  align-items: center;
}

.two img.round {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid #ffffff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.two img.round:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quote {
  background: linear-gradient(135deg, #FFF9F2 0%, #FFF3E2 100%);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px;
  font-style: italic;
  color: #475569;
  font-size: 15.5px;
  line-height: 1.68;
  box-shadow: var(--shadow-xs);
  margin-top: 22px;
}

/* ==========================================================================
   Mô hình giáo dục (.cards3, .card, .ico)
   ========================================================================== */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background-color var(--transition);
}

.cards3 .card:nth-child(1)::before { background: var(--orange); }
.cards3 .card:nth-child(2)::before { background: var(--green); }
.cards3 .card:nth-child(3)::before { background: var(--coral); }

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--orange-rgb), 0.35);
}

.card .ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  font-family: var(--font-emoji);
  background: #FFF7EC;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.12);
  transition: transform var(--transition);
}

.cards3 .card:nth-child(2) .ico {
  background: #E8F8F3;
  box-shadow: 0 4px 12px rgba(var(--green-rgb), 0.12);
}

.cards3 .card:nth-child(3) .ico {
  background: #FFF0F2;
  box-shadow: 0 4px 12px rgba(var(--coral-rgb), 0.12);
}

.card:hover .ico {
  transform: scale(1.12) rotate(4deg);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: #526071;
  font-size: 15px;
  line-height: 1.68;
}

/* ==========================================================================
   Điểm nổi bật (.cards4, .mini)
   ========================================================================== */
.cards4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.mini {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--green-rgb), 0.35);
}

.mini h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini h4::before {
  content: "✨";
  font-size: 15px;
  font-family: var(--font-emoji);
}

.mini p {
  margin: 0;
  color: #526071;
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   Chương trình học (.facts, .goals)
   ========================================================================== */
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.facts li {
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: #4b5563;
  line-height: 1.55;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), transform var(--transition);
}

.facts li:hover {
  border-color: rgba(var(--orange-rgb), 0.4);
  transform: translateX(3px);
}

.facts li b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

.goals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.goals span {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  font-family: var(--font-heading);
}

.goals span:hover {
  background: #FFF8EE;
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.15);
}

/* ==========================================================================
   Đội ngũ & Cố vấn (.person)
   ========================================================================== */
.two .person {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.two .person:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.person h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.person .muted {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
  display: inline-block;
  background: rgba(var(--green-rgb), 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  align-self: flex-start;
}

.person:nth-child(2) .muted {
  color: var(--orange);
  background: rgba(var(--orange-rgb), 0.1);
}

.person ul {
  padding-left: 20px;
  margin: 0 0 16px;
  color: #526071;
  line-height: 1.68;
}

.person li {
  margin-bottom: 8px;
  font-size: 14.5px;
}

.person p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.68;
}

.person .quote {
  margin-top: auto;
  border-left-color: var(--green);
  background: linear-gradient(135deg, #F0FAF7 0%, #E6F7F2 100%);
  font-size: 14.5px;
}

/* ==========================================================================
   Gallery Lớp Học (.gallery)
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: var(--shadow-sm);
  border: 3px solid #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  background-color: #f7f2ea;
}

.gallery img:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 16px 36px -6px rgba(var(--orange-rgb), 0.3);
  border-color: #FFF2DF;
  z-index: 2;
}

/* ==========================================================================
   Liên hệ & Form (.contact, .form)
   ========================================================================== */
.contact {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  display: grid;
  gap: 12px;
}

.contact li {
  padding: 13px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: #475569;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.contact li:hover {
  border-color: var(--orange);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact li b {
  color: var(--ink);
}

.form {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: #374151;
  font-weight: 600;
  font-family: var(--font-heading);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid #E5DFD4;
  border-radius: var(--radius-sm);
  background: #FAF8F4;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  width: 100%;
}

.form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F7941D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(var(--orange-rgb), 0.16);
}

.form button.btn.primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #182026;
  color: #A3B0BF;
  padding: 52px 0 44px;
  margin-top: 30px;
}

.foot {
  text-align: center;
}

.flogo {
  height: 44px;
  width: auto;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition);
}

.flogo:hover {
  transform: scale(1.03);
}

footer p {
  color: #D1D9E2;
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 10px;
}

footer .tiny {
  color: #8899AB;
  font-size: 13px;
}

footer a {
  color: var(--sun);
  transition: color var(--transition);
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-in,
  .two {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cards3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cards4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .nav nav a:not(.cta) {
    display: none;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero-art {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .sec {
    padding: 48px 0;
  }

  .badge {
    left: 8px;
    bottom: 16px;
    font-size: 22px;
    padding: 10px 16px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .nav-in {
    min-height: 64px;
  }

  .brand img {
    height: 38px;
  }

  .nav nav a.cta {
    padding: 8px 16px;
    font-size: 13.5px;
  }

  h1 {
    font-size: 32px;
    letter-spacing: -0.02em;
  }

  .lead {
    font-size: 16px;
  }

  .btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero .tiny {
    font-size: 12.5px;
    padding: 6px 12px;
  }

  .form {
    padding: 24px 18px;
  }

  /* Prevent zoom on iOS input focus */
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
  }

  .gallery {
    gap: 10px;
  }

  .gallery img {
    border-radius: 14px;
  }

  .badge {
    font-size: 20px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
  }
}
