/* =============================================
   EPESEGE — Global Styles
   ============================================= */

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

:root {
  --black: #0a0a0a;
  --white: #f5f2ed;
  --accent: #c8b07a;
  --accent-dark: #a0895a;
  --gray: #3a3a3a;
  --gray-light: #8a8a8a;
  --border: rgba(200,176,122,0.25);

  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;

  --nav-h: 72px;
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: var(--nav-h);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  z-index: 101;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.75);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.45rem 1.2rem;
  letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s;
}

.nav-links a.nav-cta:hover {
  background: var(--accent);
  color: var(--black);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.3) 50%,
    rgba(10,10,10,0.75) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1s 0.55s forwards;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.65);
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.45);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* =============================================
   SECTION SHARED
   ============================================= */
.section {
  padding: var(--section-pad) 0;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--black);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: default;
  transition: border-color 0.3s;
}

.service-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.service-item:hover {
  border-bottom-color: var(--accent);
}

.service-item:hover .service-name {
  color: var(--accent);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gray-light);
  letter-spacing: 0.1em;
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  transition: color 0.3s;
}

.service-line {
  width: 2rem;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.service-item:hover .service-line {
  width: 4rem;
}

/* =============================================
   BANNER (video section)
   ============================================= */
.banner {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.65);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.banner-text {
  color: rgba(245,242,237,0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--black);
}

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

.btn-dark:hover {
  background: var(--accent);
}

/* =============================================
   PROJECTS GRID
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--gray);
}

.project-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.06);
}

.project-info {
  padding: 1.25rem 1.5rem 1.5rem;
  background: rgba(20,20,20,0.95);
}

.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.projects-cta {
  margin-top: 3rem;
  text-align: center;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  background: var(--black);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero-img {
  width: 100%;
  max-height: 550px;
  overflow: hidden;
}

.about-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about-sections {
  background: var(--black);
}

.about-block {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.about-block-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.25rem;
}

.about-block-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.about-block-content p {
  color: rgba(245,242,237,0.72);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 680px;
}

.about-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  padding: calc(var(--nav-h) + 5rem) 0 var(--section-pad);
  background: var(--black);
}

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

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.contact-sub {
  color: rgba(245,242,237,0.7);
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 440px;
}

.contact-email {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}

.contact-email:hover {
  color: var(--accent-dark);
}

.contact-location {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  text-transform: uppercase;
}

.contact-right img {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: rgba(5,5,5,0.95);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

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

.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-right {
    display: none;
  }

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

  .service-item {
    grid-template-columns: 3.5rem 1fr;
  }

  .service-line { display: none; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--black);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    gap: 2.5rem;
    z-index: 100;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }

  .about-block {
    grid-template-columns: 1fr;
  }

  .about-block-num {
    font-size: 2rem;
  }
}
