/*
Theme Name: Elara Theme
Theme URI: https://elaracs.com
Author: Elara
Description: Shell theme for Elementor Pro — header, footer, and global styles only.
Version: 1.0.0
Text Domain: elara-theme
*/

/* ── CSS Variables (matches react-source theme.css) ── */
:root {
  --font-size: 16px;
  --background: #f1efe7;
  --foreground: #154d14;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #ededf2;
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --radius: 0.625rem;

  --hero-green: #26b825;
  --forest-green: #154d14;
  --light-cream: #f1efe7;
  --orange: #d97706;
  --light-grey: #f5f5f5;

  --font-header: 'Plus Jakarta Sans', sans-serif;
  --font-subheading: 'League Spartan', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-wide: 0.05em;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;

  --container: 1280px;
  --nav-height: 88px;
}

/* ── Global Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

a, button, input {
  transition: all 0.3s ease;
}

h1 { font-size: 1.5rem; font-weight: 500; line-height: 1.5; }
h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.5; }
h4 { font-size: 1rem; font-weight: 500; line-height: 1.5; }

/* ── Site Main (Elementor canvas area) ── */
.site-main {
  min-height: 45vh;
  padding-top: calc(var(--nav-height) + 24px);
}

/* ══════════════════════════════════════
   HEADER / NAVBAR
   ══════════════════════════════════════ */

header.site-header,
.site-header {
  position: fixed !important;
  top: 24px !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: calc(100% - 48px) !important;
  max-width: 1440px;
  z-index: 9999 !important;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  float: none !important;
}

/* Beige gradient */
.header-gradient {
  position: absolute;
  top: 32px;
  left: 0;
  width: 100%;
  height: 14rem;
  background: linear-gradient(to bottom, #f1efe7 0%, #f1efe7 45%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled .header-gradient {
  opacity: 1;
}

/* Wrapper */
.nav-wrap {
  display: flex !important;
  justify-content: center !important;
  padding: 0 !important;
  position: relative !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: none !important;
  width: 100% !important;
}

/* Default state */
nav.nav-pill,
.nav-pill {
  pointer-events: auto;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1280px !important;
  padding: 16px 32px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(21, 77, 20, 0.08) !important;
  background: rgba(241, 239, 231, 0.92) !important;
  box-shadow: 0 12px 35px rgba(21, 77, 20, 0.08) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.3s ease;
  float: none !important;
  position: relative !important;
}

/* Scroll state */
.site-header.is-scrolled nav.nav-pill,
.site-header.is-scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 40px rgba(21, 77, 20, 0.12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 14px 32px !important;
  max-width: 1280px !important;
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img,
.brand .custom-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.brand-wordmark {
  font-family: var(--font-subheading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--forest-green);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 14px;
  color: var(--forest-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Chevron icon in nav links */
.nav-link .chevron-icon {
  width: 14px;
  height: 14px;
  opacity: 0.4;
}

.nav-link:hover .chevron-icon {
  color: var(--orange);
}

/* Right actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.login-link {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 14px;
  color: var(--forest-green);
}

.login-link:hover {
  color: var(--orange);
}

.demo-button {
  display: inline-block;
  border-radius: 9999px;
  background: var(--forest-green);
  color: #fff;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 32px;
  box-shadow: 0 4px 12px rgba(21, 77, 20, 0.1);
  border: none;
  cursor: pointer;
}

.demo-button:hover {
  background: var(--orange);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
  transform: scale(1.05);
}

.demo-button:active {
  transform: scale(0.95);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--forest-green);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: -8px;
  padding: 10px;
}

.nav-toggle:hover {
  background: rgba(21, 77, 20, 0.05);
}

.nav-toggle .hamburger-icon,
.nav-toggle .close-icon {
  width: 24px;
  height: 24px;
}

.nav-toggle .close-icon { display: none; }
.nav-toggle[aria-expanded="true"] .hamburger-icon { display: none; }
.nav-toggle[aria-expanded="true"] .close-icon { display: block; }

/* Mobile menu */
.mobile-menu {
  pointer-events: auto;
  position: fixed;
  top: 88px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(21, 77, 20, 0.08);
  padding: 24px 32px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(-20px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest-green);
}

.mobile-link:hover {
  color: var(--orange);
}

.mobile-link .chevron-icon {
  width: 20px;
  height: 20px;
  opacity: 0.4;
}

.mobile-divider {
  height: 1px;
  background: rgba(21, 77, 20, 0.1);
  width: 100%;
  margin: 4px 0;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-login {
  font-family: var(--font-header);
  font-weight: 700;
  text-align: center;
  color: var(--forest-green);
  padding: 12px;
  border-radius: 9999px;
  display: block;
}

.mobile-login:hover {
  background: rgba(21, 77, 20, 0.05);
}

.mobile-demo {
  display: block;
  width: 100%;
  border-radius: 9999px;
  text-align: center;
  background: var(--forest-green);
  color: #fff;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(21, 77, 20, 0.1);
}

.mobile-demo:hover {
  background: var(--orange);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
}

.mobile-demo:active {
  transform: scale(0.95);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  width: 100%;
}

.footer-main {
  background: var(--light-cream);
  color: var(--forest-green);
  padding: 64px 16px 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .footer-main { padding: 80px 24px 40px; }
}
@media (min-width: 768px) {
  .footer-main { padding: 96px 48px 48px; }
}
@media (min-width: 1024px) {
  .footer-main { padding: 96px 96px 48px; }
}

/* Decorative blur circle */
.footer-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 384px;
  height: 384px;
  background: rgba(38, 184, 37, 0.1);
  border-radius: 50%;
  filter: blur(48px);
  margin-right: -192px;
  margin-top: -192px;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr 3fr;
  gap: 32px;
  margin-bottom: 96px;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img,
.footer-logo .custom-logo {
  height: 48px;
  width: auto;
}

.footer-wordmark {
  font-family: var(--font-subheading);
  font-size: 2rem;
  font-weight: 900;
}

.footer-tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(21, 77, 20, 0.6);
  padding-right: 32px;
}

.social-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(21, 77, 20, 0.05);
  border: 1px solid rgba(21, 77, 20, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(21, 77, 20, 0.4);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--hero-green);
  border-color: var(--hero-green);
  color: #fff;
  transform: scale(1.1);
}

.social-link:active {
  transform: scale(0.95);
}

/* Footer columns */
.footer-col h4 {
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest-green);
  margin: 0 0 32px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 16px;
}

.footer-col a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(21, 77, 20, 0.6);
  display: inline-block;
}

.footer-col a:hover {
  color: var(--hero-green);
}

/* Start Here column */
.footer-demo-btn,
a.footer-demo-btn,
a.footer-demo-btn:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--forest-green);
  border-radius: 9999px;
  background: var(--forest-green);
  color: #ffffff !important;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 77, 20, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.5;
}

.footer-demo-btn:hover,
a.footer-demo-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
  transform: scale(1.05);
}

.footer-demo-btn:active {
  transform: scale(0.95);
}

.footer-demo-btn .arrow-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.footer-demo-btn:hover .arrow-circle {
  transform: scale(1.1);
}

.footer-demo-btn .arrow-circle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(45deg);
}

/* Footer bottom */
.footer-bottom {
  padding-top: 48px;
  border-top: 1px solid rgba(21, 77, 20, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-copyright {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(21, 77, 20, 0.4);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-legal-links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(21, 77, 20, 0.4);
}

.footer-legal-links a:first-child:hover {
  color: var(--hero-green);
}
.footer-legal-links a:last-child:hover {
  color: var(--forest-green);
}

/* Back-to-top button */
.back-to-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(21, 77, 20, 0.2);
  background: transparent;
  color: rgba(21, 77, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  color: #fff;
  border-color: var(--hero-green);
  background: var(--hero-green);
}

.back-to-top:hover svg {
  transform: translateY(-4px);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* ≤1024px — hide desktop nav, show hamburger */
@media (max-width: 1024px) {
  .nav-links,
  .login-link {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav.nav-pill,
  .nav-pill {
    max-width: 100% !important;
    padding: 16px !important;
  }

  .site-header.is-scrolled nav.nav-pill,
  .site-header.is-scrolled .nav-pill {
    max-width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 80px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-tagline {
    padding-right: 0;
  }
}

/* ≤768px */
@media (max-width: 768px) {
  .site-main {
    padding-top: calc(var(--nav-height) + 16px);
  }

  nav.nav-pill,
  .nav-pill {
    padding: 12px 16px !important;
  }

  .brand img,
  .brand .custom-logo {
    height: 40px;
  }

  .mobile-menu {
    top: 96px;
  }

  .footer-grid {
    margin-bottom: 64px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-left {
    align-items: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-deco {
    width: 320px;
    height: 320px;
    margin-right: -160px;
    margin-top: -160px;
  }
}

/* ≤640px */
@media (max-width: 640px) {
  .nav-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-menu {
    left: 16px;
    right: 16px;
    padding: 24px;
    border-radius: 24px;
  }

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

  .social-link {
    width: 44px;
    height: 44px;
  }

  .footer-deco {
    width: 256px;
    height: 256px;
    margin-right: -128px;
    margin-top: -128px;
  }

  .demo-button {
    padding: 12px 20px;
    font-size: 12px;
  }
}
