/* Phonemas – styles.css (mobile-first, palette sampled from official logo) */

:root {
  --green-primary: #4BA123;
  --green-dark: #245237;
  --green-light: #7CC142;
  --green-accent: #E6F1CC;
  --text-dark: #1B1B1B;
  --text-muted: #555555;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --header-height: 4.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--green-dark);
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--green-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-primary);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.logo img {
  height: 1.75rem;
  width: auto;
}

.main-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.main-nav.is-open {
  max-height: 20rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
}

.main-nav a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--bg-light);
}

.main-nav a.is-active {
  color: var(--green-primary);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  order: 3;
}

.lang-btn {
  border: 1px solid var(--green-light);
  background: var(--white);
  color: var(--green-dark);
  padding: 0.3rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}

.menu-toggle {
  order: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--green-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--bg-light);
}

.hero {
  text-align: center;
  background: linear-gradient(180deg, var(--green-accent) 0%, var(--white) 65%);
}

.hero-inner {
  max-width: 720px;
}

.hero-logo {
  margin: 0 auto 1.5rem;
  width: 220px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-grid--preview {
  margin-top: 2.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(36, 82, 55, 0.18);
}

.section--alt .product-card {
  background: var(--white);
}

.product-card h3 {
  margin-top: 0;
}

.card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
}

.section-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
}

.section > .container > h2 {
  text-align: center;
}

.btn-more,
.external-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-primary);
}

.btn-more:hover,
.external-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Contact */
.contact-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.email-link {
  font-size: 1.15rem;
  font-weight: 600;
}

.notice {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
}

.footer-inner {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--green-accent);
}

/* Tablet */
@media (min-width: 768px) {
  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    order: 1;
    flex: 1;
  }

  .main-nav ul {
    flex-direction: row;
    padding: 0;
    justify-content: center;
    gap: 1.5rem;
  }

  .main-nav a {
    border-bottom: none;
    padding: 0.25rem 0;
    position: relative;
  }

  .main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--green-primary);
  }

  .menu-toggle {
    display: none;
  }

  .lang-switcher {
    order: 2;
  }

  .header-inner {
    gap: 1rem;
  }

  .logo img {
    height: 2.5rem;
  }

  .lang-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

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

/* Desktop */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .container {
    padding: 0 2rem;
  }
}
