/* Carbon Facts — static rebuild of the Shapely (Colorlib) home page */

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/raleway-latin.woff2) format('woff2');
}

:root {
  --heading: #0e1015;
  --body: #67727a;
  --secondary: #f5f5f5;
  --dark: #0e1015;
  --nav-h: 55px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 400 14px/24px Raleway, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h3, p { margin: 0 0 24px; padding: 0; }
h1, h3 { font-weight: 400; color: var(--heading); }
h3 { font-size: 30px; line-height: 33px; }
p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--heading); padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Grid (Bootstrap 3 widths) ---------- */
.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.row { margin: 0 -15px; }
.col { padding: 0 15px; }
.text-center { text-align: center; }
.text-center img { margin: 0 auto; }

@media (max-width: 767px) {
  .mb-xs-24 { margin-bottom: 24px; }
}
@media (min-width: 768px) {
  .row { display: flex; align-items: flex-start; }
  .col-img  { width: 50%; }
  .col-text { width: 41.6667%; }
  .offset   { margin-left: 8.3333%; }
}
@media (min-width: 992px) {
  .align-children { align-items: center; justify-content: center; }
  .col-img  { width: 58.3333%; }
  .col-text { width: 33.3333%; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.main-nav {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.nav-bar { height: var(--nav-h); display: flex; align-items: center; }
.site-title {
  font-size: 24px;
  line-height: 52px;
  font-weight: 300;
  color: #666;
  transition: color .3s ease;
}
.site-title:hover, .site-title:focus { color: #333; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  border: 2px solid #fff;
  padding: 0 26px;
  min-width: 150px;
  line-height: 36px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: #fff;
  transition: all .3s ease;
}
.btn-lg { line-height: 24px; min-width: 200px; padding-top: 13px; padding-bottom: 13px; }
.btn-white:hover, .btn-white:focus { background: #fff; color: #222; }

/* ---------- Parallax backgrounds ----------
   Desktop: background fixed to the viewport, drifting slowly via --drift
   (set in main.js) — reproduces parallax.js at speed 0.2.
   Touch devices: plain cover background, as the original did (ios/android fix). */
.parallax {
  position: relative;
  background-color: #333;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: max(100vw, 224vh) auto;               /* 1440×900 source: 140vh × 1.6 */
  background-position: center calc(-20vh + var(--drift, 0px));
}
.bg-grassbw { background-image: url(../img/GrassBW.webp); }
.bg-grass2  { background-image: url(../img/Grass2.webp); }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .parallax {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }
}

/* ---------- Hero ---------- */
.cover {
  height: calc(102.6vh - var(--nav-h));
  min-height: 420px;
  display: flex;
  align-items: center;
}
.cover-inner { width: 100%; }
.hero-text { padding: 96px 15px; }
.hero-text h1 { color: #fff; font-size: 24px; line-height: 1.4; margin: 24px 0 56px; }
.hero-text .btn { margin-bottom: 24px; }

@media (max-width: 767px) {
  .cover { height: auto; min-height: 0; }
}

/* ---------- Feature sections ---------- */
.feature { padding: 96px 0; overflow: hidden; }
.bg-secondary { background: var(--secondary); }

/* ---------- Closing band ---------- */
.band { height: 192px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--dark);
  padding: 96px 0;
  overflow: hidden;
}
.copyright-text { color: #fefefe; margin-top: 15px; }

.back-to-top {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
  opacity: .5;
  transition: opacity .3s ease;
}
.back-to-top:hover, .back-to-top:focus { opacity: 1; }
