/* ============================================================
   Vivega Studios — Stylesheet
   Warm cream brand palette with teal accents
   ============================================================ */

:root {
  --background: #f7f3e8;      /* cream */
  --card: #ffffff;           /* white panels */
  --foreground: #1f1d1a;     /* charcoal text */
  --muted: #ece6d7;          /* image placeholder bg */
  --border: #e3ded0;         /* soft cream border */
  --primary: #007893;        /* teal */
  --primary-hover: #00647b;
  --primary-foreground: #ffffff;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---------- Helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--primary); }

.accent-line {
  width: 40px;
  height: 3px;
  background: var(--primary);
}
.accent-line.center { margin: 0 auto 24px; }

.section { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }

.section-head { text-align: center; margin-bottom: 64px; }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.body-text {
  color: rgba(31, 29, 26, 0.7);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .body-text { font-size: 1.125rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.btn-full { width: 100%; }

/* ---------- Navbar (solid cream) ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(247, 243, 232, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  background: rgba(247, 243, 232, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo img { width: 150px; height: 44px; object-fit: contain; }
.nav-links { display: none; gap: 32px; }
.nav-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(31, 29, 26, 0.75);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 8px;
  display: flex;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  background: rgba(247, 243, 232, 0.99);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(31, 29, 26, 0.75);
}
.mobile-menu a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 24px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- About ---------- */
.about { background: var(--background); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.about-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

.about-text-full { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text-full .about-eyebrow { justify-content: center; }
.about-text-full .section-title { margin-bottom: 32px; }

.sandra-solo {
  max-width: 520px;
  margin: 48px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.sandra-solo img { width: 100%; display: block; }

.team-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 64px;
}
@media (min-width: 640px) { .team-gallery { grid-template-columns: 1fr 1fr; } }
.team-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-photo:hover img { transform: scale(1.04); }
.team-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 20px 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}
.team-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
}
.team-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Services ---------- */
.services { background: var(--card); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  border-color: rgba(0, 120, 147, 0.4);
  box-shadow: 0 12px 30px rgba(0, 120, 147, 0.12);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(0, 120, 147, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.3s ease;
}
.service-card:hover .service-icon { background: rgba(0, 120, 147, 0.18); }
.service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.service-desc {
  color: rgba(31, 29, 26, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Portfolio ---------- */
.portfolio { background: var(--background); }
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-item {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--muted);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
}
.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
}
.portfolio-cat {
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
}

/* ---------- Work intro + Category sections ---------- */
.work-intro {
  background: var(--card);
  padding-bottom: 24px;
}
.section-sub {
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  color: rgba(31, 29, 26, 0.7);
  font-size: 1.05rem;
  line-height: 1.7;
}
.category {
  padding: 72px 0;
}
@media (min-width: 768px) { .category { padding: 96px 0; } }
.category-light { background: var(--background); }
.category-white { background: var(--card); }
.category-head {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}
.category-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}
.category-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--foreground);
  margin-bottom: 16px;
}
.category-desc {
  color: rgba(31, 29, 26, 0.7);
  font-size: 1.02rem;
  line-height: 1.75;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* portfolio-item as a button (video trigger) */
button.portfolio-item {
  padding: 0;
  border: none;
  width: 100%;
  font: inherit;
  text-align: inherit;
  color: inherit;
}
.portfolio-item.has-video { cursor: pointer; }
/* keep the play overlay faintly visible so videos are obviously playable */
.portfolio-overlay--video {
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.05) 55%, rgba(0,0,0,0));
}
.portfolio-item.has-video:hover .portfolio-overlay--video {
  background: rgba(0, 0, 0, 0.55);
}

/* ---------- Video lightbox ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(4px);
}
.video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  z-index: 1;
}
.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.25); }
@media (max-width: 600px) {
  .video-modal-close { top: -44px; right: 50%; transform: translateX(50%); }
}

/* ---------- Contact ---------- */
.contact { background: var(--card); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--foreground);
  transition: border-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(31, 29, 26, 0.45); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { resize: none; }
.form-note {
  font-size: 0.75rem;
  color: rgba(31, 29, 26, 0.45);
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(31, 29, 26, 0.75);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-logo img { width: 140px; height: 40px; object-fit: contain; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(31, 29, 26, 0.55);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(31, 29, 26, 0.55); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--primary); }
.footer-copy {
  text-align: center;
  margin-top: 32px;
  font-size: 0.75rem;
  color: rgba(31, 29, 26, 0.4);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f7f3e8; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
