/* ==== Global Styles ==== */

:root {
  --bg: #f5f7fa;
  --bg-alt: #ffffff;
  --accent: #105e5d;
  --accent-soft: #e0f0ef;
  --text: #121212;
  --text-muted: #5b6470;
  --border: #dde2ea;
  --shadow-soft: 0 18px 45px rgba(15, 35, 52, 0.12);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* Containers & layout */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: #f0f4f8;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.section-intro {
  margin: 0 auto 2.5rem;
  max-width: 620px;
  text-align: center;
  color: var(--text-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 250, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 227, 235, 0.8);
}

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

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

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

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

.logo-main {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--text);
}

.logo-sub {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

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

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw + 1.2rem, 2.9rem);
  margin-bottom: 1.2rem;
}

.hero-text p {
  color: var(--text-muted);
  max-width: 620px;
}

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

/* Hero card */

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: linear-gradient(145deg, #ffffff, #f3f7fb);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 220, 230, 0.7);
}

.hero-card h2 {
  font-size: 1.15rem;
  margin-top: 0;
}

.hero-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.hero-list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.hero-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(1px);
  font-size: 0.7rem;
  color: var(--accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease,
    border-color 0.1s ease, color 0.1s ease;
}

.btn.primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

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

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

.btn.full-width {
  width: 100%;
}

/* Two-column generic layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.8rem;
}

/* Lists */

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 1.9rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(7, 29, 43, 0.05);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

.card ul {
  margin-top: 0.7rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

/* Learn more links */

.link-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

/* Projects */

.project-card ul {
  padding-left: 1.1rem;
}

/* Contact section */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-details p {
  margin: 0.2rem 0;
  color: var(--text-muted);
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Form */

.contact-form {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem;
  box-shadow: 0 12px 32px rgba(7, 29, 43, 0.08);
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font: inherit;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.form-note {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Subpage hero */

.sub-hero {
  padding: 3.5rem 0 2.5rem;
  background-color: #ecf3f6;
  border-bottom: 1px solid #d4e0ea;
}

.sub-hero h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.2rem);
}

.sub-hero-intro {
  max-width: 720px;
  color: var(--text-muted);
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  padding: 1.4rem 0 1.7rem;
  background-color: #0b1b23;
  color: #cfd8e3;
  margin-top: 1.5rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

.footer-tagline {
  margin-top: 0.2rem;
  color: #8fa1b5;
}

/* ==== Responsive ==== */

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

  .hero-side {
    justify-content: flex-start;
  }

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

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

  .main-nav {
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .section {
    padding: 3.3rem 0;
  }

  .sub-hero {
    padding: 2.7rem 0 2rem;
  }
}
