/*
Theme Name: Flunemerg
Theme URI: https://flunemerg.com/
Author: Flunemerg
Description: Custom portfolio theme for water treatment and filtration solutions.
Version: 1.2.1
Text Domain: flunemerg
*/

:root {
  --red: #d8212a;
  --red-dark: #ad131c;
  --ink: #101820;
  --slate: #33444f;
  --muted: #667680;
  --line: #dce3e6;
  --mist: #f2f6f7;
  --ice: #e5f3f6;
  --blue: #0a6578;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 28px 70px rgba(16, 24, 32, .12);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  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; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 999; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: white;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { background: rgba(16,24,32,.96); border-color: transparent; box-shadow: 0 8px 30px rgba(0,0,0,.12); backdrop-filter: blur(14px); }
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: .08em; font-size: 18px; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 700; letter-spacing: .025em; }
.site-nav a { transition: opacity .2s; }
.site-nav a:hover { opacity: .65; }
.nav-cta { padding: 11px 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: none; color: inherit; width: 42px; height: 42px; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; }

.hero { min-height: 820px; position: relative; overflow: hidden; color: white; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 38%, rgba(25,138,159,.46), transparent 30%), linear-gradient(115deg, rgba(216,33,42,.22), transparent 44%); }
.hero-grid { position: relative; min-height: 820px; padding: 185px 0 92px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 16px; font-weight: 850; text-transform: uppercase; letter-spacing: .17em; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--red); }
.hero h1, .section-title { margin: 0; font-weight: 760; letter-spacing: -.045em; line-height: .98; }
.hero h1 { max-width: 820px; font-size: clamp(56px, 6.4vw, 96px); }
.hero h1 span { color: #a7dfe7; }
.hero-lead { max-width: 670px; margin: 32px 0 38px; color: #cfdbdf; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 850; letter-spacing: .02em; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); box-shadow: 0 12px 32px rgba(216,33,42,.28); }
.button-primary:hover { background: var(--red-dark); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.4); }
.water-visual { position: relative; aspect-ratio: 1 / 1.1; }
.water-ring { position: absolute; inset: 2% 4% 12%; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.water-ring::before, .water-ring::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.water-ring::before { inset: 12%; }
.water-ring::after { inset: 25%; }
.water-drop { position: absolute; width: 55%; aspect-ratio: .8; left: 24%; top: 14%; border-radius: 55% 55% 60% 60% / 70% 70% 45% 45%; background: linear-gradient(155deg, #8ed0da 3%, #126f82 55%, #0a3f4d); transform: rotate(45deg); box-shadow: inset 22px 15px 50px rgba(255,255,255,.2), 0 30px 80px rgba(0,0,0,.3); }
.water-drop::after { content: ""; position: absolute; width: 24%; height: 10%; border-radius: 50%; background: rgba(255,255,255,.55); top: 20%; left: 14%; filter: blur(3px); }
.visual-card { position: absolute; right: 0; bottom: 10%; width: 235px; padding: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(16,24,32,.72); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.visual-card strong { display: block; font-size: 31px; line-height: 1; }
.visual-card span { display: block; margin-top: 9px; color: #bbcbcf; font-size: 16px; }
.hero-index { position: absolute; left: 0; bottom: 0; width: 100%; border-top: 1px solid rgba(255,255,255,.14); }
.hero-index .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-stat { padding: 22px 24px 22px 0; color: #c5d2d6; font-size: 16px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-stat + .hero-stat { padding-left: 28px; }
.hero-stat b { color: white; font-size: 17px; }

.section { padding: 116px 0; }
.section-muted { background: var(--mist); }
.section-dark { background: var(--ink); color: white; }
.section-kicker { margin: 0 0 18px; color: var(--red); font-size: 16px; font-weight: 850; text-transform: uppercase; letter-spacing: .18em; }
.section-title { max-width: 860px; font-size: clamp(42px, 5vw, 70px); }
.section-intro { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: 20px; }
.section-dark .section-intro { color: #afbec3; }
.split-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; margin-bottom: 64px; }
.split-heading .section-intro { margin: 0; }

.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-card { position: relative; min-height: 370px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .25s, box-shadow .25s; }
.solution-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.solution-card.priority { color: white; background: var(--blue); border-color: var(--blue); }
.solution-number { color: var(--red); font-weight: 900; font-size: 16px; letter-spacing: .16em; }
.priority .solution-number { color: #b6e8ee; }
.solution-card h3 { max-width: 300px; margin: 92px 0 18px; font-size: 28px; line-height: 1.08; letter-spacing: -.025em; }
.solution-card p { margin: 0; color: var(--muted); font-size: 16px; }
.priority p { color: #d3eaed; }
.solution-mark { position: absolute; right: -12px; top: -12px; width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 50%; }
.priority .solution-mark { border-color: rgba(255,255,255,.22); }
.solution-mark::before { content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--red); border-width: 0 2px 2px 0; left: 28px; top: 28px; transform: rotate(45deg); }

.focus-panel { display: grid; grid-template-columns: .95fr 1.05fr; border-radius: 28px; overflow: hidden; background: var(--ink); color: white; box-shadow: var(--shadow); }
.focus-content { padding: 78px 68px; }
.focus-content h2 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.04em; }
.focus-content p { color: #bdcbd0; font-size: 19px; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: #edf5f6; font-size: 16px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 6px; border: solid #8fd1da; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.focus-visual { position: relative; min-height: 560px; overflow: hidden; background: linear-gradient(150deg, #dcecef, #73b6c1); }
.focus-visual::before { content: ""; position: absolute; width: 560px; height: 560px; border: 92px solid rgba(255,255,255,.48); border-radius: 50%; top: 68px; right: -150px; }
.focus-visual::after { content: "H₂O"; position: absolute; bottom: 34px; right: 44px; font-size: 90px; font-weight: 850; letter-spacing: -.07em; color: rgba(16,24,32,.82); }
.focus-label { position: absolute; left: 42px; top: 42px; width: 210px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.87); color: var(--ink); backdrop-filter: blur(10px); }
.focus-label b { display: block; font-size: 16px; }
.focus-label span { display: block; margin-top: 5px; font-size: 16px; color: var(--muted); }

.partners-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 52px; }
.partners-head p { max-width: 480px; margin: 0; color: #afbec3; }
.partners-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.partner-card { position: relative; min-height: 220px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; grid-column: span 4; border: 1px solid #34434b; border-radius: var(--radius); transition: border-color .2s, background .2s; }
.partner-card:hover { border-color: #77919b; background: #15232b; }
.partner-card.featured { grid-column: span 6; min-height: 255px; border-color: rgba(216,33,42,.7); }
.partner-type { color: #7f969f; font-size: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.partner-card h3 { margin: 32px 0 8px; font-size: 29px; letter-spacing: -.03em; }
.partner-card p { margin: 0; color: #aebdc2; font-size: 16px; }
.partner-arrow { position: absolute; top: 25px; right: 26px; color: var(--red); font-size: 24px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process-step { padding: 34px 28px 0 0; }
.process-step + .process-step { padding-left: 28px; border-left: 1px solid var(--line); }
.process-step b { display: block; color: var(--red); font-size: 16px; letter-spacing: .16em; }
.process-step h3 { margin: 34px 0 12px; font-size: 22px; line-height: 1.2; }
.process-step p { margin: 0; color: var(--muted); font-size: 16px; }

.cta { position: relative; padding: 110px 0; overflow: hidden; color: white; background: var(--red); }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -100px; top: -210px; border: 100px solid rgba(255,255,255,.1); border-radius: 50%; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; }
.cta h2 { max-width: 760px; margin: 0; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
.cta-side p { margin: 0 0 26px; color: rgba(255,255,255,.83); font-size: 18px; }
.cta .button { color: var(--ink); background: white; }

.site-footer { padding: 56px 0 28px; color: white; background: #0b1116; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 60px; padding-bottom: 46px; }
.footer-brand p { max-width: 430px; color: #899ba3; font-size: 16px; }
.footer-col h3 { margin: 0 0 18px; color: #71858e; font-size: 16px; text-transform: uppercase; letter-spacing: .16em; }
.footer-col a { display: block; margin: 9px 0; color: #d3dee1; font-size: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid #243139; color: #667a83; font-size: 16px; }

.page-content { min-height: 70vh; padding: 150px 0 90px; }
.woocommerce .site-main { padding: 140px 0 80px; width: min(calc(100% - 48px), var(--max)); margin: auto; }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 86px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 24px; color: white; background: var(--ink); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid #28363e; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 160px; }
  .water-visual { display: none; }
  .hero { min-height: 760px; }
  .hero-grid { min-height: 680px; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .focus-panel { grid-template-columns: 1fr; }
  .focus-visual { min-height: 420px; }
  .partner-card, .partner-card.featured { grid-column: span 6; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 42px 0; }
  .process-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .cta-grid, .split-heading { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .header-inner { height: 74px; }
  .site-nav { top: 74px; }
  .brand img { width: 37px; height: 37px; }
  .hero { min-height: 800px; }
  .hero-grid { padding: 130px 0 180px; min-height: 800px; }
  .hero h1 { font-size: 50px; }
  .hero-index .container { grid-template-columns: 1fr; }
  .hero-stat { padding: 9px 0; border-right: 0; }
  .hero-stat + .hero-stat { padding-left: 0; }
  .section { padding: 82px 0; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 320px; }
  .focus-content { padding: 52px 30px; }
  .check-list { grid-template-columns: 1fr; }
  .focus-visual { min-height: 340px; }
  .partners-head { display: block; }
  .partners-head p { margin-top: 24px; }
  .partner-card, .partner-card.featured { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step + .process-step { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .cta { padding: 82px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
}
