:root {
  --primary:  #2a9caa;
  --cta:      #f58133;
  --dark:     #111827;
  --text:     #374151;
  --muted:    #6b7280;
  --light-bg: #f4f7f9;
  --border:   rgba(0, 0, 0, 0.09);
  --white:    #ffffff;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.07);
  --shadow:    0 8px 28px rgba(17, 24, 39, 0.11);
  --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.18);
}

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

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 20px clamp(20px, 5vw, 80px) 80px;
  background: var(--dark);
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 60%, rgba(42, 156, 170, 0.14), transparent 55%);
  pointer-events: none;
}

/* ── NAVIGATION ── */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  z-index: 1;
}

.brand {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 7px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-bottom: 6px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.2s ease;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

/* ── HERO GRID ── */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 3.8vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.lead {
  font-size: 1.06rem;
  line-height: 1.78;
  margin-bottom: 30px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--cta);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245, 129, 51, 0.35);
}

.btn.primary:hover {
  background: #e07228;
  box-shadow: 0 8px 24px rgba(245, 129, 51, 0.45);
  transform: translateY(-2px);
}

.btn.ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.9rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1;
}

.hero-stats .label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ── HERO MEDIA ── */
.hero-media {
  display: grid;
  gap: 20px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
}

.media-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.35s ease;
  width: 100%;
  max-width: 540px;
}

.media-card img {
  width: 100%;
  height: 270px;
  display: block;
  object-fit: cover;
}

.media-caption {
  padding: 14px 18px 18px;
  border-top: 3px solid var(--primary);
}

.media-caption span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
}

.media-caption strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  color: var(--dark);
}

/* ── SECTIONS ── */
.section {
  padding: 88px clamp(20px, 5vw, 80px);
}

.section.story    { background: var(--white); }
.section.services { background: var(--light-bg); }
.section.projects { background: var(--white); }
.section.contact  { background: var(--dark); }

.section-header {
  margin-bottom: 44px;
}

.section-header .eyebrow {
  color: var(--primary);
}

.section-header h2 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}

/* ── STORY ── */
.story-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  align-items: center;
}

.story-media {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.story-content {
  display: grid;
  gap: 26px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text);
}

.story-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-values span {
  padding: 7px 16px;
  border-radius: 3px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.professionalism {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pro-card {
  background: var(--light-bg);
  border-radius: 6px;
  padding: 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pro-card h3 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pro-card p {
  color: var(--text);
  line-height: 1.65;
  font-size: 0.97rem;
}

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

.services-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 1.03rem;
  color: var(--text);
}

.services-intro p {
  max-width: 620px;
  line-height: 1.7;
}

/* Primary button on light bg */
.services .btn.primary,
.contact .btn.primary {
  box-shadow: 0 4px 14px rgba(245, 129, 51, 0.28);
}

.card {
  background: var(--white);
  padding: 28px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card[data-service="construction"] { border-top-color: var(--cta); }
.card[data-service="remodeling"]   { border-top-color: var(--primary); }
.card[data-service="design"]       { border-top-color: #1e8a7a; }

.card h3 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-size: 0.97rem;
}

.service-tag {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 4rem;
  color: rgba(17, 24, 39, 0.04);
  z-index: 0;
  line-height: 1;
  font-weight: 700;
}

/* ── Card icon wrapper ── */
.card-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease;
}

.card[data-service="construction"] .card-icon-wrap {
  background: rgba(245, 129, 51, 0.08);
  border-color: rgba(245, 129, 51, 0.18);
}

.card[data-service="design"] .card-icon-wrap {
  background: rgba(30, 138, 122, 0.08);
  border-color: rgba(30, 138, 122, 0.18);
}

/* Hammer */
.icon-hammer {
  width: 30px;
  height: 36px;
  transform-origin: 50% 96%;
  display: block;
}

.card:hover .icon-hammer {
  animation: hammerStrike 0.9s ease-in-out infinite;
}

/* Paintbrush */
.icon-brush {
  width: 22px;
  height: 36px;
  transform-origin: 50% 58%;
  display: block;
}

.card:hover .icon-brush {
  animation: brushStroke 0.65s ease-in-out infinite;
}

/* Bricks */
.bricks-icon {
  width: 44px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(2, 20px);
  grid-template-rows: repeat(2, 14px);
  gap: 4px;
}

.bricks-icon .brick {
  background: linear-gradient(135deg, #d4672c, #f58133);
  border-radius: 3px;
}

.bricks-icon .b1 { grid-column: 1 / 2; grid-row: 2 / 3; }
.bricks-icon .b2 { grid-column: 2 / 3; grid-row: 2 / 3; }
.bricks-icon .b3 {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  justify-self: center;
  width: 20px;
}

.card:hover .bricks-icon .b1 {
  animation: brickSlideLeft 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card:hover .bricks-icon .b2 {
  animation: brickSlideRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}
.card:hover .bricks-icon .b3 {
  animation: brickDropTop 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* ── Capabilities ── */
.capabilities {
  margin-top: 28px;
  background: var(--white);
  padding: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.capabilities h3 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.capabilities ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.capabilities li {
  padding: 10px 14px;
  background: var(--light-bg);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  border-left: 3px solid var(--primary);
}

/* ── PROJECTS ── */
.proj-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.proj-nav-wrap {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.proj-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.proj-nav svg {
  width: 17px;
  height: 17px;
}

.proj-nav:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  box-shadow: var(--shadow);
}

.proj-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.proj-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}

.proj-grid::-webkit-scrollbar {
  display: none;
}

.proj-card {
  flex: 0 0 clamp(290px, 36vw, 420px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.proj-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* ── Carousel ── */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.75s ease;
  z-index: 0;
}

.carousel .slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  padding: 0;
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.proj-img-wrap:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.68);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dots .dot.active {
  background: #fff;
  transform: scale(1.35);
}

.proj-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  z-index: 4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 11px;
  border-radius: 3px;
}

.proj-card-info {
  padding: 18px 20px 20px;
  border-top: 3px solid var(--primary);
}

.proj-card-info h3 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.proj-location {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.proj-card-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .proj-card {
    flex: 0 0 calc(100vw - 48px);
  }

  .proj-img-wrap {
    height: 220px;
  }
}

/* ── CLIENTS ── */
.section.clients {
  background: var(--light-bg);
  padding-top: 56px;
  padding-bottom: 56px;
}

.section.clients .section-header {
  margin-bottom: 36px;
}

.clients-track-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clientsScroll 22s linear infinite;
  will-change: transform;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes clientsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── CONTACT ── */
.section.contact .section-header h2 {
  color: var(--white);
}

.section.contact .contact-note {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

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

.contact-card {
  background: var(--white);
  border-radius: 6px;
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  margin-bottom: 14px;
  color: var(--dark);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card p {
  margin-bottom: 10px;
  line-height: 1.65;
  color: var(--text);
  font-size: 0.97rem;
}

.map-embed {
  margin-top: 16px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-note {
  background: var(--white);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--text);
}

.contact-note.full {
  margin-top: 18px;
}

.contact-form {
  background: var(--white);
  border-radius: 6px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.contact-form h3 {
  font-family: "Oswald", "Segoe UI", sans-serif;
  color: var(--dark);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  min-height: 20px;
  font-weight: 600;
}

.form-status.success { color: var(--primary); }
.form-status.error   { color: #dc2626; }

.recaptcha {
  transform: scale(0.95);
  transform-origin: left top;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 4px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--light-bg);
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.contact-form .btn {
  width: fit-content;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 28px 20px 24px;
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

.footer p:first-child {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-socials {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-socials a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer-socials a svg {
  width: 17px;
  height: 17px;
}

.footer-socials a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
  width: 29px;
  height: 29px;
}

/* ── HOVER LIFTS ── */
@media (prefers-reduced-motion: no-preference) {
  .card:hover,
  .project-card:hover,
  .contact-card:hover,
  .media-card:hover,
  .pro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding: 28px 20px 64px;
  }

  .hero-grid {
    gap: 36px;
  }

  .services-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 60px clamp(20px, 4vw, 48px);
  }
}

/* ── ENTRANCE ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-text {
    animation: slideIn 0.9s ease both;
  }

  .hero-media .media-card {
    animation: floatUp 4.5s ease-in-out infinite;
  }

  .hero-media .media-card.island {
    animation-delay: 0.7s;
  }

  .hero,
  .section,
  .card,
  .project-card,
  .contact-card {
    animation: fadeUp 0.75s ease both;
  }

  .section:nth-of-type(2) { animation-delay: 0.08s; }
  .section:nth-of-type(3) { animation-delay: 0.16s; }
  .section:nth-of-type(4) { animation-delay: 0.24s; }
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hammer striking — pivots at grip, head swings down to nail */
@keyframes hammerStrike {
  0%   { transform: rotate(-28deg); }
  18%  { transform: rotate(-28deg); }
  42%  { transform: rotate(16deg);  }
  50%  { transform: rotate(10deg);  }
  58%  { transform: rotate(16deg);  }
  78%  { transform: rotate(-28deg); }
  100% { transform: rotate(-28deg); }
}

/* Brushstroke — pivots at ferrule, sweeps left-right */
@keyframes brushStroke {
  0%   { transform: rotate(-22deg); }
  35%  { transform: rotate(22deg);  }
  70%  { transform: rotate(-22deg); }
  100% { transform: rotate(-22deg); }
}

/* Bricklaying — each brick slides into position in sequence */
@keyframes brickSlideLeft {
  from { transform: translateX(-18px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes brickSlideRight {
  from { transform: translateX(18px);  opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes brickDropTop {
  from { transform: translateY(-14px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255, 255, 255, 0.24); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev svg,
.lightbox-next svg { width: 22px; height: 22px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.05em;
}

/* make carousel slides clickable */
.carousel .slide { cursor: zoom-in; }
