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

/* ========== VARIABLES ========== */
:root {
  --green-main: #000000;
  --green-light: #9fb8ad;
  --green-gradient: linear-gradient(120deg, #e9e4d0 0%, #ffeed2 100%);
  --brown-dark: #c49799;
  --brown-light: #c6ddf0;
  --cream: #f8f6f1;
  --accent: #a3c97a;
  --shadow: 0 4px 24px rgba(91,140,60,0.10);
}

/* original colours
: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: #fff; /* Neutral background as sections now fill background space */
  background:none
  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/background.jpg');
  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.2); /* the white fade over the top background image*/
  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;
}


/* ========== 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/trees-overview.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.5; /* Subtle texture only */
  z-index: -1;
}

section {
  margin: 3rem 0;        /* vertical spacing between sections */
  padding: 3rem 15vw;     /* inner gutters so text doesn’t hug the edges  tweak 8vw (viewport width units) to taste; 5vw–10vw is a common range for full-width layouts.*/
  width: 100%;
  box-sizing: border-box;
}
/* Section-specific background colours (positional) */
main section:nth-of-type(1) {
  background: #ffffff; /* cream */
}

main section:nth-of-type(2) {
  background: #ffffff; /* light green */
}

main section:nth-of-type(3) {
  background: #ffffff; /* light brown */
}


.card {
  background: none; /* Remove white box */
  border-radius: 0; /* Remove rounded corners */
  box-shadow: none; /* Remove shadows */
  padding: 0; /* No internal padding needed */
  margin-bottom: 0;
  animation: none;
}

/* ========== 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: 7px;
  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: 206px;
  height: 206px;
  margin-bottom: 1rem;
  border-radius: 4px;
  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 ========== */

.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;
  }


  #backToTop {
    right: 16px;
    bottom: 16px;
  }
}

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