/* ═══════════════════════════════════════════════════════
   CREATIVE EDGE MEDIA — Global Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --black:      #0D0D0D;
  --cream:      #FAFAF8;
  --gold:       #C9A84C;
  --gold-light: #E8D49A;
  --gold-dark:  #8B6914;
  --pink:       #E8A0B0;
  --pink-dark:  #C97089;
  --navy:       #1B2A4A;
  --gray:       #6B6B6B;
  --light:      #F3F0EA;
  --gradient:   linear-gradient(90deg, #C9A84C, #E8A0B0, #E8D49A, #C97089);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Montserrat', sans-serif; background: var(--cream); color: var(--black); overflow-x: hidden; line-height: 1.6; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.05; }
p { font-family: 'Montserrat', sans-serif; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-dark); color: var(--cream); }
.btn-outline { background: transparent; border: 1.5px solid rgba(250,250,248,0.35); color: var(--cream); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; border: 1.5px solid rgba(13,13,13,0.25); color: var(--black); }
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ── EYEBROW LABELS ── */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* ── SECTION WRAPPER ── */
.section-inner { max-width: 1100px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
nav {
  background: var(--black);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 44px; width: auto; }
.nav-wordmark { }
.nav-wordmark-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}
.nav-wordmark-name span { color: var(--gold); }
.nav-wordmark-tag {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.28);
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.65);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Portfolio dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  min-width: 180px;
  padding: 8px 0;
  z-index: 200;
}
/* Bridge the gap between trigger and menu so hover isn't lost */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 10px;
  color: rgba(250,250,248,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-dropdown-menu a:hover { color: var(--gold); background: rgba(201,168,76,0.05); }

.nav-cta { background: var(--gold); color: var(--black) !important; padding: 10px 20px; border-radius: 2px; font-weight: 700 !important; font-size: 10px !important; }
.nav-cta:hover { background: var(--gold-dark) !important; color: var(--cream) !important; }

/* Mobile menu toggle */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--cream); border-radius: 1px; transition: all 0.3s; }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  min-height: 90vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 48px 120px;
  position: relative;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.5) 0%, rgba(13,13,13,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  font-size: 9px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 20px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.06;
  color: var(--cream);
  margin-bottom: 24px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 14px; line-height: 1.85; color: rgba(250,250,248,0.58); max-width: 520px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll span { font-size: 8px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(250,250,248,0.25); }
.hero-scroll-line { width: 1px; height: 36px; background: linear-gradient(180deg, rgba(201,168,76,0.5), transparent); }
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ═══════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════ */
.services { padding: 96px 48px; background: var(--cream); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; gap: 24px; flex-wrap: wrap; }
.services-header h2 { font-size: clamp(32px, 4vw, 52px); color: var(--black); }
.services-header h2 em { color: var(--gold); font-style: italic; }
.services-header-right { font-size: 13px; line-height: 1.8; color: var(--gray); max-width: 400px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.service-card {
  background: var(--light);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: transparent; transition: background 0.3s; }
.service-card:hover { background: var(--black); }
.service-card:hover::before { background: var(--gradient); }
.service-card:hover .service-num { color: rgba(201,168,76,0.5); }
.service-card:hover .service-title { color: var(--cream); }
.service-card:hover .service-body { color: rgba(250,250,248,0.55); }
.service-card:hover .service-link { color: var(--gold); }
.service-num { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: block; transition: color 0.3s; }
.service-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; color: var(--black); margin-bottom: 14px; transition: color 0.3s; }
.service-body { font-size: 12.5px; line-height: 1.85; color: rgba(13,13,13,0.62); transition: color 0.3s; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); transition: all 0.2s; }
.service-link::after { content: '→'; transition: transform 0.2s; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════
   PORTFOLIO CATEGORIES
   ═══════════════════════════════════════════════════════ */
.portfolio-section { padding: 96px 48px; background: var(--black); }
.portfolio-section .eyebrow { justify-content: center; margin-bottom: 8px; }
.portfolio-section h2 { font-size: clamp(32px, 4vw, 52px); color: var(--cream); text-align: center; margin-bottom: 14px; }
.portfolio-section h2 em { color: var(--gold); font-style: italic; }
.portfolio-intro { font-size: 13px; line-height: 1.85; color: rgba(250,250,248,0.5); max-width: 480px; margin: 0 auto 52px; text-align: center; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; max-width: 1100px; margin: 0 auto; }
.portfolio-cat {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
}
.portfolio-cat-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, opacity 0.4s ease;
  opacity: 0.72;
}
.portfolio-cat:hover .portfolio-cat-img { transform: scale(1.04); opacity: 0.55; }
.portfolio-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(13,13,13,0.88) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 36px;
  text-align: center;
}
.portfolio-cat-num { font-size: 9px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.portfolio-cat-title { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: var(--cream); margin-bottom: 12px; line-height: 1; }
.portfolio-cat-cta {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(250,250,248,0.45); display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.portfolio-cat:hover .portfolio-cat-cta { color: var(--gold); }
.portfolio-cat-cta::after { content: '→'; transition: transform 0.2s; }
.portfolio-cat:hover .portfolio-cat-cta::after { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════
   WHY CEM
   ═══════════════════════════════════════════════════════ */
.why { padding: 96px 48px; background: var(--navy); }
.why h2 { font-size: clamp(28px, 3.5vw, 46px); color: var(--cream); margin-bottom: 52px; }
.why h2 em { color: var(--gold); font-style: italic; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { border-top: 1px solid rgba(201,168,76,0.22); padding-top: 24px; }
.why-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--cream); margin-bottom: 10px; }
.why-body { font-size: 12.5px; line-height: 1.85; color: rgba(250,250,248,0.5); }

/* ═══════════════════════════════════════════════════════
   QUOTE
   ═══════════════════════════════════════════════════════ */
.quote-section {
  padding: 96px 48px;
  background: var(--black);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.quote-section::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.quote-section blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 300; font-style: italic;
  color: var(--cream);
  max-width: 800px; margin: 0 auto 28px;
  line-height: 1.45;
}
.quote-section blockquote em { color: var(--gold); font-style: normal; }
.quote-attr { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */
.about { padding: 96px 48px; background: var(--cream); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  background: var(--light);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 18px; color: rgba(13,13,13,0.2); text-align: center; line-height: 1.8;
}
.about h2 { font-size: clamp(28px, 3.5vw, 46px); color: var(--black); margin-bottom: 20px; }
.about h2 em { color: var(--gold); font-style: italic; }
.about-body { font-size: 14px; line-height: 1.9; color: rgba(13,13,13,0.68); margin-bottom: 16px; }
.about-sig { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-style: italic; font-weight: 300; color: var(--gold); margin: 24px 0 4px; }
.about-title { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(13,13,13,0.35); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════════════
   CONTACT CTA
   ═══════════════════════════════════════════════════════ */
.contact-cta { padding: 80px 48px; background: var(--light); text-align: center; }
.contact-cta h2 { font-size: clamp(28px, 3.5vw, 46px); color: var(--black); max-width: 560px; margin: 0 auto 12px; }
.contact-cta h2 em { color: var(--gold); font-style: italic; }
.contact-cta-sub { font-size: 13px; line-height: 1.85; color: var(--gray); max-width: 480px; margin: 0 auto 36px; }
.contact-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.contact-cta-detail { font-size: 11px; color: rgba(13,13,13,0.35); letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
footer {
  background: var(--navy);
  padding: 64px 48px 32px;
  position: relative;
}
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); margin-bottom: 4px; }
.footer-brand-name span { color: var(--gold); }
.footer-tagline-text { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,250,248,0.28); margin-bottom: 16px; }
.footer-desc { font-size: 12px; line-height: 1.8; color: rgba(250,250,248,0.42); margin-bottom: 22px; max-width: 220px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(250,250,248,0.14);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,248,0.38);
  font-size: 11px; font-weight: 700; text-decoration: none;
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-col-title { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 12px; color: rgba(250,250,248,0.42); letter-spacing: 0.03em; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 12px; line-height: 1.9; color: rgba(250,250,248,0.42); }
.footer-contact a { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(250,250,248,0.07); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 10px; color: rgba(250,250,248,0.18); letter-spacing: 0.06em; }

/* ═══════════════════════════════════════════════════════
   PORTFOLIO PAGES
   ═══════════════════════════════════════════════════════ */
.portfolio-hero {
  background: var(--black);
  padding: 80px 48px 72px;
  text-align: center;
  position: relative;
}
.portfolio-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.portfolio-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18; }
.portfolio-hero-content { position: relative; z-index: 2; }
.portfolio-hero h1 { font-size: clamp(36px, 5vw, 68px); font-weight: 300; color: var(--cream); margin-bottom: 14px; }
.portfolio-hero h1 em { color: var(--gold); font-style: italic; }
.portfolio-hero-sub { font-size: 13px; color: rgba(250,250,248,0.5); max-width: 480px; margin: 0 auto; line-height: 1.8; }
.portfolio-back { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; transition: gap 0.2s; }
.portfolio-back::before { content: '←'; }
.portfolio-back:hover { gap: 10px; }

.portfolio-gallery { padding: 72px 48px; background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 1100px; margin: 0 auto 64px; }
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light);
  position: relative;
  cursor: pointer;
}
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(13,13,13,0.18);
}

.video-section { padding: 0 48px 72px; background: var(--cream); }
.video-section-inner { max-width: 1100px; margin: 0 auto; }
.video-section h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.video-section h3 em { color: var(--gold); font-style: italic; }
.video-divider { width: 40px; height: 2px; background: var(--gradient); margin: 10px 0 32px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.video-embed { aspect-ratio: 16/9; background: var(--black); overflow: hidden; position: relative; border-radius: 4px; }
.video-embed.video-portrait { aspect-ratio: 9/16; max-height: 520px; justify-self: center; width: auto; }
.video-embed iframe { width: 100%; height: 100%; border: none; }
.video-embed video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-embed.video-portrait video { object-fit: contain; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: #111;
}
.video-placeholder-icon { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(201,168,76,0.4); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 18px; }
.video-placeholder-text { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,250,248,0.25); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero, .services, .portfolio-section, .why, .quote-section,
  .about, .contact-cta, .portfolio-gallery, .video-section { padding-left: 24px; padding-right: 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions, .contact-cta-actions { flex-direction: column; align-items: center; }
}
