/* ============================================
   Magic Transmission Inc. — Stylesheet
   Bold editorial · Emerald + Cream
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --cream-50: #faf9f6;
  --cream-100: #f5f3ed;
  --cream-200: #eae6db;
  --cream-300: #d4cfc3;
  --gold-500: #d97706;
  --gold-600: #b45309;
  --gold-400: #f59e0b;
  --text-dark: #1a1a1a;
  --text-mid: #3d3d3d;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--emerald-800);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--emerald-800);
  color: var(--white);
  border-color: var(--emerald-800);
}
.btn--primary:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--cta {
  background: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
  padding: 10px 22px;
  font-size: 0.875rem;
}
.btn--cta:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--emerald-800);
  border-color: var(--emerald-800);
}
.btn--ghost:hover {
  background: var(--emerald-800);
  color: var(--white);
}

.btn--gold {
  background: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
}
.btn--gold:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.btn--outline-gold:hover {
  background: var(--gold-500);
  color: var(--white);
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-200);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--emerald-800);
}
.logo--light {
  color: var(--white);
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--emerald-700);
}
.logo--light .logo-icon {
  color: var(--emerald-500);
}

.nav-list {
  display: flex;
  gap: 32px;
}
.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  transition: var(--transition);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-700);
  transition: var(--transition);
}
.nav-list a:hover {
  color: var(--emerald-800);
}
.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.hamburger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 2px;
  background: var(--emerald-800);
  transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--emerald-800);
  transition: var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream-50);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,95,70,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--emerald-900);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-500);
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
}
.trust-item svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

.hero-image {
  position: relative;
}

.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5/6;
}

.hero-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--emerald-600);
  border-radius: var(--radius-lg);
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--emerald-900);
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: var(--gold-500);
}

.section-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 600px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services .container {
  text-align: center;
}

.services .section-desc {
  margin: 0 auto 60px;
}

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

.service-card {
  background: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: left;
  transition: var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-200, var(--cream-200));
  background: var(--white);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--emerald-700);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--cream-50);
}

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

.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 7/8;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--emerald-800);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
.badge-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold-400);
}
.badge-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0.9;
}

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

.about-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.about-content > p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 12px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-200);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-800);
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
  padding: 100px 0;
  background: var(--emerald-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217,119,6,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.why-us .section-label {
  color: var(--gold-400);
}
.why-us .section-title {
  color: var(--white);
  text-align: center;
  margin-bottom: 60px;
}
.why-us .section-title em {
  color: var(--gold-400);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  position: relative;
}
.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 3px;
  height: 0;
  background: var(--gold-500);
  transition: height 0.5s ease;
}
.why-item:hover::before {
  height: 100%;
}

.why-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: 8px;
}

.why-item h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.why-item p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 380px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 80px 0;
  background: var(--cream-100);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-content {
  flex: 1;
  min-width: 280px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--emerald-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--white);
}

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

.contact-info .section-desc {
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.contact-item dt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 6px;
}
.contact-item dt svg {
  color: var(--emerald-600);
}

.contact-item dd {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.contact-item dd a {
  color: var(--emerald-700);
  transition: var(--transition);
}
.contact-item dd a:hover {
  color: var(--emerald-500);
  text-decoration: underline;
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* FORM */
.contact-form-wrap {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--cream-200);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--emerald-900);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--cream-300);
}

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

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success svg {
  color: var(--emerald-600);
  margin: 0 auto 16px;
}
.form-success h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--emerald-900);
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--emerald-900);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a,
.footer-contact a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-400);
}
.footer-contact li {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(250,249,246,0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 40px 24px;
}
.nav-overlay.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.nav-overlay .nav-list {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.nav-overlay .nav-list a {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--emerald-900);
}
.nav-overlay .nav-cta {
  margin-top: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }
  .about-grid {
    gap: 48px;
  }
  .contact-grid {
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav, .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image {
    order: -1;
  }
  .hero-img-wrap img {
    aspect-ratio: 4/3;
  }
  .hero-accent {
    display: none;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .hero-trust {
    flex-wrap: wrap;
    gap: 16px;
  }

  .services {
    padding: 60px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card {
    padding: 28px 24px;
  }

  .about {
    padding: 60px 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
    display: inline-flex;
  }
  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .why-us {
    padding: 60px 0;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner {
    padding: 60px 0;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
  }

  .contact {
    padding: 60px 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form-wrap {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding-top: 80px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}
