/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f2240;
  --navy-mid:    #1a3560;
  --navy-light:  #1e4080;
  --gold:        #c8922a;
  --gold-light:  #e0a83a;
  --gold-pale:   #fdf3e3;
  --slate:       #3d5068;
  --slate-light: #637b96;
  --gray-100:    #f4f6f9;
  --gray-200:    #e8ecf2;
  --gray-400:    #9aaab8;
  --white:       #ffffff;
  --text:        #1a2636;
  --text-mid:    #3d5068;
  --text-light:  #536076;
  --gold-dark:   #7a5219;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(15,34,64,.08);
  --shadow:      0 4px 20px rgba(15,34,64,.12);
  --shadow-lg:   0 8px 40px rgba(15,34,64,.18);

  --transition:  .25s ease;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-head:   'Poppins', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,146,42,.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
  font-size: .85rem;
  padding: 10px 20px;
}
.btn--whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  transform: translateY(-1px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.logo__icon { width: 50px; height: 100px; object-fit: contain; flex-shrink: 0; }
.logo__text strong { color: var(--gold-light); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,53,96,.6) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(200,146,42,.08) 0%, transparent 60%),
    linear-gradient(135deg, #0f2240 0%, #1a3560 50%, #0f2240 100%);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200,146,42,.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.03) 0%, transparent 40%);
}
/* Geometric decoration */
.hero__bg::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 600px; height: 600px;
  border: 1px solid rgba(200,146,42,.12);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,146,42,.15);
  border: 1px solid rgba(200,146,42,.3);
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero__badge::before {
  content: '📍';
  font-size: .9rem;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.highlight {
  color: var(--gold-light);
  position: relative;
}
.hero__sub {
  color: rgba(255,255,255,.72);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  font-weight: 500;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding: 96px 0;
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section__tag {
  display: inline-block;
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.section__sub {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
.services { background: var(--gray-100); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
}
.service-card--cta {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.service-card--cta::before { background: var(--gold); }
.service-card--cta h3 { color: var(--white); }
.service-card--cta p { color: rgba(255,255,255,.7); margin-bottom: 20px; }
.service-card--cta:hover { border-color: transparent; }

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--white); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__image {
  position: relative;
}
.about__image-placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.4);
  font-size: .9rem;
}
.about__image-placeholder span { font-size: 3rem; }
.about__badge-float {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about__badge-float strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.about__badge-float span {
  font-size: .78rem;
  font-weight: 600;
  opacity: .85;
}
.about__content .section__tag { display: block; text-align: left; }
.about__content .section__title { text-align: left; }
.about__content p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__list {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.about__list li svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================
   DIFFERENTIALS
   ============================================ */
.differentials {
  background: var(--navy);
}
.differentials .section__tag { color: var(--gold-light); }
.differentials .section__title { color: var(--white); }
.diff__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.diff-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition);
}
.diff-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(200,146,42,.3);
  transform: translateY(-3px);
}
.diff-card__num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(200,146,42,.15);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}
.diff-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.diff-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.diff-card p {
  font-size: .875rem;
  color: rgba(255,255,255,.58);
  line-height: 1.65;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--gray-100); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.testimonial-card__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-size: .9rem;
  color: var(--navy);
}
.testimonial-card__author span {
  font-size: .78rem;
  color: var(--text-light);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border: 1px solid rgba(200,146,42,.12);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-section__content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.highlight-light { color: var(--gold-light); }
.cta-section__content p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
.cta-section__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-section__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 280px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-item svg {
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-item strong {
  display: block;
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.info-item span {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #080f1c;
  padding-top: 72px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__brand .logo { margin-bottom: 14px; }
.footer__brand p {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  line-height: 1.7;
  max-width: 220px;
}
.footer__links h3,
.footer__contact h3 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold-light); }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__contact a,
.footer__contact span {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer__contact a:hover { color: var(--gold-light); }
.footer__btn { margin-top: 12px; align-self: flex-start; }
.footer__bottom {
  padding: 20px 0;
}
.footer__bottom p {
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  text-align: center;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
  animation: waPulse 2.5s infinite;
}
.whatsapp-float:hover {
  background: #1ebe5a;
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.65); }
}

/* ============================================
   HERO — SPLIT LAYOUT
   ============================================ */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Mantém o content igual ao anterior */
.hero__content { max-width: 100%; }

/* Visual side */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__visual-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a3560 0%, #0f2240 100%);
  border: 1px solid rgba(200,146,42,.2);
}
.hero__visual-main--empty .hero__visual-overlay { display: flex; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero__visual-main:hover .hero__img { transform: scale(1.03); }
.hero__visual-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  text-align: center;
  padding: 16px;
}
.hero__visual-overlay span { font-size: 1rem; }
.hero__visual-overlay code {
  font-size: .75rem;
  background: rgba(255,255,255,.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--gold-light);
}
/* Overlay shown only as fallback when image fails (--empty class set by onerror) */

.hero__visual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero__mini-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, #1e4080 0%, #1a3560 100%);
  border: 1px solid rgba(200,146,42,.15);
}
.hero__mini-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__mini-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: .3;
}
.hero__mini-card--empty .hero__mini-overlay { opacity: .3; }
.hero__mini-card:not(:has(.hero__mini-img[style])) .hero__mini-overlay { opacity: .3; }

/* Seal */
.hero__seal {
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateSeal 18s linear infinite;
}
.hero__seal-ring {
  position: absolute;
  inset: 0;
}
.hero__seal-icon {
  font-size: 1.5rem;
  z-index: 1;
}
@keyframes rotateSeal {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero__seal-icon { animation: rotateSeal 18s linear infinite reverse; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio { background: var(--white); }

.portfolio__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), opacity .35s ease;
}
.portfolio-item.hidden {
  display: none;
}
.portfolio-item--tall  { grid-row: span 2; }
.portfolio-item--wide  { grid-column: span 2; }

.portfolio-item__fig {
  width: 100%; height: 100%;
  margin: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
}
.portfolio-item__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.portfolio-item:hover .portfolio-item__fig img { transform: scale(1.06); }

.portfolio-item__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 2.8rem;
  color: rgba(255,255,255,.25);
  pointer-events: none;
}
.portfolio-item__placeholder span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
/* Placeholder hidden via JS onload; shown as fallback when image fails */

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,.88) 0%, rgba(10,20,40,.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 18px;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.portfolio-item__info strong {
  display: block;
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.portfolio-item__info span {
  color: rgba(255,255,255,.65);
  font-size: .78rem;
}
.portfolio-item__zoom {
  background: var(--gold);
  border: none;
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: 10px;
}
.portfolio-item__zoom:hover {
  background: var(--gold-light);
  transform: scale(1.1);
}

.portfolio__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  flex-wrap: wrap;
  text-align: center;
}
.portfolio__cta p {
  color: var(--text-mid);
  font-size: 1rem;
  margin: 0;
}
.portfolio__cta strong { color: var(--navy); }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,10,20,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: block;
}
.lightbox__placeholder {
  width: min(560px, 85vw);
  height: min(420px, 60vh);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,.2);
  border: 1px solid rgba(200,146,42,.15);
}
.lightbox__placeholder.show { display: flex; }
.lightbox__caption {
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}
.lightbox__caption strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.lightbox__close {
  position: fixed;
  top: 20px; right: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  /* Hero split */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero__seal { top: -16px; right: 0; }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-item--wide { grid-column: span 2; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__image { max-width: 480px; margin: 0 auto; }
  .about__badge-float { bottom: -16px; right: 16px; }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .cta-section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Header */
  .nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0;
    background: var(--navy);
    padding: 32px 24px;
    gap: 24px;
    z-index: 999;
  }
  .nav.open a { font-size: 1.1rem; }

  /* Hero */
  .hero__stats { gap: 20px; }
  .stat strong { font-size: 1.6rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .portfolio-item--tall  { grid-row: span 1; }
  .portfolio-item--wide  { grid-column: span 2; }

  /* Lightbox nav */
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Differentials */
  .diff__grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials__grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section__info { min-width: unset; }
  .cta-section__actions { flex-direction: column; }
  .cta-section__actions .btn { justify-content: center; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__brand { grid-column: unset; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 64px; }
  .hero__badge { font-size: .72rem; }
  .hero__sub { font-size: 1rem; }
  .hero__stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat__divider { display: none; }
}
