:root {
  --bg: #fdf7ee;
  --card-bg: #fff9f0;
  --text-main: #242121;
  --text-soft: #6e6860;
  --accent: #c0a48a;
  --accent-strong: #b98f5a;
  --border-subtle: #e2d4c4;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.18);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(253, 247, 238, 0.92);
  border-bottom: 1px solid rgba(226, 212, 196, 0.9);
}

.site-header > * {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
}

.brand {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.5rem 0.6rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.5rem 0.7rem;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.78rem;
  color: #555049;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: #111;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 150ms ease, transform 150ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* HERO */

/* we now show the provided designs directly as full-width images */

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease,
    background 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: #111111;
  color: #fefaf4;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: transparent;
  border-color: #111;
  color: #111;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
  color: #fdf7ee;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.08);
}

.btn-full {
  width: 100%;
  margin-top: 0.3rem;
}

/* SECTIONS */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.4rem clamp(1.2rem, 3vw, 1.8rem);
}

.section-muted {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 32px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(17, 18, 32, 0.96)
    ),
    var(--bg-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 1.3rem;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2.2rem;
  align-items: start;
}

.section-copy h2 {
  margin: 0 0 1.2rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.7rem;
}

.section-copy p {
  margin: 0 0 0.8rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.section-card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: rgba(7, 7, 10, 0.82);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* STEPS */
/* IMAGE-BASED SECTIONS */

.section-image {
  position: relative;
}

.image-with-overlay {
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.offer-card-link {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 8px;
}

/* Position the cards over the "What we offer" section - now in a 2x2 grid */
/* Adjust these percentages based on where the cards actually appear in About us.png */
.offer-card-1 {
  /* Resellers - top left */
  top: 45%;
  left: 5%;
  width: 45%;
  height: 25%;
}

.offer-card-2 {
  /* Distributors - top right */
  top: 45%;
  left: 50%;
  width: 45%;
  height: 25%;
}

.offer-card-3 {
  /* End Users - bottom left */
  top: 72%;
  left: 5%;
  width: 45%;
  height: 25%;
}

.offer-card-4 {
  /* Our AI Tech - bottom right */
  top: 72%;
  left: 50%;
  width: 45%;
  height: 25%;
}

.offer-card-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* (Solution styles removed for now; solution page will live elsewhere) */

/* back link section on detail pages */
.section-back-link {
  padding-top: 1.5rem;
  padding-bottom: 0;
}

/* CONTACT (live content, still fairly minimal to allow later redesign) */

/* Safira March font */
@font-face {
  font-family: "Safira March";
  src: url("./Assets/SafiraMarchPersonalUse-gxeKY.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.section-contact {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.2rem 2.4rem 2.4rem;
  border-radius: 24px;
  background: #fffaf3;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.contact-inner h2 {
  margin: 0 0 1.4rem;
  font-family: "Safira March", "Playfair Display", "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
}

.field label {
  color: var(--text-main);
  font-family: "Safira March", "Playfair Display", "Times New Roman", serif;
}

input,
textarea {
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(143, 125, 103, 0.6);
  background: #fffdf9;
  color: #333;
  outline: none;
  transition: border-color 130ms ease, box-shadow 130ms ease,
    background 130ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(121, 112, 98, 0.7);
}

input:focus,
textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(185, 143, 90, 0.5);
  background: #fffdf8;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-footnote {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: rgba(121, 112, 98, 0.8);
  text-align: center;
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
}

.contact-details {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
}

/* FOOTER */

.site-footer {
  padding: 1.6rem 1.5rem 2.4rem;
  font-size: 0.8rem;
  color: #726b62;
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
    padding-inline: 1rem;
  }

  .hero {
    margin-top: 1.8rem;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    background: rgba(253, 247, 238, 0.98);
  }

  .brand {
    justify-content: center;
    padding-bottom: 0.3rem;
  }

  .hero {
    margin-top: 1.6rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section,
  .section-muted {
    padding-inline: 1.4rem;
  }

  .contact-inner {
    padding-inline: 1.4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

