/*
Theme Name: Little Big Dog
Theme URI: https://littlebigdog.io
Author: Little Big Dog
Author URI: https://littlebigdog.io
Description: AI agents and workflow automation for trades and service businesses. Custom-built by Little Big Dog.
Version: 2.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: littlebigdog
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1d3557;
  --navy-dark: #152a45;
  --navy-light: #264a73;
  --accent: #e63946;
  --accent-dark: #c9303c;
  --accent-light: #f04e5a;
  --steel-blue: #0fb6e5;
  --gray: #373737;
  --gray-light: #666;
  --light-gray: #f7f8fa;
  --light-blue: #eaf5fb;
  --white: #ffffff;
  --dark: #0d1117;
  /* Keep old variable names for backward compat with nav/footer */
  --boss-blue: #1d3557;
  --boss-blue-dark: #152a45;
  --boss-blue-light: #264a73;
  --cool-red: #e63946;
  --cool-red-dark: #c9303c;
  --cool-red-light: #f04e5a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Raleway', sans-serif;
  color: var(--gray);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 1.25rem; color: var(--navy);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-logo-img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 0.85rem; font-weight: 600; color: var(--gray-light);
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 10px 24px; border-radius: 8px; font-weight: 700;
  transition: all 0.3s ease; font-size: 0.85rem;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,57,70,0.3); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: all 0.3s ease; border-radius: 2px;
}

/* ======================== */
/* BUTTONS                  */
/* ======================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.3s ease; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.3);
}
.btn-accent {
  background: rgba(255,255,255,0.12); color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-accent:hover {
  background: rgba(255,255,255,0.2);
}
.btn-full { width: 100%; justify-content: center; }

/* ======================== */
/* SECTION HELPERS          */
/* ======================== */
.section-label-sm {
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-label-sm.light { color: var(--accent-light); }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  margin-bottom: 20px; color: var(--navy);
}
.section-title.light { color: var(--white); }
.section-title .accent { color: var(--accent); }
.section-sub {
  font-size: 1.05rem; color: var(--gray-light); max-width: 640px;
  line-height: 1.7; margin-bottom: 48px;
}
.section-sub.light { color: rgba(255,255,255,0.6); }

/* ======================== */
/* HERO                     */
/* ======================== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--white);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(29,53,87,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-tagline {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0; animation: fadeIn 1s ease 0.3s forwards;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800; color: var(--navy);
  margin-bottom: 24px; letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero-sub {
  font-size: 1.1rem; color: var(--gray-light);
  line-height: 1.7; margin-bottom: 36px; max-width: 520px;
}
.hero-ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(29,53,87,0.15);
}

/* ======================== */
/* STATS BAR                */
/* ======================== */
.stats-bar {
  padding: 64px 0;
  background: var(--light-gray);
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.stats-bar .section-label-sm {
  text-align: center; margin-bottom: 40px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  text-align: center;
}
.stat-number {
  font-family: 'DM Sans', sans-serif; font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800; color: var(--navy); display: block; margin-bottom: 8px;
}
.stat-desc {
  font-size: 0.9rem; color: var(--gray-light); line-height: 1.5;
  max-width: 240px; margin: 0 auto;
}

/* ======================== */
/* PROBLEM SECTION          */
/* ======================== */
.problem {
  padding: 100px 0;
  background: var(--navy);
}
.problem .section-sub {
  max-width: 700px;
}
.problem-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.problem-card {
  background: rgba(29,53,87,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 32px;
  transition: all 0.3s ease;
}
.problem-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.card-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: var(--accent); display: inline-block;
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.problem-card h3 {
  font-size: 1.5rem; font-weight: 700; color: var(--white);
  margin-bottom: 0; line-height: 1.4;
}
.problem-card p {
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ======================== */
/* SERVICES / WHAT WE DO    */
/* ======================== */
.services {
  padding: 100px 0;
  background: var(--light-gray);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--light-gray);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px; padding: 32px;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: rgba(29,53,87,0.12);
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(29,53,87,0.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--navy);
}
.service-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.88rem; color: var(--gray-light); line-height: 1.65;
}

/* ======================== */
/* RESULTS / CASE STUDY     */
/* ======================== */
.results {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.results::before {
  content: '';
  position: absolute; top: 10%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(29,53,87,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.case-study {
  position: relative; z-index: 1;
  max-width: 700px;
}
.case-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--accent); margin-bottom: 0; line-height: 1.3;
}
.case-client {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  text-transform: none; letter-spacing: 0;
  margin-bottom: 4px;
}
.case-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.6);
  line-height: 1.75; margin-bottom: 32px;
}

/* ======================== */
/* ABOUT                    */
/* ======================== */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.about-photo {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden; margin-bottom: 20px;
  border: 3px solid rgba(29,53,87,0.1);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-bio h3 {
  font-size: 1.3rem; font-weight: 800; color: var(--navy);
  margin-bottom: 4px;
}
.about-role {
  font-size: 0.85rem; color: var(--accent); font-weight: 600;
  margin-bottom: 20px;
}
.about-bio p {
  font-size: 0.92rem; color: var(--gray-light); line-height: 1.7;
  margin-bottom: 14px;
}
.about-traits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.trait-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px; padding: 24px;
  transition: all 0.3s ease;
}
.trait-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.trait-card h4 {
  font-size: 0.95rem; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.trait-card p {
  font-size: 0.84rem; color: var(--gray-light); line-height: 1.6;
}

/* ======================== */
/* CTA / CONTACT            */
/* ======================== */
.cta-section {
  padding: 100px 0;
  background: var(--navy);
}
.cta-section .section-title {
  text-align: center;
}
.cta-section .section-sub {
  text-align: center; margin: 0 auto 48px; max-width: 560px;
}
.contact-form-wrap {
  max-width: 580px; margin: 0 auto;
}
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.5); margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  transition: all 0.3s ease;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--steel-blue);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(15,182,229,0.1);
}
.contact-form select option { background: var(--navy); color: var(--white); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note {
  text-align: center; font-size: 0.75rem;
  color: rgba(255,255,255,0.25); margin-top: 24px;
}

/* ======================== */
/* FOOTER                   */
/* ======================== */
footer {
  background: var(--dark); padding: 48px 0 32px;
  color: rgba(255,255,255,0.35);
}
footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center;
}
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.75; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 0.75rem; width: 100%; text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); }

.footer-social { display: flex; justify-content: center; width: 100%; margin-top: 16px; }
.footer-social a {
  color: rgba(255,255,255,0.35); transition: color 0.2s;
  margin: 0 10px; display: flex; align-items: center;
}
.footer-social a:hover { color: rgba(255,255,255,0.7); }
.footer-social svg { width: 18px; height: 18px; }

/* ======================== */
/* RESPONSIVE               */
/* ======================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: rgba(255,255,255,0.98);
    padding: 24px 32px; gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
  }
  section, .hero, .problem, .services, .results, .about, .cta-section { padding: 72px 0; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-ctas { justify-content: center; }
  .hero-image img { height: 280px; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .problem-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-traits { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .about-traits { grid-template-columns: 1fr; }
}

/* Case Study - Updated Layout */
.case-study-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 32px;
}
.case-logo {
  width: 80px; height: 80px; max-width: 80px; object-fit: contain;
  background: var(--light-gray); border-radius: 12px; padding: 8px;
  flex-shrink: 0;
}
.case-quote {
  background: rgba(255,255,255,0.06);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px; margin-bottom: 28px;
}
.case-quote p {
  font-size: 1.15rem; line-height: 1.7;
  color: var(--navy); font-style: italic;
  margin: 0;
}
.case-quote cite {
  display: block; margin-top: 16px;
  font-size: 0.95rem; font-style: normal;
  color: var(--accent); font-weight: 600;
}
