/*
 Theme Name:   Camzey Child
 Theme URI:    https://camzey.online
 Description:  Astra Child Theme for Camzey — live random cam chat platform
 Author:       Camzey
 Author URI:   https://camzey.online
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  camzey-child
*/

/* ============================================================
   CAMZEY — DESIGN TOKENS
   ============================================================ */
:root {
  --cel:        #3FC8E4;
  --cel-lt:     #A8EEF8;
  --cel-dk:     #0A9BBF;
  --cel-xlt:    #E4F9FD;
  --aqua:       #00C9B8;
  --aqua-lt:    #D0F7F4;
  --bg:         #F2FBFD;
  --bg2:        #E6F7FB;
  --white:      #FFFFFF;
  --txt:        #0D2B36;
  --txt2:       #1E4D60;
  --muted:      #5A8FA0;
  --night:      #0A1E28;
  --border:     rgba(63, 200, 228, 0.2);
  --border2:    rgba(63, 200, 228, 0.38);
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --shadow-sm:  0 2px 14px rgba(63, 200, 228, 0.12);
  --shadow-md:  0 6px 28px rgba(63, 200, 228, 0.22);
  --shadow-lg:  0 12px 48px rgba(63, 200, 228, 0.28);
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 50px;
}

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--cel-dk); text-decoration: none; transition: color .2s; }
a:hover { color: var(--aqua); }

/* ============================================================
   ASTRA OVERRIDES
   ============================================================ */

/* Site background */
#page, .site { background: var(--bg) !important; }

/* Max width */
.ast-container { max-width: 1240px !important; }

/* Remove Astra page padding */
.entry-content,
.ast-article-single { padding: 0 !important; }

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ============================================================
   HEADER — sticky, scrolls with the page
   ============================================================ */
#masthead,
.site-header,
.main-header-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(242, 251, 253, 0.93) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  transition: background .3s, box-shadow .3s;
}

/* Slightly more opaque on scroll (class added via JS) */
#masthead.scrolled,
.site-header.scrolled {
  background: rgba(242, 251, 253, 0.98) !important;
  box-shadow: 0 2px 20px rgba(63,200,228,.1) !important;
}

/* ============================================================
   LOGO
   ============================================================ */
.site-title,
.site-title a {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 1.7rem !important;
  letter-spacing: -.03em !important;
  color: var(--night) !important;
  text-decoration: none !important;
}

.site-title a em,
.logo-em { color: var(--cel-dk); font-style: normal; }

.logo-pip {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--aqua);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
  position: relative; top: -3px;
  animation: pip 2.2s ease-in-out infinite;
}
@keyframes pip {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.7); opacity: .35; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-navigation ul li a,
.main-header-menu li a {
  font-family: var(--font-body) !important;
  color: var(--muted) !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  transition: color .2s !important;
}
.main-navigation ul li a:hover,
.main-header-menu li a:hover {
  color: var(--cel-dk) !important;
  background: transparent !important;
}
.main-navigation ul li.current-menu-item > a {
  color: var(--cel-dk) !important;
  font-weight: 600 !important;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--night);
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem,5vw,4.2rem); margin-bottom: 1.3rem; }
h2 { font-size: clamp(1.6rem,3vw,2.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .75rem; }
p  { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }

.gradient-heading {
  background: linear-gradient(90deg, var(--cel-dk), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--cel-dk), var(--aqua));
  color: #fff !important;
  border: none;
  border-radius: var(--r-pill);
  padding: .95rem 2.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}
.btn-primary:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  color: var(--cel-dk) !important;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-pill);
  padding: .95rem 2.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none !important;
}
.btn-outline:hover {
  border-color: var(--cel-dk);
  background: var(--cel-xlt);
}

/* ============================================================
   REUSABLE SECTION CLASSES
   (Use these in Elementor or page templates)
   ============================================================ */
.camzey-section {
  position: relative;
  padding: 5rem 3rem;
  max-width: 1240px;
  margin: 0 auto;
}
.camzey-section--alt {
  background: var(--bg2);
}

.section-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cel-dk);
  background: var(--cel-xlt);
  border: 1px solid rgba(63,200,228,.28);
  padding: .3rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: .9rem;
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.6rem,3vw,2.3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--night);
  margin-bottom: 2.5rem;
}
.section-heading span { color: var(--cel-dk); }
.section-center { text-align: center; }

/* ============================================================
   CARD COMPONENT
   ============================================================ */
.camzey-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.7rem;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.camzey-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cel-dk), var(--aqua));
  opacity: 0;
  transition: opacity .22s;
}
.camzey-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(63,200,228,.15); border-color: var(--cel); }
.camzey-card:hover::before { opacity: 1; }

.camzey-card__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--cel-xlt);
  border: 1.5px solid rgba(63,200,228,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.camzey-card__title { font-family: var(--font-head); font-size: .98rem; font-weight: 700; color: var(--night); margin-bottom: .5rem; }
.camzey-card__text  { font-size: .875rem; color: var(--muted); line-height: 1.58; margin: 0; }

/* ============================================================
   GLASSMORPHISM CARD
   ============================================================ */
.glass-card {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .22s, box-shadow .22s;
  text-align: center;
}
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.55); }
.glass-card__number { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #fff; display: block; line-height: 1; text-shadow: 0 1px 8px rgba(0,0,0,.1); }
.glass-card__label  { font-size: .7rem; color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .08em; margin-top: .4rem; display: block; }

/* ============================================================
   TRUST BAND
   ============================================================ */
.trust-band {
  background: linear-gradient(135deg, var(--cel-dk) 0%, #0bbfb0 100%);
  padding: 3.5rem 3rem;
}
.trust-grid {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.trust-grid .glass-card { flex: 1; min-width: 155px; max-width: 195px; }

/* ============================================================
   WAVE DIVIDER
   ============================================================ */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ============================================================
   LIVE PILL
   ============================================================ */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-pill);
  padding: .42rem 1.1rem;
  font-size: .76rem;
  font-weight: 600;
  color: var(--cel-dk);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.live-dot {
  width: 7px; height: 7px;
  background: #e83a3a;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(232,58,58,.75);
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ============================================================
   HERO STATS BAR
   ============================================================ */
.hero-stats-bar {
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 520px;
}
.hero-stat { flex: 1; padding: 1.3rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; }
.hero-stat__number { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--cel-dk); display: block; line-height: 1; }
.hero-stat__label  { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .35rem; display: block; }

/* ============================================================
   PHOTO STACK CARDS
   ============================================================ */
.photo-stack { position: relative; }

.photo-card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 32px rgba(10,155,191,.18);
  cursor: pointer;
  transition: transform .35s, box-shadow .25s;
}
.photo-card:hover { z-index: 20 !important; box-shadow: 0 16px 48px rgba(10,155,191,.32) !important; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.04); }
.photo-card__bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.68));
  display: flex; align-items: center; justify-content: space-between;
}
.photo-card__name { font-size: .75rem; font-weight: 600; color: #fff; }
.photo-card__live { font-size: .6rem; font-weight: 700; background: #e83a3a; color: #fff; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.camzey-cta {
  margin: 0 3rem 4rem;
  border-radius: var(--r-xl);
  padding: 5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--cel-xlt), var(--aqua-lt));
  border: 1.5px solid rgba(63,200,228,.28);
  overflow: hidden;
  position: relative;
}
.camzey-cta::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,200,228,.18), transparent 70%);
}
.camzey-cta::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,184,.14), transparent 70%);
}
.camzey-cta h2 { position: relative; z-index: 1; color: var(--night); margin-bottom: .8rem; }
.camzey-cta p  { position: relative; z-index: 1; margin-bottom: 2.2rem; }
.camzey-cta .btn-primary { position: relative; z-index: 1; }

/* ============================================================
   STEP CARDS (How it works)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
  align-items: start;
}
.step-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.4rem 2rem;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(63,200,228,.15); border-color: var(--cel); }
.step-num  { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: rgba(63,200,228,.18); line-height: 1; margin-bottom: .8rem; }
.step-title{ font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--night); margin-bottom: .5rem; }
.step-arrow{ display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--cel); padding-top: 3rem; }

/* ============================================================
   GRID UTILITIES
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }
.reveal--d4 { transition-delay: .4s; }

/* ============================================================
   INNER PAGE — content area
   ============================================================ */
.page-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, #colophon {
  background: var(--white) !important;
  border-top: 1px solid var(--border) !important;
  padding: 2rem 3rem !important;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--txt2); text-decoration: none; }
.footer-logo em { color: var(--cel-dk); font-style: normal; }
.footer-links { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-size: .8rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cel-dk); }
.footer-note { font-size: .74rem; color: rgba(90,143,160,.5); }

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus { border-color: var(--cel-dk); box-shadow: 0 0 0 3px rgba(63,200,228,.15); }

/* ============================================================
   RESPONSIVE — TABLET ≤1080px
   ============================================================ */
@media (max-width: 1080px) {
  .camzey-hero { flex-direction: column; min-height: auto; padding: 4rem 2rem 3rem; gap: 3rem; }
  .camzey-hero__right { flex: none; width: 100%; max-width: 480px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .step-arrow { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤660px
   ============================================================ */
@media (max-width: 660px) {
  h1 { font-size: clamp(2rem,8vw,2.8rem); }
  h2 { font-size: clamp(1.4rem,6vw,1.8rem); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .camzey-section { padding: 3rem 1.5rem; }
  .camzey-cta { margin: 0 1.2rem 3rem; padding: 3.5rem 1.6rem; }
  .hero-stats-bar { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .trust-band { padding: 2.5rem 1.5rem; }
  .site-footer, #colophon { padding: 2rem 1.5rem !important; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
