/* ============================================================
   datasong.buzz — Main Stylesheet
   Palette: Deep Forest & Warm Bronze
   ============================================================ */

:root {
  --bg-dark: #0c1f14;
  --bg-section: #142a1e;
  --bg-section-alt: #1b3528;
  --bg-light: #f9f4ea;
  --bg-light-alt: #f2ece0;
  --text-dark: #1a1a1a;
  --text-body: #2a2a2a;
  --text-light: #eee4d2;
  --text-muted-light: #c4b898;
  --accent: #c47d30;
  --accent-hover: #d48d40;
  --sage: #5e8c6c;
  --copper: #b8683e;
  --border-light: #ddd0bb;
  --border-dark: #2a4535;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAVIGATION — class selector .navbar (NEVER bare nav)
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light) !important;
  letter-spacing: 0.5px;
}

.navbar-logo span {
  color: var(--accent);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.navbar-links a:hover {
  color: var(--text-light);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HOMEPAGE HERO — .hero-section
   ============================================================ */

.hero-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--bg-section-alt) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text .hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted-light);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: 2px solid transparent;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  background-color: var(--bg-section);
  border-color: var(--accent);
  color: var(--white);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--bg-section);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

.hero-card .card-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.hero-card h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.hero-card p {
  color: var(--text-muted-light);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 1.2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  margin-top: 2px;
}

/* ============================================================
   SERVICES SECTION — .services-section
   ============================================================ */

.services-section {
  background-color: var(--bg-light);
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.section-header .section-subtitle {
  color: #6b6b6b;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card .service-icon {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.service-card p {
  color: #5a5a5a;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================
   ABOUT SECTION — .about-section
   ============================================================ */

.about-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  color: var(--white);
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--text-muted-light);
  margin-bottom: 1.2rem;
  line-height: 1.8;
  font-size: 1.02rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature .feature-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature span {
  color: var(--text-muted-light);
  font-size: 0.95rem;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-card {
  background: var(--bg-section);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.about-image-card .about-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-image-card h3 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.about-image-card p {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   STATS SECTION — .stats-section
   ============================================================ */

.stats-section {
  background-color: var(--bg-section-alt);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item .count {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.stat-item .count-label {
  color: var(--text-muted-light);
  font-size: 0.95rem;
}

/* ============================================================
   CONTACT SECTION — .contact-section
   ============================================================ */

.contact-section {
  background-color: var(--bg-light);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: #5a5a5a;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.2rem;
  color: var(--text-body);
  font-size: 0.98rem;
}

.contact-details li .contact-icon {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details li a {
  color: var(--text-body);
}

.contact-details li a:hover {
  color: var(--accent);
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
  margin-bottom: 1.4rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

.form-message {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  color: var(--sage);
}

.form-message.error {
  display: block;
  color: #c44;
}

/* ============================================================
   CTA SECTION — .cta-section
   ============================================================ */

.cta-section {
  background-color: var(--bg-dark);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   FOOTER — .site-footer
   ============================================================ */

.site-footer {
  background-color: #09130e;
  color: var(--text-muted-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted-light);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links ul li a {
  color: var(--text-muted-light);
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted-light);
}

/* ============================================================
   SCROLL REVEAL — fade-up
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-section {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Mobile nav */
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.05rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
