/* ==========================================================================
   Aromafarma.cz — stylesheet
   Light, airy theme derived from the logo (sage green + lavender on cream).
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #faf8f2;          /* cream page background */
  --color-surface: #ffffff;      /* cards / sections */
  --color-green: #5c6b47;        /* logo-tone sage green (headings, text accents) */
  --color-green-dark: #43502f;   /* darker green for hover / emphasis */
  --color-lavender: #8a76b5;     /* lavender accent (buttons, links) */
  --color-lavender-dark: #6f5c9c;
  --color-text: #3a3a34;
  --color-muted: #7a7a70;
  --color-border: #e7e3d8;

  /* Typography */
  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container-width: 900px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(70, 80, 50, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}


h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-green);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-lavender-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--color-lavender);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(250, 248, 242, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: auto;
  height: 52px;      /* keeps the wide logo readable on all screens */
  max-width: 70vw;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1.05rem;
}

.main-nav a {
  color: var(--color-green);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: var(--color-green-dark);
  border-bottom-color: var(--color-lavender);
}

.nav-disabled {
  color: var(--color-muted);
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}

/* Small "Připravujeme" note under the inactive E-shop link */
.nav-disabled::after {
  content: "Připravujeme";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-lavender);
  white-space: nowrap;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 9vw, 80px) 0 10px 0px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-lavender);
  margin-bottom: 0.8em;

}

.lead {
  font-size: 1.2rem;
  color: var(--color-text);
}

/* Decorative divider under the hero heading */
.hero-inner h1 {
  position: relative;
  padding-bottom: 0.4em;
}

.hero-inner h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 0.35em;
  background: linear-gradient(90deg, var(--color-lavender), var(--color-green));
  border-radius: 2px;
}

.cta-row {
  margin-top: 1.5em;
}

/* --- Buttons ------------------------------------------------------------- */
.button,
.subscribe-form button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--color-lavender);
  border: none;
  border-radius: var(--radius);
  padding: 14px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.button:hover,
.button:focus,
.subscribe-form button:hover,
.subscribe-form button:focus {
  background-color: var(--color-lavender-dark);
  text-decoration: none;
}

.button:active,
.subscribe-form button:active {
  transform: translateY(1px);
}

/* --- Newsletter ---------------------------------------------------------- */
.newsletter {
  padding: clamp(40px, 7vw, 72px) 0;
}

.newsletter-inner {
  max-width: 640px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  margin-top: 1.5em;
}

.subscribe-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  color: var(--color-text);
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--color-lavender);
}

.form-note {
  margin-top: 1em;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Honeypot: visually hidden but present in the DOM for bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Feedback message after form submission */
.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 1em;
  font-weight: 500;
}

.form-message.is-success {
  background-color: #eef3e7;
  color: var(--color-green-dark);
  border: 1px solid #cfe0bd;
}

.form-message.is-error {
  background-color: #fbecec;
  color: #9a4444;
  border: 1px solid #f0cccc;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

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

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 560px) {
  .subscribe-form {
    flex-direction: column;
  }

  .main-nav {
    gap: 18px;
    font-size: 1rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}
