/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #2d2d2d;
  --color-accent-light: #f0f0f0;
  --color-border: #e0e0e0;
  --color-highlight: #ff4d00;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --section-padding: 120px 0;
  --transition: 0.3s ease;
}

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

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

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-highlight);
  margin-bottom: 16px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

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

.nav__logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav__logo span {
  color: var(--color-highlight);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-highlight);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.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: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 250, 250, 0.92) 0%,
    rgba(250, 250, 250, 0.7) 50%,
    rgba(250, 250, 250, 0.3) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 700px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-highlight);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text);
}

.btn--white {
  background: #fff;
  color: var(--color-text);
}

.btn--white:hover {
  background: var(--color-highlight);
  color: #fff;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ===== SECTIONS ===== */
section {
  padding: var(--section-padding);
}

.section-header {
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* ===== SHOWREEL ===== */
.showreel {
  padding: 0 0 120px;
}

.showreel__wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.showreel__wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.showreel__label {
  text-align: center;
  margin-bottom: 32px;
}

/* ===== WORK SHOWCASE ===== */
.showcase {
  background: var(--color-text);
  color: #fff;
  padding: 120px 0;
}

.showcase .section-header h2 {
  color: #fff;
}

.showcase .section-header p {
  color: rgba(255, 255, 255, 0.5);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.showcase-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item--wide {
  grid-column: span 7;
  aspect-ratio: 16/10;
}

.showcase-item--tall {
  grid-column: span 5;
  aspect-ratio: 3/4;
}

.showcase-item--medium {
  grid-column: span 4;
  aspect-ratio: 1;
}

.showcase-item--landscape {
  grid-column: span 8;
  aspect-ratio: 2/1;
}

/* ===== SERVICES GRID (homepage) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-highlight);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.service-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 28px 28px 32px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== SERVICE DETAIL (services page) ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail__visual {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
}

.service-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-detail__content p {
  margin-bottom: 24px;
}

.service-detail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-detail__list li {
  padding: 6px 16px;
  background: var(--color-accent-light);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 450;
}

/* ===== IMAGE BANNER (full-width divider) ===== */
.image-banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e8ecf1, #d0d8e4);
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.team-card__initials {
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.15);
  letter-spacing: -0.02em;
}

.team-card h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.team-card__role {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ===== STATS BAR ===== */
.stats {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 72px 0;
}

.stats .container {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 40px;
}

.stat__number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-highlight);
}

.stat__label {
  font-size: 0.88rem;
  opacity: 0.6;
  margin-top: 4px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section--with-bg {
  background: var(--color-text);
  color: #fff;
}

.cta-section--with-bg .section-label {
  color: var(--color-highlight);
}

.cta-section--with-bg p {
  color: rgba(255, 255, 255, 0.5);
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin: 0 auto 40px;
}

/* ===== VALUES GRID ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.value-card__number {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-highlight);
  margin-bottom: 20px;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.92rem;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
}

.contact-info__item .icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info__item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-info__item p {
  font-size: 1rem;
  color: var(--color-text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  transition: border-color var(--transition);
  outline: none;
}

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

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

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

/* ===== FOOTER ===== */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  opacity: 0.4;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.footer ul a:hover {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.4;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header--with-bg {
  padding: 180px 0 100px;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, 0.95) 0%,
    rgba(250, 250, 250, 0.85) 60%,
    rgba(250, 250, 250, 1) 100%
  );
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  margin: 0 auto;
  max-width: 560px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid,
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .showcase-item--wide { grid-column: span 6; }
  .showcase-item--tall { grid-column: span 6; }
  .showcase-item--medium { grid-column: span 6; }
  .showcase-item--landscape { grid-column: span 12; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    transition: transform var(--transition);
  }

  .nav__links.open {
    transform: translateY(0);
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats .container {
    flex-direction: column;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

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

  .showcase-item--wide,
  .showcase-item--tall,
  .showcase-item--medium,
  .showcase-item--landscape {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .image-banner {
    height: 250px;
  }

  .showreel__wrapper {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

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

  .showcase-item--wide,
  .showcase-item--tall,
  .showcase-item--medium,
  .showcase-item--landscape {
    aspect-ratio: 4/3;
  }
}
