* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", Inter, Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 100px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.services,
.contact,
.products {
  scroll-margin-top: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #071624;
  font-family: "Bagel Fat One", "Hanken Grotesk", Inter, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-i {
  position: relative;
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin: 0 1px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #006fad;
  margin-top: 4px;
  line-height: 1;
  transform: rotate(-8deg) translateY(-1px);
}

.brand-i::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
}

.brand-subtitle {
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #334155;
  font-weight: 600;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  padding: 16px 35px;
  justify-content: center;
  min-height: 44px;
  border-radius: 50px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-button {
  color: #ffffff;
  background: #006fad;
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover {
  transition: 0.5s;
  background: #005b8e;
}

.secondary-button:hover {
  transition: 0.5s;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 760px;
  margin-top: -100px;
  padding: 190px 24px 86px;
  overflow: hidden;
  background:
    linear-gradient(rgba(7, 22, 36, 0.88), rgba(7, 22, 36, 0.92)),
    url("assets/images/tiv-hero-bg.jpg")
      center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 310px;
  background: #ffffff;
  clip-path: polygon(0 0, 50% 40%, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  text-align: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #b9c8d9;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 22px auto 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-photo-wrap {
  position: relative;
  z-index: 3;
  width: min(1130px, 100%);
  margin-top: 64px;
  transform: rotate(-1.15deg);
  transform-origin: center;
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 50px;
  filter: grayscale(100%);
}

.hero-photo-frame {
  position: absolute;
  inset: -28px -34px -30px -34px;
  z-index: 3;
  width: calc(100% + 68px);
  height: calc(100% + 58px);
  overflow: visible;
  pointer-events: none;
}

.hero-photo-frame path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 8px rgba(15, 23, 42, 0.16))
    drop-shadow(0 22px 24px rgba(15, 23, 42, 0.18));
}

.floating-card {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 6px;
  min-width: 200px;
  padding: 16px 18px;
  border-radius: 10px;
  color: #334155;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.floating-card strong {
  color: #111827;
  font-size: 0.86rem;
}

.floating-card span {
  color: #64748b;
  font-size: 0.82rem;
}

.floating-card-left {
  top: 12%;
  left: -8%;
}

.floating-card-right {
  right: -6%;
  bottom: 14%;
}

.services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  width: min(1180px, calc(100% - 48px));
  margin: 72px auto 120px;
  padding: 18px 0;
}

.services-intro {
  grid-column: 1 / span 2;
  grid-row: 1;
  align-self: center;
  max-width: 520px;
  padding-right: clamp(18px, 3vw, 42px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  color: #475569;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.services h2 {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.services-intro p {
  max-width: 480px;
  margin: 20px 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
}

.services-grid {
  display: contents;
}

.service-card {
  position: relative;
  display: flex;
  height: 350px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 12px;
  padding: 28px;
  border-radius: 28px;
  background: #f3faff;
}

.service-card-featured {
  color: #ffffff;
  background: #006fad;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #006fad;
  background: #d9effc;
  font-size: 1.35rem;
  font-weight: 900;
}

.service-card-featured .service-icon {
  color: #006fad;
  background: #ffffff;
}

.service-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.55;
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.service-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.2rem;
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  margin: 0 auto 120px;
  background: #071624;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.contact-info {
  position: relative;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 48px);
  color: #ffffff;
  background:
    linear-gradient(rgba(7, 22, 36, 0.64), rgba(7, 22, 36, 0.94)),
    url("assets/images/tiv-contact.jpg")
      center / cover;
}

.section-tag-dark {
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.24);
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
}

.contact-info h2 {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.contact-info p {
  max-width: 500px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-arrow {
  position: absolute;
  bottom: 12%;
  right: -200px;
  z-index: 2;
  width: 120px;
  height: auto;
  overflow: visible;
  transform: rotate(-6deg);
  pointer-events: none;
}

.contact-arrow path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.contact-detail {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  color: #dbeafe;
}

.contact-detail strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.contact-detail span {
  color: #cbd5e1;
}

.contact-form {
  position: relative;
  align-content: center;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 24px;
  background: #ffffff;
  margin: 100px auto;
  min-width: 60%;
  display: grid;
  gap: 20px;
}

.form-spark {
  position: absolute;
  z-index: 2;
  top: -19px;
  right: -10px;
  width: 44px;
  height: 44px;
  overflow: visible;
  transform: rotate(30deg) translate(4px, 2px);
  transform-origin: 40px 38px;
  pointer-events: none;
}

.form-spark path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18));
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-field label span {
  color: #006fad;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #dbe3ea;
  border-radius: 18px;
  color: #111827;
  background: #f8fbfd;
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-field input {
  min-height: 58px;
  padding: 0 18px;
}

.form-field textarea {
  min-height: 170px;
  padding: 18px;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #006fad;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 111, 173, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}

.contact-submit {
  grid-column: 1 / -1;
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: #065f46;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #b91c1c;
}

.products {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 120px;
}

.products-header {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: 34px;
}

.products-header .section-tag {
  width: fit-content;
}

.products h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.products-header p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: grid;
  gap: 24px;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 32px;
  background: #f3faff;
}

.product-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 111, 173, 0.12);
}

.product-card-strawberry {
  background: #fff5f8;
}

.product-card-strawberry::after {
  background: rgba(220, 38, 88, 0.1);
}

.product-card-mise {
  background: #fff1ec;
}

.product-card-mise::after {
  background: rgba(181, 66, 24, 0.14);
}

.product-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #006fad;
  background: #d9effc;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card-strawberry .product-kicker {
  color: #be123c;
  background: #ffe4ec;
}

.product-card-mise .product-kicker {
  color: #b54218;
  background: #f8d8cc;
}

.product-card h3 {
  margin: 26px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.product-card p {
  max-width: 430px;
  margin: 22px 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

.product-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  background: #006fad;
  font-weight: 800;
}

.product-card-strawberry .product-link {
  background: #be123c;
}

.product-card-mise .product-link {
  background: #b54218;
}

.site-footer {
  color: #ffffff;
  background: #071624;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 0.7fr) minmax(
      240px,
      0.8fr
    );
  gap: clamp(28px, 5vw, 72px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 46px;
}

.footer-brand {
  max-width: 470px;
}

.footer-brand .brand {
  display: inline-block;
  font-size: 1.4rem;
  color: #ffffff;
}

.footer-brand p {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-links a,
.footer-contact a {
  color: #cbd5e1;
  font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact strong {
  font-size: 1.05rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .site-header {
    padding: 14px 32px;
  }

  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-intro {
    grid-column: 1 / -1;
    max-width: 720px;
    padding-right: 0;
  }

}

@media (max-width: 980px) {
  .site-header {
    gap: 18px;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.95rem;
  }

  .site-header > .primary-button {
    padding: 13px 22px;
  }

  .hero {
    min-height: auto;
    margin-top: -80px;
    padding: 170px 24px 78px;
  }

  .hero::after {
    height: 250px;
  }

  .hero-photo-wrap {
    width: min(850px, calc(100% - 24px));
    margin-top: 52px;
  }

  .floating-card-left {
    left: 0;
  }

  .floating-card-right {
    right: 0;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 92px;
  }

  .service-card {
    height: auto;
    min-height: 260px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-info {
    min-height: 420px;
  }

  .contact-arrow {
    right: 48px;
    bottom: -40px;
    transform: rotate(74deg);
  }

  .contact-form {
    width: min(620px, calc(100% - 40px));
    min-width: 0;
    margin: 56px auto;
  }
}

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

  .footer-main {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    flex-wrap: wrap;
    padding: 16px 20px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    color: #475569;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3faff;
  }

  .site-header > .primary-button {
    min-height: 40px;
    padding: 10px 18px;
    width: auto;
    font-size: 0.9rem;
  }

  .hero {
    margin-top: 0;
    padding: 72px 18px 64px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 320px);
    margin-right: auto;
    margin-left: auto;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    padding: 14px 20px;
  }

  .site-header > .primary-button {
    width: auto;
  }

  .hero-photo-wrap {
    width: min(100%, 520px);
    margin-top: 42px;
    transform: rotate(-0.6deg);
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
    border-radius: 28px;
  }

  .hero-photo-frame {
    inset: -18px -20px -22px -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
  }

  .hero-photo-frame path {
    stroke-width: 9;
  }

  .floating-card {
    display: none;
  }

  .services,
  .products {
    width: min(100% - 32px, 560px);
    margin-bottom: 84px;
  }

  .services {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .services h2,
  .products h2,
  .contact-info h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .service-card {
    min-height: 230px;
    padding: 24px;
    border-radius: 24px;
  }

  .contact {
    width: 100%;
    margin-bottom: 84px;
  }

  .contact-info {
    min-height: 360px;
  }

  .contact-form {
    width: min(100% - 32px, 520px);
    margin: 36px auto 44px;
  }

  .contact-arrow,
  .form-spark {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header > .primary-button {
    width: auto;
  }

  .products {
    width: min(100% - 32px, 520px);
  }

  .product-card {
    min-height: 320px;
  }

  .footer-main,
  .footer-bottom {
    width: min(100% - 32px, 520px);
  }
}

@media (max-width: 460px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-photo-frame {
    display: none;
  }

  .services,
  .products {
    width: calc(100% - 24px);
  }

  .service-card,
  .product-card {
    border-radius: 20px;
  }

  .product-card h3 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .product-link,
  .contact-submit {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .footer-bottom {
    font-size: 0.86rem;
  }
}
