/* MintGrounds — Fresh foundation AI */
:root {
  --mint: #10B981;
  --ground: #334155;
  --leaf: #ECFDF5;
  --teal: #0D9488;
  --white: #FFFFFF;
  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(51, 65, 85, 0.08);
  --shadow-lg: 0 16px 48px rgba(51, 65, 85, 0.12);
  --max: 1200px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ground);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--mint);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ground);
  line-height: 1.25;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--mint);
  color: var(--white);
  border-color: var(--mint);
}

.btn-primary:hover {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--ground);
  color: var(--white);
  border-color: var(--ground);
}

.btn-secondary:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--mint);
  border-color: var(--mint);
}

.btn-outline:hover {
  background-color: var(--mint);
  color: var(--white);
  border-color: var(--mint);
}

.btn-light {
  background-color: var(--white);
  color: var(--teal);
  border-color: var(--white);
}

.btn-light:hover {
  background-color: var(--leaf);
  color: var(--ground);
  border-color: var(--leaf);
}

/* Scroll animations */
.slide-up,
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .slide-up,
html.js .fade-in {
  opacity: 0;
  transform: translateY(28px);
}

html.js .slide-up.visible,
html.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .fade-in {
  transform: none;
}

html.js .fade-in.visible {
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--mint);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ground);
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--mint);
  line-height: 1.1;
}

.logo-tag {
  font-size: 0.7rem;
  color: var(--ground);
  opacity: 0.85;
  max-width: 200px;
}

.nav-toggle {
  display: none;
  background: var(--leaf);
  border: 2px solid var(--mint);
  color: var(--ground);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ground);
  font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--mint);
}

.header-cta {
  margin-left: 0.5rem;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(160deg, var(--leaf) 0%, var(--white) 55%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content .eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-content .lead {
  font-size: 1.15rem;
  color: #475569;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 3px solid var(--mint);
  pointer-events: none;
}

/* Stats */
.stats-bar {
  background: var(--mint);
  color: var(--white);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Section */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background: var(--leaf);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section-header p {
  color: #64748b;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.75rem;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--mint);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mint);
  margin: 0.5rem 0 1rem;
}

.card ul.features {
  margin: 1rem 0 1.5rem;
}

.card ul.features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.card ul.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

/* Fresh stack strip */
.stack-strip {
  background: var(--ground);
  color: var(--white);
  padding: 2rem 0;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
}

.stack-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  border: 1px solid var(--mint);
}

.stack-divider {
  color: var(--mint);
  font-weight: 700;
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--leaf);
  border: 2px solid var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--teal);
  font-size: 1.1rem;
}

/* Full bleed CTA */
.full-bleed-cta {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--ground);
  color: var(--white);
  overflow: hidden;
}

.full-bleed-cta .bg-image {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.full-bleed-cta .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed-cta .content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 36rem;
}

.full-bleed-cta h2 {
  color: var(--white);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--mint);
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  margin: 0 0 1.25rem;
  font-style: italic;
  color: #475569;
}

.testimonial cite {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: normal;
  color: var(--ground);
  font-size: 0.9rem;
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  color: #64748b;
  font-size: 0.85rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, var(--mint) 0%, var(--teal) 100%);
  color: var(--white);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

/* Page hero */
.page-hero {
  padding: 3rem 0 2rem;
  background: var(--leaf);
  border-bottom: 3px solid var(--mint);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
}

.breadcrumb a {
  color: var(--teal);
}

/* Collection filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--mint);
  background: var(--white);
  color: var(--ground);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--mint);
  color: var(--white);
  border-color: var(--mint);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.catalog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--mint);
}

.catalog-card.hidden {
  display: none;
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.catalog-body {
  padding: 1.5rem;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ref-code {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--leaf);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.catalog-price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--mint);
  font-size: 1.2rem;
}

.catalog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Services detail */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-block:nth-child(even) .service-image {
  order: 2;
}

.service-block:nth-child(even) .service-text {
  order: 1;
}

.service-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* About */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--mint);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--leaf);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--teal);
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cert-item {
  background: var(--white);
  padding: 1.25rem;
  border-radius: 12px;
  border-left: 4px solid var(--mint);
  box-shadow: var(--shadow);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--leaf);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid rgba(16, 185, 129, 0.25);
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-top: 1.25rem;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 0.25rem 0 0;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--mint);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ground);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mint);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
}

.form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  padding: 1.25rem;
  background: var(--leaf);
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ground);
}

.form-success.show {
  display: block;
}

/* Legal */
.legal-content {
  max-width: 52rem;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1em;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.legal-content ol li {
  list-style: decimal;
}

/* Footer */
.site-footer {
  background: var(--ground);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-name {
  color: var(--mint);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #94a3b8;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ground);
  color: var(--white);
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
}

.cookie-inner a {
  color: var(--mint);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions .btn-accept {
  background-color: var(--mint);
  color: var(--white);
  border: 2px solid var(--mint);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions .btn-accept:hover {
  background-color: var(--teal);
  border-color: var(--teal);
}

/* Utility */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-image,
  .service-block:nth-child(even) .service-text { order: unset; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--mint);
    padding: 1rem;
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem;
  }

  .header-cta { width: 100%; margin: 0.5rem 0 0; }
  .header-cta .btn { width: 100%; }

  .hero-grid,
  .card-grid-3,
  .card-grid-2,
  .testimonial-grid,
  .why-grid,
  .catalog-grid,
  .contact-layout,
  .team-grid,
  .cert-list {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
