@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@100..900&display=swap');

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

:root {
  --primary: #f89534;
  --primary-dark: #d97b1a;
  --primary-light: #fbb66a;
  --accent: #c46a10;
  --foreground: #2a2520;
  --foreground-secondary: #6b6058;
  --background: #faf8f6;
  --background-alt: #f3f0ec;
  --card: #ffffff;
  --border: #e8e2db;
  --white: #ffffff;
  --destructive: #e24040;
  --success: #2e9e5a;
  --font-sans: 'DM Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius: 0.75rem;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-logo:hover img {
  transform: scale(1.03);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground-secondary);
  transition: color 0.2s ease;
}

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

.navbar-links a.btn-primary,
.navbar-links a.btn-primary:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(248, 149, 52, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(248, 149, 52, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  text-align: center;
}

/* ========== HERO ========== */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('../images/about-tree.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 246, 0.72);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250, 248, 246, 0.82) 0%, rgba(250, 248, 246, 0.6) 100%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(248, 149, 52, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(248, 149, 52, 0.2);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
}

.hero-badge .pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(2.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--foreground-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.browser-mockup {
  position: relative;
  width: 100%;
  max-width: 450px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: rotate(-2deg);
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--background-alt);
  border-bottom: 1px solid var(--border);
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: var(--destructive); opacity: 0.6; }
.browser-dots span:nth-child(2) { background: var(--primary); opacity: 0.6; }
.browser-dots span:nth-child(3) { background: var(--success); opacity: 0.6; }

.browser-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.browser-content .skeleton {
  border-radius: 6px;
  background: var(--background-alt);
}

.browser-content .skeleton-title { height: 28px; width: 40%; }
.browser-content .skeleton-line { height: 14px; }
.browser-content .skeleton-line:nth-child(2) { width: 100%; }
.browser-content .skeleton-line:nth-child(3) { width: 85%; }
.browser-content .skeleton-line:nth-child(4) { width: 70%; }

.browser-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.browser-card {
  background: rgba(248, 149, 52, 0.05);
  border: 1px solid rgba(248, 149, 52, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.browser-card svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin: 0 auto 0.5rem;
}

.browser-card span {
  font-size: 0.8rem;
  font-weight: 600;
}

.floating-card {
  position: absolute;
  top: 20%;
  right: -2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.floating-card .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(248, 149, 52, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card .icon-circle svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.floating-card .text strong {
  display: block;
  font-size: 0.85rem;
}

.floating-card .text span {
  font-size: 0.75rem;
  color: var(--foreground-secondary);
}

/* ========== SERVICES ========== */
.services {
  padding: 6rem 0;
  background: var(--background-alt);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--foreground-secondary);
}

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

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-icon.orange { background: rgba(248, 149, 52, 0.12); color: var(--primary); }
.service-icon.brown { background: rgba(196, 106, 16, 0.12); color: var(--accent); }
.service-icon.muted { background: rgba(107, 96, 88, 0.1); color: var(--foreground-secondary); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--foreground-secondary);
  line-height: 1.65;
}

/* ========== ABOUT ========== */
.about {
  padding: 6rem 0;
  background: var(--background);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: stretch;
}

.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  align-self: stretch;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--foreground-secondary);
  margin-bottom: 1rem;
}

.benefits-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
}

.benefits-list li svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
.contact {
  padding: 6rem 0;
  background: var(--card);
  position: relative;
}

.contact-wrapper {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 2fr 3fr;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(40px);
}

.contact-info::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(30px);
}

.contact-info > * {
  position: relative;
  z-index: 1;
}

.contact-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info > p {
  opacity: 0.85;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-detail .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail .icon-circle svg {
  width: 22px;
  height: 22px;
}

.contact-detail h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-detail p {
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-form-panel {
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--foreground);
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(248, 149, 52, 0.12);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0a89e;
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(46, 158, 90, 0.1);
  border: 1px solid rgba(46, 158, 90, 0.3);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.show {
  display: block;
}

.form-error {
  display: none;
  padding: 1rem;
  background: rgba(226, 64, 64, 0.1);
  border: 1px solid rgba(226, 64, 64, 0.3);
  border-radius: var(--radius);
  color: var(--destructive);
  font-weight: 600;
  margin-top: 1rem;
}

.form-error.show {
  display: block;
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  background: url('../images/footer-roots.jpg') center/cover no-repeat;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 246, 0.72);
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 248, 246, 0.82) 0%, rgba(250, 248, 246, 0.6) 100%);
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--foreground-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--foreground-secondary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--foreground-secondary);
  font-size: 0.95rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: var(--foreground-secondary);
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--foreground-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--foreground-secondary);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .about .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}