/* styles.css - Main stylesheet for Cwiri website */

/* ========== VARIABLES ========== */
:root {
  --green-main: #5c8d3c;
  --green-light: #dbeed2;
  --green-gradient: linear-gradient(120deg, #e9e4d0 0%, #dbeed2 100%);
  --brown-dark: #6b4f27;
  --brown-light: #e9e4d0;
  --cream: #f8f6f1;
  --accent: #a3c97a;
  --shadow: 0 4px 24px rgba(91,140,60,0.10);
}

/* ========== BASE STYLES ========== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--green-gradient);
  color: var(--brown-dark);
  min-height: 100%;
}

/* ========== HEADER ========== */
header {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 2rem;
  background-image: url('/images/nobody-knows.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.logo-link {
  display: block;
  margin: 0 auto 1.5rem auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  width: 230px;
  text-align: center;
  transition: box-shadow 0.2s;
  position: relative;
  z-index: 2;
}

.logo-link:hover {
  box-shadow: 0 8px 32px rgba(91,140,60,0.18);
  transform: translateY(-5px);
}

.logo-img {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin: 1.2rem 0;
}

/* ========== LANGUAGE SELECTOR ========== */
.lang-bar {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 30;
  background: transparent;
}

.lang-select {
  font-size: 1rem;
  padding: 0.4rem 1.2rem 0.4rem 0.5rem;
  border-radius: 8px;
  border: 2px solid var(--green-main);
  background: #fff;
  color: var(--green-main);
  font-weight: 700;
  outline: none;
}

/* ========== HERO CARD ========== */
.hero-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s;
}

.hero-card h1 {
  font-size: 2.7rem;
  color: var(--green-main);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-card p {
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

/* ========== NAVIGATION ========== */
nav {
  background: var(--green-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 1rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
}

nav a:hover, nav a.active {
  background: #fff;
  color: var(--green-main);
}

/* ========== MAIN CONTENT ========== */
main {
  padding: 0;
  margin: 0;
  position: relative;
}

main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/nobody-knows.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.05;
  z-index: -1;
}

section {
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  animation: fadeIn 1s;
}

/* ========== FEATURES ========== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.feature {
  flex: 1 1 220px;
  background: var(--green-light);
  border-radius: 14px;
  padding: 2rem 1.2rem;
  min-width: 210px;
  box-shadow: 0 1px 6px rgba(91, 140, 60, 0.07);
  text-align: center;
  color: var(--green-main);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
  box-shadow: 0 8px 24px rgba(91,140,60,0.13);
  transform: translateY(-4px) scale(1.03);
}

.feature img, .feature svg {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 1px 6px rgba(91, 140, 60, 0.04);
}

.feature h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--green-main);
}

.feature p {
  color: var(--brown-dark);
  font-size: 1rem;
}

/* ========== IFRAME CONTAINERS ========== */
.iframe-container {
  width: 100%;
  height: 420px;
  background: var(--green-light);
  border-radius: 12px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.iframe-container iframe {
  width: 95%;
  height: 95%;
  border: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(91, 140, 60, 0.08);
  position: relative;
  z-index: 2;
}

/* ========== CONTACT FORM ========== */
.contact-form {
  max-width: 540px;
  margin: 2rem auto 0 auto;
  background: var(--green-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(91, 140, 60, 0.06);
  color: var(--green-dark);
}

.privacy-link {
  display: block;
  text-align: right;
  margin: 1.5rem 0 0 0;
  font-size: 1rem;
}

.privacy-link a {
  color: var(--brown-dark);
  text-decoration: underline;
  font-weight: 700;
}

/* ========== BACK TO TOP BUTTON ========== */
#backToTop {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: var(--green-main);
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(91,140,60,0.12);
  transition: opacity 0.3s, background 0.2s;
  opacity: 0.85;
  padding: 0;
  width: 50px;
  height: 50px;
}

#backToTop:hover {
  opacity: 1;
  box-shadow: 0 8px 24px rgba(91,140,60,0.18);
  transform: translateY(-5px);
}

#backToTop svg {
  display: block;
  margin: 0 auto;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  color: var(--brown-dark);
  font-size: 1rem;
  background: var(--cream);
  margin-top: 3rem;
}

/* ========== PRIVACY PAGE SPECIFIC ========== */
.content {
  max-width: 700px;
  margin: 2.5rem auto 0 auto;
  padding: 0 1rem;
  position: relative;
}

.back-btn {
  display: inline-block;
  margin-top: 2rem;
  background: var(--green-main);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.back-btn:hover {
  background: var(--brown-dark);
  transform: translateY(-3px);
}

/* ========== UTILITY CLASSES ========== */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 900px) {
  .features {
    flex-direction: column;
  }
  
  section {
    padding: 2rem 0.5rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .lang-bar {
    position: static;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
  }
  
  #backToTop {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 700px) {
  .card, .content .card {
    padding: 1.2rem 0.5rem;
  }
  
  .logo-img {
    max-height: 40px;
  }
}
