/* =====================================================
   TABLE OF CONTENTS — INDEX STYLESHEET
   -----------------------------------------------------
   1. INDEX HERO / BIO
   2. GLOBAL ICONS
   3. INDEX ROOTS AND ROADS (BIO COLUMNS)
   4. INDEX VIDEO
   5. INDEX SIGNUP
   6. FOOTER
   7. INDEX LAST SECTION BACKGROUND
===================================================== */


/* =============================
   1. INDEX HERO / BIO
============================= */

.index-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 0;
}

.index-hero-image img {
  width: 100%;
  display: block;
  border: 1px solid #333;
}

.index-hero-text {
  text-align: right;
}

/* --- 700px --- */
@media (max-width: 700px) {
  .index-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* =============================
   2. INDEX HERO SOCIALS
============================= */

.hero-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: right;
  margin-top: 1rem;
}

/* Clickable tap area */
.hero-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
}

.icon-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.icon-svg path {
  fill: #333;
  transition: fill 0.3s ease;
}

.hero-socials a:hover .icon-svg path {
  fill: #5b8ad8;
}


/* ==================================
   3. INDEX ROOTS AND ROADS (BIO)
================================== */

.index-bio {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 0;
}

/* Multi-column layout */
.bio-columns {
  column-count: 3;
  column-gap: 2.5rem;
  widows: 2;
  orphans: 2;
}

.bio-columns p {
  text-align: justify;
}

/* --- 1024px --- */
@media (max-width: 1024px) {
  .bio-columns {
    column-count: 2;
  }
}

/* --- 700px --- */
@media (max-width: 700px) {
  .bio-columns {
    column-count: 1;
    text-align: left;
  }
}


/* ==================================
   4. INDEX VIDEO
================================== */

/* Wrapper that matches your site’s 80% / 1100px grid */
.index-video-wrapper {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 0;
}

/* The small centred video box */
.index-video {
  width: 400px;      
  margin: 0 auto;    
}

/* Mobile: make it wider like everything else */
@media (max-width: 700px) {
  .index-video {
    width: 80%;
  }
}

/* ==================================
   5. INDEX SIGNUP
================================== */

.index-signup-section {
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 0;
  text-align: center;
}

.index-signup-section h2 {
  margin-bottom: 1.5rem;
}

/* Inline form (email + button) */
.signup-inline-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Email input */
.signup-inline-form input[type="email"] {
  flex: 1;
  min-height: 44px;
  /* accessible target size */
  padding: 0.6rem 1rem;
  border: 1px solid #333;
  /* match site text colour */
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  line-height: 1;
  letter-spacing: 0.3px !important;
  /* match placeholder spacing */
  box-sizing: border-box;
  transition: border-color 0.3s ease;

  -webkit-appearance: none;
  /* Safari fix */
  appearance: none;
}

/* Placeholder */
.signup-inline-form input[type="email"]::placeholder {
  color: #777;
  font-family: inherit;
  letter-spacing: 0.3px;
}

/* Focus — subtle, accessible, no glow */
.signup-inline-form input[type="email"]:focus {
  outline: none;
  border-color: #5b5b5b;
  /* visible but elegant */
}

/* Button */
.signup-inline-form .global-btn {
  white-space: nowrap;
  /* keep button tidy */
}

/* --- 700px --- */
@media (max-width: 700px) {
  .signup-inline-form {
    flex-direction: column;
    align-items: center;
  }

  .signup-inline-form input[type="email"] {
    width: 100%;
  }

  .signup-inline-form .global-btn {
    width: auto;
    /* prevents full-width stretch */
    margin-top: 0.5rem;
  }
}



/* ============================
   6. INDEX FOOTER
============================= */

.index-footer {
  text-align: center;
  padding: 2rem 0;
  background: #fefdf9;
}

.index-footer .footer-link {
  color: #333;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.index-footer .footer-link:hover {
  color: #5b8ad8;
}


/* ==================================
   7. INDEX LAST SECTION BACKGROUND
================================== */

.index-last-section-background {
  min-height: 100vh;
  background-image:
    linear-gradient(to bottom,
      rgba(254, 253, 249, 1) 0%,
      rgba(254, 253, 249, 0.95) 8%,
      rgba(254, 253, 249, 0.75) 25%,
      rgba(254, 253, 249, 0.45) 45%,
      rgba(254, 253, 249, 0) 80%),
    url('/images/background-images/index-background-1600.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- 700px --- */
@media (max-width: 700px) {
  .index-last-section-background {
    background-image:
      linear-gradient(to bottom,
        rgba(254, 253, 249, 1) 0%,
        rgba(254, 253, 249, 0.95) 8%,
        rgba(254, 253, 249, 0.75) 25%,
        rgba(254, 253, 249, 0.45) 45%,
        rgba(254, 253, 249, 0) 80%),
      url('/images/background-images/index-background-900.jpg');
    background-position: center top;
  }
}