/* ============================================
   FyMedia — Style
   Palette: Sage/teal backgrounds, black text,
   elegant script typography
   ============================================ */

:root {
  --sage: #b6c5c1;
  --sage-light: #c9d5d1;
  --sage-lighter: #dce4e2;
  --sage-dark: #9aaca7;
  --sage-deep: #7d9590;
  --cream: #f0eeeb;
  --off-white: #f7f6f4;
  --charcoal: #1a1a1a;
  --charcoal-light: #2d2d2d;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-light: #8a8a8a;
  --white: #ffffff;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

em {
  font-style: italic;
}

/* ============================================
   Typography
   ============================================ */

.logo-script {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.section-tag {
  font-family: 'Anybody', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}

.section-title em {
  font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  font-family: 'Anybody', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--charcoal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.5s var(--transition);
}

.nav.scrolled {
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Anybody', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-cta {
  background: var(--charcoal);
  color: var(--white) !important;
  padding: 0.7rem 1.6rem;
  transition: all 0.4s var(--transition) !important;
}

.nav-cta:hover {
  opacity: 1 !important;
  background: var(--charcoal-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--sage);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,255,255,0.12) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,0,0,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero::before {
  content: 'Fy Media';
  font-family: 'Dancing Script', cursive;
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 700;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 0, 0, 0.035);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 2rem;
}

.hero-tag {
  font-family: 'Anybody', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--transition) 0.2s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

.hero-line {
  display: block;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  opacity: 0;
  animation: fadeUp 1s var(--transition) 0.4s forwards;
}

.hero-line-script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  opacity: 0;
  animation: fadeUp 1s var(--transition) 0.6s forwards;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--transition) 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--transition) 1s forwards;
}

.hero-scroll {
  display: none;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--charcoal);
  opacity: 0.3;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--charcoal);
  animation: scrollDown 2s ease-in-out infinite;
}

/* ============================================
   About
   ============================================ */

.about {
  padding: 8rem 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Anybody', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================
   Services
   ============================================ */

.services {
  padding: 8rem 0;
  background: var(--sage-lighter);
}

.services-title {
  max-width: 500px;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card {
  background: var(--sage-lighter);
  padding: 2.5rem;
  transition: all 0.5s var(--transition);
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.5);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-num {
  font-family: 'Anybody', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

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

/* ============================================
   Results / Testimonials
   ============================================ */

.results {
  padding: 8rem 0;
  background: var(--off-white);
}

.results-title {
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--sage-light);
  padding: 2.5rem;
  position: relative;
  transition: transform 0.5s var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  line-height: 1;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}

.testimonial-card > p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  font-weight: 600;
}

.testimonial-author strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.testimonial-author span {
  font-family: 'Anybody', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
  padding: 6rem 0;
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--sage);
  color: var(--charcoal);
}

.cta-banner .btn-primary:hover {
  background: var(--sage-light);
  box-shadow: 0 8px 30px rgba(182, 197, 193, 0.3);
}

/* ============================================
   Contact
   ============================================ */

.contact {
  padding: 8rem 0;
  background: var(--off-white);
}

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

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-detail-label {
  font-family: 'Anybody', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.contact-detail a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  transition: opacity 0.3s;
}

.contact-detail a:hover {
  opacity: 0.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Anybody', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  padding: 0.9rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--charcoal);
}

.form-group textarea {
  min-height: 100px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 4rem 0;
  background: var(--sage);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.footer-logo .logo-script {
  font-size: 1.8rem;
}

.footer-tagline {
  font-family: 'Anybody', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: 'Anybody', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.6;
}

.footer-copy {
  font-family: 'Anybody', sans-serif;
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--off-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.5s var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-line {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-line-script {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
