/* Picasso Trade Services - shared styles */

:root {
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --primary: #0f172a;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --border: #e5e7eb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius-lg: 16px;
  --shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.16);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1.05rem;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */

header {
  background: #020617;
  color: #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

/* Minimal construction logo */
.logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text-main {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.92rem;
}

.brand-text-sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.17em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #cbd5f5;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #f97316, #fbbf24);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.nav-links a.is-active {
  color: #ffffff;
}

/* General sections */

main {
  flex: 1;
  opacity: 0;
  transform: translateY(24px);
  animation: flyInUp 0.55s ease-out forwards;
}

section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 1.7rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.section-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Hero (home) */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
}

.hero-highlight {
  color: var(--accent);
}

.hero-body {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.hero-points span::before {
  content: "✔";
  color: #22c55e;
  margin-right: 0.4rem;
  font-size: 1rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Buttons */

.btn-primary,
.btn-outline {
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, #f97316, #fbbf24);
  border-color: rgba(249, 115, 22, 0.95);
  color: #111827;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(249, 115, 22, 0.55);
}

.btn-outline {
  background: #020617; /* same as header */
  border-color: #000000; /* black border */
  color: #ffffff; /* white text */
  box-shadow: 0 0 20px rgba(2, 6, 23, 0.45);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: #111827; /* slightly lighter dark on hover */
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 0 28px rgba(17, 24, 39, 0.55);
  transform: translateY(-1px);
}

/* Hero visual card */

.hero-card {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-metric {
  font-size: 1.6rem;
  font-weight: 600;
}

.hero-metric span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.25rem;
}

.hero-strip {
  margin-top: 1.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero-site badge */
.hero-site-badge {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.service-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-body {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* About split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.highlight-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.highlight-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.highlight-stat {
  font-size: 1.3rem;
  font-weight: 600;
}

.highlight-label {
  font-size: 0.78rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 14px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 0.6rem;
  position: relative;
  overflow: hidden;
}

.gallery-item-inner {
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #020617);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  text-align: center;
  padding: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item-inner img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  border: 3px solid rgba(148, 163, 184, 0.9);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.75);
}

.gallery-item-inner:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.85);
}

/* Contact */

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.84rem;
}

label {
  color: var(--text-muted);
}

input,
textarea {
  border-radius: 0.7rem;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.65rem;
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
  background: #ffffff;
}

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

/* Footer */

footer {
  margin-top: auto;
  background: #020617;
  color: #9ca3af;
  font-size: 0.78rem;
  padding: 1.3rem 0 1.6rem;
}
/* Entrance animation for page content */
@keyframes flyInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slight stagger on key blocks */
.hero-card,
.services-grid,
.split,
.gallery-grid,
.card {
  animation: flyInUp 0.65s ease-out forwards;
  animation-delay: 0.08s;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.7rem;
  }

  .hero-card {
    order: -1;
  }

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

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  section {
    padding: 2.4rem 0;
  }

  .services-grid,
  .gallery-grid,
  .hero-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.2rem;
  }

  .shell {
    padding: 0 1.1rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 94%;
  max-height: 94%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* Trusted partners section */
.partners {
  padding: 4rem 0;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.1), transparent 55%),
              radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 55%);
}

.partners .section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.partner-card {
  position: relative;
  padding: 1.1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
  overflow: hidden;
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
}

.partner-card:hover::before {
  opacity: 1;
}

.partner-name {
  white-space: nowrap;
  display: inline-block;
}

.typing-caret {
  display: inline-block;
  margin-left: 0.12em;
  width: 0.08em;
  animation: caret-blink 0.8s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%, 45% {
    opacity: 1;
  }
  55%, 100% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .partner-card {
    font-size: 0.85rem;
    padding: 0.95rem 1.05rem;
  }
}

/* Mobile navigation (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

/* Active (X) state for hamburger */
.has-mobile-nav .nav-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.has-mobile-nav .nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.has-mobile-nav .nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Only apply mobile behavior on pages using .has-mobile-nav */
@media (max-width: 768px) {
  .has-mobile-nav .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  /* When nav is open, hide brand/logo and let menu fill width */
  .has-mobile-nav.nav-open .brand {
    display: none;
  }

  .has-mobile-nav .nav-links {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.75rem;
    justify-content: space-around;
    text-align: center;
    background: #020617;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .has-mobile-nav .nav-links a {
    padding: 0.4rem 0;
  }

  .has-mobile-nav .nav-links.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .has-mobile-nav .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }
}