/* Foxworx – staatiline koduleht */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/poppins-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/poppins-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #1c244b;
  --text: #324a6d;
  --blue: #467ff7;
  --blue-dark: #2f63d6;
  --orange: #f15a29;
  --light: #f3f5f8;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); font-weight: 600; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-align: center; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section--light { background: var(--light); }
.lead { margin: 0 0 3.5rem; text-align: center; font-size: 1.05rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Navigatsioon */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 30, .92);
  backdrop-filter: blur(6px);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; }
.site-nav__brand img { height: 26px; width: auto; }
.site-nav__toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: .25rem .5rem;
}
.site-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 400; font-size: .95rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--orange); }
.site-nav .lang { border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: .15rem .6rem; }

@media (max-width: 760px) {
  .site-nav__toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(10, 14, 30, .97); padding: .5rem 1.25rem 1rem;
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav li a { display: block; padding: .6rem 0; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: grid; place-items: center; text-align: center;
  color: #fff;
  background: #0b1020 url("../img/hero.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(5, 10, 25, .45); }
.hero__inner { position: relative; padding: 4rem 1.25rem; }
.hero__logo { width: min(80vw, 640px); margin: 0 auto 1.5rem; }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(1.05rem, 2.2vw, 1.4rem); margin-bottom: 2rem; }

.btn {
  display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 3px;
  padding: .85rem 2.2rem; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: var(--blue-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Teenused */
.services { display: grid; gap: 3.5rem; }
.service { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.service img { width: 220px; border-radius: 4px; }
@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; gap: 1.25rem; }
  .service img { width: 180px; }
}

/* Eelised */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.benefit { text-align: center; }
.benefit svg { width: 56px; height: 56px; color: var(--orange); margin: 0 auto 1rem; display: block; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

/* Ettevõttest */
.about { text-align: center; font-size: 1.05rem; }

/* Kontakt */
.contact-form { max-width: 44rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-weight: 400; color: var(--navy); margin-bottom: .3rem; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; font-weight: 300; color: var(--navy);
  border: 1px solid #cfd6e2; border-radius: 3px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form .btn { width: 100%; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; border-radius: 3px; display: none; }
.form-status.is-ok { display: block; background: #e5f4e4; color: #1f5f2a; }
.form-status.is-error { display: block; background: #fbebeb; color: #8a1f1f; }
.req { color: var(--orange); }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }

/* Jalus */
.site-footer { background: #000; color: #bbb; text-align: center; padding: 2rem 0; font-size: .85rem; }
.site-footer p { margin: .25rem 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.notfound img { margin: 0 auto 2rem; }
