/* GharMitro coming soon.
   Colors follow the mobile brand palette in mobile/src/theme/colors.ts:
   home green #1F6B4F, mitro yellow #F4B400, warm neutral #F5F1E8, charcoal #2E2E2E. */

:root {
  --green: #1f6b4f;
  --green-deep: #185a42;
  --green-soft: #e7f2ec;
  --yellow: #f4b400;
  --yellow-soft: #fff6d6;
  --cream: #f5f1e8;
  --cream-top: #f7f4ec;
  --charcoal: #2e2e2e;
  --muted: #4a5852;
  --white: #ffffff;
  --border: #e4e0d6;
  --shadow: 0 10px 28px rgba(31, 107, 79, 0.08);
  --radius: 20px;
  --header-offset: 5.25rem;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  color-scheme: light;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(920px 480px at 100% -8%, rgba(244, 180, 0, 0.28), transparent 58%),
    radial-gradient(720px 520px at -12% 18%, rgba(31, 107, 79, 0.16), transparent 56%),
    linear-gradient(180deg, var(--cream-top) 0%, var(--cream) 42%, #e8f0eb 100%);
}

img,
svg {
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

h1,
h2,
.brand-name,
.footer-name {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.4vw, 3.45rem);
  text-wrap: balance;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0.75rem);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  width: min(1080px, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 236, 0.92);
  border-bottom: 1px solid rgba(228, 224, 214, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 4.5rem;
  padding-top: env(safe-area-inset-top);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand img,
.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  background: var(--green);
  object-fit: cover;
  flex: none;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.brand-name {
  color: var(--green);
  font-size: 1.35rem;
}

.badge {
  margin: 0;
  margin-left: auto;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--charcoal);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#main {
  scroll-margin-top: var(--header-offset);
}

.hero {
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: 2.25rem 0 3rem;
}

.hero-copy,
.hero-visual {
  animation: rise 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.08s;
}

.highlight {
  color: var(--green-deep);
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: 100% 0.28em;
  padding-inline: 0.06em;
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  margin-top: 1.35rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.3;
}

.pin {
  flex: none;
  color: var(--green);
}

.hero-visual {
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  box-shadow: 0 22px 50px rgba(31, 107, 79, 0.1);
}

.scene {
  display: block;
  width: 100%;
  height: auto;
  animation: float 7s ease-in-out infinite;
}

.block {
  padding-bottom: 3.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}

.icon-wrap-accent {
  background: var(--yellow-soft);
  color: var(--green-deep);
}

.icon-wrap svg {
  display: block;
  width: 26px;
  height: 26px;
}

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

.contact-card {
  padding: 2.4rem 1.25rem;
  border-radius: 28px;
  background: linear-gradient(165deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--cream);
  text-align: center;
}

.contact-card h2 {
  margin-bottom: 0.45rem;
}

.contact-card p {
  color: var(--cream);
}

.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  margin-top: 1.25rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}

.email-link svg {
  flex: none;
}

.email-link:hover {
  background: #ffc857;
}

.email-link:focus-visible {
  outline-color: var(--white);
}

.site-footer {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.footer-name {
  margin: 0;
  color: var(--green);
  font-size: 1.2rem;
}

.footer-tagline,
.footer-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(31, 107, 79, 0.12);
  }

  .card:hover .icon-wrap {
    background: var(--yellow-soft);
    color: var(--green-deep);
  }

  .icon-wrap {
    transition: background-color 0.2s ease, color 0.2s ease;
  }
}

@media (min-width: 700px) {
  .hero {
    padding-top: 3.25rem;
    padding-bottom: 4rem;
  }

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

  .contact-card {
    padding: 3rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1.4fr auto auto;
    align-items: center;
    justify-items: start;
    gap: 1.5rem;
    text-align: left;
  }

  .footer-inner .footer-meta:last-child {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 2.5rem;
    min-height: calc(100svh - 4.5rem);
  }

  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

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

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

@media (forced-colors: active) {
  .badge,
  .card,
  .contact-card,
  .email-link,
  .location {
    border: 1px solid CanvasText;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header {
    position: static;
  }

  .email-link::after {
    content: " (" attr(href) ")";
  }
}
