/* =========================================================
   Gananoque Trees and Trails — Main Stylesheet
   gananoquetreesandtrails.ca
   ========================================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #2d5a27;
  --green-mid:    #3e7a35;
  --green-light:  #5a9e4f;
  --green-pale:   #e8f2e5;
  --earth:        #8b6914;
  --earth-pale:   #f5eed8;
  --stone:        #f2f0ec;
  --text-dark:    #1e2820;
  --text-body:    #3a3f35;
  --text-muted:   #6b7265;
  --white:        #ffffff;
  --shadow:       0 2px 12px rgba(0,0,0,0.10);
  --shadow-card:  0 4px 20px rgba(0,0,0,0.08);
  --radius:       8px;
  --radius-lg:    14px;
  --nav-height:   64px;
  --max-width:    1100px;
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --transition:   200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--green-dark);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
p  { margin-bottom: 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--stone); }

/* --- Navigation ------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  height: var(--nav-height);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  fill: #7dc96f;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--white);
  line-height: 1.15;
}

.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: normal;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero ------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200'%3E%3Cellipse cx='400' cy='200' rx='600' ry='120' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") center bottom/cover no-repeat;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); text-decoration: none; }

.btn-primary {
  background: var(--white);
  color: var(--green-dark);
}
.btn-primary:hover { background: var(--green-pale); color: var(--green-dark); }

.btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-green {
  background: var(--green-mid);
  color: var(--white);
}
.btn-green:hover { background: var(--green-dark); color: var(--white); }

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Cards ------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 { color: var(--green-dark); margin-bottom: 0.5rem; }
.card p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* --- Section headings ------------------------------------ */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0.5rem auto 0; }

.section-label {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

/* --- News list ------------------------------------------- */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }

.news-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--green-mid);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.news-date {
  text-align: center;
  min-width: 56px;
}
.news-date .day   { font-size: 1.5rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.news-date .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

.news-item h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 0.35rem; }
.news-item p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: var(--earth-pale);
  color: var(--earth);
  margin-bottom: 0.4rem;
}

/* --- Trail map ------------------------------------------- */
.map-placeholder {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--green-light);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--green-dark);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}
.map-placeholder .map-icon { font-size: 3rem; }
.map-placeholder p { color: var(--text-muted); max-width: 380px; font-size: 0.95rem; }

/* --- Contact form ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #d4d8d0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(62,122,53,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* --- Info box -------------------------------------------- */
.info-box {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-box h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--green-dark); }
.info-box p, .info-box li { font-size: 0.9rem; color: var(--text-muted); }
.info-box ul { padding-left: 1.25rem; }
.info-box li { margin-bottom: 0.3rem; }

/* --- Footer ---------------------------------------------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; font-family: var(--font-sans); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.875rem; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--green-dark); padding: 1rem 1.25rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .news-item { grid-template-columns: 1fr; }
  section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
}
