@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");

/* CSS Variables */
:root {
  --normal-font: 400;
  --bold-font: 600;
  --bolder-font: 900;
  --main-color: #000;
  --opposite-main-color: #fff;
  --primary-color: #f7c948;
  --secondary-color: #322659;
  --line-height: 1.7rem;
  --transition: 0.4s ease-in;
}

/* Smooth scroll effect */
html {
  scroll-behavior: smooth;
}

/* Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: var(--transition);
}

/* Logo Settings*/

.main-logo {
  max-width: 15%;
  max-height: 15%;
}

.logos {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.logos img {
  height: 28px;
  opacity: .8;
}

/* Text Settings */

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  margin: 0;
}

body,
html {
  min-height: 100%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 .75em;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 1.5em;
}

ul li {
  list-style-type: none;
}

a {
  color: var(--main-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: 2rem;
}

h2#partners-start, h2#email-start {
  text-align: center;
  padding: 40px 20px;
  display: block;
}

#serve-intro.serve {
  text-align: left;
  padding: 40px 20px;
  display: block;
}

.serve, .serve-services, .about {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 40px 20px;
  margin: 0 0;
}

.serve-services article, .about article {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
  border: 1px solid #e2e8f0;
}

.main-serve h2, .serve h2, .serve-services h2, .about h2, .partners h2, .email h2 {
  font-size: 2rem;
  color: var(--primary-color);
  scroll-margin-top: 100px; /* Adjust to match your navbar height + extra padding */
}

.pricing {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 40px 20px;
}

.plan {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.plan .price {
  font-size: 2rem;
  margin: 8px 0 16px;
}

.plan.featured {
  outline: 2px solid #0f766e;
}

@media (min-width: 960px) {
  .hero {
    padding: 100px 20px
  }

  .features,
  .pricing {
    gap: 32px
  }
}

/* Navigation Settings */

nav {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  box-shadow: 2px 3px 2px #f1f1f1;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-weight: var(--bold-font);
}

.hamburger {
  display: none;
}

ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero Settings */

header.hero,
main,
footer.site-footer,
section {
  padding: 16px;
}

.hero {
  text-align: center;
  padding: 80px 24px;
  background: #f1f8f5;
  color: #0f172a;
}

.hero .subhead {
  color: #475569;
  font-size: 1.125rem;
  margin: 12px 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--opposite-main-color);
}

.btn-primary:hover {
  text-decoration: underline;
  color: var(--main-color);
}

/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/assets/images/terrik-herobanner.png");

  /* Set a specific height */
  height: 95vh;
  min-height: 450px;

  /* Position and center the image to scale nicely on all screens */
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

/* Image Settings */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* Replaces manual column padding cleanly */
  align-items: center;
}

/* Create four equal columns that sit next to each other */
.column {
  flex: 1 1 calc(25% - 16px); /* Accounts for gap so all 4 stay on one row */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.column img {
  width: 100%;
  max-width: 180px;     /* Prevents logos from looking oversized on wide screens */
  aspect-ratio: 3 / 2;  /* Keeps every logo box uniform without stretching */
  object-fit: contain;  /* Scales each logo proportionally inside the box */
  display: block;
}

/* Stack into 2 columns on smaller screens */
@media (max-width: 768px) {
  .column {
    flex: 1 1 calc(50% - 16px);
  }
}
