@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700;800&family=Merriweather:wght@700&display=swap');

:root {
  --bg: #f3f1eb;
  --bg-soft: #ece8de;
  --surface: #ffffff;
  --text: #1f2a2a;
  --text-muted: #4e5d59;
  --brand: #3d5e4f;
  --brand-strong: #283f35;
  --accent: #a4773f;
  --accent-strong: #815b2f;
  --line: #d8d6cd;
  --shadow: 0 14px 36px rgba(30, 44, 37, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #f8f6f0 0%, #efece3 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  width: 100%;
}

h1,
h2,
h3 {
  color: var(--brand-strong);
  line-height: 1.2;
}

h1,
.page-header h1,
.intro h1,
.industries h2,
.iso-methodology h2 {
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: 0.2px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 40px;
  background: linear-gradient(120deg, var(--brand-strong), var(--brand));
  box-shadow: 0 10px 24px rgba(24, 36, 31, 0.25);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-area span {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.93);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active,
.nav .active {
  color: #ffffff;
}

.nav a:hover::after,
.nav a.active::after,
.nav .active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

/* HERO */
.slider {
  position: relative;
  width: min(1220px, calc(100% - 40px));
  height: 500px;
  margin: 30px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #121916;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.intro {
  text-align: center;
  padding: 76px 20px 52px;
}

.intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.intro p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* SHARED CONTENT WRAPPERS */
.page-content,
.about-content,
.contact-section,
.achievements-section,
.clientele-page,
.gallery-grid,
.services-page,
.services-preview,
.values,
.iso-methodology,
.industries {
  width: min(1220px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* PAGE HEADER */
.page-header {
  margin: 24px auto 0;
  width: min(1220px, calc(100% - 40px));
  text-align: center;
  background: linear-gradient(135deg, #f2eee4, #e7e2d6);
  border: 1px solid #d8d2c5;
  border-radius: var(--radius-lg);
  padding: 42px 22px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  margin-bottom: 8px;
}

.page-header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* HOME SECTIONS */
.services-preview,
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.card,
.value-card,
.step,
.industry,
.service-box,
.client-logo,
.achievement-card,
.contact-form,
.contact-info,
.about-cta,
.gallery-item {
  border-radius: var(--radius-md);
}

.card,
.step,
.service-box,
.contact-form,
.contact-info,
.client-logo,
.gallery-item,
.achievement-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(14, 35, 66, 0.08);
}

/* SCROLL REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-56px);
}

.reveal-right {
  transform: translateX(56px);
}

.reveal-up {
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.card,
.value-card {
  padding: 28px;
}

.card h3,
.value-card h3,
.step h3,
.service-box h2 {
  margin-bottom: 10px;
}

.card p,
.value-card p,
.step p,
.service-box p,
.service-box li,
.contact-info p,
.clientele-intro,
.clientele-note,
.achievement-text p,
.page-content p,
.about-text p {
  color: var(--text-muted);
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(36, 56, 48, 0.15);
}

.value-card {
  background: linear-gradient(135deg, #496f5f, #283f35);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(34, 53, 45, 0.26);
}

.value-card h3,
.value-card p {
  color: #ffffff;
}

.iso-methodology {
  margin-bottom: 34px;
  text-align: center;
}

.iso-methodology h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
}

.section-subtitle {
  max-width: 740px;
  margin: 12px auto 30px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.step {
  padding: 24px;
}

.step h3 {
  color: var(--brand);
}

.industries {
  margin-bottom: 54px;
  text-align: center;
}

.industries h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: 18px;
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.industry {
  background: linear-gradient(145deg, #f8f7f2, #ece8de);
  border: 1px solid #d5d1c3;
  padding: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.industry:hover {
  background: linear-gradient(145deg, #3d5e4f, #283f35);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ABOUT */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-top: 30px;
}

.about-text,
.about-image {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 8px 22px rgba(14, 35, 66, 0.08);
}

.about-text h2 {
  margin: 18px 0 8px;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-image {
  padding: 18px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  max-height: 420px;
  background: #f4f1e8;
}

.about-cta {
  width: min(980px, calc(100% - 40px));
  margin: 36px auto 56px;
  padding: 34px 20px;
  text-align: center;
  background: linear-gradient(125deg, #f6f3ea, #ece7dc);
  border: 1px solid #d7d1c2;
}

.about-cta h2 {
  margin-bottom: 8px;
}

.about-cta p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* SERVICES PAGE */
.services-page {
  margin-top: 28px;
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(980px, calc(100% - 40px));
}

.service-box {
  padding: 24px 26px;
  border-left: 6px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(30, 44, 37, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(30, 44, 37, 0.14);
}

.service-box:nth-child(2n) {
  border-left-color: #586f4b;
}

.service-box:nth-child(3n) {
  border-left-color: #815b2f;
}

.service-box h2 {
  color: var(--brand);
  font-size: 1.18rem;
}

.service-box ul {
  padding-left: 18px;
}

.service-box li {
  margin-bottom: 7px;
}

.service-box p strong {
  color: var(--brand-strong);
}

/* CONTACT */
.contact-section {
  margin-top: 28px;
  margin-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 26px;
}

.contact-info h2,
.contact-form h2 {
  margin-bottom: 14px;
}

.contact-map {
  grid-column: 1 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(14, 35, 66, 0.08);
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.phone-input {
  display: flex;
  align-items: stretch;
  margin-bottom: 14px;
}

.country-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0 12px;
  border: 1px solid #cfcabc;
  border-right: 0;
  background: #f1ece1;
  font-weight: 700;
  color: var(--brand-strong);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfcabc;
  border-radius: 9px;
  padding: 11px 12px;
  margin-bottom: 14px;
  font: inherit;
}

.phone-input input {
  margin-bottom: 0;
  border-radius: 0 9px 9px 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(61, 94, 79, 0.2);
  border-color: var(--brand);
}

/* BUTTONS */
.btn,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(201, 108, 22, 0.28);
}

.btn:hover,
.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(201, 108, 22, 0.34);
}

/* CLIENTELE */
.clientele-page {
  margin-top: 26px;
  margin-bottom: 56px;
  text-align: center;
}

.clientele-intro {
  margin-top: 8px;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.client-logo {
  padding: 14px;
  background: #f7f4ec;
}

.client-logo img {
  max-height: 76px;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.client-logo:hover img {
  transform: scale(1.06);
}

.clientele-note {
  margin-top: 18px;
  font-size: 0.93rem;
}

/* ACHIEVEMENTS */
.achievements-section {
  margin-top: 28px;
  margin-bottom: 56px;
}

.achievement-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  margin-bottom: 18px;
}

.achievement-card:nth-child(even) {
  direction: rtl;
}

.achievement-card:nth-child(even) .achievement-text,
.achievement-card:nth-child(even) img {
  direction: ltr;
}

.achievement-card img {
  width: 100%;
  border-radius: 10px;
  max-height: 260px;
  object-fit: contain;
  background: #f4f1e8;
}

.achievement-text h3 {
  margin-bottom: 8px;
}

/* GALLERY */
.page-content {
  margin-top: 26px;
  margin-bottom: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f4f1e8;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 12px;
  color: var(--text-muted);
  font-weight: 600;
  min-height: 52px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 16, 28, 0.92);
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 16px;
  right: 26px;
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

/* MODAL */
#successModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 30, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#successModal.show {
  display: flex;
}

.modal-box {
  width: min(440px, calc(100% - 30px));
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: pop 0.26s ease;
}

@keyframes pop {
  from {
    transform: translateY(6px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* FOOTER */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 22px 16px;
  background: linear-gradient(120deg, #283f35, #3d5e4f);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.93rem;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 0.9rem;
  }

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

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

  .method-steps,
  .industry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .logo-area span {
    font-size: 1.02rem;
  }

  .menu-toggle {
    display: block;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(33, 51, 43, 0.98);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav a::after {
    display: none;
  }

  .slider,
  .page-header,
  .page-content,
  .about-content,
  .contact-section,
  .achievements-section,
  .clientele-page,
  .gallery-grid,
  .services-page,
  .services-preview,
  .values,
  .iso-methodology,
  .industries,
  .about-cta {
    width: calc(100% - 24px);
  }

  .slider {
    margin-top: 14px;
    height: 300px;
  }

  .intro {
    padding: 50px 12px 34px;
  }

  .intro p {
    font-size: 0.97rem;
  }

  .about-content,
  .contact-grid,
  .achievement-card {
    grid-template-columns: 1fr;
  }

  .contact-map {
    grid-column: auto;
  }

  .achievement-card:nth-child(even) {
    direction: ltr;
  }

  .services-preview,
  .values,
  .method-steps,
  .industry-list,
  .client-logos {
    grid-template-columns: 1fr;
  }

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

  .page-header {
    padding: 34px 16px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-info,
  .contact-form,
  .about-text,
  .about-image {
    padding: 20px;
  }

  .contact-map iframe {
    height: 240px;
  }
}
