/* ============================================
   JINGLEFACTORY – Main Stylesheet
   Apple-inspired design with brand colors
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --navy-900: #0f1923;
  --navy-800: #1a2535;
  --navy-700: #263447;
  --navy-600: #2d4a68;
  --blue-500: #3d6b9e;
  --blue-400: #5a8fbe;
  --blue-300: #7aaed0;
  --blue-200: #b8d4e8;
  --blue-100: #e0eef7;

  --white: #ffffff;
  --grey-100: #f5f5f7;
  --grey-200: #e8e8ed;
  --grey-300: #d2d2d7;
  --grey-500: #86868b;
  --grey-700: #424245;
  --grey-900: #1d1d1f;

  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.11);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-900);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 1.1rem;
  color: var(--grey-500);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  transition-property: background, transform, box-shadow, color, border-color;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61, 107, 158, 0.4);
}

.btn-secondary {
  background: var(--grey-200);
  color: var(--grey-900);
}
.btn-secondary:hover {
  background: var(--grey-300);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--blue-500);
  border: 1.5px solid var(--blue-500);
}
.btn-outline:hover {
  background: var(--blue-500);
  color: var(--white);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(15, 25, 35, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 25, 35, 0.96);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-logo em {
  color: var(--blue-300);
  font-style: normal;
}

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

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--blue-300);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--blue-500) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 980px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--blue-400) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(61,107,158,0.22) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(122,174,208,0.1) 0%, transparent 70%);
  bottom: -80px; left: 50px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(122,174,208,0.12);
  color: var(--blue-300);
  border: 1px solid rgba(122,174,208,0.25);
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,0.62);
  font-size: 1.15rem;
  font-weight: 400;
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 60px rgba(61,107,158,0.4));
  animation: float 6s ease-in-out infinite;
}

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

/* ---------- Hero Splash Banner ---------- */
.hero-splash {
  position: absolute;
  top: calc(var(--nav-h) + 24px);
  right: 40px;
  background: linear-gradient(135deg, #e8b730, #d4a017);
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transform: rotate(3deg);
  box-shadow: 0 4px 20px rgba(232,183,48,0.4);
  z-index: 10;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- Hero Stats ---------- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-300);
}

.hero-stats-dot {
  color: rgba(122,174,208,0.4);
}

/* ---------- Client Logo Bar ---------- */
.logo-bar {
  background: var(--grey-100);
  padding: 36px 0;
  text-align: center;
}

.logo-bar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey-500);
  margin-bottom: 14px;
  font-weight: 500;
}

.logo-bar-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-bar-img {
  height: 28px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.4;
  transition: filter var(--transition), opacity var(--transition), -webkit-filter var(--transition);
}

.logo-bar-img:hover {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  opacity: 0.85;
}

/* ---------- Home Audio Samples ---------- */
.home-samples {
  background: var(--white);
  padding: 80px 0;
}

.home-audio-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Services ---------- */
.services { background: var(--grey-100); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--grey-200);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--blue-500);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.5;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  text-align: center;
  padding: 120px 24px;
}

.big-quote {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-style: italic;
}

.big-quote-attr {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 32px;
  display: block;
}

.cta-section > .container > p {
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
  font-size: 1.1rem;
}

/* ---------- Testimonial Slider ---------- */
.tslider-section {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.tslider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.tslider-quote {
  display: none;
  width: 100%;
  box-sizing: border-box;
  background: var(--grey-100);
  border-radius: var(--radius-xl);
  padding: 48px 56px 40px;
  text-align: left;
  position: relative;
  margin-bottom: 24px;
}

.tslider-quote.is-active {
  display: block;
}

.tslider-quote::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 36px;
  font-size: 5rem;
  line-height: 1;
  color: var(--blue-200);
  font-family: Georgia, serif;
  pointer-events: none;
}

.tslider-quote blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--grey-700);
  line-height: 1.65;
  margin-bottom: 20px;
  padding-top: 16px;
}

.tslider-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-500);
}

.tslider-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tslider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grey-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.tslider-dot.is-active {
  background: var(--blue-500);
  transform: scale(1.4);
}

/* ---------- Testimonials Page ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; }

.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.tcard {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  border: 1px solid var(--grey-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.tcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.tcard-quote-mark {
  font-size: 3.5rem;
  color: var(--blue-200);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 4px;
}

.tcard blockquote {
  font-style: italic;
  color: var(--grey-700);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.tcard-author {
  border-top: 1px solid var(--grey-200);
  padding-top: 18px;
}

.tcard-name {
  font-weight: 600;
  color: var(--grey-900);
  font-size: 0.9rem;
}

.tcard-role {
  color: var(--grey-500);
  font-size: 0.83rem;
  margin-top: 2px;
}

/* ---------- Sounds Page ---------- */
.sounds-tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgba(245,245,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grey-200);
  padding: 0 24px;
}

.sounds-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sounds-tabs-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 24px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--grey-900);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.tab-btn:hover { color: var(--blue-500); }
.tab-btn.active { color: var(--blue-500); border-bottom-color: var(--blue-500); }

.sounds-content { background: var(--grey-100); }

.sounds-section {
  display: none;
  padding: 64px 0;
}

.sounds-section.active { display: block; }

.sounds-section .container { max-width: 1000px; }

.sounds-section-header {
  margin-bottom: 36px;
}

.sounds-section-header h2 {
  font-size: 1.8rem;
  color: var(--grey-900);
  margin-bottom: 8px;
}

.sounds-section-header p {
  color: var(--grey-500);
  font-size: 0.95rem;
}

.audio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audio-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--grey-200);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.audio-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-200);
}

.audio-item-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.audio-icon {
  width: 40px; height: 40px;
  background: var(--blue-100);
  color: var(--blue-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-icon svg {
  width: 20px;
  height: 20px;
}

.audio-icon.video-icon {
  background: rgba(26,37,53,0.08);
  color: var(--navy-700);
}

.audio-item-info h4 {
  font-size: 0.95rem;
  color: var(--grey-900);
  margin-bottom: 2px;
}

.audio-item-info span {
  font-size: 0.8rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audio-item audio,
.audio-item video {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-sm);
  accent-color: var(--blue-500);
}

.audio-item video {
  height: auto;
  max-height: 300px;
  border-radius: var(--radius-md);
  background: #000;
}

/* ---------- About Page ---------- */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.about-visual {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.about-logo-wrap {
  background: var(--grey-100);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.about-logo-wrap img {
  max-width: 220px;
}

.about-meta {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
}

.about-meta h4 {
  color: var(--blue-300);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-meta p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.about-meta a {
  color: var(--blue-300);
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--grey-700);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-text p {
  color: var(--grey-700);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.tag {
  background: var(--blue-100);
  color: var(--blue-500);
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Contact Page ---------- */
.contact-section { background: var(--grey-100); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 72px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info .subtitle {
  color: var(--grey-500);
  margin-bottom: 40px;
  line-height: 1.65;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--navy-800);
  color: var(--blue-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail-text h4 {
  font-size: 0.83rem;
  color: var(--grey-500);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.contact-detail-text a,
.contact-detail-text p {
  font-size: 0.95rem;
  color: var(--grey-900);
  font-weight: 500;
}

.contact-detail-text a:hover { color: var(--blue-500); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
}

.contact-form-wrap h3 {
  margin-bottom: 32px;
  font-size: 1.5rem;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-700);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--grey-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(61,107,158,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-300);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.form-notice {
  font-size: 0.82rem;
  color: var(--grey-500);
}

.form-success {
  display: none;
  background: #d1fae5;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

.form-success.visible { display: block; }

.form-error {
  display: none;
  background: #fee2e2;
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 52px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand em {
  color: var(--blue-300);
  font-style: normal;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.83rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-info { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  section { padding: 72px 0; }

  /* Logo bar */
  .logo-bar { padding: 28px 0; }
  .logo-bar-list { gap: 16px 20px; }
  .logo-bar-img { height: 16px; max-width: 56px; }

  /* Home samples */
  .home-samples { padding: 56px 0; }

  /* Hero splash */
  .hero-splash { top: calc(var(--nav-h) + 12px); right: 16px; font-size: 0.85rem; padding: 9px 18px; }

  /* Hero stats */
  .hero-stats { justify-content: center; }

  /* Nav */
  .nav-toggle { display: flex; position: relative; z-index: 1; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 24px;
    font-size: 0.95rem;
    border-bottom: none;
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    background: none !important;
    color: rgba(255,255,255,0.7) !important;
    border-radius: 0 !important;
    padding: 13px 24px !important;
    margin: 0 !important;
    display: block !important;
  }

  .nav-cta:hover {
    background: none !important;
    color: var(--white) !important;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px 64px;
    text-align: center;
    gap: 48px;
  }

  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .hero-visual { order: -1; }
  .hero-logo { max-width: 220px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card.featured { padding: 36px 24px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-submit { flex-direction: column; align-items: stretch; text-align: center; }

  /* About */
  .about-logo-wrap { padding: 32px; }

  /* Footer */
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .big-quote { font-size: 1.5rem; }
  .logo-bar-list { gap: 12px 16px; }
  .logo-bar-img { height: 14px; max-width: 48px; }
}

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
