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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f7f7;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0f4c3a;
}

.section-subtitle {
  margin-bottom: 2rem;
  color: #555;
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e4e4e4;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #0f4c3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f4c3a;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text span:last-child {
  font-size: 0.8rem;
  color: #777;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: #444;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #0f4c3a;
  transition: width 0.2s ease;
}

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

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #0f4c3a;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0c3a2c;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: #0f4c3a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #e1f2ec, #f7f7f7);
  border-bottom: 1px solid #e4e4e4;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f4c3a;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
  color: #111;
}

.hero-highlight {
  color: #0f4c3a;
}

.hero-text {
  color: #555;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #444;
}

.hero-meta-item span:first-child {
  display: block;
  font-weight: 600;
}

/* Hero image */
.hero-media {
  position: relative;
}

.hero-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hero-card img {
  width: 100%;
  border-radius: 0.8rem;
  display: block;
}

/* Grids / cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #0f4c3a;
}

.card p {
  font-size: 0.9rem;
  color: #555;
}

/* Feature list */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.feature-list li::before {
  content: "•";
  color: #0f4c3a;
  margin-right: 0.4rem;
}

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

/* Projects */
.projects-list {
  display: grid;
  gap: 1.2rem;
}

.project-item {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid #0f4c3a;
}

.project-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.project-item span {
  font-size: 0.85rem;
  color: #777;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  background-color: #ffffff;
  border-radius: 0.7rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 0.5rem 0.8rem 0.7rem;
  font-size: 0.85rem;
  color: #444;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.contact-info-block {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.contact-list span {
  font-weight: 600;
  color: #222;
  margin-right: 0.35rem;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #cccccc;
  font-size: 0.9rem;
}

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

/* Footer */
.site-footer {
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
  background-color: #ffffff;
  border-top: 1px solid #e4e4e4;
  font-size: 0.85rem;
  color: #666;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Utilities */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid #0f4c3a33;
  color: #0f4c3a;
  background-color: #f1faf6;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .split,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

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

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

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-inner {
    padding: 2.5rem 0;
  }

  section {
    padding: 2.5rem 0;
  }
}
