/**
 * Green Walls Romania - Template Joomla 6
 * Inspirat din greenwalls.ro
 */

/* ==========================================
   VARIABILE
   ========================================== */
:root {
  --gw-dark:      #1a1a1a;
  --gw-darker:    #111111;
  --gw-green:     #5a8a00;
  --gw-green-light: #7ab800;
  --gw-green-pale:  #f0f5e8;
  --gw-text:      #333333;
  --gw-text-light:#666666;
  --gw-border:    #e0e0e0;
  --gw-white:     #ffffff;
  --gw-gray-bg:   #f5f5f5;

  --font-main:    Georgia, 'Times New Roman', serif;
  --font-body:    Arial, Helvetica, sans-serif;

  --container:    1100px;
  --pad:          20px;
  --transition:   0.25s ease;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gw-text);
  background: var(--gw-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gw-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gw-green-light); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-main);
  color: var(--gw-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ==========================================
   CONTAINER
   ========================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.container-fluid { width: 100%; padding: 0 var(--pad); }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: var(--gw-darker);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: stretch;
  min-height: 70px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 0;
  min-width: 180px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img { max-height: 60px; width: auto; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--gw-green-light);
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.78rem;
  color: var(--gw-green);
  font-style: italic;
}

/* Nav wrapper */
.header-nav-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
  align-self: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Social icons in header */
.header-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
  gap: 6px;
}
.header-social a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.header-social a:hover { color: var(--gw-green-light); }
.header-social svg { width: 16px; height: 16px; }

/* ==========================================
   NAVIGATION
   ========================================== */
.main-nav { display: flex; }

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

.main-nav ul li { position: relative; }

.main-nav ul li a,
.main-nav ul li span {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.main-nav ul li a:hover,
.main-nav ul li.active > a {
  color: var(--gw-green-light);
  background: rgba(255,255,255,0.05);
}

.main-nav ul li.active > a { color: var(--gw-green-light); }

/* Dropdown arrow */
.main-nav ul li.deeper > a::after,
.main-nav ul li.deeper > span::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.7;
}

/* Dropdowns */
.main-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-top: 2px solid var(--gw-green);
  z-index: 200;
  flex-direction: column;
}

.main-nav ul li:hover > ul,
.main-nav ul li:focus-within > ul {
  display: flex;
}

.main-nav ul li ul li a {
  padding: 9px 16px;
  border-bottom: 1px solid #333;
  font-size: 0.875rem;
}

/* ==========================================
   BANNER / SLIDER POSITION
   ========================================== */
.banner-section {
  background: var(--gw-dark);
  min-height: 60px;
}

/* ==========================================
   PAGE TITLE BAR
   ========================================== */
.page-title-bar {
  background: var(--gw-gray-bg);
  border-bottom: 1px solid var(--gw-border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--gw-text-light);
}
.page-title-bar h1 {
  font-size: 1.1rem;
  font-family: var(--font-main);
  color: var(--gw-dark);
  margin: 0;
  font-style: italic;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content { padding: 20px 0 30px; }

.content-layout {
  display: grid;
  gap: 24px;
}
.layout-full          { grid-template-columns: 1fr; }
.layout-sidebar-right { grid-template-columns: 1fr 280px; }
.layout-sidebar-left  { grid-template-columns: 280px 1fr; }
.layout-both          { grid-template-columns: 220px 1fr 220px; }

.content-main { min-width: 0; }

/* Breadcrumb */
.breadcrumb-wrap {
  font-size: 0.82rem;
  color: var(--gw-text-light);
  margin-bottom: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gw-border);
}
.breadcrumb-wrap a { color: var(--gw-green); }

/* ==========================================
   ARTICLES
   ========================================== */
.com-content-article__body,
.article-fulltext {
  font-size: 0.95rem;
  line-height: 1.8;
}

.com-content-article__body h2,
.com-content-article__body h3 {
  color: var(--gw-green);
  margin: 1.5rem 0 0.5rem;
}

.com-content-article__body a {
  color: var(--gw-green);
  text-decoration: underline;
}

.com-content-article__body img {
  border: 1px solid var(--gw-border);
  padding: 4px;
  background: var(--gw-white);
}

/* Category blog */
.com-content-category-blog__item {
  border-bottom: 1px solid var(--gw-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.com-content-category-blog__item h2 a {
  color: var(--gw-dark);
  font-family: var(--font-main);
}
.com-content-category-blog__item h2 a:hover { color: var(--gw-green); }

/* Read more */
.com-content-readmore a,
a.btn, .btn {
  display: inline-block;
  padding: 6px 18px;
  background: var(--gw-green);
  color: var(--gw-white);
  border-radius: 3px;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.com-content-readmore a:hover,
a.btn:hover, .btn:hover {
  background: var(--gw-green-light);
  color: var(--gw-white);
}

/* Article meta */
.article-info, .com-content-article__details {
  font-size: 0.8rem;
  color: var(--gw-text-light);
  margin-bottom: 0.75rem;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar { min-width: 0; }

.sidebar .moduletable {
  margin-bottom: 20px;
}

.sidebar h3,
.sidebar .module-title {
  background: var(--gw-green);
  color: var(--gw-white);
  padding: 8px 12px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: bold;
  margin: 0 0 0;
  border-radius: 2px 2px 0 0;
}

.sidebar .moduletable > div,
.sidebar .module-content {
  border: 1px solid var(--gw-border);
  border-top: none;
  padding: 12px;
  background: var(--gw-white);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar ul li {
  border-bottom: 1px solid var(--gw-border);
  padding: 6px 0;
}
.sidebar ul li:last-child { border-bottom: none; }
.sidebar ul li a {
  color: var(--gw-text);
  font-size: 0.88rem;
  display: block;
  padding: 2px 0 2px 12px;
  position: relative;
}
.sidebar ul li a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gw-green);
  font-weight: bold;
}
.sidebar ul li a:hover { color: var(--gw-green); padding-left: 16px; }

/* ==========================================
   BOTTOM MODULES
   ========================================== */
.bottom-modules {
  background: var(--gw-gray-bg);
  border-top: 2px solid var(--gw-green);
  padding: 24px 0;
}
.bottom-grid {
  display: grid;
  gap: 20px;
}
.bottom-grid-1 { grid-template-columns: 1fr; }
.bottom-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bottom-grid-3 { grid-template-columns: repeat(3, 1fr); }

.bottom-col h3 {
  font-size: 1rem;
  color: var(--gw-green);
  border-bottom: 1px solid var(--gw-border);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--gw-darker);
  color: rgba(255,255,255,0.6);
  padding: 30px 0 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: var(--gw-green-light);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
  font-style: italic;
}

.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--gw-green-light); }
.footer-contact p { margin-bottom: 4px; font-size: 0.85rem; }

.footer-heading {
  font-size: 0.85rem;
  font-weight: bold;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 5px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.83rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--gw-green-light); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* Footer social */
.footer-social { display: flex; gap: 8px; margin-top: 10px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--gw-green); color: #fff; }
.footer-social svg { width: 14px; height: 14px; }

/* ==========================================
   MESSAGES
   ========================================== */
.alert { padding: 10px 14px; border-radius: 3px; margin-bottom: 1rem; border-left: 4px solid; }
.alert-info    { background: #e8f5e8; border-color: var(--gw-green); color: #1a3a00; }
.alert-warning { background: #fff8e1; border-color: #f39c12; color: #7d5a00; }
.alert-error   { background: #fde8e8; border-color: #e53935; color: #7d1c1c; }
.alert-success { background: #e8f5e8; border-color: var(--gw-green-light); color: #1a3a00; }

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--gw-border);
  font-size: 0.88rem;
  color: var(--gw-text);
  background: var(--gw-white);
  transition: background var(--transition), color var(--transition);
}
.pagination li a:hover,
.pagination li.active span {
  background: var(--gw-green);
  color: var(--gw-white);
  border-color: var(--gw-green);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--gw-green);
  color: #fff;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 500;
  cursor: pointer;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gw-green-light); color: #fff; }

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form .control-group,
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gw-border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gw-green); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button[type="submit"] {
  padding: 9px 24px;
  background: var(--gw-green);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition);
}
.contact-form button[type="submit"]:hover { background: var(--gw-green-light); }

/* ==========================================
   UTILITY
   ========================================== */
.text-green  { color: var(--gw-green); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
