*,*::before,*::after {
  box-sizing: border-box;
}

/* Allow scrolling */
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;          /* prevent sideways scroll */
  overflow-y: auto !important; /* allow vertical scroll */
}

body {
  font-family: "Inter", sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.35;
}

/* Flex wrapper */
.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;   /* full viewport height */
}

/* Centered container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;             /* desktop spacing */
  flex: 1;                     /* take available space */
  display: flex;
  flex-direction: column;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
}

/* Brand with logo + text */
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo img {
  width: 30px; /* smaller logo */
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(0);
  transition: filter 0.3s, transform 0.3s;
}
.brand-logo:hover img {
  filter: brightness(0.3);
  transform: scale(1.05);
}

.brand-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  text-decoration: none;
  color: #111;
  transition: color 0.3s, transform 0.3s;
}
.brand-text:hover {
  color: #555;
  transform: scale(1.05);
}

/* Social icons */
.social {
  display: flex;
  gap: 22px;
  font-size: 22px;
  align-items: center;
}
.social a {
  color: #111;
  transition: color 0.3s, transform 0.3s;
}
.social a:hover {
  color: #555;
  transform: scale(1.1);
}

/* Main (desktop = grid, mobile = flex below) */
.main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;   /* vertical centering */
  gap: 56px;
}
.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #777;
  margin-bottom: 12px;
}
h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 44px;  /* adjusted so "Our new website" stays on one line */
  line-height: 1.25;
  margin: 0 0 14px;
}
.lead {
  font-size: 14px;
  color: #666;
  margin: 0 0 22px;
}

/* Form */
.form {
  display: flex;
  align-items: stretch;
  margin-bottom: 28px;
}
.form input {
  width: 280px;
  height: 42px;
  border: 1px solid #111;
  border-right: 0;
  padding: 0 12px;
  font-size: 13px;
  background: #fff;
  color: #111;
  border-radius: 6px 0 0 6px;
}
.form input::placeholder {
  color: #9a9a9a;
}
.form button {
  width: 46px;
  height: 42px;
  border: 1px solid #111;
  background: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: background 0.3s;
}
.form button svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}
.form button:hover {
  background: #333;
}

/* Feedback message */
.form-msg {
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}
.form-msg.is-ok { color: #2e7d32; }
.form-msg.is-err { color: #b71c1c; }

/* Right image */
.hero-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero img {
  width: 92%;         /* slightly smaller inside its column */
  max-width: 500px;   /* cap size so it doesn’t dominate */
  height: auto;
  max-height: 65dvh;  /* was 70dvh */
  object-fit: contain;
  object-position: center;
}

/* Bounce animation */
.bounce {
  animation: bounce 6s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(-20px) }
}

/* Bottom contact */
.foot {
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 14px;
}
.contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: #111;
}
.contact a {
  color: inherit;
  text-decoration: none;
}
.contact a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media(max-width:980px) {
  .container {
    padding: 0 40px; /* tablet spacing */
  }
  .main {
    display: flex;         /* switch from grid to flex */
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .left {
    padding: 20px 0;
    align-items: center;
  }
  .hero {
    margin-bottom: 40px;   /* NEW: add breathing room below hero */
  }
  .hero img {
    max-height: 48vh;
    min-height: 240px;
  }
  h1 {
    font-size: 32px;
  }
  .form {
    justify-content: center;
  }
}

@media(max-width:720px) {
  .container {
    padding: 0 20px; /* mobile spacing */
  }
  .main {
    gap: 16px;
  }
  .brand-logo img {
    width: 30px;
  }
  .brand-text {
    font-size: 18px;
  }
  .social {
    font-size: 20px;
    gap: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .lead {
    font-size: 13px;
  }
  .form input {
    width: 100%;
    font-size: 12px;
  }
  .form button {
    width: 42px;
    height: 42px;
  }
  .hero img {
    max-height: 35vh;
    min-height: 160px;
  }
  .foot {
    padding: 16px 0;
  }
}

@media(max-width:480px) {
  .main {
    gap: 12px;
  }
  .brand-logo img {
    width: 30px;
  }
  .brand-text {
    font-size: 16px;
  }
  .social {
    font-size: 18px;
    gap: 12px;
  }
  h1 {
    font-size: 24px;
    line-height: 1.2;
  }
  .lead {
    font-size: 12px;
  }
  .hero img {
    max-height: 35vh;
    min-height: 150px;
  }
  .foot {
    padding: 16px 0;
    font-size: 12px;
  }
}

/* Wide screens */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
    padding: 0 120px;
  }
}
