/*
Theme Name:   Alphapix
Theme URI:    https://alphapix.com/
Description:  Alphapix — A Divi Child Theme with cinematic header & full-screen hero section inspired by premium restaurant branding.
Author:       Alphapix
Author URI:   https://alphapix.com/
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  alphapix
Tags:         divi, child-theme, restaurant, fullscreen-hero, custom-header
*/

/* ============================================================
   ALPHAPIX – DIVI CHILD THEME
   Cinematic Restaurant Header & Hero
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --ap-black:        #0a0a0a;
  --ap-deep:         #111111;
  --ap-dark:         #1a1a1a;
  --ap-gold:         #c9a84c;
  --ap-gold-light:   #e2c47a;
  --ap-gold-dim:     rgba(201,168,76,0.25);
  --ap-white:        #ffffff;
  --ap-off-white:    #f5f0e8;
  --ap-cream:        #ede8dc;
  --ap-gray:         #8a8a8a;
  --ap-nav-height:   90px;
  --ap-font-display: 'Cormorant Garamond', Georgia, serif;
  --ap-font-heading: 'Playfair Display', Georgia, serif;
  --ap-font-body:    'Montserrat', sans-serif;
  --ap-transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Base Reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ap-black);
  color: var(--ap-off-white);
  font-family: var(--ap-font-body);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0;
  overflow-x: hidden;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

/* Divi header wrapper */
#main-header,
.et-fixed-header {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
  transition: background var(--ap-transition), box-shadow var(--ap-transition) !important;
}

/* Scrolled state — dark glass */
.et-fixed-header.scrolled,
#main-header.et-fixed-header {
  background: rgba(10, 10, 10, 0.96) !important;
  box-shadow: 0 2px 40px rgba(0,0,0,0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Logo */
#logo,
.et_pb_image_wrap img,
.logo img {
  max-height: 60px !important;
  width: auto !important;
  transition: opacity var(--ap-transition) !important;
}

#logo:hover {
  opacity: 0.8 !important;
}

/* Nav container */
#et-top-navigation {
  padding: 0 !important;
}

#top-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Nav links */
#top-menu > li > a,
#top-menu .menu-item a {
  font-family: var(--ap-font-body) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--ap-white) !important;
  padding: 0 18px !important;
  line-height: var(--ap-nav-height) !important;
  position: relative;
  transition: color var(--ap-transition) !important;
}

#top-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--ap-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ap-transition);
}

#top-menu > li > a:hover {
  color: var(--ap-gold) !important;
}

#top-menu > li > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Gift Cards CTA button in nav */
#top-menu > li:last-child > a {
  color: var(--ap-gold) !important;
  border: 1px solid var(--ap-gold) !important;
  padding: 10px 22px !important;
  line-height: 1 !important;
  margin-top: calc((var(--ap-nav-height) - 40px) / 2);
  border-radius: 0 !important;
  letter-spacing: 0.16em !important;
  transition: background var(--ap-transition), color var(--ap-transition) !important;
}

#top-menu > li:last-child > a:hover {
  background: var(--ap-gold) !important;
  color: var(--ap-black) !important;
}

#top-menu > li:last-child > a::after {
  display: none;
}

/* Mobile menu */
.mobile_menu_bar::before {
  color: var(--ap-white) !important;
  font-size: 26px !important;
}

/* ── Transparent header height ────────────────────────────── */
.et_header_style_left #et-top-navigation,
.et_header_style_center #et-top-navigation {
  padding: 0 !important;
}

.et_pb_section.et_pb_fullwidth_section:first-of-type {
  padding-top: 0 !important;
}

/* ============================================================
   HERO SECTION  –  Full-screen cinematic
   ============================================================ */

/* Custom hero class — add .ap-hero to your Divi section */
.ap-hero,
.et_pb_section.ap-hero {
  position: relative;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 !important;
}

/* Dark gradient overlay over hero background image */
.ap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 45%,
      rgba(0,0,0,0.65) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* Subtle grain texture overlay */
.ap-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

/* Hero inner content — sits above overlays */
.ap-hero .et_pb_row,
.ap-hero .ap-hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px !important;
  margin: 0 auto;
  padding: 120px 40px 80px;
}

/* ── Hero eyebrow ─────────────────────────────────────────── */
.ap-hero-eyebrow {
  display: inline-block;
  font-family: var(--ap-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ap-gold);
  margin-bottom: 28px;
  position: relative;
}

.ap-hero-eyebrow::before,
.ap-hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--ap-gold);
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.7;
}

/* ── Hero headline ────────────────────────────────────────── */
.ap-hero-headline,
.ap-hero h1,
.ap-hero .et_pb_text h1 {
  font-family: var(--ap-font-display) !important;
  font-size: clamp(52px, 8vw, 110px) !important;
  font-weight: 300 !important;
  line-height: 1.0 !important;
  letter-spacing: 0.06em !important;
  color: var(--ap-white) !important;
  margin: 0 0 10px !important;
  text-transform: uppercase;
}

/* Italic accent word */
.ap-hero-headline em,
.ap-hero h1 em {
  font-style: italic;
  color: var(--ap-gold-light);
  font-weight: 300;
}

/* ── Hero sub-headline ────────────────────────────────────── */
.ap-hero-sub,
.ap-hero .et_pb_text h2 {
  font-family: var(--ap-font-body) !important;
  font-size: clamp(11px, 1.4vw, 14px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.75) !important;
  margin: 16px 0 48px !important;
}

/* ── Hero divider ─────────────────────────────────────────── */
.ap-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 48px;
}

.ap-hero-divider span {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ap-gold));
}

.ap-hero-divider span:last-child {
  background: linear-gradient(to left, transparent, var(--ap-gold));
}

.ap-hero-divider i {
  width: 6px;
  height: 6px;
  background: var(--ap-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Hero CTA buttons ─────────────────────────────────────── */
.ap-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.ap-btn-primary,
.ap-hero .et_pb_button {
  display: inline-block;
  font-family: var(--ap-font-body) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: var(--ap-black) !important;
  background: var(--ap-gold) !important;
  border: 1px solid var(--ap-gold) !important;
  padding: 16px 42px !important;
  border-radius: 0 !important;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ap-transition), color var(--ap-transition), box-shadow var(--ap-transition) !important;
  position: relative;
  overflow: hidden;
}

.ap-btn-primary:hover,
.ap-hero .et_pb_button:hover {
  background: transparent !important;
  color: var(--ap-gold) !important;
  box-shadow: 0 0 30px var(--ap-gold-dim) !important;
}

.ap-btn-secondary {
  display: inline-block;
  font-family: var(--ap-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ap-white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 16px 42px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--ap-transition), color var(--ap-transition);
}

.ap-btn-secondary:hover {
  border-color: var(--ap-gold);
  color: var(--ap-gold);
}

/* ── Hero scroll indicator ────────────────────────────────── */
.ap-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  animation: ap-float 2.4s ease-in-out infinite;
}

.ap-scroll-indicator span {
  font-family: var(--ap-font-body);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ap-gold);
}

.ap-scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--ap-gold);
  border-bottom: 1px solid var(--ap-gold);
  transform: rotate(45deg);
}

@keyframes ap-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%        { transform: translateX(-50%) translateY(8px); }
}

/* ── Hero background image (set via Divi section background) */
.ap-hero .et_pb_section_video_bg,
.ap-hero .et-video-container {
  z-index: 0 !important;
}

/* ============================================================
   FADE-IN ANIMATIONS  (triggered by Divi's animation engine
   or add .ap-fade-up class manually)
   ============================================================ */

@keyframes ap-fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ap-fade-up {
  opacity: 0;
  animation: ap-fadeUp 1s var(--ap-transition) forwards;
}

.ap-fade-up:nth-child(1) { animation-delay: 0.1s; }
.ap-fade-up:nth-child(2) { animation-delay: 0.3s; }
.ap-fade-up:nth-child(3) { animation-delay: 0.5s; }
.ap-fade-up:nth-child(4) { animation-delay: 0.7s; }
.ap-fade-up:nth-child(5) { animation-delay: 0.9s; }

/* ============================================================
   DIVI FULLWIDTH HEADER OVERRIDES
   ============================================================ */

.et_pb_fullwidth_header_container {
  padding: 0 !important;
}

/* Fullwidth header module content */
.et_pb_fullwidth_header .header-content {
  padding: 0 !important;
}

.et_pb_fullwidth_header .et_pb_fullwidth_header_subhead {
  font-family: var(--ap-font-body) !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
}

.et_pb_fullwidth_header h1.et_pb_fullwidth_header_title {
  font-family: var(--ap-font-display) !important;
  font-weight: 300 !important;
  letter-spacing: 0.06em !important;
}

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 980px) {
  :root {
    --ap-nav-height: 70px;
  }

  #top-menu > li > a {
    padding: 0 12px !important;
    font-size: 10px !important;
  }

  .ap-hero .et_pb_row,
  .ap-hero .ap-hero-inner {
    padding: 100px 24px 60px;
  }

  .ap-btn-primary,
  .ap-btn-secondary {
    padding: 14px 30px !important;
  }
}

@media (max-width: 767px) {
  .ap-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .ap-btn-primary,
  .ap-btn-secondary {
    text-align: center;
  }

  #main-header {
    background: rgba(10,10,10,0.94) !important;
  }
}
