/* ========================
   Font faces
======================== */

/* ========================
   Base
======================== */
body {
  margin: 0;
  font-family: 'ivymode', sans-serif;
  font-weight: 300;
  background: #222;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px 60px; /* Top, sides, bottom */
  text-align: center;
}

a {
  color: #fff; /* or your base link colors */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff3636;
}

/* ========================
   Logo
======================== */
.logo {
  width: 200px;
  height: auto;
  margin-bottom: 100px;
  font-weight: 300;
}

/* ========================
   Headline
======================== */
h1.marketing-by-design {
  font-size: 96px;
  letter-spacing: 0.02em; /* 2% tracking */
  font-weight: 600;
  margin-bottom: 30px;
  max-width: 90%;
}

/* ========================
   Subhead
======================== */
.hero-subhead {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.02em; /* 2% tracking */
  max-width: 800px;
  line-height: 1.3;
  margin-bottom: 100px;
}

/* Breakpoints */
@media (max-width: 768px) {
  h1.marketing-by-design {
    font-size: 68px;
    line-height:80px;
  }
  
  .hero-subhead {
    font-size: 36px;
    max-width: 90%;
  }
  
  .service-box {
    width: 100%;
  }
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  h1.marketing-by-design {
    font-size: 36px;
    line-height: 1.1; /* tighter line height */
    margin-bottom: 20px;
  }
  
  .hero-subhead {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 60px;
  }
}

/* ========================
   Services grid
======================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-bottom: 100px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Keyframes for moving gradient */
@keyframes borderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.service-box {
  width: 100%;
  max-width: 400px;
  position: relative;
  border-radius: 8px;
  padding: 1px; /* acts as border width */
  background: linear-gradient(270deg, #000, #434242, #000);
  background-size: 400% 400%;
  animation: borderMove 8s ease infinite;
  transition: background 1.5s ease, transform 1.5s ease;
  border: 1px solid transparent;
}

.border-wrapper {
  background: #111; /* Darker charcoal background */
  border-radius: 8px;
  height: 100%;
  width: 100%;
  padding: 2rem;
}

.service-box::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 10px;
  background: linear-gradient(270deg, #434242, #aaa, #434242);
  background-size: 400% 400%;
  z-index: -1;
  animation: borderMove 18s ease infinite;
}

.service-box:hover::before {
  background: linear-gradient(270deg, #ff6f61, #ffcc70, #6ec1e4, #ff6f61);

}

.service-box:hover {
  background: linear-gradient(270deg, #ff6f61, #ffcc70, #6ec1e4, #ff3636);
    animation: borderMove 18s ease infinite;
}
.service-box h3 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.02em; /* 2% tracking */
  margin-bottom: 20px;
}

.service-box p {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.05em; /* 5% tracking */
  line-height: 1.5;
  margin-bottom: 20px;
}

.learn-more {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.05em;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  transition: color 1.5s ease;
}

.learn-more:hover {
  color: #ff3636;
}
.service-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-box h3,
.service-box p {
  color: #fff;
  transition: color 1.5s ease;
}



.service-box-link:hover .learn-more {
  color: #ff3636;
}

/* ========================
   About & info text
======================== */
.about-text {
  max-width: 800px;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.05em; /* 5% tracking */
  line-height: 1.6;
  margin-bottom: 80px;
}

.about-text a {
  color: #fff;
  text-decoration: underline;
  font-weight: 300;
}

.about-text a:hover {
    text-decoration:underline;
    color:#ff3636;
}

/* ========================
   Let's Chat button
======================== */
.lets-chat {
  display: inline-block;
  margin-top: 20px;
  padding: 0.5rem 1.5rem;
  border: 2px solid #fff;
  border-radius:8px;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 5%;
  text-decoration:none !important;
}

.lets-chat:hover {
  transform: translateY(-2px);
  color: #ff6633;
  border-color: #ff3636;
}

/* ========================
   Footer
======================== */
footer {
  margin-top: 2rem;
  font-size: 16px;
  color: #888;
  font-weight: 300;
}

/* ========================
   Honeypot
======================== */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ========================
   Modal
======================== */
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  background-color: #222;
  margin: 5% auto;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  color: #fff;
  position: relative;
}

.close-modal {
  color: #fff;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ff3636;
}

/* Form styling */
#custom-hubspot-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

#custom-hubspot-form label {
  margin-top: 10px;
  margin-bottom: 5px;
  color: #fff;
}

#custom-hubspot-form input,
#custom-hubspot-form textarea {
  width: 100%;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: 'IvyMode', sans-serif;
}

#custom-hubspot-form input:focus,
#custom-hubspot-form textarea:focus {
  outline: none;
  border-color: #ff3636;
}

#custom-hubspot-form button {
  background: #ff3636;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

#custom-hubspot-form button:hover {
  background: #ff6633;
}

.modal-headline {
  font-size: 48px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.modal-subhead {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.02em; /* subtle tracking to match style */
}