/* Base */

:root {
  --y3d-blue: #4c8dff;
  --y3d-teal: #6ad5c4;
  --y3d-indigo: #243b78;
  --y3d-warm: #ffc98a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7f0;
  --gray-100: #f9faff;
  --radius-xl: 22px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
  --transition: 180ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-900);
  background: radial-gradient(circle at top left, #eef3ff 0, #f9faff 45%, #ffffff 100%);
  line-height: 1.6;
}

/* Utility */

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section-light {
  background-color: var(--gray-100);
}

.section-accent {
  background: linear-gradient(120deg, #eef3ff, #fef6eb);
}

.section h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
  margin-bottom: 10px;
}

.section-subtitle {
  max-width: 560px;
  color: var(--gray-700);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(249, 250, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
}

.logo img {
  height: 56px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.08rem;
}

/* Make header a bit taller so it breathes */
.site-header .header-inner {
  padding: 14px 0;
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.nav a:hover {
  color: var(--y3d-blue);
}

.nav-cta {
  margin-left: 4px;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-900);
}

/* Buttons */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--y3d-blue), var(--y3d-teal));
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.75);
  color: var(--gray-900);
}

.btn-ghost:hover {
  border-color: var(--y3d-blue);
}

.full-width {
  width: 100%;
}

/* HERO */

.hero {
  padding: 90px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--y3d-indigo);
  margin-bottom: 8px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  max-width: 560px;
  color: var(--gray-700);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-stats dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

.hero-stats dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 260px;
}

.hero-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: block;
}

.hero-badge {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.78rem;
  color: var(--gray-700);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;      /* stack lines */
  align-items: center;
  text-align: center;
  gap: 2px;
  min-width: 230px;            /* avoid ugly wrapping */
}

.hero-badge span {
  display: block;
  width: 100%;
}

/* Cards */

.cards {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  padding: 20px 20px 22px;
  border: 1px solid rgba(209, 213, 219, 0.75);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.card ul {
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.card-media {
  padding: 0;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 18px;
}

/* Materials */

.materials-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.material {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.material h3 {
  margin-top: 0;
}

/* Portfolio */

.portfolio-grid {
  margin-top: 26px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.portfolio-cta {
  margin-top: 24px;
}

.portfolio-cta .btn-ghost {
  padding-inline: 26px;
  font-weight: 600;
}


/* Process */

.process-steps {
  margin-top: 22px;
  list-style: none;
  padding-left: 0;
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.process-steps li {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 18px 18px 20px;
  position: relative;
}

.process-steps h3 {
  margin-top: 0;
}

/* FAQ */

.faq-list {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.faq-item {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 16px 18px 18px;
}

/* Quote */

.quote-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-quick {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}

.contact-quick li {
  font-size: 0.95rem;
}

.quote-form {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

label {
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
textarea,
select {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font: inherit;
  outline: none;
  background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--y3d-blue);
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.1);
}

.file-label {
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-label input[type="file"] {
  font: inherit;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  padding: 6px 10px;
  background: #f9fbff;
  cursor: pointer;
}

/* Modern file button (Chrome, Edge, Firefox) */
.file-label input[type="file"]::file-selector-button {
  padding: 8px 16px;
  margin-right: 10px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--y3d-blue), var(--y3d-teal));
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* Safari / old WebKit */
.file-label input[type="file"]::-webkit-file-upload-button {
  padding: 8px 16px;
  margin-right: 10px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--y3d-blue), var(--y3d-teal));
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* Hover effect */
.file-label input[type="file"]::file-selector-button:hover,
.file-label input[type="file"]::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  margin-top: 40px;
}

.footer-inner {
  padding: 26px 0 18px;
  display: grid;
  grid-template-columns: 2.3fr 1.4fr 1.3fr;
  gap: 24px;
}

.footer-logo {
  height: 64px;
  margin-bottom: 8px;
}

.footer-col h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
}

.footer-links li + li {
  margin-top: 4px;
}

.footer-links a {
  color: var(--gray-700);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--y3d-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  text-align: center;
  padding: 10px 0 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Floating WhatsApp button */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #6bff9b, #25d366);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  display: block;
}

/* Hover effect */
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.55);
}


/* Portfolio page */

.portfolio-page-hero {
  padding-top: 90px;
  padding-bottom: 20px;
}

.portfolio-page-hero h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.gallery-filters {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-filter {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 6px 14px;
  font-size: 0.85rem;
  background: #ffffff;
  cursor: pointer;
  color: var(--gray-700);
  transition: background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.gallery-filter.is-active {
  background: linear-gradient(135deg, var(--y3d-blue), var(--y3d-teal));
  border-color: transparent;
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.gallery-item {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.2);
}

.gallery-body {
  padding: 14px 16px 16px;
}

.gallery-body h2 {
  font-size: 1.05rem;
  margin: 4px 0 6px;
}

.gallery-body p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(76, 141, 255, 0.08);
  font-size: 0.78rem;
  color: var(--y3d-indigo);
}


/* Slightly smaller on mobile */
@media (max-width: 640px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}


/* Slightly smaller on mobile */
@media (max-width: 640px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}


/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .quote-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    inset: 56px 0 auto;
    background: rgba(249, 250, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 10px 16px 14px;
    flex-direction: column;
    gap: 14px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-open .nav {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    height: 44px;       /* still bigger than before, but mobile-friendly */
  }

  .logo-text {
    font-size: 0.95rem;
  }
}
