﻿/* =============================
   SolarGreen - Ühine stiilileht
   ============================= */

:root {
  color-scheme: light;
  --green-dark: #1b5e20;
  --green-main: #2e7d32;
  --green-light: #4caf50;
  --green-pale: #e8f5e9;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #9e9e9e;
  --gray-dark: #333333;
  --text-body: #424242;
  --shadow: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================
   LEHE LAADIMISE ANIMATSIOONID
   ===================== */

@keyframes fadeInBlur {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBlurImg {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Navbar – liigub ülevalt alla */
.navbar {
  animation: navFadeIn 0.4s ease both;
}
@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero sisu */
.hero-content,
.page-hero-content {
  animation: fadeInBlur 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Lehe peasektsioonid — scroll-triggered'i asemel laadimisel */
.page-content-split,
.services-section,
.about-section,
.values-section,
.contact-section {
  animation: fadeInBlurNoShift 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes fadeInBlurNoShift {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pildid eraldi animatsiooniga */
.page-content-split img,
.about-solar-icon img,
.service-card-img img {
  animation: fadeInBlurImg 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* Kaardid viivitusega, järjestikku */
.service-card:nth-child(1) { animation: fadeInBlur 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both; }
.service-card:nth-child(2) { animation: fadeInBlur 0.7s cubic-bezier(0.22,1,0.36,1) 0.55s both; }
.service-card:nth-child(3) { animation: fadeInBlur 0.7s cubic-bezier(0.22,1,0.36,1) 0.7s both; }
.service-card:nth-child(4) { animation: fadeInBlur 0.7s cubic-bezier(0.22,1,0.36,1) 0.85s both; }

/* Value items */
.value-item:nth-child(1) { animation: fadeInBlur 0.7s cubic-bezier(0.22,1,0.36,1) 0.5s both; }
.value-item:nth-child(2) { animation: fadeInBlur 0.7s cubic-bezier(0.22,1,0.36,1) 0.65s both; }
.value-item:nth-child(3) { animation: fadeInBlur 0.7s cubic-bezier(0.22,1,0.36,1) 0.8s both; }

/* Footer */
footer {
  animation: fadeInBlur 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
}

.navbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}

.navbar-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-brand-text {
  display: grid;
  grid-template-areas:
    "logo logo"
    "top bottom";
  grid-template-columns: auto auto;
  column-gap: 6px;
  align-items: baseline;
  line-height: 1.1;
}

.navbar-tagline-top {
  grid-area: top;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar-logo-text {
  grid-area: logo;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #1b5e20 0%, #4caf50 25%, #bcd43a 50%, #4caf50 75%, #1b5e20 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoShimmer 10s linear infinite;
}

@keyframes logoShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}

@keyframes taglineFade {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.navbar-tagline-bottom {
  grid-area: bottom;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: nowrap;
}

.navbar-nav li a {
  display: block;
  padding: 6px 10px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: var(--transition);
  border-radius: var(--radius);
  white-space: nowrap;
}

.navbar-nav li a:hover,
.navbar-nav li a.active {
  color: var(--green-main);
  background: var(--green-pale);
}

.navbar-contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.navbar-contact-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.88rem;
  color: var(--gray-mid);
  gap: 2px;
}

.navbar-contact-info a:not(.navbar-fb-link) {
  color: var(--green-main);
  font-weight: 600;
}

.navbar-fb-link {
  display: inline-flex;
  align-items: center;
  opacity: .9;
  transition: opacity .2s, transform .2s;
  line-height: 1;
}
.navbar-fb-link:hover { opacity: 1; transform: scale(1.1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================
   HERO SEKTSIOON
   ===================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url('media/sustainable-energy.jpg') center/cover no-repeat;
  padding-top: 70px;
  padding-bottom: 100px; /* room for the arrow at bottom */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 40px 20px;
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.45));
  animation: heroLogoIn 1s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.7) translateY(-20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-solar,
.hero-green {
  background: linear-gradient(90deg, #5ecf5e 0%, #82e04a 50%, #5ecf5e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGreenShimmer 6s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8)) drop-shadow(0 0 22px rgba(76,175,80,0.45));
}

.hero-green {
  animation-delay: -3s;
}

@keyframes heroGreenShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.9),
    -1px 1px 0 rgba(0,0,0,0.9),
    1px -1px 0 rgba(0,0,0,0.9),
    -1px -1px 0 rgba(0,0,0,0.9),
    0 3px 14px rgba(0,0,0,0.85),
    0 0 28px rgba(0,0,0,0.65);
  color: #fff;
  font-weight: 700;
}

.hero-btn {
  display: inline-block;
  background: var(--green-light);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(76,175,80,0.4);
}

.hero-btn:hover {
  background: var(--white);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* =====================
   SEKTSIOONID
   ===================== */

section {
  padding: 80px 5%;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 60px;
  position: relative;
  white-space: nowrap;
  overflow: visible;
}

@media (max-width: 900px) {
  .section-title {
    white-space: normal;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    letter-spacing: 1px;
  }
}

.services-section .section-title {
  color: #fff;
  font-weight: 400;
  letter-spacing: 4px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green-light);
  margin: 16px auto 0;
  border-radius: 2px;
}

.services-section .section-title::after {
  display: none;
}

/* =====================
   TEENUSED
   ===================== */

.services-section {
  background: linear-gradient(135deg, #bcd43a 0%, #a8c530 40%, #c8dc40 100%);
  padding: 24px 5% 52px;
  position: relative;
  overflow: hidden;
}

.services-section::before,
.services-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.services-section::before {
  width: 360px;
  height: 360px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 68%);
}

.services-section::after {
  width: 300px;
  height: 300px;
  bottom: -220px;
  left: -80px;
  background: radial-gradient(circle, rgba(27,94,32,0.14) 0%, rgba(27,94,32,0) 70%);
}

.services-section .section-title {
  color: #fff;
  font-weight: 400;
  letter-spacing: 4px;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

.services-section .section-title::after {
  display: block;
  width: 78px;
  height: 3px;
  margin-top: 14px;
  background: rgba(255,255,255,0.45);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  isolation: isolate;
  justify-content: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 9px);
  }
}
@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .services-grid .service-card:last-child:nth-child(odd) {
    width: calc(50% - 7px);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f9fdf7 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(34,94,34,0.16), 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
  position: relative;
  z-index: 1;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  border: 1px solid rgba(255,255,255,0.7);
  border-bottom: 3px solid transparent;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 0 rgba(76,175,80,0);
  transition: box-shadow 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.service-card:hover {
  transform: translateZ(0) translateY(-9px) scale(1.025);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2), 0 10px 24px rgba(46,125,50,0.24);
  z-index: 100;
  border-bottom-color: var(--green-light);
}

.service-card:hover::after {
  box-shadow: inset 0 0 0 2px rgba(76,175,80,0.35);
}

.service-card-img {
  width: 100%;
  height: 170px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

@media (max-width: 500px) {
  .service-card-img { height: 130px; }
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,32,20,0.14) 0%, rgba(16,32,20,0.02) 38%, rgba(16,32,20,0) 65%);
  pointer-events: none;
}

.service-card:hover .service-card-img img {
  transform: scale(1.09);
  filter: saturate(1.07);
}

.service-card-body {
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faef 100%);
  border-top: 1px solid rgba(76,175,80,0.16);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}

.service-card:hover .service-card-body {
  background: linear-gradient(180deg, #fafff6 0%, #eef8df 100%);
}

.service-card-body h3 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}

.service-card-body p {
  display: none;
}

.service-card-link {
  display: none;
}

/* =====================
   SCROLL DOWN BUTTON
   ===================== */

.scroll-down-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 8px;
  user-select: none;
  -webkit-user-select: none;
}

.scroll-down-btn span {
  display: block;
  width: 40px;
  height: 40px;
  border-right: 4px solid rgba(255,255,255,0.9);
  border-bottom: 4px solid rgba(255,255,255,0.9);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: border-color 0.2s;
}

.scroll-down-btn:hover span {
  border-color: var(--green-light);
}

.scroll-down-btn--dark span {
  border-right-color: rgba(27,94,32,0.9);
  border-bottom-color: rgba(27,94,32,0.9);
}

.scroll-down-btn--dark:hover span {
  border-color: var(--green-main);
}

/* Hero scroll arrow */
.scroll-down-btn--hero {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  cursor: pointer;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

/* Section scroll arrows (mobile-only) */
.scroll-down-btn--section {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(46, 125, 50, 0.75);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: #2e7d32;
}

.scroll-down-btn--section svg {
  display: block;
}

.scroll-down-btn--section:hover {
  background: #ffffff;
  border-color: #2e7d32;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.section-next-wrap {
  display: none;
  width: 100%;
}

@media (max-width: 1100px) {
  .scroll-down-btn--hero {
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .section-next-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0 6px;
  }

  .scroll-down-btn--section {
    display: flex;
    transform: translateY(18px);
  }
}

.scroll-down-btn--hero svg {
  animation: heroChevronBounce 1.5s ease-in-out infinite;
}

.scroll-down-btn--hero:hover {
  background: rgba(255, 255, 255, 0.35);
}

.scroll-down-btn--hero.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
}

@keyframes heroChevronBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.about-section {
  background: var(--white);
  position: relative;
  padding-bottom: 80px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.about-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--green-light);
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-body);
  font-size: 1.12rem;
  line-height: 1.85;
}

.about-text .contact-btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--green-main);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.about-text .contact-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.about-solar-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.solar-icon-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-pale), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow);
}

/* =====================
   VÄÄRTUSED
   ===================== */

.values-section {
  background: var(--green-dark);
  color: var(--white);
  position: relative;
  padding: 38px 5% 42px;
}

.values-section .section-title {
  color: var(--white);
  margin-bottom: 28px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.value-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.value-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-light);
}

.value-item p {
  margin: 0;
  line-height: 1.45;
}

/* =====================
   KONTAKT
   ===================== */

.contact-section {
  background: var(--gray-light);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  position: relative;
}

.contact-info h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--green-light);
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.contact-info p {
  margin-bottom: 24px;
  color: var(--text-body);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.contact-detail .icon {
  width: 36px;
  height: 36px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--green-main);
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-body);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: var(--green-main);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* =====================
   PAGE HERO (alamlehed)
   ===================== */

.page-hero {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('media/sustainable-energy.jpg') center/cover no-repeat;
  position: relative;
  padding-top: 70px;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 60px 20px;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 4px 24px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.8);
}

.page-hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: 16px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.9),
    -1px 1px 0 rgba(0,0,0,0.9),
    1px -1px 0 rgba(0,0,0,0.9),
    -1px -1px 0 rgba(0,0,0,0.9),
    0 3px 14px rgba(0,0,0,0.85),
    0 0 28px rgba(0,0,0,0.65);
}

/* =====================
   SISU LEHT
   ===================== */

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 5%;
}

.page-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 40px 0 20px;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
}

.page-content ul {
  margin: 0 0 24px 24px;
}

.page-content ul li {
  margin-bottom: 10px;
  color: var(--text-body);
  line-height: 1.7;
}

.page-content .contact-btn {
  display: inline-block;
  margin-top: 32px;
  background: var(--green-main);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.page-content .contact-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.page-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 5%;
}

.page-content-split > * {
  min-width: 0;
}

.page-content-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.page-img-placeholder {
  width: 100%;
  height: 350px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.7);
}

/* =====================
   GALERII
   ===================== */

.gallery-section {
  padding: 60px 5%;
  background: var(--gray-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 4/3;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================
   FOOTER
   ===================== */

footer {
  background: #0d1f0d;
  color: rgba(255,255,255,0.8);
  padding: 50px 5% 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 300px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-light);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-light);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 0.88rem;
  opacity: 0.75;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--green-light);
}

.footer-contact p {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--green-light);
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 1024px) {
  .about-inner,
  .contact-inner,
  .page-content-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .navbar-contact-info {
    display: flex;
  }
  .navbar-contact-text,
  .navbar-fb-link {
    display: none;
  }
  #lang-switcher {
    margin-left: 0;
  }
}

@media (max-width: 1100px) {
  .scroll-down-btn.mobile-only { display: none !important; }
}

/* Flags: separated from contact info */
#lang-switcher {
  margin-left: 20px;
}

@media (max-width: 1100px) {
  .navbar-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 4px;
    z-index: 999;
  }

  .navbar-nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
    order: 3;
  }

  #lang-switcher {
    order: 2;
    margin-right: 18px;
  }

  .navbar-contact-info {
    order: 4;
    margin-right: 0;
  }

  .navbar-brand {
    order: 1;
    margin-right: auto;
  }

  #lang-switcher svg {
    width: 28px;
    height: 18px;
  }

  .lang-btn {
    padding: 4px 5px;
  }

  .navbar-logo-text {
    background: linear-gradient(90deg, #4caf50 0%, #bcd43a 40%, #a5d6a7 75%, #4caf50 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 5%;
  }

  .hero {
    padding-bottom: 90px;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 14px;
  }

  .hero-content {
    padding: 20px 20px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .hero-btn {
    padding: 11px 26px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .solar-icon-circle {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }
}

@media (max-width: 640px) {
  .page-hero-content h1 {
    letter-spacing: 1px;
    overflow-wrap: break-word;
  }

  .page-hero-content p {
    overflow-wrap: break-word;
  }

  .page-content-split {
    padding: 40px 16px;
  }

  .page-content-split h2 {
    font-size: 1.2rem !important;
    letter-spacing: 0 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .page-content-split .contact-btn {
    display: block !important;
    text-align: center !important;
    padding: 14px 20px !important;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 14px;
  }

  .hero-content {
    padding: 24px 4vw 24px 4vw;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 1.02rem;
    margin-bottom: 18px;
    line-height: 1.4;
  }

  .hero-btn {
    padding: 13px 28px;
    font-size: 0.98rem;
    border-radius: 36px;
  }

  .contact-form {
    padding: 24px;
  }
}

/* Project grid cards – pointer cursor on hover */
.tood-grid3 > div {
  cursor: pointer;
}

