/* ══════════════════════════════════════════════
   TouchCard — Shared Styles
   ══════════════════════════════════════════════ */

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

:root {
  --cream:      #FDF8F0;
  --cream-dark: #F2E8D9;
  --rose:       #C8873E;
  --rose-light: #F0D9B5;
  --rose-dark:  #9A6528;
  --sage:       #7A9E7E;
  --sage-light: #B5CFAF;
  --sage-dark:  #5A7E5E;
  --brown:      #4A3728;
  --brown-mid:  #7A5E48;
  --white:      #FFFFFF;
  --text:       #3A2E24;
  --text-mid:   #6B5A4A;
  --radius:     16px;
  --radius-sm:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Lora', serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Skip to content (a11y) ───────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--rose-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── Focus styles (a11y) ──────────────────────── */
:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Nav ──────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rose-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { font-size: 1.5rem; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.nav-links a:hover { color: var(--rose-dark); }
.nav-links a[aria-current="page"] { color: var(--rose-dark); }

.btn-nav {
  background: var(--rose);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-nav:hover { background: var(--rose-dark); }

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 8px 24px rgba(92,61,46,0.1);
  padding: 16px 24px 24px;
  z-index: 99;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav ul a {
  display: block;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.mobile-nav ul a:hover,
.mobile-nav ul a[aria-current="page"] {
  background: var(--cream);
  color: var(--rose-dark);
}

.mobile-nav .btn-nav {
  display: block;
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Buttons ──────────────────────────────────── */
.btn-primary {
  background: var(--rose);
  color: var(--white);
  padding: 15px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-full-width { width: 100%; font-size: 1.05rem; padding: 17px; }

.btn-secondary {
  background: transparent;
  color: var(--rose-dark);
  padding: 15px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--rose-light);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
  display: inline-block;
}

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

.btn-white {
  background: var(--white);
  color: var(--rose-dark);
  padding: 15px 38px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
  display: inline-block;
}

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

/* ── Section shared ───────────────────────────── */
section { padding: 80px 0; }

.section-label {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--brown);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── CTA Banner ───────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--rose-dark) 0%, #8B5E2B 50%, #6B4518 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--white);
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 36px;
}

/* ── Footer ───────────────────────────────────── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (min-width: 681px) and (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-brand .logo-footer {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.85rem; line-height: 1.65; }

footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-family: 'Nunito', sans-serif;
}

footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul a { font-size: 0.85rem; transition: color 0.2s; }
footer ul a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.accessibility-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}

/* ── Forms ────────────────────────────────────── */
.form-group { margin-bottom: 22px; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brown);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--rose);
}

input.has-error,
textarea.has-error,
select.has-error {
  border-color: #C0392B;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

/* Inline validation errors */
.field-error {
  display: none;
  font-size: 0.78rem;
  color: #C0392B;
  margin-top: 6px;
  font-weight: 600;
}

.field-error.visible { display: block; }

/* Character counter */
.char-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.char-counter small {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.char-count { font-size: 0.78rem; font-weight: 700; }
.char-count.ok { color: var(--sage-dark); }
.char-count.warn { color: #D4882A; }
.char-count.over { color: #C0392B; }

/* Braille preview */
.braille-preview {
  background: var(--cream);
  border: 1.5px dashed var(--rose-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
}

.braille-preview p {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.braille-output {
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--brown);
  word-break: break-all;
}

/* ── Noscript ─────────────────────────────────── */
.noscript-msg {
  background: var(--rose-light);
  color: var(--rose-dark);
  text-align: center;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── Toast notification ───────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brown);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(92,61,46,0.25);
  z-index: 500;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Scroll Animations ────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll.stagger-1 { transition-delay: 0.1s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.2s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.3s; }
.animate-on-scroll.stagger-4 { transition-delay: 0.4s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Cookie Banner ────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brown);
  color: rgba(255,255,255,0.9);
  padding: 18px 24px;
  z-index: 900;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
  min-width: 280px;
}

.cookie-text a {
  color: var(--rose-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-btn:hover { opacity: 0.85; }

.cookie-btn-accept {
  background: var(--rose);
  color: var(--white);
}

.cookie-btn-decline {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ── Newsletter Section ───────────────────────── */
.newsletter {
  background: var(--cream-dark);
  padding: 64px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--brown);
  margin-bottom: 10px;
}

.newsletter > .container > p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 440px;
  margin: 0 auto 28px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--cream-dark);
  background: var(--white);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--rose);
}

.newsletter-form button {
  padding: 14px 28px;
  border-radius: 50px;
  background: var(--rose);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--rose-dark); }
.newsletter-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.newsletter-note {
  font-size: 0.75rem;
  color: var(--text-mid);
  margin-top: 12px;
}

/* Footer newsletter (inline) */
.footer-newsletter {
  margin-top: 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.82rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: var(--rose-light);
}

.footer-newsletter-form button {
  padding: 10px 16px;
  border-radius: 50px;
  background: var(--rose);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.footer-newsletter-form button:hover { background: var(--rose-dark); }

/* ── Coming Soon Cards ────────────────────────── */
.card-coming-soon {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.card-coming-soon .card-thumb {
  filter: grayscale(40%) blur(1px);
}

.card-coming-soon .card-info {
  opacity: 0.7;
}

.badge-coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brown);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border-radius: 50px;
  z-index: 2;
  white-space: nowrap;
}

/* ── Testimonial Carousel (mobile) ────────────── */
@media (max-width: 768px) {
  .testi-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .testi-grid::-webkit-scrollbar { display: none; }
  .testi-grid { scrollbar-width: none; }

  .testi-card {
    scroll-snap-align: center;
    min-width: 85vw;
    flex-shrink: 0;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cream-dark);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
  }

  .carousel-dot.active {
    background: var(--rose);
  }
}

@media (min-width: 769px) {
  .carousel-dots { display: none; }
}

