/*
Theme Name: Area Green
Theme URI: http://localhost/areagreen
Author: Area Green
Description: Temă WordPress pentru servicii de curățenie în Sibiu, cu identitate vizuală verde.
Version: 1.0.0
Text Domain: areagreen
*/

:root {
  --green: #1a6b3a;
  --green-dark: #0d3f22;
  --green-soft: #e8f3ec;
  --green-pale: #f4fbf6;
  --ink: #102116;
  --muted: #66736b;
  --line: #dbe7df;
  --surface: #ffffff;
  --warm: #fbf5ef;
  --shadow: 0 18px 45px rgba(16, 33, 22, 0.12);
  --radius: 8px;
  --container: 1180px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--green);
  color: #fff;
  font-size: 13px;
}

.topbar .container,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-inner {
  min-height: 38px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-dot {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(26, 107, 58, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), #56b870);
  color: #fff;
  box-shadow: 0 12px 26px rgba(26, 107, 58, 0.24);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text span:first-child {
  font-size: 21px;
}

.brand-text span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #1c2c21;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--green);
  background: var(--green-soft);
}

.main-nav .sub-menu,
.main-nav .children {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.main-nav li:hover > .sub-menu,
.main-nav li:hover > .children {
  display: flex;
}

.nav-cta,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(26, 107, 58, 0.22);
  cursor: pointer;
}

.button:hover,
.nav-cta:hover,
.wp-block-button__link:hover {
  background: var(--green-dark);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid rgba(26, 107, 58, 0.22);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--green-pale);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 251, 246, 0.96) 0%, rgba(244, 251, 246, 0.88) 42%, rgba(244, 251, 246, 0.28) 70%),
    var(--hero-image) center right / cover no-repeat;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 590px) 1fr;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: #07190d;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 4.8vw, 60px);
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 18px;
}

.lead {
  color: #314139;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.quick-strip {
  background: var(--green-dark);
  color: #fff;
}

.quick-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.quick-item {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 62px 0;
}

.section.soft {
  background: var(--green-pale);
}

.section.warm {
  background: var(--warm);
}

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

.image-stack {
  position: relative;
  min-height: 500px;
}

.image-main,
.image-small {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-main {
  inset: 0 24% 10% 0;
}

.image-small {
  right: 0;
  bottom: 0;
  width: 48%;
  height: 58%;
  border: 10px solid #fff;
}

.image-main img,
.image-small img,
.service-card img,
.post-card img,
.portfolio-grid img,
.benefit-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #26362d;
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 5px #fff, 0 0 0 1px var(--green);
}

.feature-grid,
.services-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.service-card,
.review-card,
.post-card,
.benefit-panel,
.contact-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 33, 22, 0.06);
}

.feature-card {
  padding: 28px;
}

.feature-card.highlight {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.feature-card.highlight h3,
.feature-card.highlight p {
  color: #fff;
}

.feature-card p,
.service-card p,
.post-card p,
.review-card p,
.content-area p,
.footer p {
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 620px;
}

.service-card {
  overflow: hidden;
}

.service-media {
  aspect-ratio: 4 / 3;
  background: var(--green-soft);
}

.service-body,
.post-body {
  padding: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  padding: 26px;
}

.stars {
  color: #f5a524;
  font-size: 18px;
  letter-spacing: 1px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}

.portfolio-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-grid figure:nth-child(1),
.portfolio-grid figure:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-grid figure:nth-child(4),
.portfolio-grid figure:nth-child(8) {
  grid-column: span 2;
}

.benefit-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--green-pale);
}

.benefit-panel img {
  min-height: 280px;
  border-radius: 8px;
}

.page-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--green-dark);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 63, 34, 0.92), rgba(13, 63, 34, 0.56)),
    var(--page-image) center / cover no-repeat;
}

.page-hero .container {
  position: relative;
}

.page-hero h1,
.page-hero p {
  max-width: 760px;
  color: #fff;
}

.breadcrumbs {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.content-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 112px;
}

.side-card {
  padding: 22px;
  margin-bottom: 18px;
}

.service-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--green-pale);
  color: #173723;
  font-weight: 800;
}

.service-menu a:hover,
.service-menu .current_page_item a {
  background: var(--green);
  color: #fff;
}

.call-card {
  min-height: 220px;
  display: grid;
  align-content: end;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(13, 63, 34, 0.12), rgba(13, 63, 34, 0.86)),
    var(--call-image) center / cover no-repeat;
}

.call-card h3,
.call-card p {
  color: #fff;
}

.content-area h2 {
  margin-top: 38px;
}

.content-area ul,
.content-area ol {
  padding-left: 22px;
}

.content-area li {
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.contact-card {
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

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

.site-footer {
  background: var(--warm);
  color: #1a2b20;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 48px 0;
  border-bottom: 1px solid #eaded4;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

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

.footer li {
  margin-bottom: 8px;
}

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

.footer-bottom {
  background: var(--green-dark);
  color: #fff;
  padding: 18px 0;
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 60;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #18b84f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(24, 184, 79, 0.28);
}

.elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
  width: min(var(--container), calc(100% - 40px));
}

.ag-el-section {
  padding: 92px 0;
}

.ag-el-section-soft {
  background: var(--green-pale);
}

.ag-el-section-warm {
  background: var(--warm);
}

.ag-el-compact {
  padding: 62px 0;
}

.ag-el-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1800&q=82") center right / cover no-repeat;
}

.ag-el-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(244, 251, 246, 0.96) 0%, rgba(244, 251, 246, 0.88) 42%, rgba(244, 251, 246, 0.28) 70%);
  pointer-events: none;
}

.ag-el-hero > .elementor-container,
.ag-el-section > .elementor-container {
  position: relative;
  z-index: 1;
}

.ag-el-section > .elementor-container {
  flex-wrap: wrap;
  row-gap: 24px;
}

.ag-el-eyebrow .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ag-el-eyebrow .elementor-heading-title::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.ag-el-hero h1.elementor-heading-title {
  max-width: 660px;
  color: #07190d;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.15;
}

.ag-el-lead {
  max-width: 640px;
  color: #314139;
  font-size: 19px;
}

.ag-el-button .elementor-button {
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(26, 107, 58, 0.22);
}

.ag-el-button-secondary .elementor-button {
  border: 1px solid rgba(26, 107, 58, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
  box-shadow: none;
}

.ag-el-card .elementor-widget-wrap {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 33, 22, 0.06);
}

.ag-el-card-highlight .elementor-widget-wrap {
  background: var(--green);
  border-color: var(--green);
}

.ag-el-card-highlight,
.ag-el-card-highlight h3,
.ag-el-card-highlight p,
.ag-el-card-highlight .elementor-heading-title {
  color: #fff;
}

.ag-el-service .elementor-widget-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 33, 22, 0.06);
}

.ag-el-service .elementor-widget-image img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.ag-el-service .elementor-widget-heading,
.ag-el-service .elementor-widget-text-editor,
.ag-el-service .elementor-widget-button {
  padding-right: 24px;
  padding-left: 24px;
}

.ag-el-service .elementor-widget-button {
  padding-bottom: 24px;
}

.ag-el-review .elementor-widget-wrap {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 33, 22, 0.06);
}

.ag-el-stars {
  color: #f5a524;
  font-size: 18px;
  letter-spacing: 1px;
}

.ag-el-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.ag-el-gallery .gallery-item {
  margin: 0;
}

.ag-el-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.quick-strip.elementor-section {
  padding: 0;
}

.quick-strip.elementor-section > .elementor-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.quick-strip .elementor-column,
.quick-strip .elementor-widget-wrap,
.quick-strip .elementor-widget-html,
.quick-strip .elementor-widget-container {
  min-height: 100%;
}

.ag-el-html-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 33, 22, 0.06);
}

.ag-el-html-card h3 {
  margin-top: 0;
}

.ag-el-html-card p:last-child {
  margin-bottom: 0;
}

.ag-el-contact-form input,
.ag-el-contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.ag-el-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.ag-el-contact-form button {
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header .container,
  .topbar .container,
  .section-head,
  .footer-bottom .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }

  .main-nav .sub-menu,
  .main-nav .children {
    position: static;
    display: flex;
    min-width: 100%;
    box-shadow: none;
    margin-top: 6px;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 86px 0;
  }

  .hero .container,
  .split,
  .benefit-panel,
  .content-shell,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .quick-strip .container,
  .feature-grid,
  .services-grid,
  .review-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar-links,
  .hero-actions,
  .stats {
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .quick-strip .container,
  .feature-grid,
  .services-grid,
  .review-grid,
  .contact-grid,
  .footer-top,
  .posts-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-auto-rows: 210px;
  }

  .portfolio-grid figure,
  .portfolio-grid figure:nth-child(1),
  .portfolio-grid figure:nth-child(4),
  .portfolio-grid figure:nth-child(6),
  .portfolio-grid figure:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
  }

  .image-stack {
    min-height: 360px;
  }

  .image-main {
    inset: 0;
  }

  .image-small {
    display: none;
  }
}
