/* ==========================
   Startwise – Frontend Styles
   ========================== */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font-sans);

  --fs-base: 16px;
  --lh-base: 1.65;
  --lh-heading: 1.2;

  /* CTA vaikimisi */
  --cta-bg: rgba(255, 255, 255, 0.25);
  --cta-bg-hover: rgba(255, 255, 255, 0.45);
  --cta-color: #111;
}

html { font-size: var(--fs-base); }
body {
  font-family: var(--font-sans);
  line-height: var(--lh-base);
  color: #111;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* skaleering (hea mobiilile ja 4K-le) */
h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); }
p, li { font-weight: 400; font-size: 1rem; }

/* nupud & nav */
.floating-nav, .cta-btn {
  font-family: var(--font-sans);
  font-weight: 600;
}

/* hero tekst veidi suurem */
.hero p { font-size: clamp(1rem, 1.3vw, 1.2rem); color:#333; }

/* micro-tüübi viimistlus */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* valikuline: numbrid ühtlase laiusega (ajakellad, hinnad) */
body { font-variant-numeric: tabular-nums; }

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Josefin Sans", Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  width: min(92%, 1200px);
  margin: 0 auto;
}

/* ==========================
   Floating Logo + Navigation
   ========================== */
/* Floating Logo */
.floating-logo {
  position: fixed;
  top: -30px;
  left: 0px;
  z-index: 1000;
}

.floating-logo img {
  height: 180px; /* a bit bigger */
  display: block;
  background: transparent; /* ensure no bg */
}
/* Mobile tweaks */
@media (max-width: 768px) {
  .floating-logo {
    top: -25px;
    left: -5px;
  }

  .floating-logo img {
    height: 100px; /* smaller on mobile */
  }
}

/* Floating Navigation */
.floating-nav {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  z-index: 1000;
  font-weight: 600;
  font-size: 1.2rem;

  /* Background & blur */
  background: rgba(255, 255, 255, 0.75); /* veidi läbikumav valge */
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%); /* Safari tugi */

  /* Box */
  padding: 0.1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.floating-nav:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.floating-nav a {
  color: #000;
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0.4rem;

  white-space: nowrap;      /* hoiab sõna ühel real */
  min-width: max-content;   /* venitab kasti nii palju kui vaja */
}

.floating-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.floating-nav a:hover::after {
  width: 100%;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .floating-nav {
    gap: 1rem;
    font-size: 0.8rem;
    top: 8px;
    padding: 0.1rem 1.3rem;
  }
}

/* ==========================
   Hero
   ========================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 80px; /* header offset */
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================
   Services Section
   ========================== */
#services {
  padding: 6rem 1rem;
  background: #fff; /* puhas valge taust */
}

#services h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #111;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-box {
  background: #fafafa;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Service title */
.service-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #4b0082; /* lilla aktsent */
}

/* Description */
.service-box p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Button */
.service-box .cta-btn {
  margin-top: auto;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.service-box .cta-btn:hover {
  background: #333;
  transform: translateY(-3px);
}

/* ==========================
   Pricing Section (modern)
   ========================== */
#pricing {
  padding: 6rem 1rem;
  background: #fafafa; /* hele taust eristuseks */
}

#pricing h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #111;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.price-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Package name */
.price-box h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #4b0082; /* lilla aktsent */
}

/* Price */
.price-box .price {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.4rem;
  color: #000;
}

/* Features */
.price-features {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
  text-align: left;
  width: 100%;
}

.price-features li {
  margin: 0.6rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: #444;
  font-size: 0.95rem;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4b0082;
  font-weight: bold;
}

/* Extra services section */
.extra-services {
  padding: 4rem 1rem;
  text-align: center;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.extra-box {
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extra-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.extra-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #4b0082;
}

.extra-box p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

.extra-services .small-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
}

/* Buttons */
.cta-btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: auto; /* always at bottom */
}

.cta-btn:hover {
  background: #333;
  transform: translateY(-3px);
}

/* Ribbon for popular package */
.price-box.popular {
  position: relative;
  overflow: hidden;
}

.ribbon {
  width: 150px;
  height: 150px;
  overflow: hidden;
  position: absolute;
  top: -10px;
  right: -10px;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 200px;
  padding: 10px 0;
  background: #4b0082; /* lilla aktsent */
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  transform: rotate(45deg);
  top: 30px;
  right: -40px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Why Choose Us */
#why-us {
  padding: 6rem 1rem;
  background: #f9f9f9;
}

#why-us h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  font-weight: 700;
  text-align: center;
  color: #111;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.why-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.why-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #4b0082;
}

.why-box p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Trust Section */
#trust {
  padding: 60px 20px;
  background: #f9f9f9;
}

#trust h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #111;
}

#trust p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 30px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.trust-logos img {
  max-height: 50px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.trust-logos img:hover {
  opacity: 1;
}

/* ==========================
   About Section
   ========================== */
#about {
  padding: 6rem 1rem;
  background: #fff;
  text-align: center;
}

#about h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111;
}

#about p {
  max-width: 800px;
  margin: 0 auto 1.2rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
}

.fb-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #1877f2;
  text-decoration: none;
}
.fb-link:hover {
  text-decoration: underline;
}
/* ==========================
   Footer
   ========================== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
}

/* ==========================
   Particles Background
   ========================== */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.4);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

.scroll-down {
  display: inline-block;
  margin-top: 20px;
  font-size: 2rem;
  color: #000;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: color 0.3s;
}

.scroll-down:hover {
  color: #e63946; /* punane hover näiteks */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* GDPR checkbox */
.checkbox {
  display: flex;
  align-items: center;
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}

.checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #2563eb; /* sinine kast */
  cursor: pointer;
}

.checkbox label {
  margin: 0;
  cursor: pointer;
  line-height: 1.4;
}

.form-response {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  display: none;
}

.form-response.sending {
  display: block;
  background: #fef9c3;
  color: #92400e;
}

.form-response.success {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.form-response.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* ==========================
   Admin Login
   ========================== */
.login-form {
  max-width: 400px;
  margin: 40px auto;
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 6px;
}

.login-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.login-form button {
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.login-form button:hover {
  background: #e63946; /* punane hover */
}

/* ==========================
   CTA Buttons – Global
   ========================== */
.cta-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;

  /* Klaasi efekt */
  background: var(--cta-bg, rgba(0, 0, 0, 0.35));  /* poolläbipaistev must */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari tugi */

  color: var(--cta-color, #fff);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cta-btn:hover {
  background: var(--cta-bg-hover, rgba(0, 0, 0, 0.55)); /* hoveril tumedam */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
/* CTA Variatsioonid */
.cta-btn.primary {
  --cta-bg: #4b0082;        /* lilla */
  --cta-bg-hover: #360061;
}

.cta-btn.secondary {
  --cta-bg: #2563eb;        /* sinine */
  --cta-bg-hover: #1e40af;
}

.cta-btn.danger {
  --cta-bg: #e63946;        /* punane */
  --cta-bg-hover: #b91c1c;
}

.cta-btn.light {
  --cta-bg: #f9f9f9;        /* hele */
  --cta-color: #111;
  --cta-bg-hover: #e5e5e5;
}
'
/* Privacy Page specific */
#content {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  line-height: 1.75;
}

#content h2 {
  margin-top: 2rem;
  color: #4b0082; /* lilla aktsent */
  font-size: 1.4rem;
}

#content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

#content a {
  color: #2563eb;
  text-decoration: underline;
}
