/* COOTRANSUCRE Landing Page */

:root {
  --purple: #6b2d8b;
  --purple-dark: #552370;
  --purple-light: #8b4db0;
  --purple-bg: #f7f2fa;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(107, 45, 139, 0.12);
  --radius: 12px;
  --header-h: 72px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--purple-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--gray-50);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--purple);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__intro {
  text-align: center;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn--outline:hover {
  background: var(--purple-bg);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--gray-800);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo:hover {
  color: var(--purple);
}

.header__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header__logo-text {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link--active {
  color: var(--purple);
}

.header__cta {
  flex-shrink: 0;
}

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

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(160deg, var(--purple-bg) 0%, var(--white) 60%);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(247, 242, 250, 0.92) 0%,
    rgba(255, 255, 255, 0.82) 60%
  );
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem 0;
}

.hero__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--purple);
  max-width: 800px;
  line-height: 1.25;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-600);
  max-width: 520px;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.about__block {
  margin-bottom: 2rem;
}

.about__block h3,
.about__values-title,
.about__history h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.about__block p,
.about__history p {
  color: var(--gray-600);
  text-align: justify;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-bg);
  border-radius: 10px;
  color: var(--purple);
}

.value-card__icon svg {
  width: 22px;
  height: 22px;
}

.value-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.about__history {
  position: relative;
  padding: 2.5rem 2rem 2rem 2.75rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-bg) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--purple);
  box-shadow: var(--shadow-sm);
}

.about__history::before {
  content: "";
  position: absolute;
  top: 2.4rem;
  left: 1.05rem;
  width: 10px;
  height: 10px;
  background: var(--purple);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(107, 45, 139, 0.12);
}

.about__history p {
  margin-bottom: 1.5rem;
}

.about__history h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.about__history h3::after {
  width: 42px;
  height: 2px;
  background: var(--purple-light);
  border-radius: 999px;
}

.about__history-media {
  display: grid;
  gap: 1rem;
}

.history-feature {
  margin: 0;
}

.history-feature img,
.history-gallery__item img,
.history-gallery__item video {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.history-feature img {
  aspect-ratio: 16 / 9;
}

.history-feature figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.history-feature {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(107, 45, 139, 0.08);
  border-radius: 16px;
}

.history-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.history-gallery__item {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--gray-200);
}

.history-gallery__item img,
.history-gallery__item video {
  aspect-ratio: 4 / 3;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-bg);
  border-radius: 50%;
  color: var(--purple);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* Documents */
.documents__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.doc_rit {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  margin-bottom: 2.5rem;
}

.doc-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.doc-card:hover {
  box-shadow: var(--shadow-md);
}

.doc-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.doc-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  flex: 1;
}

.doc-card__meta {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

.doc-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.doc-card__actions .btn {
  flex: 1;
}

/* Contact */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-list--centered {
  max-width: 640px;
  margin: 0 auto;
}

.contact-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.contact-list__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-bg);
  border-radius: 10px;
  color: var(--purple);
}

.contact-list__icon svg {
  width: 24px;
  height: 24px;
}

.contact-list strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-list p {
  color: var(--gray-600);
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--gray-200);
  padding: 3rem 0 2rem;
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand strong {
  color: var(--white);
  font-size: 1rem;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.footer__nav a {
  color: var(--gray-400);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__legal {
  font-size: 0.8125rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* Modal PDF */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--purple-bg);
}

.modal__header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple);
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 6px;
  transition:
    background var(--transition),
    color var(--transition);
}

.modal__close:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.modal__body {
  flex: 1;
  min-height: 0;
}

.pdf-viewer {
  width: 100%;
  height: 75vh;
  background: var(--gray-100);
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pdf-viewer canvas {
  max-width: 100%;
  height: auto;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.pdf-viewer__loading,
.pdf-viewer__error {
  margin: auto;
  color: var(--gray-600);
  text-align: center;
  font-size: 0.9375rem;
}

/* Animation helpers: content stays visible by default.
   GSAP controls the animated reveal state when it is available. */
.animate-item {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-item {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .history-gallery {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition),
      opacity var(--transition);
    box-shadow: var(--shadow-md);
  }

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

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }

  .header__cta {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .section {
    padding: 3.5rem 0;
  }

  .doc-card__actions {
    flex-direction: column;
  }
}
