@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --teal-dark:   #006d77;
  --teal-mid:    #83c5be;
  --light:       #edf6f9;
  --peach-light: #ffddd2;
  --peach-dark:  #e29578;
  --white:       #ffffff;
  --text:        #1f2933;
  --muted:       #5b6870;
  --border:      rgba(0, 0, 0, 0.08);
  --shadow:      0 14px 40px rgba(0, 0, 0, 0.08);
  --radius:      22px;
  --max-width:   1160px;
  --transition:  220ms ease;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Outfit', Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  font-size: 1rem;
  font-weight: 400;
}

/* ── Display font on all headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400; /* DM Serif Display is naturally bold at regular weight */
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

/* ─────────────────────────────────────
   HEADER & NAV
───────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(237, 246, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--teal-dark);
  font-size: 1.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--teal-dark);
}

.nav-cta {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: var(--text);
  margin: 5px 0;
}

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */

.hero {
  padding: 5.5rem 0 4rem;
  background:
    linear-gradient(rgba(237, 246, 249, 0.8), rgba(255, 255, 255, 0.9)),
    url("images/topo_image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--teal-dark);
  font-family: var(--font-body);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 12ch;
  font-family: var(--font-display);
  font-weight: 400;
}

.hero-text {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #005761;
}

.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-highlights li::before {
  content: "•";
  color: var(--peach-dark);
  margin-right: 0.45rem;
}

.hero-card {
  background: linear-gradient(180deg, var(--white), #f9fbfb);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-inner {
  padding: 2rem;
}

.mini-label {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--peach-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.hero-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 300;
}

/* ─────────────────────────────────────
   TRUST STRIP
───────────────────────────────────── */

.trust-strip {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.trust-strip-inner > p {
  margin: 0;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-items span {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--light);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ─────────────────────────────────────
   SECTIONS
───────────────────────────────────── */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.95));
}

.section-header {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.section-header p:last-child {
  color: var(--muted);
  margin-top: 0.9rem;
  font-weight: 300;
}

/* ─────────────────────────────────────
   PROJECT CARDS
───────────────────────────────────── */

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

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.13);
}

/* Image link wrapper — fills the card top */
.project-image-link {
  display: block;
  text-decoration: none;
  position: relative;
  /* no fixed aspect-ratio here — image determines height */
}

/* Image container: full image, no crop */
.project-image {
  position: relative;
  overflow: hidden;
  background: #d7e8e8;
  /* No aspect-ratio, no fixed height — image shows fully */
}

.project-image img {
  width: 100%;
  height: auto;          /* full image, never cropped */
  display: block;
  transition: transform 380ms ease, filter 380ms ease;
}

/* Hover overlay */
.project-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 109, 119, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 280ms ease;
}

.overlay-icon {
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}

.overlay-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

/* Trigger overlay + subtle zoom on hover */
.project-image-link:hover .project-image-overlay,
.project-image-link:focus-visible .project-image-overlay {
  opacity: 1;
}

.project-image-link:hover .project-image img,
.project-image-link:focus-visible .project-image img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.project-body {
  padding: 1.35rem;
}

.project-tag {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--peach-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

.project-card h3 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  font-size: 1.15rem;
}

.project-card p {
  margin-top: 0;
  font-weight: 300;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-tools {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.subsection-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--teal-dark);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ─────────────────────────────────────
   SERVICES
───────────────────────────────────── */

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

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 300;
}

/* ─────────────────────────────────────
   ABOUT
───────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  max-width: 320px;
  align-self: start;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.about-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-weight: 300;
}

.about-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.about-panel h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.about-list {
  margin: 0;
  padding-left: 1.15rem;
  font-weight: 300;
  color: var(--muted);
}

.about-list li + li {
  margin-top: 0.6rem;
}

/* ─────────────────────────────────────
   CONTACT
───────────────────────────────────── */

.contact-section {
  padding-top: 2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(255, 221, 210, 0.5), transparent 35%),
    var(--white);
}

.contact-card h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.contact-card p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-weight: 300;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.3rem;
  margin-top: 1.5rem;
}

.text-link {
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */

.site-footer {
  padding: 1.25rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ─────────────────────────────────────
   LIGHTBOX
───────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 35, 0.88);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transform: scale(0.95);
  transition: transform 300ms ease;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background var(--transition), transform var(--transition);
  /* position relative to lightbox-content */
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.lightbox-close:hover {
  background: var(--light);
  transform: scale(1.08);
}

/* ─────────────────────────────────────
   ANIMATIONS
───────────────────────────────────── */

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .project-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: 78px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity var(--transition),
      transform var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .section {
    padding: 4.2rem 0;
  }

  .contact-card {
    padding: 1.6rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
