/*
Theme Name: UpTurn Digital
Theme URI: https://upturndigi.com
Author: UpTurn Digital
Author URI: https://upturndigi.com
Description: Custom one-page theme for UpTurn Digital — a data-driven digital marketing agency.
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: upturn-digital
*/

/* ===== VARIABLES ===== */
:root {
  --deep-green: #092e15;
  --bright-green: #52cc7a;
  --black: #1a1a1a;
  --white: #ffffff;
  --green-alt: #52cb7b;
  --gradient-hero: linear-gradient(135deg, #092e15 0%, #0d4a22 40%, #145c2e 70%, #1a7038 100%);
  --gradient-accent: linear-gradient(135deg, #52cc7a, #3db866, #52cb7b);
  --font-display: 'Bitter', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ===== GRADIENT BLOB ===== */
.gradient-blob {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,204,122,0.22) 0%, rgba(82,204,122,0.08) 30%, rgba(82,204,122,0) 65%);
  pointer-events: none;
  left: -300px; top: -300px;
  z-index: 2;
}

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(9, 46, 21, 0.08);
  transition: all 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nav-logo-img { height: 70px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav-links a {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: #092e15; text-decoration: none;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: #51cb7a;
  transition: width 0.3s ease;
}
.nav-links a:hover { color: #51cb7a; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 24px !important;
  background: var(--gradient-accent) !important;
  color: var(--deep-green) !important;
  border-radius: 50px; font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(82, 204, 122, 0.35);
}
.nav-cta::after { display: none !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 5px;
}
.hamburger span { width: 28px; height: 2px; background: #092e15; transition: all 0.3s ease; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 40px 80px;
}
.hero-bg-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-bg-shapes .circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(82, 204, 122, 0.1);
}
.circle-1 { width: 600px; height: 600px; top: -200px; right: -150px; animation: float 20s ease-in-out infinite; }
.circle-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; animation: float 15s ease-in-out infinite reverse; }
.circle-3 { width: 250px; height: 250px; top: 40%; left: 60%; background: rgba(82,204,122,0.03); animation: float 12s ease-in-out infinite 2s; }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(82,204,122,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82,204,122,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -30px) rotate(2deg); }
  66% { transform: translate(-15px, 15px) rotate(-1deg); }
}
.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 7rem; font-weight: 800;
  color: var(--white); line-height: 1.05;
  margin-bottom: 28px;
}
.hero-text h1 em {
  font-style: italic;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.2rem; color: rgba(255,255,255,0.75);
  line-height: 1.7; margin-bottom: 40px;
  max-width: 520px; font-weight: 400;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: var(--gradient-accent);
  color: var(--deep-green); font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  border-radius: 50px; transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(82,204,122,0.4);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: transparent;
  color: var(--white); font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  border-radius: 50px; border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease; cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--bright-green);
  color: var(--bright-green);
  background: rgba(82,204,122,0.05);
}
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; width: 100%; max-width: 420px;
}
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(82,204,122,0.15);
  border-radius: 16px; padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(82,204,122,0.4); }
.stat-card:nth-child(2) { transform: translateY(20px); }
.stat-card:nth-child(2):hover { transform: translateY(16px); }
.stat-card:nth-child(3) { transform: translateY(-10px); }
.stat-card:nth-child(3):hover { transform: translateY(-14px); }
.stat-number {
  font-family: var(--font-display); font-size: 2.2rem;
  font-weight: 800; color: var(--bright-green); margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
}

/* ===== SHARED ===== */
section { padding: 120px 40px; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-label {
  display: inline-block; font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--bright-green); margin-bottom: 16px;
  padding: 8px 20px; background: rgba(82,204,122,0.08);
  border-radius: 50px; border: 1px solid rgba(82,204,122,0.15);
}
.section-title {
  font-family: var(--font-display); font-size: 2.8rem;
  font-weight: 700; color: var(--black); line-height: 1.2;
  max-width: 650px; margin: 0 auto;
}
.section-title em { font-style: italic; color: var(--bright-green); }

/* ===== SERVICES ===== */
#services { background: var(--white); }
.services-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  position: relative; padding: 44px 32px;
  background: var(--white);
  border: 1px solid rgba(9,46,21,0.08);
  border-radius: 20px; transition: all 0.4s ease;
  overflow: hidden; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: rgba(82,204,122,0.25);
  box-shadow: 0 20px 60px rgba(9,46,21,0.08);
  transform: translateY(-6px);
}
.service-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon img { width: 64px; height: 64px; object-fit: contain; }
.service-card h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 700; color: var(--deep-green); margin-bottom: 14px;
}
.service-card p {
  font-size: 0.95rem; color: rgba(26,26,26,0.7);
  line-height: 1.7; font-weight: 400;
}

/* ===== ABOUT ===== */
#about { background: var(--deep-green); position: relative; overflow: hidden; }
#about .section-title { color: var(--white); }
.about-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text p {
  font-size: 1.08rem; color: rgba(255,255,255,0.75);
  line-height: 1.8; margin-bottom: 20px; font-weight: 400;
}
.about-features { display: flex; flex-direction: column; gap: 20px; }
.about-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(82,204,122,0.12);
  border-radius: 16px; transition: all 0.3s ease;
}
.about-feature:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(82,204,122,0.3);
}
.about-feature-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.about-feature-icon img { width: 48px; height: 48px; object-fit: contain; }
.about-feature h4 {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 600; color: var(--white); margin-bottom: 4px;
}
.about-feature p {
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
  margin: 0; line-height: 1.6;
}

/* ===== PROCESS ===== */
#process { background: #f8faf9; }
.process-steps {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 48px;
  left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, rgba(82,204,122,0.1), rgba(82,204,122,0.4), rgba(82,204,122,0.1));
}
.process-step { text-align: center; position: relative; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--deep-green); color: var(--bright-green);
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
  position: relative; z-index: 2;
  border: 3px solid rgba(82,204,122,0.2);
  transition: all 0.3s ease;
}
.process-step:hover .step-number {
  background: var(--bright-green); color: var(--deep-green);
  transform: scale(1.1);
}
.process-step h4 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 700; color: var(--deep-green); margin-bottom: 10px;
}
.process-step p {
  font-size: 0.95rem; color: rgba(26,26,26,0.6);
  line-height: 1.65; font-weight: 400;
}

/* ===== CONTACT ===== */
#contact { background: var(--white); }
.contact-wrapper {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--deep-green); margin-bottom: 16px;
}
.contact-info p {
  font-size: 1.02rem; color: rgba(26,26,26,0.65);
  line-height: 1.7; margin-bottom: 36px; font-weight: 400;
}
.contact-detail {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.contact-detail-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.contact-detail-icon img { width: 36px; height: 36px; object-fit: contain; }
.contact-detail span {
  font-size: 0.95rem; color: var(--black); font-weight: 500;
}
.contact-form {
  background: #f8faf9; border: 1px solid rgba(9,46,21,0.06);
  border-radius: 24px; padding: 44px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--deep-green); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px;
  border: 1px solid rgba(9,46,21,0.1);
  border-radius: 12px; font-family: var(--font-body);
  font-size: 0.95rem; color: var(--black);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--bright-green);
  box-shadow: 0 0 0 3px rgba(82,204,122,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 16px;
  background: var(--gradient-accent);
  color: var(--deep-green); font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700; border: none;
  border-radius: 12px; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase; letter-spacing: 1px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(82,204,122,0.3);
}

/* ===== FOOTER ===== */
.site-footer { background: var(--black); padding: 60px 40px 30px; }
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-logo-img { height: 46px; width: auto; display: block; filter: brightness(1.1); }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--bright-green); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-text h1 { font-size: 5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links {
    position: fixed; top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: #ffffff;
    flex-direction: column; align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 8px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    z-index: 999;
    display: flex;
  }
  .nav-links.active { right: 0; }
  .nav-links a {
    font-size: 0.95rem !important;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(9,46,21,0.06);
  }
  .nav-links a::after { display: none; }
  .nav-cta {
    margin-top: 16px;
    text-align: center !important;
    width: 100%;
    display: flex !important;
    justify-content: center;
    border-bottom: none !important;
  }
  .hamburger { display: flex; z-index: 1001; }
  .mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  section { padding: 80px 20px; }
  .hero-text h1 { font-size: 3.5rem; }
  .section-title { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .process-steps { grid-template-columns: 1fr; }
}
