/* Root palette */
:root {
  --primary: #1e201e;
  --primary-soft: #3c3d37;
  --accent: #697565;
  --white: #ffffff;
  --muted: #6b6b6b;
  --border: #d0c7b7;
}

/* Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
}

/* Utility */
.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  /* max-width: 1120px; */
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title.centered {
  text-align: center;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
}

.section-subtitle.centered {
  text-align: center;
  margin: 0 auto;
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.1s ease;
}

.btn-primary {
  background: var(--primary-soft);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-primary.full-width {
  width: 100%;
}

.btn-ghost {
  background: var(--primary);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--border);
}

/* HEADER / NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 223, 204, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(208, 199, 183, 0.8);
}

.navbar {
  /* max-width: 1120px; */
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-center {
  flex: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-soft);
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* HERO */
.hero {
  background: #dad0c3;
}

.carousel {
  position: relative;
  /* max-width: 1120px; */
  margin: 0 auto;
  height: min(78vh, 620px);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}

/* CENTER BLOCK TEXT */
.hero-center-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 5px 20px rgba(0,0,0,0.45);
  max-width: 800px;
}

/* TYPOGRAPHY EXACT LIKE IMAGE */
.cliq-title {
  font-size: 4.5rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
}

.cliq-subtitle {
  font-size: 2.2rem;
  margin-top: -10px;
  letter-spacing: 0.12rem;
}

.cliq-by {
  margin-top: 0.3rem;
  font-size: 1rem;
  letter-spacing: 0.35rem;
}

.cliq-greyicon {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.2rem;
  margin-top: 0.4rem;
}

.cliq-tagline {
  font-size: 2rem;
  margin-top: 1.5rem;
  letter-spacing: 0.25rem;
  line-height: 3.5rem;
  text-decoration: underline 2px solid white;
  text-underline-offset: 12px;
}

.cliq-small {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  font-weight: 400;
}

/* DOWNLOAD ICON BUTTON */
.download-icon {
  margin-top: 2rem;
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.25s ease;
  cursor: pointer;
  font-size: 1rem;
}

.download-icon:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

/* Small alternative slides */
.hero-center-block.small h4 {
  font-size: 2rem;
  max-width: 500px;
  margin-inline: auto;
}


/* carousel controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: rgba(30, 32, 30, 0.7);
  color: var(--white);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel-control:hover {
  background: rgba(105, 117, 101, 0.9);
}

.carousel-control.prev {
  left: 1rem;
}
.carousel-control.next {
  right: 1rem;
}

/* ABOUT */
.about-section {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.about-text p {
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-card {
  margin-top: 0.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1rem;
  background: rgba(60, 61, 55, 0.08);
  border: 1px solid rgba(208, 199, 183, 0.9);
}

.about-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.about-image {
  display: flex;
  justify-content: flex-end;
}
.about-image img.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Makes it crop nicely */
  border-radius: 16px;    /* Smooth rounded corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}


/* PRODUCTS */
.product-section {
  background: #f5ede0;
}

.product-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(208, 199, 183, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.product-card:nth-child(odd) {
  transform: translateY(6px);
}

.product-card:nth-child(even) {
  transform: translateY(-6px);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.product-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}


.product-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--muted);
}

.product-detail {
  display: none; /* used by modal */
}

/* PRODUCT MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.modal {
  background: #f9f5ee;
  max-width: 640px;
  width: 92%;
  max-height: 80vh;
  border-radius: 1.25rem;
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-content h3 {
  margin-bottom: 0.4rem;
}

.modal-content h4 {
  margin-top: 0.7rem;
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}

.modal-content p {
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-content ul {
  margin-left: 1.1rem;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* CLIENTS */
.clients-section {
  background: var(--bg);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.client-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.client-logo img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.logo-strip-wrapper {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(208, 199, 183, 0.9);
  background: rgba(248, 242, 233, 0.98);
}

.logo-strip {
  display: inline-flex;
  gap: 1.5rem;
  padding: 0.75rem 2rem;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.logo-strip:hover {
  animation-play-state: paused;
}

.client-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(208, 199, 183, 0.9);
  font-size: 0.86rem;
  color: var(--primary-soft);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CONTACT */
.contact-section {
  background: #f5ede0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-form-card,
.contact-info-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem 1.7rem;
  border: 1px solid rgba(208, 199, 183, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.contact-form {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-soft);
}

input,
textarea {
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(105, 117, 101, 0.4);
}

.contact-info-card h3 {
  margin-bottom: 0.75rem;
}

.contact-block + .contact-block {
  margin-top: 0.9rem;
}

.contact-block h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

/* FOOTER */
.site-footer {
  background: var(--primary);
  color: #e8e4dd;
  padding: 1.2rem 1.5rem;
}

.footer-inner {
  /* max-width: 1120px; */
  margin: 0 auto;
  font-size: 0.85rem;
  text-align: center;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: var(--primary-soft);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 90;
}

.back-to-top.show {
  display: flex;
}

/* --------------------------------------
   FULL RESPONSIVE WEBSITE IMPROVEMENTS
---------------------------------------- */

/* Smooth scaling for text on small screens */

html {
  font-size: 100% !important;
}

@media (max-width: 768px) {
  html {
    font-size: 92% !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 87% !important;
  }
}


/* MOBILE NAVBAR */
@media (max-width: 820px) {
  .nav-center {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    width: 75%;
    max-width: 290px;
    height: auto;
    background: rgba(236, 223, 204, 0.98);
    box-shadow: -8px 12px 40px rgba(0,0,0,0.35);
    border-left: 1px solid rgba(208,199,183,0.8);
    padding: 1.2rem 1rem;
    transform: translateX(100%);
    transition: transform .28s ease-out;
    z-index: 200;
  }

  .nav-center.open {
    display: block;
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1.2rem;
  }

  .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .navbar {
    padding-inline: 1rem;
  }
}

/* HERO TYPOGRAPHY RESPONSIVENESS */
@media (max-width: 768px) {
  .cliq-title { font-size: 2.8rem; }
  .cliq-subtitle { font-size: 1.6rem; }
  .cliq-greyicon { font-size: 1.3rem; }
  .cliq-by { font-size: 0.75rem; }
  .cliq-tagline { font-size: 1.4rem; line-height: 2.4rem; }
  .cliq-small { font-size: 0.9rem; }

  .product-grid {
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  }
}

@media (max-width: 450px) {
  .hero-center-block {
    width: 90%;
  }
  .download-icon {
    font-size: 0.58rem;
    padding: 0.7rem 1.2rem;
  }
  .carousel {
    height: 300px;
  }
  .product-grid { grid-template-columns: 1fr; }

  .cliq-title { font-size: 2rem; }
  .cliq-subtitle { font-size: 1rem; }
  .cliq-greyicon { font-size: 1rem; }
  .cliq-by { font-size: 0.65rem; }
  .cliq-tagline { font-size: 1rem; line-height: 2.4rem; }
  .cliq-small { font-size: 0.6rem; }
  .section-title {font-size: 1.4rem;}
}

/* ABOUT SECTION RESPONSIVE GRID */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .about-image {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .about-image img.about-img {
    width: 50%;
    height: 100%;
}
}

/* PRODUCT GRID RESPONSIVE */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
  }

  .product-card {
    padding: 1rem;
  }

  .product-image img {
    height: 150px;
  }
}


/* PRODUCT MODAL RESPONSIVE */
@media (max-width: 600px) {
  .modal {
    width: 92%;
    max-height: 85vh;
    padding: 1.4rem;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }

  .modal-content p,
  .modal-content ul {
    font-size: 0.9rem;
  }

  .modal-close {
    font-size: 1.4rem;
  }
}

/* CLIENT LOGO SECTION */
@media (max-width: 768px) {
  .client-logo img {
    height: 35px;
    padding-inline: 10px;
  }

  .logo-strip-wrapper {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .client-logo img {
    height: 28px;
  }
}

/* CONTACT SECTION RESPONSIVENESS */
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    margin-top: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* BACK TO TOP BUTTON */
@media (max-width: 480px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 34px;
    height: 34px;
  }
}
