/* ===================================================================
   Dynamic Design & Constructions — Main Stylesheet
   =================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  color-scheme: light;

  /* Backgrounds */
  --bg: #f6f2eb;
  --bg-alt: #f2ede6;
  --bg-dark: #0c1a2e;
  --surface: #ffffff;
  --surface-strong: #0f172a;
  --surface-glass: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #162033;
  --muted: #5f6b7a;

  /* Accent */
  --accent: #c97a2b;
  --accent-soft: #f4e4cf;
  --accent-dark: #8b4a12;
  --accent-glow: rgba(201, 122, 43, 0.3);

  /* Hero palette */
  --hero-bg-start: #0a1628;
  --hero-bg-end: #1a2d4a;
  --hero-text: #f9fbff;
  --hero-text-muted: #b8c9e0;
  --hero-nav-muted: #d9e3f2;

  /* Buttons */
  --btn-secondary-bg: rgba(255, 255, 255, 0.12);

  /* Borders & Shadows */
  --border: #e6dfd3;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(201, 122, 43, 0.45);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 0.3s var(--ease-out);
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Global focus-visible ring for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ===== LAYOUT ===== */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
  color: var(--hero-text);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero-banner.png") center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero>* {
  position: relative;
  z-index: 1;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  margin-left: 12px;
}

.brand-name {
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 700;
}

.brand-subname {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 2px;
}

.brand-tagline {
  color: var(--hero-nav-muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .brand-name {
    font-size: 1rem;
  }
  .brand-subname {
    font-size: 0.7rem;
  }
  .brand-tagline {
    font-size: 0.65rem;
  }
}

.brand-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  color: var(--hero-nav-muted);
  align-items: center;
}

.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-base);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: white;
}

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

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

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO GRID ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--hero-text-muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #d48832;
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* ===== HIGHLIGHTS LIST ===== */
.highlights {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--hero-text-muted);
}

.highlights li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ===== HERO CARD ===== */
.hero-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.card-pill {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

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

.metrics strong {
  display: block;
  font-size: 1.5rem;
  color: var(--surface-strong);
}

.metrics span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ===== SECTIONS (SHARED) ===== */
.section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-heading h2,
.about-grid h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  letter-spacing: -0.01em;
}

.section-heading p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.alt-bg {
  background: var(--bg-alt);
}

.dark-bg {
  background: var(--bg-dark);
  color: var(--hero-text);
}

.dark-bg .eyebrow {
  color: var(--accent);
}

.dark-bg .muted,
.dark-bg p {
  color: var(--hero-text-muted);
}

/* ===== SHOWCASE ===== */
.showcase {
  padding-top: 0;
  margin-top: -1rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.showcase-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
}

.showcase-media {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition-base);
}

.showcase-media:hover {
  transform: translateY(-4px);
}

.showcase-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 0.8rem;
}

.showcase-media figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== SERVICE CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.service-sublist {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.service-sublist li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}

.service-sublist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== PROJECTS ===== */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-category {
  display: none;
}

.project-category.active {
  display: block;
}

.project-card {
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 1.25rem;
}

.project-card-body h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.project-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.project-card-media {
  overflow: hidden;
}

.project-intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-content h2 {
  margin: 0 0 1rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-subsection {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-subsection h3 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
}

.quote-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  align-self: start;
}

.quote-box p {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.5;
}

.quote-box footer {
  color: var(--muted);
}

.quote-box cite {
  font-style: normal;
}

/* ===== LIFECYCLE ===== */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.lifecycle-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  z-index: 0;
}

.lifecycle-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.lifecycle-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform var(--transition-base);
}

.lifecycle-step:hover .lifecycle-number {
  transform: scale(1.1);
}

.lifecycle-step h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.lifecycle-step p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== SPECIALIZED SERVICES (Repairs, Electrical, Interior Finishing) ===== */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.spec-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.spec-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.spec-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spec-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
}

.spec-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.spec-pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.spec-pillar h4 {
  margin: 0;
  font-size: 0.95rem;
}

/* Dark variant for spec pillars */
.dark-bg .spec-pillar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-bg .spec-pillar h4 {
  color: var(--hero-text);
}

.dark-bg .spec-content p {
  color: var(--hero-text-muted);
}

/* ===== SAFETY ===== */
.safety-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.safety-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.safety-content p {
  color: var(--hero-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== VISION & MISSION ===== */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
}

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

.vm-card h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vm-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.vm-card ul {
  padding-left: 1.2rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.vm-card ul li {
  margin-bottom: 0.3rem;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: block;
  margin: 0 auto 1rem;
  object-fit: cover;
  object-position: center 15%;
  /* Focuses on the face/upper body */
}

.team-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.3rem;
}

.team-qual {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.contact-link {
  color: var(--surface-strong);
  font-weight: 600;
  transition: color var(--transition-base);
}

.contact-link:hover {
  color: var(--accent);
}

.contact-icon-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-icon-row span {
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 122, 43, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

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

/* Map container */
.contact-map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 250px;
  display: block;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: var(--hero-text-muted);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.8fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand .brand-logo {
  height: 52px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--hero-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

.footer h4 {
  color: var(--hero-text);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--hero-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-info {
  display: grid;
  gap: 0.6rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--hero-text-muted);
}

.footer-contact-item span:first-child {
  flex-shrink: 0;
}

.footer-contact-item a {
  color: var(--hero-text-muted);
  transition: color var(--transition-base);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-text-muted);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
}

.developer-name {
  color: #60a5fa !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.developer-name:hover {
  color: #93c5fd !important;
}

/* ===== STAT COUNTER ANIMATION ===== */
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  .hero-grid,
  .showcase-grid,
  .about-grid,
  .contact-grid,
  .spec-grid,
  .vm-grid {
    grid-template-columns: 1fr;
  }

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

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

  .lifecycle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .lifecycle-grid::before {
    display: none;
  }

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

  .stats-row {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  /* Boost nav above hero-grid AND above the overlay */
  .nav {
    z-index: 100;
  }

  .menu-toggle {
    display: block;
    z-index: 102;
  }

  /* Dark overlay behind the menu — MUST be below .nav (100) */
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
  }

  .mobile-overlay.active {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #0a1628;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease-out;
    z-index: 101;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.8);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.15rem;
    color: #f9fbff;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .lifecycle-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .spec-pillars {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero-grid {
    padding: 2rem 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .project-tabs {
    gap: 0.4rem;
  }

  .tab-btn {
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
  }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0px 8px 16px rgba(37, 211, 102, 0.3);
  background-color: #20BA56;
  outline: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}