/* General Sans Variable Font */
@font-face {
  font-family: 'General Sans';
  src: url('../Fonts/WEB/fonts/GeneralSans-Variable.woff2') format('woff2'),
       url('../Fonts/WEB/fonts/GeneralSans-Variable.woff') format('woff'),
       url('../Fonts/WEB/fonts/GeneralSans-Variable.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'General Sans';
  src: url('../Fonts/WEB/fonts/GeneralSans-VariableItalic.woff2') format('woff2'),
       url('../Fonts/WEB/fonts/GeneralSans-VariableItalic.woff') format('woff'),
       url('../Fonts/WEB/fonts/GeneralSans-VariableItalic.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
  font-style: italic;
}

/* Arch clip-path for images */
.arch-clip {
  clip-path: ellipse(50% 50% at 50% 50%);
}

.arch-top-clip {
  clip-path: path('M0 40 Q0 0 50 0 Q100 0 100 40 L100 100 L0 100 Z');
}

/* 3D Book mockup */
.book-3d {
  perspective: 800px;
}
.book-3d img {
  transform: rotateY(-15deg) rotateX(5deg);
  box-shadow:
    10px 10px 30px rgba(0,0,0,0.3),
    2px 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.book-3d:hover img {
  transform: rotateY(-5deg) rotateX(2deg);
}

/* FAQ Accordion */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-item .faq-arrow {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}
.faq-item.active .faq-circle {
  background-color: #E0A9A9;
  border-color: #E0A9A9;
  color: #fff;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Mobile nav */
.mobile-nav {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mobile-nav.open {
  transform: translateX(0);
}

/* Button hover states */
.btn-primary {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease,
              box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.btn-outline {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease,
              color 0.2s ease;
}
.btn-outline:hover {
  transform: translateY(-2px);
}
.btn-outline:active {
  transform: translateY(0);
}
.btn-outline:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Service card hover */
.service-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Stats counter animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Form input styling */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

/* Grain texture overlay */
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
