/*
Theme Name: SolCleaning WP
Theme URI: https://solcleaning.gr
Author: NetworkSol Recovery
Description: SolCleaning website theme.
Version: 1.0.0
Text Domain: solcleaning-wp
*/

:root {
  --sol-green: #8cc63f;
  --sol-green-dark: #5f9f27;
  --sol-blue: #1c75bc;
  --sol-dark: #122031;
  --sol-muted: #667085;
  --sol-light: #f5f8fb;
  --sol-white: #ffffff;
  --sol-border: #dce5ee;
  --sol-shadow: 0 18px 50px rgba(18, 32, 49, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sol-dark);
  font-family: Lato, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--sol-white);
}

a {
  color: var(--sol-blue);
  text-decoration: none;
}

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

.utility-strip .wrap,
.info-bar .wrap,
.site-header .wrap,
.section .wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.utility-strip {
  background: #fff;
  color: #8a8a8a;
  font-size: 13px;
}

.utility-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 28px;
}

.language-links {
  color: #1269a7;
  font-weight: 700;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}

.social-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.info-bar {
  background: #299ce3;
  color: #fff;
}

.info-bar .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr .8fr 1.25fr;
  align-items: center;
  min-height: 74px;
  gap: 28px;
}

.info-logo {
  display: inline-flex;
  align-items: center;
  width: 190px;
  padding: 8px 0;
}

.info-logo img {
  width: 180px;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,.95);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.info-item strong,
.info-item small {
  display: block;
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  gap: 24px;
  position: relative;
}

.brand img {
  width: 235px;
  max-height: 70px;
  object-fit: contain;
}

.nav-toggle {
  display: inline-flex;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #777;
  padding: 10px 13px;
  font-weight: 800;
  font-size: 24px;
}

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

.primary-nav li {
  position: relative;
}

.primary-nav a {
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: #299ce3;
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  display: grid;
  min-width: 270px;
  gap: 0;
  padding: 10px 0;
  background: var(--sol-white);
  border: 1px solid var(--sol-border);
  box-shadow: var(--sol-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  display: block;
  padding: 11px 18px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 615px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.36), rgba(0,0,0,.08) 54%, rgba(0,0,0,0));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.hero-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-top: 10px;
}

.hero-slide.is-active .hero-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  color: var(--sol-green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.hero h1 {
  max-width: 530px;
  margin: 0 0 16px;
  color: #299ce3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: 0 0 28px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 2px solid transparent;
  background: #299ce3;
  color: var(--sol-white);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.btn:hover {
  background: #1686c8;
  color: var(--sol-white);
}

.btn.secondary {
  border-color: rgba(255,255,255,.74);
  background: transparent;
}

.btn.secondary:hover {
  border-color: #299ce3;
  background: #299ce3;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  display: flex;
  gap: 11px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  opacity: .95;
}

.hero-dot.is-active {
  background: #299ce3;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--sol-light);
}

.section-title {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-title h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.section-title p {
  margin: 16px 0 0;
  color: var(--sol-muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
}

.split-media {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--sol-shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.service-card,
.project-card {
  background: var(--sol-white);
  border: 1px solid var(--sol-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18,32,49,.06);
}

.service-card img,
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.card-body p {
  margin: 0;
  color: var(--sol-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.28);
}

.stats-band {
  background: linear-gradient(135deg, #0f2435, #1c75bc);
  color: var(--sol-white);
}

.stat {
  padding: 34px 24px;
  background: rgba(255,255,255,.07);
}

.stat strong {
  display: block;
  font-size: clamp(20px, 3vw, 38px);
  line-height: 1;
  color: var(--sol-green);
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contact-band {
  background: var(--sol-dark);
  color: var(--sol-white);
}

.newsletter-band {
  padding: 76px 0;
  background: linear-gradient(135deg, var(--sol-green), var(--sol-blue));
  color: var(--sol-white);
}

.newsletter-band .wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
}

.newsletter-grid h2 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.newsletter-grid p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);
}

.newsletter-form input {
  min-height: 52px;
  width: 100%;
  border: 0;
  padding: 0 16px;
  font: inherit;
}

.newsletter-form small {
  color: rgba(255,255,255,.82);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.contact-item {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

.contact-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sol-green);
  text-transform: uppercase;
  font-size: 13px;
}

.site-footer {
  background: #081522;
  color: rgba(255,255,255,.76);
  padding: 34px 0;
}

.site-footer .wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.wp-page {
  padding: 88px 0;
}

.wp-page .wrap {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.wp-page h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-content h2,
.page-content h3 {
  margin-top: 32px;
  line-height: 1.18;
}

.page-content p {
  color: var(--sol-muted);
  font-size: 18px;
}

.page-content ul {
  margin: 22px 0;
  padding-left: 24px;
  color: var(--sol-muted);
  font-size: 18px;
}

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

.joomla-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--sol-border);
  box-shadow: 0 12px 28px rgba(18, 32, 49, .08);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    padding: 18px 20px 24px;
    background: var(--sol-white);
    border-bottom: 1px solid var(--sol-border);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 14px;
  }

  .primary-nav .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 8px 0 0 16px;
    min-width: 0;
  }

  .hero {
    min-height: 600px;
  }

  .split,
  .services-grid,
  .projects-grid,
  .newsletter-grid,
  .stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .joomla-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .wrap,
  .utility-strip .wrap,
  .info-bar .wrap {
    flex-direction: column;
  }
}
