@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #d7dce2;
  --brand: #0f766e;
  --brand-dark: #0a5a54;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 8px var(--pad);
  background: rgba(245, 247, 250, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
}

.header-nav .nav-cta {
  color: #fff;
  background: var(--brand);
  padding: 12px 18px;
  border-radius: 999px;
}

.hamburger {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0f172a;
  padding: 82px 22px 22px;
  color: #e5e7eb;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  font-weight: 700;
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.hero {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 0 var(--pad);
  position: relative;
}

.hero-bg {
  width: 100%;
  height: clamp(280px, 54vw, 540px);
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 var(--pad);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(to right, rgba(17,24,39,0.72), rgba(17,24,39,0.2));
}

.hero-content {
  position: absolute;
  left: calc(var(--pad) + 32px);
  bottom: 34px;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.95;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 11ch;
}

.hero-copy {
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  line-height: 1.6;
  max-width: 34ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px var(--pad);
}

.section-tight {
  padding-top: 18px;
}

.intro h2,
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}

.project-card:hover { transform: translateY(-3px); }

.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.project-body {
  padding: 14px;
}

.project-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

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

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 10px;
}

.review-author {
  margin-top: 12px;
  font-weight: 800;
  color: var(--text);
}

.review-text {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.16);
  border-color: #fff;
}

.site-footer {
  margin-top: 12px;
  background: #111827;
  color: #d1d5db;
  text-align: center;
  padding: 28px var(--pad);
}

.site-footer h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer a {
  color: #f9fafb;
  text-decoration: underline;
}

/* Existing pages */
.section-center { text-align: center; }

.portfolio-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 14px;
}

.portfolio-card-body h3 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

.portfolio-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px var(--pad) 44px;
}

.portfolio-back {
  color: var(--muted);
  font-weight: 700;
}

.portfolio-detail h2 {
  margin: 10px 0 16px;
}

.portfolio-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.portfolio-detail-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

.contact-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px var(--pad) 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.contact-info,
.contact-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info { padding: 18px; }
.contact-info p { color: var(--muted); }

.contact-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #c9d2de;
  border-radius: 10px;
  padding: .68rem .75rem;
  font: inherit;
  background: #fff;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.16);
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-success { display: none; }

.fdm-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad) 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.fdm-section > div {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.fdm-section img { border-radius: 10px; width: 100%; height: 100%; object-fit: cover; }
.fdm-section p { color: var(--muted); }

.fdm-section.reversed { direction: rtl; }
.fdm-section.reversed > * { direction: ltr; }

.story-section {
  max-width: 850px;
  margin: 0 auto;
  padding: 34px var(--pad) 46px;
  text-align: center;
}

.story-section p {
  color: var(--muted);
  max-width: 66ch;
  margin: 0 auto 10px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: stretch;
  justify-content: center;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; }

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
}

@media (max-width: 980px) {
  .header-nav { display: none; }
  .hamburger { display: block; }
  .feature-grid,
  .project-grid,
  .fdm-section,
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .name-fields { grid-template-columns: 1fr; }
  .hero-content { left: calc(var(--pad) + 14px); right: calc(var(--pad) + 14px); bottom: 20px; }
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-wall img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #e5e7eb;
}

@media (max-width: 980px) {
  .photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .photo-wall img {
    height: auto;
  }
}

.section-note {
  margin: -8px 0 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.project-card {
  position: relative;
}




.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 8px;
}

.review-text {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.review-author {
  margin-top: 10px;
  font-weight: 800;
  color: var(--text);
}


.story-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.story-page .story-section {
  flex: 1;
  min-height: 0;
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-page .site-footer {
  margin-top: auto;
}

@media (max-width: 640px) {
  .story-page .story-section {
    padding-top: 28px;
    padding-bottom: 28px;
    justify-content: flex-start;
  }
}


.fdm-section > div:last-child {
  display: flex;
  flex-direction: column;
}

.fdm-section .btn {
  margin-top: 18px;
  align-self: flex-start;
}


.story-page .story-section h3 {
  margin-bottom: 18px;
}

.story-page .story-section p {
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 60ch;
}


.home-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.intro.section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.section-title {
  margin-bottom: 18px;
}

.photo-wall {
  margin-top: 14px;
}

.reviews.section.home-section {
  padding-top: 42px;
}

@media (max-width: 980px) {
  .home-section,
  .intro.section,
  .reviews.section.home-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}


.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-page .contact-layout {
  flex: 1;
}

.contact-page .site-footer {
  margin-top: auto;
}


@media (max-width: 980px) {
  .section-title,
  .intro h2 {
    margin-bottom: 18px;
  }
}


/* Final spacing normalization (homepage) */
.intro.section,
.home-section,
.reviews.section.home-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.intro h2,
.section-title {
  margin-bottom: 16px !important;
  line-height: 1.15;
}

.section-note {
  margin: 0 0 16px !important;
}

.feature-card h3,
.project-body h3 {
  margin-bottom: 8px !important;
}

.feature-card p,
.project-body p,
.review-text {
  line-height: 1.6;
}

.photo-wall {
  margin-top: 10px !important;
}

@media (max-width: 980px) {
  .intro.section,
  .home-section,
  .reviews.section.home-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .intro h2,
  .section-title {
    margin-bottom: 14px !important;
  }
}


/* Title spacing consistency override */
.intro.section,
.home-section,
.reviews.section.home-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro.section > h2,
.home-section > .section-title,
.reviews.section.home-section > .section-title {
  margin: 0 !important;
}

.home-section > .section-note {
  margin: 0 !important;
}

.feature-grid,
.project-grid,
.photo-wall {
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  .intro.section,
  .home-section,
  .reviews.section.home-section {
    gap: 14px;
  }
}


/* Hard spacing lock: homepage section/title consistency */
.intro.section,
.home-section,
.reviews.section.home-section {
  display: flex;
  flex-direction: column;
}

.intro.section > *,
.home-section > *,
.reviews.section.home-section > * {
  margin: 0 !important;
}

.intro.section > * + *,
.home-section > * + *,
.reviews.section.home-section > * + * {
  margin-top: 16px !important;
}

.feature-card > *,
.project-body > * {
  margin: 0 !important;
}

.feature-card > * + *,
.project-body > * + * {
  margin-top: 8px !important;
}

@media (max-width: 980px) {
  .intro.section > * + *,
  .home-section > * + *,
  .reviews.section.home-section > * + * {
    margin-top: 14px !important;
  }
}


/* Reviews spacing refinement */
.reviews.section.home-section > * + * {
  margin-top: 10px !important;
}

.reviews.section.home-section .review + .review {
  margin-top: 8px !important;
}


/* Balance top vs below-title spacing */
.intro.section,
.home-section,
.reviews.section.home-section {
  padding-top: 22px !important;
  padding-bottom: 34px !important;
}

.intro.section > * + *,
.home-section > * + *,
.reviews.section.home-section > * + * {
  margin-top: 16px !important;
}

@media (max-width: 980px) {
  .intro.section,
  .home-section,
  .reviews.section.home-section {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }

  .intro.section > * + *,
  .home-section > * + *,
  .reviews.section.home-section > * + * {
    margin-top: 14px !important;
  }
}

.hero-trust {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(17,24,39,0.34);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .hero-trust {
    display: none;
  }
}

.mobile-trust-strip {
  display: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--pad) 0;
}

.mobile-trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .mobile-trust-strip {
    display: block;
  }
}
