/* ══════════════════════════════════════════════════════════
   contact.css  —  Preem Media Contact Page
   Extends the main site stylesheet. Import main styles first,
   then link this file after.
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&family=Inter:wght@400;500&display=swap');

/* ── CSS Custom Properties (mirrors main theme) ── */
:root {
  --color-bg:         #0b0b0b;
  --color-surface:    #1a1a1a;
  --color-accent:     #FFD700;
  --color-text:       #ffffff;
  --color-text-muted: #a0a0a0;
  --font-heading:     'Outfit', sans-serif;
  --font-body:        'Inter', sans-serif;

  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-8:  64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  --section-padding:   var(--space-20);
  --container-padding: var(--space-4);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography base ── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-2);
}

p {
  font-size: 1.125rem;
  color: var(--color-text);
  max-width: 65ch;
}

a {
  transition: all 0.3s ease;
}

.mt-p { margin-top: 1rem; }

/* ── Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-center { text-align: center; }

.section-label {
  font-family: var(--font-heading);
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-2);
  display: block;
}

/* ── Split layout ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

/* Reverse for section 4 (text left, image right stays natural; reverse = image first on DOM) */
.split-layout--reverse {
  /* Image placeholder is DOM-second, which is visually right — no change needed */
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 11, 11, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: rgba(11, 11, 11, 0.97);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--color-text);
  text-decoration: none;
}

.logo-dot {
  color: var(--color-accent);
}

.main-header nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.btn-nav {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.btn-nav:hover,
.btn-nav.active {
  color: var(--color-accent);
}

.btn-nav.active {
  background: rgba(255, 215, 0, 0.06);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ══════════════════════════════════════════
   SECTION 1 — HERO
══════════════════════════════════════════ */
.contact-hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 55% at 50% 0%,
    rgba(255, 215, 0, 0.09) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-hero__inner .section-label {
  margin-bottom: 1.25rem;
}

/* Gold hero accent word */
.text-accent-hero {
  color: var(--color-accent);
  display: inline-block;
  position: relative;
}

/* Shared text-accent from main site */
.text-accent {
  color: white;
  background: var(--color-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.text-accent:hover {
  color: var(--color-accent);
}

/* ══════════════════════════════════════════
   SECTION 2 — SPARK
══════════════════════════════════════════ */
.spark-section {
  padding: var(--section-padding) 0;
}

.spark-section .split-text p + p {
  margin-top: 1.25rem;
}

/* ── Section images (replace placeholder src with real filename) ── */
.section-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ══════════════════════════════════════════
   SECTION 3 — TELL US
══════════════════════════════════════════ */
.tell-us {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #0f0f0f 50%, var(--color-bg) 100%);
}

.tell-us .section-header {
  text-align: center;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tell-us .section-header p {
  text-align: center;
  margin-top: 1rem;
  max-width: 55ch;
}

.tell-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* Left copy column */
.tell-us__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tell-us__copy p {
  font-size: 1.125rem;
}

.tell-us__italic {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65) !important;
}

.tell-us__services {
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.8;
  margin-top: 2rem !important;
}

/* CTA button — call booking */
.btn-call {
  display: inline-block;
  width: auto;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-call:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

/* Contact form wrapper */
.tell-us__form-wrap {
  position: sticky;
  top: calc(var(--space-5) + 72px);
}

/* ── contact-form (mirrors main site style) ── */
.contact-form {
  background: var(--color-surface);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-form:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.12);
  transform: translateY(-4px);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1), 0 4px 12px rgba(255, 215, 0, 0.15);
  transform: scale(1.01);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-cta {
  width: 100%;
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-cta:active::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

.success-message,
.error-message {
  display: none;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.success-message {
  background: rgba(0, 255, 0, 0.08);
  border: 1px solid rgba(0, 255, 0, 0.25);
  color: #55dd55;
}

.error-message {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.25);
  color: #ff6666;
}

/* ══════════════════════════════════════════
   SECTION 4 — FOR BRANDS THAT DESERVE MORE
══════════════════════════════════════════ */
.deserve-more {
  padding: var(--section-padding) 0;
}

.deserve-more .split-layout {
  align-items: center;
}

/* Direct contact links */
.direct-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.direct-link:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.05);
  transform: translateX(6px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
}

.direct-link__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.15);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.3s;
}

.direct-link:hover .direct-link__icon {
  background: rgba(255, 215, 0, 0.15);
}

.direct-link span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.direct-link strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
}

.direct-link em {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-accent);
}

/* ══════════════════════════════════════════
   SECTION 5 — FINAL CTA
══════════════════════════════════════════ */
.final-cta {
  padding: var(--space-16) 0;
  margin-bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a1a' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  text-align: center;
  border-top: 1px solid var(--color-surface);
}

.final-cta h2 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 3rem;
}

.btn-xl {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  padding: 1.5rem 5rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid var(--color-accent);
  border-radius: 99px;
}

.btn-xl:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
  background: var(--color-accent);
  color: var(--color-bg);
  animation: glow 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: transparent;
}

.footer-content {
  width: 33.33%;
  margin-left: auto;
  margin-right: var(--space-5);
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@keyframes glow {
  0%,  100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  50%        { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tell-us__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .tell-us__form-wrap {
    position: static;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --space-20: 80px;
    --space-16: 64px;
    --space-8:  32px;
    --space-6:  40px;
  }

  .main-header {
    padding: 1rem;
  }

  /* Hamburger visible */
  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  /* Nav collapses */
  #mainNav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(11, 11, 11, 0.98);
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 100;
  }

  #mainNav.nav-open {
    display: flex;
  }

  #mainNav .btn-nav {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
  }

  /* Hero */
  .contact-hero {
    height: auto;
    min-height: 70vh;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  /* Split layouts stack */
  .split-layout,
  .split-layout--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  /* Image placeholder full-width */
  .img-placeholder {
    aspect-ratio: 16 / 9;
  }

  /* Section 4: put image above text on mobile */
  .deserve-more .split-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  /* Direct links */
  .direct-link:hover {
    transform: translateX(0) translateY(-3px);
  }

  /* Calendly CTA full width */
  .btn-call {
    width: 100%;
    text-align: center;
  }

  /* Final CTA */
  .btn-xl {
    font-size: 1.2rem;
    padding: 1.25rem 3rem;
  }

  /* Footer */
  .footer-content {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .contact-form {
    padding: 24px 20px;
  }

  .direct-link {
    padding: 1rem;
  }
}