/*
Theme Name: Arssin Onepage
Theme URI: https://new.arssin.ee
Author: Infoweb
Description: PTF Arssin OÜ kerge ja kohandatav ühe lehe WordPressi teema.
Version: 1.0.0
Text Domain: arssin
*/

:root {
  --ink: #171715;
  --ink-soft: #2a2926;
  --paper: #f5f2ec;
  --white: #ffffff;
  --line: rgba(23, 23, 21, 0.15);
  --red: #950304;
  --red-bright: #c52324;
  --muted: #6b6963;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(20, 20, 18, 0.13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; content: ""; background: currentColor; }
.section-title {
  max-width: 760px;
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.section-intro { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 750;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--red-bright); }
.button--ghost { border-color: rgba(255,255,255,.32); background: transparent; }
.button--ghost:hover, .button--ghost:focus-visible { border-color: var(--white); background: rgba(255,255,255,.08); }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(20,20,18,.96); box-shadow: 0 8px 30px rgba(0,0,0,.18); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: auto; max-width: 190px; height: 46px; object-fit: contain; }
.brand .brand-symbol { width: 52px; height: 48px; object-fit: contain; }
.brand-mark { position: relative; width: 42px; height: 42px; border: 2px solid var(--red-bright); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; background: var(--red-bright); transform: rotate(-35deg); }
.brand-mark::before { top: 8px; left: 17px; width: 3px; height: 24px; }
.brand-mark::after { top: 18px; left: 8px; width: 24px; height: 3px; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-size: 1.1rem; letter-spacing: .12em; }
.brand-text small { margin-top: 5px; color: rgba(255,255,255,.64); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 650; }
.site-nav a:not(.button) { position: relative; color: rgba(255,255,255,.78); }
.site-nav a:not(.button)::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; content: ""; background: var(--red-bright); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: white; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 18px; height: 2px; margin: 4px auto; content: ""; background: currentColor; transition: transform .2s ease; }

.hero {
  position: relative;
  display: grid;
  min-height: 840px;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(10,10,9,.92) 0%, rgba(10,10,9,.65) 46%, rgba(10,10,9,.18) 100%), linear-gradient(0deg, rgba(10,10,9,.78), transparent 50%); z-index: 1; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.08); }
.hero-media { opacity: 0; transform: scale(1.025); transition: opacity 1s ease, transform 7s ease; }
.hero-media.is-active { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; z-index: 3; right: 32px; bottom: 28px; display: flex; gap: 9px; }
.hero-dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: background-color .2s ease, width .2s ease; }
.hero-dot.is-active { width: 54px; background: var(--red-bright); }
.hero-grid { position: absolute; inset: 0; z-index: 1; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, black, transparent 78%); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: end; padding-top: 170px; padding-bottom: 82px; }
.hero h1 { max-width: 850px; margin: 0; font-family: Verdana, Geneva, sans-serif; font-size: clamp(3.6rem, 7.6vw, 7.4rem); font-weight: 700; letter-spacing: -.065em; line-height: .9; }
.hero h1 em { color: var(--red-bright); font-style: normal; }
.hero-lead { max-width: 650px; margin: 32px 0; color: rgba(255,255,255,.76); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-aside { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(20,20,18,.55); backdrop-filter: blur(12px); }
.hero-aside strong { display: block; font-family: Verdana, Geneva, sans-serif; font-size: 3rem; font-weight: 700; line-height: 1; }
.hero-aside span { display: block; margin-top: 10px; color: rgba(255,255,255,.67); }

.services-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 300px; padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.service-card:hover { z-index: 1; color: var(--white); background: var(--ink); transform: translateY(-6px); }
.service-number { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.service-card h3 { margin: 72px 0 14px; font-family: Verdana, Geneva, sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1.08; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.service-card:hover p { color: rgba(255,255,255,.63); }

.work { color: var(--white); background: var(--ink); }
.work .eyebrow { color: var(--red-bright); }
.work-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.work-head p { max-width: 460px; margin: 0; color: rgba(255,255,255,.6); }
.gallery { display: grid; grid-template-columns: 1.3fr .7fr .7fr; grid-auto-rows: 310px; gap: 16px; margin-top: 60px; }
.project { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: #272725; }
.project:first-child { grid-row: 1 / 3; }
.project.is-gallery-extra { display: none; }
.gallery.is-expanded .project.is-gallery-extra { display: block; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.project::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); }
.project-label { position: absolute; z-index: 2; right: 22px; bottom: 20px; left: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.project-label strong { font-family: Verdana, Geneva, sans-serif; font-size: 1.2rem; font-weight: 700; }
.project-label span { color: rgba(255,255,255,.58); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.project:hover img { filter: saturate(1.05); transform: scale(1.045); }
.gallery-toggle { display: flex; align-items: center; gap: 12px; margin: 34px auto 0; padding: 14px 22px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: transparent; color: var(--white); font: 700 .82rem/1 Verdana, Geneva, sans-serif; letter-spacing: .04em; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.gallery-toggle:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.gallery-toggle-icon { font-size: 1.05rem; transition: transform .25s ease; }
.gallery-toggle.is-expanded .gallery-toggle-icon { transform: rotate(180deg); }

.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.process-list { border-top: 1px solid var(--line); }
.process-item { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.process-item b { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--white); color: var(--red); font-size: .8rem; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.process-item h3 { margin: 0 0 7px; font-family: Verdana, Geneva, sans-serif; font-size: 1.35rem; font-weight: 700; }
.process-item p { margin: 0; color: var(--muted); }

.guarantee-card { position: relative; overflow: hidden; padding: 74px; border-radius: 28px; color: var(--white); background: var(--red); box-shadow: var(--shadow); }
.guarantee-card::before { position: absolute; top: -180px; right: -100px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; content: ""; box-shadow: 0 0 0 70px rgba(255,255,255,.05), 0 0 0 140px rgba(255,255,255,.035); }
.guarantee-content { position: relative; z-index: 1; display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: center; }
.guarantee-number { font-family: Verdana, Geneva, sans-serif; font-size: clamp(5rem, 12vw, 9rem); font-weight: 700; line-height: .75; letter-spacing: -.08em; }
.guarantee-number small { display: block; margin: 22px 0 0 9px; font-family: Verdana, Geneva, sans-serif; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.guarantee-card h2 { margin: 0 0 18px; font-family: Verdana, Geneva, sans-serif; font-size: clamp(2.1rem, 4vw, 3.8rem); font-weight: 700; line-height: 1; }
.guarantee-card p { max-width: 650px; margin: 0; color: rgba(255,255,255,.79); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.07rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { min-height: 190px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.42); }
.stat strong { display: block; font-family: Verdana, Geneva, sans-serif; font-size: 3.2rem; font-weight: 700; line-height: 1; }
.stat span { display: block; margin-top: 14px; color: var(--muted); }

.contact { color: var(--white); background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.contact .section-title { font-size: clamp(2.7rem, 5vw, 5.4rem); }
.contact-details { display: grid; gap: 18px; margin-top: 42px; }
.contact-details a, .contact-details address { color: rgba(255,255,255,.72); font-style: normal; }
.contact-details strong { display: block; margin-bottom: 2px; color: var(--white); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.contact-panel { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 52px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(255,255,255,.035); }
.contact-kicker { margin: 0 0 16px; color: var(--red-bright); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.contact-panel h3 { max-width: 560px; margin: 0; font-family: Verdana, Geneva, sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.02; }
.contact-panel > p:not(.contact-kicker) { max-width: 590px; margin: 24px 0 0; color: rgba(255,255,255,.62); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact-panel small { display: block; margin-top: 20px; color: rgba(255,255,255,.38); }
.contact-form { display: grid; gap: 18px; padding: 42px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(255,255,255,.035); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.65); font-size: .82rem; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; outline: none; background: rgba(255,255,255,.055); color: var(--white); transition: border-color .2s ease, background-color .2s ease; }
.field input { height: 52px; padding: 0 15px; }
.field textarea { min-height: 132px; padding: 14px 15px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--red-bright); background: rgba(255,255,255,.08); }
.form-note { margin: 0; color: rgba(255,255,255,.46); font-size: .78rem; }
.notice { padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.1); }
.notice--success { border: 1px solid rgba(116,216,154,.5); }
.notice--error { border: 1px solid rgba(255,128,128,.5); }
.honeypot { position: absolute; left: -9999px; }
.site-footer { padding: 24px 0; color: rgba(255,255,255,.45); background: #0d0d0c; font-size: .8rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner a { color: rgba(255,255,255,.72); }
.photo-credits { color: rgba(255,255,255,.32); font-size: .7rem; }

@media (max-width: 1020px) {
  .site-nav { gap: 17px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .project:first-child { grid-column: 1 / 3; grid-row: auto; }
  .process-grid, .about-grid, .contact-grid { gap: 60px; }
}

@media (max-width: 820px) {
  .section { padding: 82px 0; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 100px 30px 50px; background: var(--ink); font-size: 1.45rem; opacity: 0; pointer-events: none; transform: translateY(-15px); transition: opacity .2s ease, transform .2s ease; }
  .menu-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .menu-open .menu-toggle span { opacity: 0; }
  .menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }
  .hero { min-height: 760px; }
  .hero-content { padding-bottom: 64px; }
  .services-head, .process-grid, .about-grid, .contact-grid, .guarantee-content { grid-template-columns: 1fr; gap: 44px; }
  .work-head { display: block; }
  .work-head p { margin-top: 24px; }
  .guarantee-card { padding: 52px 36px; }
}

@media (max-width: 580px) {
  .wrap { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 74px; }
  .brand-text small { display: none; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5.3rem); }
  .hero-dots { right: 18px; bottom: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 255px; }
  .service-card h3 { margin-top: 46px; }
  .gallery { display: grid; grid-template-columns: 1fr; grid-auto-rows: 390px; margin-right: 0; margin-left: 0; padding: 0; overflow: visible; }
  .project, .project:first-child { width: 100%; min-width: 0; height: auto; grid-column: auto; grid-row: auto; }
  .about-stats, .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

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