/*
Theme Name: Veebivedur
Theme URI: https://veeb.ostupunkt.ee/
Author: Veebivedur
Description: Kiire ja ligipääsetav ühe lehe WordPressi teema Veebiveduri teenustele.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: veebivedur
*/

:root {
  --navy: #091a35;
  --navy-2: #102b50;
  --blue: #075fd8;
  --blue-dark: #0448a7;
  --blue-pale: #eaf3ff;
  --orange: #ff7a1a;
  --orange-dark: #df5c00;
  --ink: #0b1b36;
  --muted: #52627a;
  --line: #dbe4f0;
  --surface: #f5f8fc;
  --white: #fff;
  --success: #166534;
  --error: #a22020;
  --shadow: 0 18px 50px rgba(16, 43, 80, .12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: var(--navy); background: #fff; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.contact-section :focus-visible, .site-footer :focus-visible { outline-color: #b8d8ff; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 14px; border-radius: 8px; background: var(--navy); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: .79rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section { padding: 90px 0; }
.section-soft { background: var(--surface); }
.section-heading { max-width: 690px; margin: 0 0 38px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.07rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 9px; font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--orange); box-shadow: 0 10px 26px rgba(255, 122, 26, .25); }
.button-primary:hover { color: var(--navy); background: var(--orange-dark); }
.button-secondary { color: var(--blue); border-color: var(--blue); background: #fff; }
.button-secondary:hover { color: var(--blue-dark); background: var(--blue-pale); }
.button-blue { color: #fff; background: var(--blue); }
.button-blue:hover { color: #fff; background: var(--blue-dark); }

.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(219, 228, 240, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--navy); font-weight: 900; letter-spacing: .055em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: #fff; background: linear-gradient(145deg, var(--blue), #0b8cf4); font-size: 1rem; box-shadow: 0 7px 18px rgba(7, 95, 216, .24); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; color: var(--ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.header-cta { margin-left: 8px; min-height: 42px; padding: 10px 17px; }
.menu-toggle { display: none; margin-left: auto; padding: 9px; border: 0; border-radius: 8px; color: var(--navy); background: var(--blue-pale); }
.menu-toggle svg { width: 25px; height: 25px; }

.hero { position: relative; overflow: hidden; padding: 76px 0 72px; background: linear-gradient(125deg, #fff 0%, #f8fbff 45%, #edf5ff 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; top: -320px; left: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(7, 95, 216, .11), transparent 68%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 52px; }
.hero-copy h1 { margin: 0 0 20px; font-size: clamp(2.65rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--blue); }
.hero-lead { max-width: 610px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 29px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: .92rem; font-weight: 650; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "✓"; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--blue); background: var(--blue-pale); font-size: .76rem; font-weight: 900; }
.hero-visual { position: relative; min-height: 445px; border-radius: 25px; background: #dce8f5 var(--hero-image, linear-gradient(135deg, #e7f0f9, #cdddf0)) center / cover no-repeat; box-shadow: var(--shadow); isolation: isolate; }
.hero-visual::after { content: ""; position: absolute; z-index: -1; right: -22px; bottom: -24px; width: 78%; height: 80%; border-radius: 30px; background: rgba(7, 95, 216, .09); transform: rotate(4deg); }
.hero-image { width: 100%; height: 100%; min-height: 445px; border-radius: inherit; object-fit: cover; object-position: center; }
.visual-badge { position: absolute; z-index: 3; right: 20px; bottom: 20px; max-width: 230px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; color: var(--navy); background: rgba(255,255,255,.91); box-shadow: 0 12px 30px rgba(9,26,53,.16); backdrop-filter: blur(10px); font-size: .9rem; font-weight: 760; }
.visual-fallback { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: inherit; background: linear-gradient(145deg, #ecf5ff, #d5e4f3); }
.browser-card { width: 78%; border: 9px solid #0b1730; border-radius: 15px 15px 9px 9px; background: #fff; box-shadow: 0 24px 45px rgba(9, 26, 53, .25); transform: rotate(-2deg); }
.browser-bar { height: 26px; border-bottom: 1px solid #d8e2ef; background: #f7f9fc; }
.browser-bar::before { content: "•••"; margin-left: 10px; color: #a8b4c5; letter-spacing: 3px; }
.browser-page { min-height: 230px; padding: 28px; color: #fff; background: linear-gradient(120deg, #0a2450, #075fd8); }
.browser-page strong { display: block; max-width: 250px; font-size: 1.7rem; line-height: 1.1; }
.browser-page span { display: block; width: 115px; height: 9px; margin-top: 20px; border-radius: 20px; background: var(--orange); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 11px 34px rgba(16,43,80,.06); }
.icon-wrap { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 15px; color: var(--blue); background: var(--blue-pale); }
.icon-wrap svg { width: 29px; height: 29px; }
.service-card h3 { margin: 0 0 9px; font-size: 1.35rem; }
.service-card p { margin: 0; color: var(--muted); }

.work-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: stretch; gap: 30px; }
.work-copy { padding-block: 18px; }
.work-copy h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.work-copy p { color: var(--muted); }
.work-card { overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 350px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.work-screen { display: grid; place-items: center; min-height: 300px; padding: 35px; background: linear-gradient(145deg, #eaf3ff, #d5e4f3); }
.shop-preview { width: 92%; overflow: hidden; border: 8px solid var(--navy); border-radius: 13px; background: #fff; box-shadow: 0 20px 40px rgba(9,26,53,.22); transform: rotate(-2deg); }
.shop-top { height: 27px; background: #f6f8fb; }
.shop-hero { min-height: 155px; padding: 30px 24px; color: #fff; background: linear-gradient(120deg, #112b52, #075fd8); }
.shop-hero b { display: block; font-size: 1.25rem; }
.shop-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px; }
.shop-products span { aspect-ratio: 1; border-radius: 4px; background: #edf2f7; }
.work-details { align-self: center; padding: 40px; }
.work-label { display: inline-block; margin-bottom: 10px; color: var(--blue); font-size: .77rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.work-details h3 { margin: 0 0 12px; font-size: 1.65rem; }
.work-details p { margin: 0 0 20px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 780; text-decoration: none; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 31px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 38px rgba(16,43,80,.07); }
.price-card.featured { border: 2px solid var(--blue); transform: translateY(-8px); box-shadow: 0 19px 48px rgba(7,95,216,.15); }
.popular { position: absolute; top: -15px; left: 50%; padding: 6px 14px; border-radius: 20px; color: #fff; background: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }
.price-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.price { margin: 5px 0 4px; color: var(--blue); font-size: 2.35rem; font-weight: 900; line-height: 1.1; letter-spacing: -.04em; }
.price small { font-size: .85rem; letter-spacing: 0; }
.price-note { margin: 0 0 21px; color: var(--muted); font-size: .9rem; }
.feature-list { margin: 0 0 25px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid #edf1f6; }
.feature-list li::before { content: "✓"; position: absolute; top: 8px; left: 2px; color: var(--blue); font-weight: 900; }
.price-card .button { width: 100%; margin-top: auto; }
.terms-box { margin-top: 34px; padding: 24px 28px; border: 1px solid #cfe0f5; border-radius: 14px; color: var(--muted); background: #f8fbff; font-size: .93rem; }
.terms-box strong { color: var(--ink); }
.terms-box p { margin: 0; }
.terms-box p + p { margin-top: 7px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: steps; }
.process-step { position: relative; padding-top: 55px; counter-increment: steps; }
.process-step::before { content: counter(steps); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 850; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 55px; width: calc(100% - 65px); height: 2px; background: #cfe0f5; }
.process-step h3 { margin: 0 0 7px; font-size: 1.08rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .94rem; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.faq-grid details { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-grid summary { color: var(--ink); font-weight: 760; cursor: pointer; }
.faq-grid details p { margin: 12px 0 0; color: var(--muted); }

.contact-section { position: relative; overflow: hidden; padding: 86px 0; color: #fff; background: linear-gradient(125deg, var(--navy), var(--navy-2)); }
.contact-section .eyebrow { color: #9bc7ff; }
.contact-section::after { content: ""; position: absolute; right: -100px; bottom: -220px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .72fr 1.28fr; gap: 64px; }
.contact-copy h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.contact-copy p { color: #bdcbe0; }
.contact-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 27px; color: #e2ebf7; font-size: .94rem; }
.contact-note svg { flex: 0 0 23px; color: #5da1ff; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #eef5ff; font-size: .88rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #456183; border-radius: 8px; color: #fff; background: rgba(255,255,255,.075); transition: border-color .18s ease, background .18s ease; }
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #aabbd1; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #86b8ff; background: rgba(255,255,255,.11); outline: none; box-shadow: 0 0 0 3px rgba(93,161,255,.18); }
.field select option { color: var(--ink); }
.checkbox-field { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; color: #c6d2e3; font-size: .86rem; }
.checkbox-field input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.contact-form .button { justify-self: start; min-width: 160px; border: 0; }
.form-status { grid-column: 1 / -1; margin: 0 0 4px; padding: 13px 15px; border-radius: 8px; font-weight: 680; }
.form-status.success { color: #dcfce7; border: 1px solid #26834c; background: rgba(22,101,52,.42); }
.form-status.error { color: #fee2e2; border: 1px solid #bf5a5a; background: rgba(162,32,32,.35); }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; white-space: nowrap !important; }

.site-footer { padding: 32px 0; color: #bfccdc; background: #061329; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #d7e2ef; text-decoration: none; }
.copyright { margin: 0; font-size: .88rem; }
.content-shell { min-height: 60vh; padding: 75px 0; }
.content-shell article { max-width: 800px; }
.content-shell h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; }

@media (max-width: 980px) {
  .hero-grid, .work-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 400px; }
  .hero-image { min-height: 400px; }
  .service-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card:last-child { grid-column: 1 / -1; max-width: 560px; width: 100%; justify-self: center; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 68px; }
  .js .menu-toggle { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .js .site-nav { position: fixed; top: 68px; right: 0; bottom: 0; left: 0; display: none; padding: 34px 20px; background: rgba(255,255,255,.98); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-wrap: wrap; justify-content: flex-end; }
  .js .site-nav ul { display: grid; gap: 5px; }
  .js .site-nav a { display: block; padding: 13px 5px; border-bottom: 1px solid var(--line); font-size: 1.12rem; }
  .js .site-nav a::after { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 52px; }
  .hero-grid { gap: 38px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .hero-actions .button { width: 100%; }
  .hero-visual, .hero-image { min-height: 280px; }
  .hero-image { object-position: 57% center; }
  .visual-badge { right: 12px; bottom: 12px; max-width: 190px; font-size: .78rem; }
  .service-grid, .pricing-grid, .faq-grid, .process-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card:last-child { grid-column: auto; }
  .process-step::after { display: none; }
  .work-card { grid-template-columns: 1fr; }
  .work-screen { min-height: 240px; }
  .work-details { padding: 28px; }
  .contact-grid { gap: 35px; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full, .checkbox-field { grid-column: auto; }
  .contact-form .button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
