/* Shared styles for Roheproff OÜ */

:root {
  /* Palette from user */
  --p100: #EDEEC9; /* lightest */
  --p200: #DDE7C7;
  --p300: #BFD8BD;
  --p400: #98C9A3;
  --p500: #77BFA3; /* primary */

  --gray-900: #0e1412;
  --gray-800: #17201c;
  --gray-700: #2b3833;
  --gray-600: #4b5a54;
  --gray-500: #6b7a74;
  --white: #ffffff;

  --bg: var(--p300);
  --text: var(--gray-900);
  --muted-text: var(--gray-600);
  --brand: var(--p400);
  --brand-strong: var(--p500);
  --surface: var(--p200);
  --surface-2: var(--p300);
  --ring: rgba(119, 191, 163, 0.32);

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 6px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 14px 36px rgba(0,0,0,0.10);
  --shadow-lg: 0 28px 70px rgba(0,0,0,0.16);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, var(--p200), transparent), radial-gradient(1200px 600px at 120% 10%, var(--p300), transparent), var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }

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

/* Skip link (accessibility) */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus, .skip-link:focus-visible {
  left: 16px; top: 16px; width: auto; height: auto; background: var(--brand-strong);
  color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10000; box-shadow: var(--shadow-md);
}

/* Header & Nav */
header.site-header { position: sticky; top: 0; z-index: 1000; backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); background: color-mix(in srgb, var(--bg) 76%, transparent); border-bottom: 1px solid rgba(31, 61, 43, 0.06); transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
header.site-header.scrolled { background: rgba(255,255,255,0.85); box-shadow: 0 10px 30px rgba(0,0,0,0.07); border-color: rgba(31,61,43,0.10); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.2px; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; background: conic-gradient(from 140deg at 50% 50%, var(--brand-strong), var(--brand) 40%, var(--p400)); color: #fff; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--gray-700); font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.nav-links a:hover { color: var(--brand-strong); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(31,61,43,0.08); }
.nav-links a.active { color: var(--brand-strong); box-shadow: inset 0 0 0 1px rgba(31,61,43,0.14); background: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; cursor: pointer; border-radius: 999px; padding: 10px 18px; font-weight: 600; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-primary { background: linear-gradient(180deg, var(--brand-strong) 0%, var(--brand) 100%); color: #0e1412; box-shadow: 0 8px 22px rgba(119,191,163,0.25), var(--shadow-sm); }
.btn-primary:hover { filter: brightness(0.98); box-shadow: 0 10px 26px rgba(119,191,163,0.32), var(--shadow-md); }
.btn-outline { background: transparent; color: var(--brand-strong); border: 1px solid var(--brand-strong); }
.btn-outline:hover { background: var(--surface); }
.burger { display: none; }
.burger button { background: transparent; border: 1px solid rgba(31,61,43,0.15); border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: grid; place-items: center; color: #fff; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(60% 60% at 70% 20%, rgba(119,191,163,0.35), rgba(119,191,163,0) 60%), linear-gradient(180deg, rgba(14,20,18,0.40) 0%, rgba(14,20,18,0.72) 60%, rgba(14,20,18,0.90) 100%), url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center; filter: saturate(1.05); z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(1000px 120px at 50% 100%, rgba(255,255,255,0.2), rgba(255,255,255,0)); }
.hero-content { text-align: center; padding: 96px 0; }
.hero h1 { font-size: clamp(40px, 6.8vw, 72px); line-height: 1.04; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 800; }
.hero p { font-size: clamp(16px, 2.6vw, 20px); opacity: 0.98; margin: 0 0 28px; color: #eef6ef; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { scroll-margin-top: 90px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.eyebrow { color: var(--brand-strong); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
h2.section-title { font-size: clamp(26px, 3.5vw, 40px); margin: 8px 0 12px; letter-spacing: -0.01em; }
p.section-subtitle { color: var(--muted-text); max-width: 720px; margin: 0 auto; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.service-card { position: relative; background: linear-gradient(180deg, #ffffff, #fcfdfc); border: 1px solid rgba(31,61,43,0.08); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease; }
.service-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(119,191,163,0.20), rgba(119,191,163,0)); opacity: 0; transition: opacity 0.25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(31,61,43,0.14); }
.service-card:hover::after { opacity: 1; }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.icon-wrap { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid rgba(31,61,43,0.1); }
.service-title { margin: 0; font-size: 18px; }
.service-desc { margin: 8px 0 0; color: var(--muted-text); font-size: 15px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(31,61,43,0.08); box-shadow: var(--shadow-sm); background: #fff; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); display: block; will-change: transform; }
.gallery-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,18,0) 40%, rgba(14,20,18,0.45)); opacity: 0; transition: opacity 0.35s ease; }
.gallery-item::after { content: "Vaata"; position: absolute; bottom: 12px; left: 12px; color: #fff; font-weight: 700; letter-spacing: 0.02em; opacity: 0; transform: translateY(6px); transition: all 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid rgba(31,61,43,0.08); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
form .field { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-weight: 600; font-size: 14px; color: var(--gray-800); }
.input, textarea { border: 1px solid rgba(31,61,43,0.14); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:focus, textarea:focus { border-color: var(--brand-strong); box-shadow: 0 0 0 6px var(--ring); }
textarea { min-height: 130px; resize: vertical; }
.contact-info { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid rgba(31,61,43,0.08); }
.contact-text small { color: var(--muted-text); display: block; margin-top: -2px; }

/* Footer */
footer { margin-top: 80px; border-top: 1px solid rgba(31,61,43,0.08); background: linear-gradient(0deg, var(--surface-2), transparent); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(31,61,43,0.12); background: #fff; transition: transform 0.15s ease, border-color 0.2s ease; }
.socials a:hover { transform: translateY(-2px); border-color: var(--brand-strong); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; place-items: center; z-index: 2000; background: rgba(15, 23, 42, 0.72); padding: 20px; }
.lightbox.open { display: grid; }
.lightbox-content { position: relative; max-width: 100%; width: min(1024px, 92vw); }
.lightbox img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: -12px; right: -12px; background: #fff; border: 1px solid rgba(31,61,43,0.12); border-radius: 999px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); }

/* Reveal */
.reveal-on-scroll { opacity: 0; transform: translateY(14px) scale(0.99); will-change: transform, opacity; }
.revealed { opacity: 1; transform: translateY(0) scale(1); transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 600ms ease; }

/* Page-specific helpers */
.page-hero { padding: 60px 0 20px; }
.page-hero h1 { margin: 0; font-size: 40px; letter-spacing: -0.02em; }
.subtitle { color: var(--gray-600); }

/* Responsive */
@media (max-width: 960px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 64px; right: 20px; background: #fff; border: 1px solid rgba(31,61,43,0.1); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; width: min(86vw, 320px); }
  .nav-links.open { display: grid; gap: 4px; }
  .nav-links a { padding: 10px 12px; border-radius: 8px; }
  .burger { display: block; }
}


