/* ============================
   GreenCut Lawn Services
   Shared Stylesheet
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1B4332;
  --green-main: #2D6A4F;
  --green-mid: #4A7C59;
  --green-light: #9EB8A3;
  --green-pale: #EEF3EE;
  --cream: #FAFAF7;
  --brown: #5d4037;
  --brown-light: #8d6e63;
  --red-mower: #B3261E;
  --white: #ffffff;
  --text-dark: #1A1F1B;
  --text-mid: #4B564D;
  --text-light: #8B968C;
  --line: #E3E8E1;
  --shadow: 0 4px 20px rgba(20, 40, 28, .08);
  --shadow-lg: 0 12px 36px rgba(20, 40, 28, .13);
  --radius: 10px;
  --radius-sm: 7px;
  --transition: .2s cubic-bezier(.22, .61, .36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.18;
}

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

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

ul {
  list-style: none;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--green-pale);
}

::-webkit-scrollbar-thumb {
  background: var(--green-mid);
  border-radius: 4px;
}

/* === LAYOUT WRAPPER === */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-area {
  flex: 1;
}

/* === STICKY SIDEBAR MOWER === */
#sidebar-mower {
  position: fixed;
  right: 18px;
  top: 120px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: top .05s linear;
}

#sidebar-mower img {
  width: 80px;
  filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, .22));
  animation: mowerBob 2.6s ease-in-out infinite;
}

#mower-trail {
  width: 4px;
  background: linear-gradient(to bottom, var(--green-mid), transparent);
  border-radius: 2px;
  margin-top: 4px;
  transition: height .15s ease;
}

@keyframes mowerBob {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

/* === NAVBAR === */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-dark);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

#nav-cut-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(to right,
      #4caf50 calc(var(--nav-mower-pct, 0%) - 10%),
      #1a5c2a calc(var(--nav-mower-pct, 0%) + 10%));
  z-index: 1;
  pointer-events: none;
}

#nav-mower {
  position: absolute;
  bottom: 0;
  left: calc(var(--nav-mower-pct, 0%) - 30px);
  width: 60px;
  height: auto;
  transform: translateY(50%) rotate(-90deg);
  z-index: 2;
  pointer-events: none;
  transition: left 0.1s ease-out;
}

.nav-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: .01em;
}

.nav-logo .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, .68);
  font-weight: 500;
  font-size: .92rem;
  padding: 8px 15px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.nav-links a.nav-cta {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 600;
  margin-left: 6px;
}

.nav-links a.nav-cta:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, var(--green-mid) 100%);
  color: var(--white);
  padding: 90px 28px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E") repeat;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .82);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.15rem;
  opacity: .88;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--green-pale);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white);
}

.btn-green {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}

.btn-green:hover {
  background: #12281E;
  border-color: #12281E;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 8px 18px;
  font-size: .85rem;
}

/* === SECTION COMMON === */
.section {
  padding: 72px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  color: var(--green-main);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 12px;
}

.section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.centered {
  text-align: center;
}

.centered .section-sub {
  margin: 0 auto;
}

/* === CARD GRID === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid var(--line);
  border-top: 2.5px solid var(--green-dark);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 21px;
  height: 21px;
  color: var(--green-dark);
}

.card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

/* === DIVIDER STRIPE === */
.stripe-divider {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--green-mid) 0, var(--green-mid) 20px, var(--green-light) 20px, var(--green-light) 40px);
}

/* === PRICING CARDS === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px;
  position: relative;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.pricing-card.featured {
  border-color: var(--green-dark);
  border-width: 1.5px;
}

.badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.pricing-card .price {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  color: var(--green-dark);
  font-weight: 600;
  margin: 14px 0 4px;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.pricing-card .freq {
  color: var(--text-light);
  font-size: .87rem;
  margin-bottom: 22px;
}

.pricing-card ul {
  border-top: 1px solid var(--green-pale);
  padding-top: 20px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .94rem;
  color: var(--text-mid);
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--green-main);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card ul li.no::before {
  content: '✗';
  color: #bbb;
}

.pricing-card ul li.no {
  opacity: .5;
}

/* === REVIEWS === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stars {
  color: #B8912F;
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-text {
  color: var(--text-mid);
  line-height: 1.7;
  font-size: .96rem;
  margin-bottom: 20px;
}

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

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  font-weight: 600;
}

.reviewer-info .name {
  font-weight: 700;
  font-size: .95rem;
}

.reviewer-info .location {
  font-size: .82rem;
  color: var(--text-light);
}

/* === FORM === */
.form-section-bg {
  background: var(--green-pale);
  padding: 72px 28px;
}

.form-container {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 44px 44px;
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #C7D2C8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, .14);
}

.form-submit {
  margin-top: 28px;
  text-align: center;
}

.form-note {
  font-size: .83rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

/* === SUCCESS MESSAGE === */
.success-msg {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2.5px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

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

.check-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.check-mark svg {
  width: 22px;
  height: 22px;
  color: var(--green-dark);
}

.success-msg h2,
.success-msg h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
}

.success-msg p {
  color: var(--text-mid);
  margin-top: 8px;
}

/* === STATS STRIP === */
.stats-strip {
  background: var(--green-dark);
  color: var(--white);
  padding: 42px 28px;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item .stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--white);
}

.stat-item .stat-label {
  font-size: .9rem;
  opacity: .78;
  margin-top: 4px;
}

/* === FOOTER === */
footer {
  background: var(--green-dark);
  color: #c8e6c9;
  padding: 52px 28px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 500;
}

.footer-brand .logo .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand p {
  margin-top: 10px;
  font-size: .9rem;
  opacity: .75;
  line-height: 1.65;
}

.footer-col h4 {
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  opacity: .68;
  margin-bottom: 10px;
  transition: opacity var(--transition);
}

.footer-col a svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .8;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
  opacity: .65;
  flex-wrap: wrap;
  gap: 10px;
}

/* === ADMIN STYLES === */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--green-dark);
  color: var(--white);
  padding: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .sidebar-logo {
  padding: 24px 22px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.admin-sidebar .sidebar-logo span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  opacity: .6;
  margin-top: 2px;
  font-weight: 400;
}

.admin-nav {
  padding: 18px 0;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: .94rem;
  font-weight: 600;
  color: #c8e6c9;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

.admin-nav a .nav-icon {
  font-size: 1.1rem;
  width: 22px;
}

.admin-main {
  flex: 1;
  background: #f4f6f4;
  overflow-y: auto;
}

.admin-topbar {
  background: var(--white);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .07);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.admin-content {
  padding: 28px 30px;
}

/* Admin Stat Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  border-left: 5px solid var(--green-mid);
}

.admin-stat-card.orange {
  border-left-color: #B8783A;
}

.admin-stat-card.blue {
  border-left-color: #2F5FA3;
}

.admin-stat-card.purple {
  border-left-color: #6A4C93;
}

.admin-stat-card .stat-label {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.admin-stat-card .stat-val {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 6px;
}

.admin-stat-card .stat-sub {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Admin Table Wrapper*/
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  overflow-x: auto;
  margin-bottom: 28px;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f0f4f0;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table-header h3 {
  font-size: 1.05rem;
}

.admin-table-header input {
  padding: 7px 13px;
  border: 1.5px solid #dcedc8;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

thead tr {
  background: var(--green-pale);
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--green-dark);
  font-weight: 700;
}

tbody tr {
  border-bottom: 1px solid #f0f4f0;
  transition: background var(--transition);
}

tbody tr:hover {
  background: #f9fbf9;
}

tbody td {
  padding: 12px 16px;
  font-size: .92rem;
  color: var(--text-mid);
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 700;
}

.status-badge.pending {
  background: #fff3e0;
  color: #e65100;
}

.status-badge.confirmed {
  background: #e8f5e9;
  color: var(--green-dark);
}

.status-badge.completed {
  background: #e3f2fd;
  color: #1565c0;
}

.status-badge.cancelled {
  background: #fce4ec;
  color: #c62828;
}

.action-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
  transition: opacity var(--transition);
}

.action-btn:hover {
  opacity: .75;
}

.action-btn.confirm {
  background: #e8f5e9;
  color: var(--green-dark);
}

.action-btn.cancel {
  background: #fce4ec;
  color: #c62828;
}

.action-btn.edit {
  background: #e3f2fd;
  color: #1565c0;
}

.action-btn.delete {
  background: #fce4ec;
  color: #c62828;
}

/* Charts Layout */
.chart-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.chart-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  padding: 22px;
}

.chart-box h3 {
  font-size: 1.02rem;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding-bottom: 28px;
  position: relative;
  border-bottom: 2px solid var(--green-pale);
}

.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--green-mid);
  transition: height .6s ease;
  min-height: 4px;
  position: relative;
}

.bar:hover {
  background: var(--green-dark);
}

.bar .tooltip {
  display: none;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: #fff;
  font-size: .72rem;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.bar:hover .tooltip {
  display: block;
}

.bar-label {
  font-size: .72rem;
  color: var(--text-light);
}

.donut-area {
  display: flex;
  align-items: center;
  gap: 22px;
}

.donut-svg {
  flex-shrink: 0;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Admin service list */
.service-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.service-admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  padding: 20px;
  border-left: 4px solid var(--green-mid);
}

.service-admin-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.service-admin-card .price-tag {
  font-size: 1.3rem;
  color: var(--green-dark);
  font-family: 'Fraunces', serif;
  font-weight: 700;
}

.service-admin-card .actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-box h3 {
  margin-bottom: 22px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form-grid label {
  font-weight: 700;
  font-size: .88rem;
  display: block;
  margin-bottom: 4px;
}

.modal-form-grid input,
.modal-form-grid select,
.modal-form-grid textarea {
  width: 100%;
  padding: 9px 13px;
  border: 2px solid #dcedc8;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  outline: none;
}

.modal-form-grid input:focus,
.modal-form-grid select:focus {
  border-color: var(--green-main);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  justify-content: flex-end;
}

/* === SECTION BG ALTERNATE === */
.bg-pale {
  background: var(--green-pale);
  padding: 72px 28px;
}

.bg-pale .section {
  padding: 0;
}

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--white);
  padding: 58px 28px 50px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.page-header p {
  opacity: .82;
  font-size: 1.05rem;
}

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-dark);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* === SKELETON WIDGETS === */
@keyframes skeletonShimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skel-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px 28px;
}

.skel-block {
  border-radius: 5px;
  background: linear-gradient(90deg, #EEF3EE 25%, #E4EAE4 37%, #EEF3EE 63%);
  background-size: 400px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skel-card .skel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.skel-card .skel-line {
  height: 12px;
  margin-bottom: 10px;
}

.skel-card .skel-line.w-60 {
  width: 60%;
}

.skel-card .skel-line.w-90 {
  width: 90%;
}

.skel-card .skel-line.w-40 {
  width: 40%;
  margin-top: 18px;
  height: 16px;
}

.skel-pricing {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 36px 30px;
}

.skel-pricing .skel-line.title {
  width: 50%;
  height: 16px;
  margin-bottom: 18px;
}

.skel-pricing .skel-line.price {
  width: 65%;
  height: 30px;
  margin-bottom: 22px;
}

.skel-pricing .skel-line.feature {
  width: 100%;
  height: 10px;
  margin-bottom: 12px;
}

.skel-pricing .skel-line.feature:nth-child(3) {
  width: 80%;
}

.skel-pricing .skel-line.feature:nth-child(4) {
  width: 90%;
}

.skel-review {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 26px;
}

.skel-review .skel-line.stars {
  width: 90px;
  height: 12px;
  margin-bottom: 16px;
}

.skel-review .skel-line.text {
  width: 100%;
  height: 10px;
  margin-bottom: 10px;
}

.skel-review .skel-line.text:nth-child(3) {
  width: 92%;
}

.skel-review .skel-line.text:nth-child(4) {
  width: 70%;
  margin-bottom: 20px;
}

.skel-review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skel-review-footer .skel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skel-review-footer .skel-lines {
  flex: 1;
}

.skel-review-footer .skel-line.name {
  width: 45%;
  height: 10px;
  margin-bottom: 8px;
}

.skel-review-footer .skel-line.loc {
  width: 30%;
  height: 8px;
  margin-bottom: 0;
}

/* === UTILITY === */
.hidden {
  display: none !important;
}


/* ==========================================================
   UPDATED & OPTIMIZED RESPONSIVE MEDIA QUERIES
   ========================================================== */

/* --- TABLETS & SMALL LAPTOPS (Max-Width: 1024px) --- */
@media (max-width: 1024px) {
  .section {
    padding: 56px 24px;
  }

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

  .admin-sidebar {
    width: 200px;
  }
}

/* --- SMALL TABLETS & PORTRAIT (Max-Width: 768px) --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }

  /* Structural stacking optimizations */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
    margin-bottom: 12px;
  }

  .form-card {
    padding: 32px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  /* Admin Layer Responsiveness */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    width: 260px;
    height: 100vh;
  }

  .admin-sidebar.open {
    display: flex;
  }

  /* Hide standard static sidebar element track positioning */
  #sidebar-mower {
    top: auto;
    bottom: 24px;
    right: 16px;
  }

  #sidebar-mower img {
    width: 64px;
  }

  #mower-trail {
    display: none;
    /* Keeps sidebar lean on smaller Viewports */
  }
}

/* --- SMARTPHONES & MOBILE VIEWS (Max-Width: 480px) --- */
@media (max-width: 480px) {
  .section {
    padding: 44px 16px;
  }

  .bg-pale,
  .form-section-bg {
    padding: 44px 16px;
  }

  .hero {
    padding: 64px 16px 56px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .form-card {
    padding: 24px 16px;
  }

  .form-card h2 {
    font-size: 1.45rem;
  }

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

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

  #sidebar-mower img {
    width: 52px;
  }

  .pricing-card,
  .review-card,
  .card {
    padding: 24px 20px;
  }

  .admin-topbar {
    padding: 16px;
  }

  .admin-content {
    padding: 20px 16px;
  }
}