/* Wiseworks Website - Vivid Design
   Brand: teal palette, light backgrounds, clean typography */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Wiseworks Brand */
  --ww-primary: #2596BE;
  --ww-secondary: #1E7A9A;
  --ww-accent: #2BA3A3;
  --ww-text: #3D5A6C;
  --ww-dark: #1a2433;
  --ww-light: #f0f8fa;
  --ww-light-2: #e8f4f8;
  
  /* Utility */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --success: #10b981;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--ww-text);
  background: var(--white);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 48px;
}

.logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
}

.nav-list > li {
  flex-shrink: 0;
}

.nav-list a {
  color: var(--ww-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--ww-primary);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 12px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.lang-switcher a {
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  min-width: 28px;
  text-align: center;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--ww-primary);
}
.lang-switcher a.active {
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--ww-light) 0%, var(--ww-light-2) 50%, rgba(37, 150, 190, 0.08) 100%);
  padding: 80px 24px 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 6.5vw, 54px);
  font-weight: 700;
  color: var(--ww-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroTitleReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) { animation-delay: 0.25s; }
.hero-title-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes heroTitleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--ww-primary);
  font-weight: 600;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTitleReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero .intro,
.hero .hero-solution {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroTitleReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.hero .intro:last-child,
.hero .hero-solution:last-child {
  margin-bottom: 0;
}

/* Customer logos */
.customer-logos {
  background: var(--white);
  padding: 48px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.customer-logos h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 28px;
}

.customer-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.customer-logos-grid a {
  text-decoration: none;
  display: inline-block;
}

.customer-logos-grid img {
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.customer-logos-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .customer-logos {
    padding: 36px 16px;
  }
  .customer-logos-grid {
    gap: 28px 36px;
  }
  .customer-logos-grid img {
    height: 44px;
    max-width: 140px;
  }
}

/* Project previews (homepage) */
.projects-preview {
  background: var(--gray-50);
  padding: 60px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.projects-preview h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ww-dark);
  text-align: center;
  margin-bottom: 12px;
}

.projects-preview .intro {
  text-align: center;
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 40px;
}

.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-preview-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-preview-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.project-preview-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-preview-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.project-preview-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-preview-card:hover .thumb img {
  transform: scale(1.03);
}

.project-preview-card .body {
  padding: 20px;
}

.project-preview-card .client {
  font-size: 12px;
  font-weight: 500;
  color: var(--ww-primary);
  margin-bottom: 4px;
}

.project-preview-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ww-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-preview-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

.project-preview-card .link-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ww-primary);
  margin-top: 12px;
  display: inline-block;
}

.project-preview-card .link-text:hover {
  text-decoration: underline;
}

/* Challenges block (alt1 problem-first) */
.challenges-block {
  background: var(--white);
  padding: 60px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.challenges-list {
  list-style: none;
  max-width: 560px;
  margin: 0 auto 24px;
}

.challenges-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  font-size: 17px;
  color: var(--ww-text);
}

.challenges-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ww-primary);
  font-weight: 600;
}

.challenges-cta {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--ww-primary);
}

/* Sections */
section {
  padding: 80px 24px;
}

section:nth-child(even) {
  background: var(--gray-50);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ww-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 48px;
  max-width: 640px;
}

/* Testimonials */
.testimonials {
  background: var(--ww-light);
  padding: 72px 24px;
}

.testimonials .container {
  max-width: 1100px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--ww-primary);
}

.testimonial-card blockquote {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ww-dark);
  margin: 0 0 20px 0;
  font-style: normal;
}

.testimonial-card blockquote::before {
  content: '"';
  font-size: 2rem;
  line-height: 1;
  color: var(--ww-primary);
  font-family: Georgia, serif;
}

.testimonial-attribution {
  font-size: 14px;
  color: var(--gray-500);
}

.testimonial-attribution strong {
  color: var(--ww-dark);
  font-weight: 600;
}

/* Testimonial inside project card */
.project-testimonial {
  margin-top: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--gray-200);
}

.project-testimonial blockquote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-500);
  margin: 0 0 10px 0;
  font-style: italic;
}

.project-testimonial blockquote::before {
  content: '"';
  color: var(--ww-primary);
}

.project-testimonial .testimonial-attribution {
  font-size: 13px;
  color: var(--gray-500);
}

.project-testimonial .testimonial-attribution strong {
  color: var(--ww-dark);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-card blockquote {
    font-size: 16px;
  }
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid var(--ww-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ww-dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--gray-500);
}

/* Mission block */
.mission-block {
  background: linear-gradient(135deg, var(--ww-primary) 0%, var(--ww-secondary) 100%);
  color: var(--white);
  padding: 48px;
  border-radius: 16px;
  text-align: center;
}

.mission-block h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.mission-block p {
  font-size: 17px;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto;
}

.mission-block strong {
  font-weight: 600;
}

/* Value props list */
.value-list {
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.value-list li:last-child {
  border-bottom: none;
}

.value-list .check {
  color: var(--success);
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

/* Our Promise list */
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.promise-item {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid var(--ww-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.promise-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ww-dark);
  margin-bottom: 8px;
}

.promise-item p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--ww-dark);
  color: var(--gray-400);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-contact a {
  color: var(--gray-400);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-version {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 1rem;
}

/* Image zoom effect (hover + scroll reveal) */
.img-zoom {
  overflow: hidden;
  border-radius: 12px;
}

.img-zoom img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

.img-zoom--circle {
  border-radius: 50%;
}

.img-zoom--circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll-triggered zoom-in reveal */
.img-reveal {
  overflow: hidden;
  border-radius: 12px;
}

.img-reveal img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
  transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.img-reveal.is-visible img {
  opacity: 1;
  transform: scale(1);
}

.img-zoom.img-reveal:hover img {
  transform: scale(1.05);
}

/* ========== Responsive: tablet & mobile ========== */

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  margin-left: auto;
}
.nav-toggle:hover {
  background: var(--gray-100);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ww-dark);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle-input:checked ~ .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet: hamburger + drawer */
@media (max-width: 1024px) {
  .site-header {
    position: relative;
  }

  .header-inner {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .header-inner nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle-input:checked ~ nav {
    max-height: 85vh;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 16px 20px 24px;
    align-items: stretch;
  }

  .nav-list > li {
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-list > li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-200);
  }

  .lang-switcher a {
    padding: 8px 12px;
  }

  .hero {
    padding: 48px 20px 72px;
  }

  .hero h1 {
    font-size: clamp(28px, 6vw, 44px);
  }

  section {
    padding: 60px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .mission-block {
    padding: 36px 24px;
  }

  .mission-block h2 {
    font-size: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0 20px;
  }
}

/* Mobile: tighter spacing */
@media (max-width: 768px) {
  .header-inner {
    padding: 14px 16px;
  }

  .logo {
    height: 36px;
  }

  .nav-list {
    padding: 12px 16px 20px;
  }

  .nav-list a {
    padding: 12px 0;
  }

  .hero {
    padding: 40px 16px 56px;
  }

  .hero h1 {
    font-size: clamp(26px, 5.5vw, 36px);
  }

  .hero .intro,
  .hero .hero-solution {
    font-size: 16px;
  }

  section {
    padding: 48px 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 22px;
  }

  .challenges-block {
    padding: 40px 16px;
  }

  .challenges-list li {
    font-size: 16px;
  }

  .policy-content {
    padding: 32px 16px 60px;
  }

  .policy-content h1 {
    font-size: 26px;
  }
}

/* Project card grid: stack on tablet and mobile */
@media (max-width: 1024px) {
  .project-card .container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 768px) {
  .project-card .container {
    gap: 24px !important;
    padding: 0 16px !important;
  }

  .product-hero {
    padding: 40px 16px 60px !important;
  }
}
