/*
Theme Name:  ViralFry
Theme URI:   https://viralfry.com
Author:      ViralFry
Author URI:  https://viralfry.com
Description: AI-powered growth agency theme for ViralFry. Fully customizable via the WordPress Customizer — colors, typography, section visibility, contact email, and more.
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: viralfry
Tags:        one-page, marketing, agency, custom-colors, custom-menu, full-width-template
*/

/* ══════════════════════════════════════════════
   CSS VARIABLES — driven by WP Customizer
   (see inc/customizer.php + functions.php)
   ══════════════════════════════════════════════ */
:root {
  --cream:        #faf7f2;
  --cream-dark:   #f2ede4;
  --ink:          #1a1510;
  --ink-mid:      #3d3530;
  --ink-soft:     #7a6e65;
  --accent:       #e05c2a;
  --accent-light: #f0794a;
  --sage:         #5c7a5e;
  --border:       #ddd5c8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --max-width:    1280px;
  --section-pad:  100px 48px;
  --radius:       2px;
}

/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}
img { max-width: 100%; height: auto; display: block; }
a   { transition: color 0.2s; }

/* ─── NAVIGATION ───────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(250,247,242,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }

/* WP Nav Menu */
#primary-menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
#primary-menu a { text-decoration: none; color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; letter-spacing: 0.02em; }
#primary-menu a:hover { color: var(--accent); }
#primary-menu .nav-cta a {
  background: var(--ink); color: var(--cream) !important;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.82rem !important; font-weight: 500 !important;
}
#primary-menu .nav-cta a:hover { background: var(--accent) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* Mobile Menu */
#mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 190;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
#mobile-menu.open { display: flex; }
#mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ink); text-decoration: none; }
#mobile-menu a:hover { color: var(--accent); }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ─── HERO ─────────────────────────────────── */
.hero-section {
  min-height: 100vh; padding: 160px 48px 100px;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px;
  align-items: center; max-width: var(--max-width); margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-dark); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; color: var(--sage);
  margin-bottom: 28px; letter-spacing: 0.04em;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
.hero-section h1 { font-family: var(--font-display); font-size: clamp(3rem,5.5vw,5.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 24px; }
.hero-section h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 1.05rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 40px; line-height: 1.7; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #fff; padding: 14px 28px; border-radius: var(--radius); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background 0.2s, transform 0.1s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); color: #fff; }
.btn-ghost { color: var(--ink-mid); text-decoration: none; font-size: 0.88rem; font-weight: 400; display: flex; align-items: center; gap: 6px; }
.btn-ghost::after { content: '↓'; }
.btn-ghost:hover { color: var(--accent); }

/* Hero Dashboard Card */
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 28px; box-shadow: 0 4px 32px rgba(26,21,16,.06); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.live-dot { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--sage); font-weight: 500; }
.live-dot::before { content: '●'; font-size: 0.6rem; animation: pulse 1.5s infinite; }
.metric-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0ebe3; }
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 0.84rem; color: var(--ink-mid); }
.metric-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.metric-val.green { color: var(--sage); }
.metric-val.orange { color: var(--accent); }
.card-footer { margin-top: 20px; padding: 12px 16px; background: var(--cream-dark); border-radius: 4px; display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--ink-mid); }
.card-footer strong { color: var(--accent); }

/* ─── STATS ────────────────────────────────── */
.stats-wrap { background: var(--cream-dark); }
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px; display: grid; grid-template-columns: repeat(3,1fr); max-width: var(--max-width); margin: 0 auto; }
.stat-item { text-align: center; padding: 24px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.5rem,4vw,4rem); font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.88rem; color: var(--ink-soft); font-weight: 300; }

/* ─── CLIENTS MARQUEE ──────────────────────── */
.clients-section { padding: 60px 48px; background: var(--cream-dark); overflow: hidden; }
.clients-label { text-align: center; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 32px; font-weight: 500; }
.marquee-wrap { overflow: hidden; }
.marquee-track { display: flex; gap: 60px; animation: marquee 22s linear infinite; width: max-content; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.client-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; cursor: default; }
.client-name:hover { color: var(--accent); }

/* ─── SECTION LAYOUT ───────────────────────── */
.section { padding: var(--section-pad); max-width: var(--max-width); margin: 0 auto; }
.section-tag { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 500; }
.section-heading { font-family: var(--font-display); font-size: clamp(2rem,3.5vw,3.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 1rem; color: var(--ink-soft); max-width: 560px; font-weight: 300; line-height: 1.7; margin-bottom: 64px; }

/* ─── SERVICES ─────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 2px; border: 1px solid var(--border); }
.service-card { padding: 36px 32px; border: 1px solid var(--border); background: #fff; transition: background 0.2s, transform 0.2s; }
.service-card:hover { background: var(--cream-dark); transform: translateY(-2px); }
.service-icon { font-size: 1.5rem; margin-bottom: 16px; display: block; }
.service-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.2; }
.service-desc { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.65; font-weight: 300; }
.service-badge { display: inline-block; margin-top: 12px; background: var(--accent); color: #fff; font-size: 0.68rem; padding: 3px 8px; border-radius: var(--radius); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* ─── PROCESS ──────────────────────────────── */
.process-bg { background: var(--cream-dark); }
.process-steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 80px 1fr; border-top: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.step:last-child { border-bottom: 1px solid var(--border); }
.step:hover { background: rgba(255,255,255,.6); }
.step.active { background: #fff; }
.step-num { padding: 32px 0; display: flex; align-items: flex-start; justify-content: center; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-soft); border-right: 1px solid var(--border); }
.step-body { padding: 28px 36px; }
.step-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.step-title .arrow { transition: transform 0.2s; color: var(--accent); }
.step.active .step-title .arrow { transform: rotate(90deg); }
.step-tagline { font-size: 0.84rem; color: var(--ink-soft); margin-top: 4px; font-weight: 300; }
.step-detail { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.step.active .step-detail { max-height: 300px; }
.step-detail-inner { padding-top: 20px; font-size: 0.9rem; color: var(--ink-mid); line-height: 1.7; font-weight: 300; }
.step-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.step-tag { background: var(--cream-dark); border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--radius); font-size: 0.75rem; color: var(--ink-soft); font-weight: 500; }

/* ─── CASE STUDIES ─────────────────────────── */
.cases-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; }
.case-card { background: #fff; border: 1px solid var(--border); padding: 44px 40px; transition: background 0.2s; }
.case-card:hover { background: var(--cream-dark); }
.case-category { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.case-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--ink); line-height: 1.25; margin-bottom: 20px; }
.case-desc { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.7; font-weight: 300; margin-bottom: 28px; }
.case-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.case-metric-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.case-metric-label { font-size: 0.75rem; color: var(--ink-soft); font-weight: 300; margin-top: 4px; }

/* ─── ABOUT ────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: start; }
.about-body { font-size: 1rem; color: var(--ink-mid); line-height: 1.8; font-weight: 300; }
.about-body p { margin-bottom: 20px; }
.about-checks { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.about-check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--ink-mid); }
.about-check::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.about-sidebar { background: var(--cream-dark); border: 1px solid var(--border); border-radius: 4px; padding: 32px; }
.sidebar-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.sidebar-row:last-child { border-bottom: none; }
.sidebar-key { color: var(--ink-soft); font-weight: 300; }
.sidebar-val { color: var(--ink); font-weight: 500; text-align: right; }
.sidebar-val a { color: var(--accent); text-decoration: none; }

/* ─── INDUSTRIES ───────────────────────────── */
.industries-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.industry-tile { background: #fff; border: 1px solid var(--border); padding: 28px 24px; text-align: center; transition: background 0.2s, transform 0.2s; }
.industry-tile:hover { background: var(--cream-dark); transform: translateY(-3px); }
.industry-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.industry-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.industry-sub { font-size: 0.75rem; color: var(--ink-soft); font-weight: 300; }

/* ─── CTA BANNER ───────────────────────────── */
.cta-section { padding: 120px 48px; text-align: center; background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.cta-section::before { content:''; position:absolute; top:-100px; left:-100px; width:500px; height:500px; background:radial-gradient(circle,rgba(224,92,42,.2) 0%,transparent 70%); pointer-events:none; }
.cta-section::after  { content:''; position:absolute; bottom:-80px; right:-80px; width:400px; height:400px; background:radial-gradient(circle,rgba(92,122,94,.15) 0%,transparent 70%); pointer-events:none; }
.cta-section .section-tag { color: var(--accent); }
.cta-section .section-heading { color: var(--cream); margin-bottom: 20px; }
.cta-section .section-sub { color: rgba(250,247,242,.6); margin: 0 auto 44px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: var(--cream); color: var(--ink); padding: 14px 28px; text-decoration: none; font-size: 0.9rem; font-weight: 500; border-radius: var(--radius); }
.btn-light:hover { background: var(--cream-dark); color: var(--ink); }
.btn-outline { border: 1px solid rgba(250,247,242,.3); color: var(--cream); padding: 14px 28px; text-decoration: none; font-size: 0.9rem; font-weight: 400; border-radius: var(--radius); }
.btn-outline:hover { border-color: var(--cream); color: var(--cream); }

/* ─── CONTACT ──────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.contact-info p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; font-weight: 300; margin-bottom: 36px; }
.contact-detail { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.87rem; }
.contact-item-icon { font-size: 1rem; }
.contact-item-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 2px; font-weight: 500; }
.contact-item-val { color: var(--ink); }
.contact-item-val a { color: var(--accent); text-decoration: none; }
.contact-form-wrap { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.78rem; font-weight: 500; color: var(--ink-mid); letter-spacing: 0.04em; }
.form-group input,.form-group select,.form-group textarea { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-family: var(--font-body); font-size: 0.9rem; color: var(--ink); outline: none; transition: border-color 0.2s; width: 100%; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { background: var(--accent); color: #fff; border: none; padding: 14px 28px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: var(--radius); align-self: flex-start; transition: background 0.2s; }
.form-submit:hover { background: var(--accent-light); }
.form-response { font-size: 0.85rem; padding: 12px 16px; border-radius: var(--radius); display: none; }
.form-response.success { background: #edf7ee; border: 1px solid var(--sage); color: var(--sage); display: block; }
.form-response.error   { background: #fdecea; border: 1px solid #e05c5c; color: #c0392b; display: block; }
.form-note { font-size: 0.75rem; color: var(--ink-soft); font-weight: 300; }

/* ─── FOOTER ───────────────────────────────── */
#site-footer { background: var(--ink); color: var(--cream); padding: 64px 48px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: var(--max-width); margin: 0 auto 48px; }
.footer-brand .footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--cream); margin-bottom: 14px; }
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.84rem; color: rgba(250,247,242,.5); line-height: 1.7; font-weight: 300; max-width: 240px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250,247,242,.4); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(250,247,242,.65); text-decoration: none; font-weight: 300; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding-top: 28px; border-top: 1px solid rgba(250,247,242,.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(250,247,242,.35); font-weight: 300; }
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ─── ANIMATIONS ───────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  #site-nav { padding: 16px 24px; }
  #primary-menu { display: none; }
  .hamburger { display: flex; }
  .hero-section { grid-template-columns: 1fr; padding: 120px 24px 60px; }
  .hero-card { display: none; }
  .stats-bar { grid-template-columns: 1fr; padding: 40px 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .section { padding: 72px 24px; }
  .clients-section { padding: 48px 24px; }
  .cases-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .industries-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 80px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
}
