/*
Theme Name: Euro Vinyl
Author: Extanet
Description: Custom one-page theme for Euro Vinyl Windows & Doors. Canadian windows and doors for a modern world.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: euro-vinyl
*/
/* ------------------------------------------------------------
   Image slots: replace any gradient with url("images/your-file.jpg")
   ------------------------------------------------------------ */
:root {
  --img-hero: linear-gradient(180deg, #8a93ad 0%, #5d6479 35%, #2c2f3a 70%, #c9ccd6 100%);
  --img-about: linear-gradient(180deg, #3d78c4 0%, #8bb4e0 45%, #3a3a40 60%, #d9a85a 85%);
  --img-tilt: linear-gradient(160deg, #cfc9c0, #5b6670 60%, #2a2f34);
  --img-casement: linear-gradient(160deg, #d9d4cc, #7f9a7e 55%, #3d453a);
  --img-hung: linear-gradient(160deg, #cdc6bb, #6c8570 55%, #2d3530);
  --img-patio: linear-gradient(160deg, #a9c9e6, #6f9a74 55%, #3a4a3b);
  --img-entry: linear-gradient(160deg, #d8d4cd, #b07a45 55%, #5a3a1f);
  --img-solutions: linear-gradient(180deg, #9cc0e6 0%, #c4cbd2 35%, #8a4f3c 60%, #3b4a3a 100%);
  --img-rehau: linear-gradient(135deg, #d9dce0 0%, #6b6d70 40%, #3a3b3d 100%);
  --img-projects: linear-gradient(90deg, #14181f 0%, #1f2a2a 35%, #6b5a3e 65%, #2a3a32 100%);

  --ink: #1a2230;
  --muted: #5b6270;
  --bg-soft: #f4f4f4;
  --navy: #151b27;
  --header-h: 62px;
  --pad: clamp(24px, 6vw, 48px);
  --font: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-weight: 300; line-height: 1.15; }
p { margin: 0; }

/* image slots */
.img-hero { background-image: url('img/hero.jpg'); }
.img-about { background-image: url('img/about.jpg'); }
.img-tilt { background-image: url('img/tilt_turn_window_500x500.jpg'); }
.img-casement { background-image: url('img/casement_awning_window_500x500.jpg'); }
.img-hung { background-image: url('img/hung_slider_window_500x500.jpg'); }
.img-patio { background-image: url('img/patio_doors_500x500.jpg'); }
.img-entry { background-image: url('img/entry_door_500x500.jpg'); }
.img-solutions { background-image: url('img/solutions.jpg'); }
.img-rehau { background-image: url('img/rehau.jpg'); }
.img-projects { background-image: url('img/projects.jpg'); }
.hero, .split-img, .card, .projects { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5.5vw, 44px);
  background: rgba(255,255,255,.32); backdrop-filter: blur(6px);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 1px 12px rgba(0,0,0,.08); }
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 24px; font-weight: 400; letter-spacing: .04em; }
.logo-sub { font-size: 8.5px; letter-spacing: .32em; margin-top: 4px; }
.main-nav { display: flex; gap: clamp(20px, 3.4vw, 42px); font-size: 12px; }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a.active { font-weight: 500; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* shared text styles */
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow.light { color: rgba(255,255,255,.8); }
h2 { font-size: clamp(28px, 3.6vw, 36px); }
.body { font-size: 16px; line-height: 1.6; color: var(--muted); margin-top: 22px; max-width: 360px; }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: gap .25s; }
.link-arrow:hover { gap: 22px; }
.link-arrow.light { color: #fff; }

/* hero */
.hero { position: relative; min-height: clamp(460px, 48.5vw, 680px); display: flex; align-items: center; padding: var(--header-h) var(--pad) 0; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 65%); }
.hero-content { position: relative; margin-top: 36px; }
.hero h1 { font-size: clamp(34px, 5vw, 50px); }
.hero p { margin-top: 16px; font-size: 14.5px; line-height: 1.45; }
.hero .link-arrow { margin-top: 44px; font-size: 10px; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.split-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 56px var(--pad); }
.split-img { min-height: 320px; }
.about { grid-template-columns: 47% 53%; min-height: 380px; margin-top: 6px; }
.about .split-text { padding-left: clamp(24px, 6.2vw, 50px); }
.solutions { grid-template-columns: 68% 32%; background: var(--bg-soft); }
.solutions .split-text { padding: 56px clamp(24px, 3vw, 36px); }
.solutions .body { max-width: 100%; }
.technology { grid-template-columns: 62% 38%; min-height: 270px; margin-top: 6px; }
.technology .split-img { min-height: 270px; }
.technology .split-text { padding-left: clamp(24px, 4vw, 40px); }
.technology h2, .solutions h2 { font-size: clamp(26px, 3vw, 31px); }
.technology .body { max-width: 330px; }

/* systems */
.systems { background: var(--bg-soft); padding: 22px 20px 22px; margin-top: 6px; }
.systems .eyebrow { margin: 0 0 8px 13px; letter-spacing: .16em; }
.systems h2 { font-size: clamp(26px, 3.2vw, 31px); margin: 0 0 14px 13px; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.card { position: relative; aspect-ratio: 1 / 1.38; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 13px; color: #fff; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65)); transition: opacity .3s; }
.card::after { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; transition: transform .6s; z-index: 0; }
.card::before, .card > span { position: relative; z-index: 2; }
.card::before { position: absolute; }
.card:hover::after { transform: scale(1.06); }
.card-label { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.card-arrow { font-size: 16px; transition: transform .25s; }
.card:hover .card-arrow { transform: translateX(4px); }

/* projects */
.projects { position: relative; min-height: clamp(260px, 28vw, 380px); display: flex; align-items: center; padding: 40px var(--pad); color: #fff; margin-top: 6px; }
.projects::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,20,.7), rgba(10,14,20,0) 60%); }
.projects-content { position: relative; }
.projects h2 { font-size: clamp(28px, 3.4vw, 33px); }
.projects .body { color: rgba(255,255,255,.9); font-size: 13.5px; max-width: 290px; margin-top: 16px; }
.projects .link-arrow { margin-top: 16px; }

/* contact */
.cta { background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px var(--pad); }
.cta h2 { font-size: clamp(26px, 3vw, 29px); }
.cta .eyebrow { margin-bottom: 12px; }
.cta .body { max-width: 380px; margin-top: 10px; font-size: 13px; color: #444; }
.btn-outline { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 158px; padding: 15px 22px; border: 1px solid var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; background: #fff; transition: background .25s, color .25s; margin-right: clamp(0px, 6vw, 50px); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* footer */
.site-footer { background: var(--navy); color: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; padding: 28px var(--pad) 26px; }
.site-footer .logo-main { font-size: 22px; }
.footer-nav { display: flex; gap: 22px; font-size: 12px; justify-content: center; }
.footer-nav a { opacity: .85; } .footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-contact { font-style: normal; font-size: 12px; line-height: 1.7; text-align: right; opacity: .9; }
.copyright { grid-column: 1 / -1; font-size: 12px; opacity: .75; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split, .about, .solutions, .technology { grid-template-columns: 1fr; }
  .solutions .split-img, .technology .split-img { order: -1; }
  .about .split-img { order: -1; }
  .split-img { min-height: 260px; }
  .body { max-width: 520px !important; }
  .cta { flex-direction: column; align-items: flex-start; }
  .btn-outline { margin-right: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; flex-wrap: wrap; }
  .footer-contact { text-align: left; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-header { background: rgba(255,255,255,.95); }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 24px 16px; box-shadow: 0 8px 16px rgba(0,0,0,.08); transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; font-size: 13px; }
  .main-nav.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #eee; }
  .main-nav a::after { display: none; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* WordPress additions */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.page-content { max-width: 800px; margin: 0 auto; padding: calc(var(--header-h) + 60px) var(--pad) 80px; }
.page-content .entry { margin-bottom: 48px; }
.entry-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 20px; }
.entry-content { font-size: 15px; line-height: 1.7; color: var(--muted); }
.entry-content img { max-width: 100%; height: auto; }