/* ============================================================
   BTouch — style.css
   Main stylesheet for B-Touch AI Prosthetic Arm website
   Themes: Dark (default) | Light
   Fonts: Cinzel (headings) · Inter (body)
   ============================================================ */

/* ── CSS Custom Properties (Dark Theme – Default) ─────────── */
:root {
  --bg:           #000000;
  --bg-surface-1: #080808;
  --bg-surface-2: #111111;
  --bg-surface-3: #1a1a1a;
  --fg:           #ebebeb;
  --fg-muted:     #888888;
  --border:       #1f1f1f;
  --glass-bg:     rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.06);

  --lavender:       hsl(262,60%,62%);
  --lavender-light: hsl(262,70%,75%);
  --lavender-dark:  hsl(262,50%,48%);
  --diamond:        hsl(262,80%,92%);

  --radius: 0.75rem;
  --nav-h:  70px;

  --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Light Theme Override ─────────────────────────────────── */
.light-theme {
  --bg:           #f7f7fa;
  --bg-surface-1: #f0f0f5;
  --bg-surface-2: #ffffff;
  --bg-surface-3: #e8e8f0;
  --fg:           #111111;
  --fg-muted:     #555555;
  --border:       #dddde8;
  --glass-bg:     rgba(255,255,255,0.70);
  --glass-border: rgba(0,0,0,0.08);

  --lavender:       hsl(262,60%,55%);
  --lavender-light: hsl(262,60%,65%);
  --lavender-dark:  hsl(262,50%,42%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: var(--transition-theme);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lavender), var(--lavender-dark));
  border-radius: 3px;
}
::selection {
  background: hsl(262 60% 62% / .25);
  color: var(--fg);
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section-padding {
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .section-padding { padding: 8rem 2rem; }
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, hsl(262 60% 62% / .2) 50%, transparent 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* ── Padding Utilities ────────────────────────────────────── */
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }

/* ── Gradient Text ────────────────────────────────────────── */
.heading-gradient {
  background: linear-gradient(135deg, var(--lavender-light), var(--fg), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-lavender-gradient {
  background: linear-gradient(135deg, var(--lavender-light), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glassmorphism Card ───────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.5);
  transition: var(--transition-theme), box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.2,0,0.1,1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px hsl(262 60% 62% / .2), 0 0 0 1px hsl(262 60% 62% / .1);
}

/* ── Glow Orb ─────────────────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  background: var(--lavender);
  opacity: 0.06;
}

/* ── Circuit Pattern ──────────────────────────────────────── */
.circuit-pattern {
  background-image:
    linear-gradient(hsl(262 60% 62% / .04) 1px, transparent 1px),
    linear-gradient(90deg, hsl(262 60% 62% / .04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-lavender {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--lavender), var(--lavender-dark));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px -4px hsl(262 60% 62% / .35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-lavender:hover {
  background: linear-gradient(135deg, var(--lavender-light), var(--lavender));
  box-shadow: 0 4px 30px -4px hsl(262 60% 62% / .55), 0 0 20px hsl(262 80% 92% / .2);
  transform: translateY(-2px);
}

.btn-lavender:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--fg);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: hsl(262 60% 62% / .5);
  color: var(--lavender);
  box-shadow: 0 0 20px hsl(262 60% 62% / .1);
  transform: translateY(-2px);
}

.btn-outline:active { transform: scale(0.97); }

/* ── Badge / Label ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.badge-filled {
  background: linear-gradient(135deg, var(--lavender), var(--lavender-dark));
  color: #fff;
  box-shadow: 0 4px 20px -4px hsl(262 60% 62% / .35);
}

.badge-outline {
  border: 1px solid hsl(262 60% 62% / .3);
  color: var(--lavender);
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-header .divider-line,
.divider-line {
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--lavender), var(--lavender-dark));
  margin: 1.5rem auto 0;
  border-radius: 2px;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: var(--transition-theme), box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: hsl(0 0% 0% / .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.light-theme #navbar.scrolled {
  background: hsl(240 20% 97% / .9);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lavender), var(--lavender-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px hsl(262 60% 62% / .3);
  flex-shrink: 0;
}

.logo-icon-mask {
  display: block;
  width: 25px;
  height: 17px;
  background-color: #ffffff;
  -webkit-mask: url('images/btouch-logo-icon.png') no-repeat center / contain;
  mask: url('images/btouch-logo-icon.png') no-repeat center / contain;
}

.nav-logo-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
}

.logo-text-b {
  display: inline-block;
  height: 0.85rem;
  aspect-ratio: 47 / 43;
  background-color: var(--fg);
  -webkit-mask: url('images/btouch-logo-text-b.png') no-repeat center / contain;
  mask: url('images/btouch-logo-text-b.png') no-repeat center / contain;
  transition: var(--transition-theme);
}

.logo-text-touch {
  display: inline-block;
  height: 0.85rem;
  aspect-ratio: 265 / 45;
  background-color: var(--lavender);
  -webkit-mask: url('images/btouch-logo-text-touch.png') no-repeat center / contain;
  mask: url('images/btouch-logo-text-touch.png') no-repeat center / contain;
  transition: var(--transition-theme);
}

/* Desktop Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
  background: var(--bg-surface-2);
}

/* Nav Right Controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
#theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  cursor: pointer;
}

#theme-toggle:hover {
  border-color: hsl(262 60% 62% / .4);
  background: var(--bg-surface-3);
  box-shadow: 0 0 16px hsl(262 60% 62% / .15);
}

/* Hamburger */
#nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

@media (min-width: 900px) {
  #nav-hamburger { display: none; }
}

#nav-hamburger:hover { border-color: hsl(262 60% 62% / .4); }

#nav-hamburger .bar {
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#nav-hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-hamburger.open .bar:nth-child(2) { opacity: 0; }
#nav-hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-theme);
}

#mobile-menu.open { display: flex; }

#mobile-menu a {
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s;
}

#mobile-menu a:hover {
  color: var(--fg);
  background: var(--bg-surface-2);
}

/* ══════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-top: var(--nav-h);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    gap: 4rem;
    padding: 2rem 2rem;
    align-items: center;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text { text-align: left; }
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--fg);
  max-width: 36rem;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .hero-subtitle { margin: 0 0 0.75rem; }
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero-desc { margin: 0 0 2.5rem; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-cta { justify-content: flex-start; }
}

/* Hero Image */
.hero-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 500px;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-image-wrap { max-width: none; }
}

.hero-glow-ring {
  position: absolute;
  inset: -2rem;
  border-radius: 50%;
  background: hsl(262 60% 62% / .05);
  filter: blur(80px);
}

.hero-glow-ring-2 {
  position: absolute;
  inset: -4rem;
  border-radius: 50%;
  background: hsl(262 80% 92% / .03);
  filter: blur(100px);
}

#hero-arm {
  position: relative;
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 12px 40px hsl(262 60% 62% / .25));
  transition: transform 0.1s ease-out, filter 0.3s ease;
  will-change: transform;
  cursor: grab;
}

#hero-arm:active { cursor: grabbing; }

/* Animations */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.04; }
  50%       { opacity: 0.10; }
}

.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════════ */
#about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

.about-image-wrap {
  position: relative;
}

.about-image-glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 1.5rem;
  background: hsl(262 60% 62% / .05);
  filter: blur(60px);
  pointer-events: none;
}

.about-image-card {
  position: relative;
  overflow: hidden;
}

.about-image-card img {
  width: 100%;
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-image-card:hover img { transform: scale(1.02); }

.about-image-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lavender), var(--lavender-dark));
  opacity: 0.4;
  z-index: 1;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

@media (min-width: 768px) { .about-text p { font-size: 1rem; } }
@media (min-width: 1024px) { .about-text p { font-size: 1.05rem; } }

/* ══════════════════════════════════════════════════════════
   STORY / TIMELINE SECTION
   ══════════════════════════════════════════════════════════ */
#story {
  background: var(--bg-surface-1);
}

/* Timeline Layout */
.timeline-wrapper {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    hsl(262 60% 62% / .4) 10%,
    hsl(262 60% 62% / .15) 90%,
    transparent 100%);
  transform: translateX(-50%);
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.timeline-col-left,
.timeline-col-right {
  min-width: 0;
}

.timeline-col-empty {
  display: block;
}

.timeline-center {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lavender);
  border: 3px solid var(--bg-surface-1);
  box-shadow: 0 0 20px hsl(262 60% 62% / .4), 0 0 40px hsl(262 60% 62% / .15);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.timeline-row:hover .timeline-dot { transform: scale(1.3); }

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lavender), var(--lavender-dark));
  opacity: 0.4;
}

.timeline-card .badge { margin-bottom: 0.75rem; }

.timeline-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.timeline-card img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  border-radius: 0.65rem;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  transition: transform 0.7s ease;
}

@media (min-width: 768px) { .timeline-card img { height: 13rem; } }
@media (min-width: 1024px) { .timeline-card img { height: 15rem; } }

.timeline-card:hover img { transform: scale(1.04); }

/* Mobile Timeline */
@media (max-width: 767px) {
  .timeline-line { left: 20px; transform: none; }
  .timeline-row {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
  }
  .timeline-col-empty { display: none; }
  .timeline-col-left,
  .timeline-col-right { grid-column: 2; }
  .timeline-center { grid-column: 1; grid-row: 1; }
}

/* ══════════════════════════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════════════════════════ */
#products {
  background: var(--bg-surface-1);
}

.product-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .product-grid { 
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: dense;
  }
  .product-card:nth-child(1),
  .product-card:nth-child(2),
  .product-card:nth-child(3) {
    grid-column: span 2;
  }
  .product-card:nth-child(4),
  .product-card:nth-child(5) {
    grid-column: span 3;
  }
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid hsl(262 60% 62% / 0);
  border-radius: var(--radius);
  transition: border-color 0.4s ease;
  pointer-events: none;
}

.product-card:hover::before { border-color: hsl(262 60% 62% / .2); }

.product-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 0.75rem;
  background: var(--bg-surface-3);
  border: 1px solid hsl(262 60% 62% / .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--lavender);
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover .product-icon {
  background: hsl(262 60% 62% / .1);
  border-color: hsl(262 60% 62% / .3);
  box-shadow: 0 0 20px hsl(262 60% 62% / .15);
}



.product-card#product-card-1 .product-icon svg {
  width: 32px;
  height: 32px;
}

.product-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

@media (min-width: 1024px) {
  .product-card h3 { font-size: 1.05rem; }
}

.product-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   INTERNSHIP / CAREERS SECTION
   ══════════════════════════════════════════════════════════ */
#internships {
  background: var(--bg-surface-1);
}

.form-card {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
  outline: none;
}

.form-input::placeholder { color: var(--fg-muted); opacity: 0.7; }

.form-input:focus {
  border-color: hsl(262 60% 62% / .4);
  box-shadow: 0 0 0 3px hsl(262 60% 62% / .08);
}

.form-input.error { border-color: #f87171; }

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.25rem;
  min-height: 1rem;
}

textarea.form-input { resize: none; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: #4ade80;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-success.show { display: flex; }

/* ══════════════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════════════ */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-form h3,
.contact-info-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.input-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  .input-row { grid-template-columns: 1fr 1fr; }
}

.contact-form .form-input { margin-bottom: 1.25rem; }

.office-info-card { margin-bottom: 1.5rem; }

.office-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.office-info-item:last-child { margin-bottom: 0; }

.office-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 0.75rem;
  background: var(--bg-surface-3);
  border: 1px solid hsl(262 60% 62% / .1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lavender);
  overflow: hidden;
}

.office-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.office-info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.office-info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
}

.quick-support {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.quick-support::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lavender), var(--lavender-dark));
  opacity: 0.3;
}

.quick-support h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.quick-support p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.quick-support a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--lavender);
  transition: color 0.2s;
}

.quick-support a:hover { color: var(--lavender-light); }

.quick-support a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

@media (min-width: 768px) { #footer { padding: 3.5rem 2rem; } }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--lavender); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-scale {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.anim-fade-up.visible,
.anim-fade-left.visible,
.anim-fade-right.visible,
.anim-scale.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: toast-in 0.3s ease;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
  background: #1a3a2a;
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}

.toast-error {
  background: #3a1a1a;
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

.light-theme .toast-success { background: #dcfce7; color: #15803d; }
.light-theme .toast-error   { background: #fee2e2; color: #b91c1c; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Spinner */
.spin { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ══════════════════════════════════════════════════════════ */
@media (max-width: 599px) {
  .section-padding { padding: 5rem 1rem; }
  .hero-inner { padding: 3rem 1rem; }
  .glass-card { padding: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
}