/* Reset & Base */
:root {
  --bg-color: #fafafa;
  --text-color: #111111;
  --accent-color: #555555;
  --border-color: #dddddd;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-speed: 0.3s;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition-speed);
}

button:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 4px;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
}

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

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  mix-blend-mode: normal; /* avoid washed-out appearance */
}

@media (max-width: 640px) {
  .logo-img {
    height: 32px; /* try 28–36 */
  }
}

.btn-toggle-form {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-toggle-form:hover {
  color: var(--accent-color);
}

/* Hero */
.hero {
  padding: 4rem 0 6rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent-color);
  max-width: 500px;
}

/* Products */
.products {
  padding-bottom: 4rem;
}

.section-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.product-list {
  display: grid;
  gap: 1.5rem;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.product-row:last-child {
  border-bottom: none;
}

.product-name {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-description {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-color);
}

.product-link {
  font-weight: 500;
  white-space: nowrap;
  margin-left: 2rem;
}

.placeholder .product-name {
  font-weight: 500;
  font-style: italic;
}

/* Form Section */
.contact-section {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease,
    padding 0.4s ease;
  max-height: 1000px;
  opacity: 1;
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

/* Keep display:block so height transition works; hide via height/opacity */
.contact-section.hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.contact-container {
  max-width: 500px;
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  background-color: transparent;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--text-color);
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.btn-submit {
  background-color: var(--text-color);
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 500;
}

.btn-submit:hover {
  background-color: #333;
}

#thank-you-message {
  padding: 2rem 0;
  font-weight: 500;
}

.action-container {
  padding-bottom: 4rem;
}

.secondary-trigger {
  font-size: 1.125rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--accent-color);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
}

.footer-links a {
  margin-left: 1.5rem;
}

/* Hidden Utility */
.hidden {
  display: none;
}

/* Overriding .hidden to allow height transition on contact section */
.contact-section.hidden {
  display: block;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }

  /* keep header left/right on mobile (don’t stack) */
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  /* footer can stack */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .footer-links a {
    margin-left: 0;
    margin-right: 1.5rem;
  }
}
