/* =========================================================
   UTRERO PORMA OÜ — styles.css
   Pure CSS, no framework dependencies.
   ========================================================= */

:root{
  --navy: #0b1f3a;
  --navy-light: #11305c;
  --navy-soft: #16386b;
  --accent: #00c2cb;
  --accent-dark: #009aa3;
  --accent-light: #5fe3ea;
  --text-dark: #19222e;
  --text-mid: #4c5a6b;
  --text-light: #7c8a9b;
  --bg-light: #f6f9fc;
  --bg-white: #ffffff;
  --border: #e3e9f0;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11,31,58,0.06);
  --shadow-md: 0 10px 30px rgba(11,31,58,0.10);
  --shadow-lg: 0 20px 50px rgba(11,31,58,0.18);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

ul{ list-style:none; }

h1,h2,h3,h4{ line-height:1.25; font-weight:700; letter-spacing:-0.01em; }

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

section{ padding: 96px 0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight:600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-accent{
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color:#fff;
  box-shadow: 0 8px 20px rgba(0,194,203,0.35);
}
.btn-accent:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,194,203,0.45); }
.btn-ghost{
  background: transparent;
  color:#fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.full-width{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  background: rgba(11,31,58,0.0);
  backdrop-filter: blur(0px);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  padding: 18px 0;
}
.site-header.scrolled{
  background: rgba(11,31,58,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  padding: 12px 0;
}
.header-inner{
  display:flex;
  align-items:center;
  gap: 28px;
}
.logo{ display:flex; align-items:center; gap:12px; margin-right:auto; }
.logo-mark{
  width: 42px; height:42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px;
  letter-spacing: 0.5px;
  flex-shrink:0;
}
.logo-mark.small{ width:38px; height:38px; }
.logo-text{
  display:flex; flex-direction:column;
  color:#fff;
  font-size: 15px;
  font-weight:500;
  letter-spacing: 0.5px;
  line-height:1.15;
}
.logo-text strong{ color: var(--accent-light); font-weight:800; }
.logo-text small{ font-size:9px; color: rgba(255,255,255,0.55); letter-spacing:1.5px; font-weight:600; }

.main-nav ul{ display:flex; gap: 30px; }
.nav-link{
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  font-weight: 600;
  position: relative;
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav-link::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active{ color:#fff; }
.nav-link:hover::after, .nav-link.active::after{ width:100%; }

.header-cta{ padding: 10px 22px; font-size:14px; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  cursor:pointer;
}
.nav-toggle span{
  display:block; height:2px; width:18px; margin:0 auto;
  background:#fff; border-radius:2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background: radial-gradient(ellipse at top right, var(--navy-soft) 0%, var(--navy) 55%, #061222 100%);
  color:#fff;
  padding: 190px 0 120px;
  overflow:hidden;
}
.hero-grid-pattern{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
}
.hero-inner{ position:relative; max-width: 760px; }
.eyebrow{
  display:inline-block;
  color: var(--accent-light);
  font-weight:700;
  letter-spacing: 2.5px;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 22px;
}
.hero-sub{
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 70px; }

.hero-stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 36px;
}
.stat{ display:flex; flex-direction:column; gap:6px; }
.stat-number{
  font-size: 28px; font-weight:800; color: var(--accent-light);
}
.stat-label{ font-size:13px; color: rgba(255,255,255,0.65); line-height:1.4; }

/* ---------- Section headers ---------- */
.section-eyebrow{
  color: var(--accent-dark);
  font-weight:700;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-eyebrow.light{ color: var(--accent-light); }
.section-head{ max-width: 720px; margin: 0 auto 56px; text-align:center; }
.section-head h2{ font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.section-lead{ color: var(--text-mid); font-size:16px; }

/* ---------- About ---------- */
.about{ background: var(--bg-white); }
.about-inner{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items:center;
}
.about-text h2{ font-size: clamp(26px,3.2vw,34px); margin-bottom: 20px; }
.about-text p{ color: var(--text-mid); margin-bottom: 16px; }
.about-facts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.about-facts li{
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display:flex; flex-direction:column; gap:4px;
}
.about-facts span{ font-size:12px; color:var(--text-light); text-transform:uppercase; letter-spacing:0.5px; }
.about-facts strong{ font-size:15px; color: var(--navy); }

.about-visual{ display:flex; justify-content:center; }
.orbit-card{
  position:relative;
  width: 260px; height:260px;
  display:flex; align-items:center; justify-content:center;
}
.orbit-svg{ position:absolute; inset:0; }
.orbit-ring{ fill:none; stroke: var(--border); stroke-width:1.5; }
.orbit-ring-1{ animation: spin 30s linear infinite; }
.orbit-ring-2{ animation: spin 22s linear infinite reverse; stroke: var(--accent-light); opacity:0.5; }
.orbit-ring-3{ stroke: var(--accent); opacity:0.35; }
.orbit-dot{ fill: var(--accent); }
.orbit-dot-alt{ fill: var(--navy-light); }
.orbit-center{
  position:relative;
  width:88px; height:88px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--accent-light);
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-lg);
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ---------- Solutions / Accordion ---------- */
.solutions{ background: var(--bg-light); }

.accordion{ display:flex; flex-direction:column; gap: 14px; max-width: 880px; margin:0 auto; }
.accordion-item{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.accordion-item summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 20px 24px;
  cursor:pointer;
  font-weight:700;
  font-size: 16px;
  color: var(--navy);
}
.accordion-item summary::-webkit-details-marker{ display:none; }
.accordion-icon{
  flex-shrink:0;
  width:42px; height:42px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--accent-dark);
  display:flex; align-items:center; justify-content:center;
}
.accordion-title{ flex:1; }
.accordion-chevron{
  color: var(--accent-dark);
  font-size:18px;
  font-weight:400;
  transition: transform .25s ease;
}
.accordion-item[open] .accordion-chevron{ transform: rotate(135deg); }
.accordion-body{
  padding: 0 24px 26px 82px;
  color: var(--text-mid);
}
.accordion-body h4{ color: var(--navy); margin: 18px 0 10px; font-size:15px; }
.accordion-body p{ margin-bottom: 10px; }

.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:8px; }
.info-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin: 18px 0; }
.info-card{
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.info-card h4{ margin-top:0; }
.example-quote{
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 14px;
  font-size: 14.5px;
}

.check-list{ display:flex; flex-direction:column; gap:8px; }
.check-list.two-cols{ display:grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.check-list.compact{ font-size: 14px; }
.check-list li{ position:relative; padding-left:22px; }
.check-list li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  color: var(--accent-dark);
  font-weight:700;
}
.step-list{ display:flex; flex-direction:column; gap:8px; padding-left:20px; }
.step-list li{ padding-left:4px; }

/* ---------- Products ---------- */
.products{ background:#fff; }
.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon{
  width: 50px; height:50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--accent-light);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.product-card h3{ font-size:18px; margin-bottom:10px; color: var(--navy); }
.product-card p{ color: var(--text-mid); font-size:14.5px; margin-bottom: 12px; }
.product-card .check-list{ gap:6px; }

/* ---------- SMS Hub ---------- */
.sms-hub{ background: var(--bg-light); }
.hub-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.hub-card{
  background:#fff;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}
.hub-card h3{ color: var(--navy); margin-bottom:10px; font-size:18px; }
.hub-card p{ color: var(--text-mid); font-size:14.5px; margin-bottom:12px; }

/* ---------- Testimonial ---------- */
.testimonial{
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color:#fff;
  padding: 80px 0;
}
.testimonial-quote{
  text-align:center;
  max-width: 700px;
  margin:0 auto;
}
.quote-mark{ color: var(--accent); margin-bottom: 18px; }
.testimonial-quote p{
  font-size: clamp(22px,3vw,30px);
  font-weight:600;
  font-style:italic;
}

/* ---------- Contact ---------- */
.contact{ background:#fff; }
.contact-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2{ font-size: clamp(24px,3vw,32px); margin: 8px 0 16px; color: var(--navy); }
.contact-info p{ color: var(--text-mid); margin-bottom: 26px; }
.contact-detail{
  display:flex; align-items:center; gap:12px;
  color: var(--navy);
  font-weight:600;
  margin-bottom: 14px;
}
.contact-detail svg{ color: var(--accent-dark); flex-shrink:0; }

.contact-form{
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row{ margin-bottom: 18px; display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:13px; font-weight:700; color: var(--navy); }
.form-row input, .form-row textarea{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  background:#fff;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus{
  outline:none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,194,203,0.18);
}
.form-note{ margin-top:14px; font-size:13.5px; color: var(--accent-dark); font-weight:600; min-height:18px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,0.8); }
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 40px;
  padding: 56px 0 32px;
  flex-wrap:wrap;
}
.footer-brand{ display:flex; gap:14px; max-width:380px; }
.footer-brand strong{ color:#fff; font-size:16px; }
.footer-brand p{ font-size: 13.5px; margin-top:6px; color: rgba(255,255,255,0.6); }
.footer-nav{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-nav a{ font-size:14px; color: rgba(255,255,255,0.75); transition: color .2s ease; }
.footer-nav a:hover{ color: var(--accent-light); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 28px;
  display:flex;
  justify-content:space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  flex-wrap:wrap;
  gap:8px;
}

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height:46px;
  border-radius:50%;
  background: var(--navy);
  color: var(--accent-light);
  border: none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  box-shadow: var(--shadow-md);
  opacity:0; pointer-events:none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
  z-index: 900;
}
.back-to-top.visible{ opacity:1; pointer-events:auto; transform:none; }
.back-to-top:hover{ background: var(--navy-light); }

/* ---------- Reveal animation ---------- */
[data-reveal]{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .about-inner, .contact-inner{ grid-template-columns:1fr; }
  .about-visual{ order:-1; }
  .card-grid{ grid-template-columns: repeat(2,1fr); }
  .hub-grid{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(2,1fr); row-gap:28px; }
}

@media (max-width: 760px){
  section{ padding: 70px 0; }
  .main-nav{
    position:fixed; top:0; right:0; bottom:0;
    width: min(78vw, 320px);
    background: var(--navy);
    padding: 100px 28px 28px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction:column; gap:22px; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .hero{ padding: 150px 0 90px; }
  .two-col, .info-grid{ grid-template-columns:1fr; }
  .check-list.two-cols{ grid-template-columns:1fr; }
  .card-grid{ grid-template-columns: 1fr; }
  .accordion-body{ padding-left:24px; }
  .footer-inner{ flex-direction:column; }
}
