:root {
  --bg: #1a4d3a;
  --surface: #2d6b54;
  --text: #f4f5f7;
  --muted: #b8d4c8;
  --accent: #4a9070;
  --accent-dark: #2d6b54;
  --light-bg: #f7f7f6;
  --light-text: #181b20;
  --radius: 14px;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 246, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0;
  color: #1a3a30;
  margin-left: calc((100vw - min(1120px, 92vw)) / -2 + 2.4rem);
}

.brand-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-name {
  margin-left: 0.35rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  color: #1a3a30;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a.active:not(.btn) {
  color: #4a9070;
  border-bottom: 2px solid #4a9070;
  padding-bottom: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, rgba(26, 77, 58, 0.94), rgba(45, 107, 84, 0.85)),
    radial-gradient(circle at 70% 20%, rgba(74, 144, 112, 0.34), transparent 46%),
    url("https://images.unsplash.com/photo-1465800872432-47ce4d0dcf7b?auto=format&fit=crop&w=1920&q=80")
      center/cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(26, 77, 58, 0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #a8d5c4;
  margin-bottom: 0.8rem;
}

.eyebrow.dark {
  color: #3d8b66;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.lead {
  color: #d9dee8;
  font-size: 1.08rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  padding: 5.4rem 0;
  background: var(--light-bg);
  color: var(--light-text);
}

.section.dark {
  background: var(--bg);
  color: var(--text);
}

.section.cta {
  background: var(--bg);
  color: var(--text);
}

.section.cta .eyebrow.dark {
  color: #e8d4bf;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.cards article:nth-child(4),
.cards article:nth-child(5) {
  grid-column: span 1;
}

@supports (grid-template-columns: subgrid) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 10px 24px rgba(26, 31, 41, 0.08);
}

.card p {
  color: #565d69;
}

.projects-slideshow {
  margin-top: 0.8rem;
  position: relative;
}

#projects {
  padding: 5.4rem 0;
}

#projects .projects-slideshow {
  margin-top: 1.2rem;
}

#projects .projects-page {
  gap: 0.8rem;
}

#projects .project-image {
  width: 100%;
}

.projects-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.projects-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.projects-page {
  min-width: 100%;
  flex: 0 0 100%;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.carousel-btn.prev {
  left: -60px;
}

.carousel-btn.next {
  right: -60px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.project {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #fff;
}

.project-image {
  position: relative;
  width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  cursor: default;
  isolation: isolate;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 22, 16, 0.86) 100%);
  opacity: 1;
  transition: opacity 0.25s ease;
}

.project-name {
  margin: 0;
  padding: 1rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-image:hover::after,
.project-image:focus-visible::after,
.project-image:hover .project-name,
.project-image:focus-visible .project-name {
  opacity: 1;
}

.project-image:hover .project-name,
.project-image:focus-visible .project-name {
  transform: translateY(0);
}

.project-image:focus-visible {
  outline: 3px solid #a8d5c4;
  outline-offset: -3px;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(5, 18, 12, 0.88);
  backdrop-filter: blur(6px);
}

.image-modal[hidden] {
  display: none;
}

.image-modal-figure {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  margin: 0;
  text-align: center;
}

.image-modal-preview {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.image-modal-figure figcaption {
  margin-top: 0.8rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.image-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

body.modal-open {
  overflow: hidden;
}

.image-one {
  background-image: url("Projects/1_Residential Floor Plan Layout.png");
}

.image-two {
  background-image: url("Projects/2_Residential Cross-Section Detail.jpg");
}

.image-three {
  background-image: url("Projects/3_Concrete Slab Structural Drafting.jpg");
}

.image-four {
  background-image: url("Projects/4_Modern Residential Facade & Elevation.png");
}

.image-five {
  background-image: url("Projects/5_Floor Electrical & Lighting Layout.jpg");
}

.image-six {
  background-image: url("Projects/6_Contemporary Living Room Design.png");
}

.image-seven {
  background-image: url("Projects/7_Site Drainage, Plumbing & Rainwater Management Plan.jpg");
}

.image-eight {
  background-image: url("Projects/8_Ensuite Bathroom Layout & Detailing.jpg");
}

.image-nine {
  background-image: url("Projects/9_Sacred Architecture Plan.jpg");
}

.image-ten {
  background-image: url("Projects/10_Cultural & Sacred Center Facade.jpg");
}

.image-eleven {
  background-image: url("Projects/11_Modern Master Bedroom Design.png");
}

.image-twelve {
  background-image: url("Projects/12_Residential Structural Engineering Plan.jpg");
}

.split-wrap {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

#about {
  padding: 2.8rem 0;
}

#about .split-wrap {
  gap: 1.25rem;
}

.core-values {
  margin-top: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.value-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
  border: 1px solid rgba(26, 77, 58, 0.12);
  border-radius: 18px;
  padding: 1rem 1.05rem 0.95rem;
  box-shadow: 0 12px 26px rgba(26, 31, 41, 0.08);
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 84px;
  height: 84px;
  border-radius: 0 0 18px 0;
  background: linear-gradient(135deg, rgba(26, 77, 58, 0.14), rgba(74, 144, 112, 0));
}

.value-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 112, 0.12), transparent 68%);
}

.value-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #1a4d3a;
  color: #f7f7f6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.value-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.value-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #51606f;
  line-height: 1.45;
}

.about-aside {
  display: grid;
  gap: 1rem;
  align-self: stretch;
}

.about-logo-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
  border: 1px solid rgba(26, 77, 58, 0.12);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: 0 12px 26px rgba(26, 31, 41, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.about-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  display: block;
}

.about-aside-note {
  background: linear-gradient(135deg, #1a4d3a 0%, #2d6b54 100%);
  color: #f7f7f6;
  border-radius: 22px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-aside-note .eyebrow.dark {
  color: #d6f0e2;
}

.about-aside-note p {
  margin: 0.5rem 0 0;
  color: #e6efe9;
  line-height: 1.5;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.about-points li {
  position: relative;
  padding-left: 1.35rem;
  color: #f1f6f3;
  line-height: 1.55;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #9dd7bc;
  box-shadow: 0 0 0 4px rgba(157, 215, 188, 0.16);
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-details svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #4a90d9;
}

.contact-details a {
  color: #b8d4c8;
  text-decoration: none;
}

.contact-details a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(24, 29, 38, 0.1);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: #1f2a32;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  color: #1f2a32;
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: #7b8491;
}

.site-footer {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f2818;
}

.footer-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  text-align: center;
  color: #c7ccd7;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: transparent;
  gap: 4px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a3a30;
}

@media (max-width: 920px) {
  .cards,
  .split-wrap,
  .cta-wrap,
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-aside {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .projects-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-wrap > div:first-child,
  .cta-wrap > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    right: 4%;
    top: 72px;
    background: #f7f7f6;
    border: 1px solid rgba(26, 77, 58, 0.16);
    border-radius: 12px;
    flex-direction: column;
    padding: 0.8rem;
    min-width: 200px;
    display: none;
  }

  .main-nav a {
    width: 100%;
    color: #1a3a30;
  }

  .main-nav a.active:not(.btn) {
    color: #2d6b54;
  }

  .main-nav.open {
    display: flex;
  }

  .cards,
  .split-wrap,
  .cta-wrap,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-aside {
    grid-template-columns: 1fr;
  }

  .projects-page {
    grid-template-columns: 1fr;
  }

  #projects .project-image {
    height: 260px;
  }

  .projects-slideshow {
    margin-top: 1.2rem;
  }

  .carousel-btn {
    top: auto;
    bottom: -54px;
    transform: none;
  }

  .carousel-btn.prev {
    left: calc(50% - 52px);
  }

  .carousel-btn.next {
    right: calc(50% - 52px);
  }

  .projects-slideshow {
    padding-bottom: 3.4rem;
  }
}
