/* ==================== VARIABLES ==================== */
:root {
  /* Colors */
  --color-brand: #ff9447;
  --color-brand-alt: #e67e35;
  --color-bg-main: #ffe9d0;
  --color-bg-light: #fff5eb;
  --color-secondary: #4b587e;
  --color-accent: #a17050;
  --color-text-main: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Fonts */
  --font-main: "Outfit", sans-serif;

  /* Spacing */
  --header-height: 5.5rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ==================== RESET & BASE ==================== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title {
  font-size: 2.5rem;
  color: var(--color-text-main);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin-bottom: 3rem;
}

.highlight {
  color: var(--color-brand);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  justify-content: center;
}

.button--primary {
  background-color: var(--color-brand);
  color: var(--color-white);
  border: 2px solid var(--color-brand);
}

.button--primary:hover {
  background-color: var(--color-brand-alt);
  border-color: var(--color-brand-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button--ghost {
  background-color: transparent;
  color: var(--color-text-main);
  border: 2px solid transparent;
}

.button--ghost:hover {
  color: var(--color-brand);
}

.button--outline {
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}

.button--outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.button--full {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-brand);
  font-weight: 600;
}

.link-arrow:hover {
  gap: 0.75rem;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 233, 208, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: height 0.3s;
}

.header__container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-main);
  z-index: 101; /* Above mobile menu */
}

.header__logo-img {
  width: 180px;
  max-height: 60px;
  object-fit: contain;
  transform: scale(1.4);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--color-text-main);
}

.nav__link:hover {
  color: var(--color-brand);
}

.nav__link--cta {
  background-color: var(--color-brand);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-sm);
}

.nav__link--cta:hover {
  background-color: var(--color-brand-alt);
  color: var(--color-white);
}

.header__toggle {
  display: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-main);
  z-index: 101; /* Above mobile menu */
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle Icon States */
.header__toggle .close-icon {
  display: none;
}
.header__toggle.open .menu-icon {
  display: none;
}
.header__toggle.open .close-icon {
  display: block;
}

/* ==================== HERO ==================== */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero__description {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.hero__sub {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__img-placeholder {
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.hero__blob {
  position: absolute;
  width: 120%;
  height: 120%;
  background-color: var(--color-white);
  opacity: 0.4;
  border-radius: 50% 30% 70% 40% / 30% 60% 40% 70%;
  z-index: 1;
  top: -10%;
  left: -10%;
  animation: blob 8s infinite alternate;
}

@keyframes blob {
  0% {
    border-radius: 50% 30% 70% 40% / 30% 60% 40% 70%;
  }
  100% {
    border-radius: 70% 40% 30% 50% / 40% 30% 60% 50%;
  }
}

/* ==================== SERVICES ==================== */
.services {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  margin: 2rem 1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-light);
  transition: 0.3s;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 148, 71, 0.2);
}

.service-card__icon {
  font-size: 2.5rem;
  color: var(--color-brand);
  margin-bottom: 1.5rem;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card__description {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.service-card__list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.service-card__list i {
  color: var(--color-brand);
}

/* ==================== WHY US ==================== */
.why__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why__image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.why__icon {
  background-color: var(--color-secondary);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.why__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.why__desc {
  color: var(--color-text-light);
}

/* ==================== PROCESS ==================== */
.process {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  margin: 2rem 1rem;
}

.process .section__title,
.process .section__subtitle {
  color: var(--color-white);
}

.process .section__subtitle {
  opacity: 0.8;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.process__card {
  position: relative;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.process__card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.process__step {
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
}

.process__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.process__desc {
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

/* ==================== INDUSTRIES ==================== */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  padding: 1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  gap: 1rem;
  text-align: center;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: var(--color-brand);
}

.industry-card i {
  font-size: 2.8rem;
}

.industry-card span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ==================== MODELS ==================== */
.models__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.model-card {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.model-card--highlight {
  border: 2px solid var(--color-brand);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.model-card__title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.model-card__list {
  flex: 1;
  margin-bottom: 2rem;
}

.model-card__list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.model-card__list i {
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.models__cta {
  text-align: center;
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: 100%;
}

/* ==================== BOOK CTA ==================== */
.book-cta {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  margin: 2rem 1rem;
  text-align: center;
  padding: 4rem 1.5rem;
}

.book-cta__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.book-cta__desc {
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-size: 1.25rem;
}

.book-cta .button--primary {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

.book-cta .button--primary:hover {
  background-color: var(--color-white);
  color: var(--color-brand);
}

/* ==================== CONTACT ==================== */
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__desc {
  margin-bottom: 3rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
}

.contact__icon {
  font-size: 1.5rem;
  color: var(--color-brand);
  background-color: var(--color-bg-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.contact__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-weight: 500;
  background-color: rgba(75, 88, 126, 0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.contact__form {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact__form-title {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: 0.3s;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(255, 148, 71, 0.2);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__callback {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.link-highlight {
  color: var(--color-brand);
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: #2c3344;
  color: #fff;
  padding-block: 4rem 1.5rem;
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8rem;
  margin-bottom: 3rem;
}

.footer__logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__desc {
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.footer__sub {
  opacity: 0.6;
  font-size: 0.9rem;
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.75rem;
}

.footer__link:hover {
  color: var(--color-brand);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 1024px) {
  .hero__container {
    gap: 2rem;
  }

  .services__grid,
  .models__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
  /* Header */
  .nav__list {
    display: none;
  }

  /* Show Toggle on Mobile */
  .header__toggle {
    display: flex;
  }

  /* Nav Menu Mobile Styling */
  .nav__list.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98); /* White distinct background */
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    transform-origin: top;
    animation: slideDown 0.3s ease forwards;
    overflow-y: auto;
    z-index: 90;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .nav__link {
    font-size: 1.5rem;
    color: var(--color-text-main);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hero */
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__blob {
    width: 100%;
    left: 0;
  }

  /* Sections */
  .why__container {
    grid-template-columns: 1fr;
  }

  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid,
  .models__grid,
  .process__grid,
  .contact__container {
    grid-template-columns: 1fr;
  }

  .models__grid {
    gap: 1.5rem;
  }

  .model-card--highlight {
    transform: scale(1);
  }
}

@media screen and (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .section__title {
    font-size: 2rem;
  }

  .industries__grid {
    grid-template-columns: 1fr;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Force hidden on desktop */
@media screen and (min-width: 769px) {
  .header__toggle {
    display: none !important;
  }
  .nav__list {
    display: flex !important;
    position: static;
    flex-direction: row;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    height: auto;
    gap: 2rem;
  }
}
