/* ========================================
   TRS Construções - Modern Landing Page
   CSS Custom Properties + Grid + Flex
======================================== */

:root {
  --primary: #C75B1E;
  --secondary: #1A2B5F;
  --bg-dark: #0f172a;
  --accent: #f97316;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #1e293b;
  --text-light: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--secondary);
  margin-bottom: 16px;
}
.section-title span { color: var(--primary); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-primary:hover { box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 45%, transparent); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26,43,95,.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { box-shadow: 0 12px 32px rgba(37,211,102,.4); }

/* ── HEADER / NAV ── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: box-shadow .35s ease;
}

#header.scrolled {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

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

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}
.nav-logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); background: rgba(0,0,0,.05); }
#header.scrolled .nav-links a { color: var(--secondary); }
#header.scrolled .nav-links a:hover { color: var(--primary); background: rgba(0,0,0,.05); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile { display: none; }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(15,23,42,.92) 0%,
    rgba(15,23,42,.75) 55%,
    transparent 100%);
  z-index: 1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 60%,
    rgba(15,23,42,.8) 100%);
  z-index: 2;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.hero-shape-1 {
  width: 700px; height: 700px;
  background: var(--primary);
  opacity: .35;
  top: -250px; right: -150px;
  animation: float 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 500px; height: 500px;
  background: var(--secondary);
  opacity: .2;
  bottom: -150px; left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 740px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 60%, transparent);
  color: #fff;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
}
.hero-badge i { font-size: .9rem; }

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: #fff;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero-title .accent { color: var(--primary); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 44px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: var(--transition);
}
.hero-contact-item:hover { color: #fff; }
.hero-contact-item i {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.3);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.hero-scroll:hover { color: var(--primary); }
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.6); opacity: .4; }
}

/* ── STATS BAR ── */
#stats {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--gray-200);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-50); }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── ABOUT ── */
#about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-image-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--primary);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-image-badge .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}
.about-image-badge .lbl {
  font-size: .75rem;
  opacity: .85;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}
.about-image-accent {
  position: absolute;
  top: -20px; left: -20px;
  width: 120px; height: 120px;
  background: var(--secondary);
  opacity: .06;
  border-radius: var(--radius);
  z-index: -1;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-feature-icon {
  width: 40px; height: 40px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.about-feature-text h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 2px;
}
.about-feature-text p {
  font-size: .8rem;
  color: var(--text-light);
}

/* ── SERVICES ── */
#services {
  padding: 100px 0;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
#services::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 500px; height: 500px;
  background: var(--primary);
  opacity: .04;
  border-radius: 50%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: none; }
.section-header .section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-header .section-subtitle { margin: 0 auto; text-align: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 35%, transparent);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.service-desc {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── PORTFOLIO ── */
#portfolio {
  padding: 100px 0;
  background: var(--white);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  border: 2px solid var(--gray-200);
  color: var(--text-light);
  transition: var(--transition);
  background: var(--white);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}
.portfolio-item:nth-child(4n+1) { grid-column: span 2; }
.portfolio-item:nth-child(4n+1):only-child { grid-column: span 1; }

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.9) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.portfolio-overlay span {
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.portfolio-zoom {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: 1rem;
  opacity: 0;
  transform: scale(.8);
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-zoom { opacity: 1; transform: scale(1); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--white);
  font-size: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--primary); transform: rotate(90deg); }
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: rgba(255,255,255,.8);
  text-align: center;
  font-size: .9rem;
}

/* ── CTA BANNER ── */
#cta-banner {
  padding: 80px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  top: -150px; right: -100px;
  width: 500px; height: 500px;
  background: var(--primary);
  opacity: .05;
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--secondary);
  margin-bottom: 16px;
}
.cta-content p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT ── */
#contact {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.contact-info h3 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
.contact-info p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
}
.contact-item:hover { transform: translateX(8px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.contact-item-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}
.contact-item-icon.blue { background: linear-gradient(135deg, var(--secondary), #2563eb); }
.contact-item-icon.green { background: linear-gradient(135deg, #16a34a, #25d366); }
.contact-item-text { flex: 1; }
.contact-item-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  font-weight: 600;
}
.contact-item-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.contact-social {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--secondary);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }

/* ── FORM ── */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

.form-success, .form-error {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  display: none;
  margin-bottom: 20px;
}
.form-success { background: #f0fdf4; border: 2px solid #22c55e; color: #15803d; }
.form-error { background: #fef2f2; border: 2px solid #ef4444; color: #dc2626; }

/* ── FOOTER ── */
#footer {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  padding: 60px 0 0;
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin: 16px 0 24px;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 10px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--secondary);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .9rem;
  color: var(--text-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--primary); transform: translateX(4px); }
.footer-links a i { font-size: .7rem; }

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom a { color: var(--primary); }

/* ── ANIMATIONS ── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-aos].aos-animated {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-left"].aos-animated { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="fade-right"].aos-animated { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(.9); }
[data-aos="zoom-in"].aos-animated { transform: scale(1); }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 35%, transparent);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 900;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-4px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:nth-child(4n+1) { grid-column: span 1; }
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-mobile {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    border-bottom: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-mobile a {
    color: var(--secondary);
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: block;
  }
  .nav-mobile a:hover { background: rgba(0,0,0,.05); color: var(--primary); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image-badge { right: 0; bottom: -16px; }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-contacts { flex-direction: column; gap: 16px; }

  #hero { padding-top: 100px; padding-bottom: 60px; min-height: auto; }
  .hero-content { max-width: 100%; }
  .hero-badge {
    font-size: .7rem;
    letter-spacing: .05em;
    padding: 6px 14px;
    white-space: normal;
    text-align: center;
    justify-content: center;
    max-width: 100%;
  }

  #about, #services, #portfolio, #contact { padding: 60px 0; }
}
