/* ==========================================================================
   ANCELIN.VIDEO - Unified Stylesheet
   Brand Colors:
   - Black: #000000
   - Gray: #6D6D6D
   - Coral: #FF604D
   - White: #FFFFFF
   - Cream: #F4F2EC
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Reset
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-black: #000000;
  --color-gray: #6D6D6D;
  --color-gray-light: #9CA3AF;
  --color-coral: #FF604D;
  --color-white: #FFFFFF;
  --color-cream: #F4F2EC;
  
  /* Typography */
  --font-primary: 'Lexend', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Layout */
  --container-max: 1400px;
  --header-height: 120px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  background-color: var(--color-cream);
  color: var(--color-black);
  line-height: 1.6;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

.main {
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: relative;
  height: var(--header-height);
  background-color: var(--color-cream);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img,
.header__logo svg {
  height: 48px;
  width: auto;
}

.header__right {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 24px;
}

.header__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.header__nav-link {
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.header__nav-link::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-coral);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.header__nav-link:hover::before,
.header__nav-link.active::before {
  opacity: 1;
}

.header__nav-link span {
  text-decoration: none;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-gray);
}

.lang-switcher__btn {
  padding: 4px 6px;
  font-size: 0.8rem;
  color: var(--color-gray);
  transition: color var(--transition-fast);
}

.lang-switcher__btn:hover,
.lang-switcher__btn.active {
  color: var(--color-black);
}

/* Mobile Menu Toggle */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.header__menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-cream);
  z-index: 999;
  padding-top: var(--header-height);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 60px 20px;
  height: calc(100% - var(--header-height));
}

.mobile-nav__link {
  font-size: 1.8rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-black);
  padding: 12px 0;
  transition: color 0.2s ease;
}

.mobile-nav__link.active {
  color: var(--color-coral);
}

.mobile-nav__link:hover {
  color: var(--color-coral);
}

/* --------------------------------------------------------------------------
   Footer Dark
   -------------------------------------------------------------------------- */
.footer-dark {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 60px 0 48px;
}

.footer-dark__top {
  text-align: center;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-dark__tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.footer-dark__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-dark__title .coral-circle {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  background-color: var(--color-coral);
  border-radius: 50%;
  margin: 0 0.02em;
  position: relative;
  top: 0.09em;
}

.footer-dark__links {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-dark__col {
  text-align: center;
  min-width: 180px;
}

.footer-dark__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer-dark__value {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
}

.footer-dark__value a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer-dark__value a:hover {
  color: var(--color-coral);
}

.footer-dark__separator {
  margin: 0 0.5em;
  opacity: 0.5;
}

.footer-dark__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

.lang-switcher--footer {
  color: rgba(255, 255, 255, 0.5);
}

.lang-switcher--footer .lang-switcher__btn {
  color: rgba(255, 255, 255, 0.5);
}

.lang-switcher--footer .lang-switcher__btn:hover,
.lang-switcher--footer .lang-switcher__btn.active {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Page Hero (common for videos, schedule, estimate)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 40px 0 32px;
  text-align: center;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-medium);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 500px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Portfolio Page (videos.html)
   -------------------------------------------------------------------------- */
.portfolio-hero {
  padding: 60px 0 40px;
}

.portfolio-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-medium);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.portfolio-hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 500px;
}

/* Filters */
.portfolio-filters {
  padding: 24px 0 48px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-black);
  background: transparent;
  border: 1.5px solid var(--color-black);
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.filter-btn.active {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Video Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 80px;
}

/* Video Card */
.video-card {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.video-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.video-card__preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-card__thumbnail {
  opacity: 0;
}

.video-card:hover .video-card__preview {
  opacity: 1;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card:hover .video-card__play {
  opacity: 1;
}

.video-card__play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid var(--color-black);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

.video-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-white);
  color: var(--color-black);
  border-radius: var(--radius-full);
}

.video-card__info {
  padding: 20px;
}

.video-card__title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 4px;
  color: var(--color-black);
}

.video-card__client {
  font-size: 0.85rem;
  color: var(--color-gray);
}

.video-card__duration {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  background: rgba(0, 0, 0, 0.75);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 32px;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.video-modal__close:hover {
  opacity: 1;
}

.video-modal__content {
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
}

.video-modal__content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   Schedule Page
   -------------------------------------------------------------------------- */
.cal-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 600px;
}

.cal-embed {
  width: 100%;
  min-height: 550px;
}

/* Alternative CTA */
.alt-cta {
  text-align: center;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.alt-cta__text {
  font-size: 1rem;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.alt-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.alt-cta__link:hover {
  color: var(--color-coral);
}

/* --------------------------------------------------------------------------
   Estimate Page
   -------------------------------------------------------------------------- */
.estimate-page {
  padding-bottom: 80px;
}

.estimate-page__header {
  padding: 60px 0 40px;
}

.estimate-page__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-medium);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.estimate-page__subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.page-transition {
  animation: fadeInUp 0.6s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .container {
    padding: 0 32px;
  }
  
  .header__inner {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .header__right {
    display: none;
  }
  
  .header__menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .header__inner {
    padding: 0 20px;
  }
  
  .portfolio-hero {
    padding: 32px 0 20px;
  }
  
  .portfolio-hero__title {
    font-size: 2rem;
  }
  
  .portfolio-filters {
    padding: 16px 0 32px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .page-hero {
    padding: 24px 0 20px;
  }
  
  .page-hero__title {
    font-size: 2rem;
  }
  
  .cal-container {
    padding: 16px;
    border-radius: var(--radius-md);
  }
  
  .footer-dark {
    padding: 48px 0 32px;
  }
  
  .footer-dark__top {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  
  .footer-dark__links {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .footer-dark__col {
    min-width: auto;
  }
  
  .footer-dark__bottom {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .portfolio-hero__subtitle {
    font-size: 0.95rem;
  }
  
  .video-card__info {
    padding: 16px;
  }
  
  .video-card__title {
    font-size: 1rem;
  }
}
