/*
Theme Name: Canada Leaf Studio
Theme URI: https://iptvcanadaleaf.com/
Author: Canada Leaf
Description: A focused liquid-glass landing theme for Canada Leaf.
Version: 1.0.0
Text Domain: canada-leaf-studio
*/

:root {
  --leaf-ink: #071b37;
  --leaf-ink-soft: #30435c;
  --leaf-red: #e20b18;
  --leaf-red-dark: #b90010;
  --leaf-red-bright: #ff3140;
  --leaf-blue: #dff1ff;
  --leaf-white: #ffffff;
  --leaf-line: rgba(255, 255, 255, 0.78);
  --leaf-shadow: 0 24px 70px rgba(35, 91, 145, 0.16);
  --leaf-width: 1480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--leaf-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 18%, rgba(120, 196, 255, 0.26), transparent 31%),
    radial-gradient(circle at 4% 75%, rgba(214, 238, 255, 0.76), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fcff 52%, #fff 100%);
}

.site-header-wrap {
  position: relative;
  z-index: 30;
  padding: 18px 32px 0;
}

.site-header {
  width: min(var(--leaf-width), 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 11px 15px 11px 24px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 255, 0.69)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    0 18px 55px rgba(25, 72, 120, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(134, 190, 231, 0.24);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 38%),
    linear-gradient(145deg, var(--leaf-red-bright), var(--leaf-red-dark));
  box-shadow:
    0 10px 24px rgba(214, 5, 21, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 0 rgba(102, 0, 8, 0.18);
}

.brand-mark svg {
  width: 29px;
  height: 31px;
  display: block;
  fill: currentColor;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
  font-weight: 850;
  letter-spacing: -0.045em;
  font-size: 27px;
}

.brand-copy strong {
  color: var(--leaf-red);
}

.brand-copy small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #6a7c90;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.primary-nav a {
  position: relative;
  padding: 12px 0;
  color: #142842;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--leaf-red);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.glass-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 27px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 39%),
    linear-gradient(135deg, #ff2637 0%, #e40016 54%, #bb0010 100%);
  box-shadow:
    0 14px 32px rgba(212, 0, 18, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -2px 0 rgba(111, 0, 8, 0.22);
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.glass-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px 28% 50% 3px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

.glass-button::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -42%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: rotate(18deg);
  transition: left 520ms ease;
}

.glass-button:hover,
.glass-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(212, 0, 18, 0.33),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -2px 0 rgba(111, 0, 8, 0.22);
}

.glass-button:hover::after,
.glass-button:focus-visible::after {
  left: 118%;
}

.glass-button:active {
  transform: translateY(0) scale(0.985);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(179, 208, 231, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--leaf-ink);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(32, 82, 127, 0.09);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-lines {
  position: relative;
  display: block;
  margin: 0 auto;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before { transform: translateY(-7px); }
.menu-lines::after { transform: translateY(7px); }

.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { transform: rotate(45deg); }
.menu-open .menu-lines::after { transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: 58px 32px 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -6% auto 47%;
  height: 66%;
  border-radius: 48% 0 0 52%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.33), rgba(151, 211, 255, 0.13));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -110px;
  height: 230px;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(143, 205, 248, 0.38), transparent 55%),
    linear-gradient(177deg, transparent 44%, rgba(222, 242, 255, 0.84) 45%, #fff 74%);
  transform: rotate(-1deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--leaf-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(460px, 0.82fr) minmax(600px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 4vw, 76px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 7px 15px 7px 9px;
  margin: 0 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 30px rgba(44, 102, 150, 0.11), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #2d4966;
  font-size: 13px;
  font-weight: 760;
}

.hero-kicker-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--leaf-red-bright), var(--leaf-red-dark));
  box-shadow: 0 6px 13px rgba(210, 0, 18, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.hero-kicker-icon svg {
  width: 14px;
  height: 15px;
  fill: currentColor;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--leaf-ink);
  font-size: clamp(54px, 5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.068em;
  font-weight: 880;
}

.hero h1 span {
  display: block;
  color: var(--leaf-red);
  text-shadow: 0 7px 28px rgba(207, 0, 17, 0.13);
}

.hero-lead {
  max-width: 590px;
  margin: 25px 0 30px;
  color: var(--leaf-ink-soft);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.52;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-actions .glass-button {
  min-width: 238px;
  min-height: 60px;
  border-radius: 21px;
  font-size: 18px;
}

.button-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 20px;
  line-height: 1;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #52677f;
  font-size: 14px;
  font-weight: 700;
}

.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #21a869;
  box-shadow: 0 0 0 5px rgba(33, 168, 105, 0.1);
}

.hero-art {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 19% 8% 7% 5%;
  z-index: -1;
  border-radius: 44% 50% 32% 42%;
  background: radial-gradient(circle, rgba(103, 190, 255, 0.29), rgba(255, 255, 255, 0) 68%);
  filter: blur(26px);
}

.hero-art img {
  display: block;
  width: min(900px, 111%);
  max-width: none;
  height: auto;
  margin-left: -4%;
  filter: drop-shadow(0 30px 34px rgba(31, 80, 124, 0.17));
}

.art-chip {
  position: absolute;
  left: 4%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 59px;
  padding: 10px 17px 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(37, 86, 132, 0.15), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.art-chip-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--leaf-red);
  background: linear-gradient(145deg, #fff, #f4f9fd);
  border: 1px solid rgba(197, 220, 237, 0.6);
  box-shadow: inset 0 1px 0 #fff, 0 7px 16px rgba(36, 84, 123, 0.08);
}

.art-chip-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.art-chip strong,
.art-chip span {
  display: block;
}

.art-chip strong {
  font-size: 14px;
}

.art-chip span {
  margin-top: 2px;
  color: #62758b;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .primary-nav {
    gap: 22px;
  }

  .hero-inner {
    grid-template-columns: minmax(390px, 0.9fr) minmax(490px, 1.1fr);
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.6vw, 70px);
  }

  .hero-art img {
    width: 108%;
  }
}

@media (max-width: 920px) {
  .site-header-wrap {
    padding: 12px 18px 0;
  }

  .site-header {
    min-height: 70px;
    padding: 9px 10px 9px 16px;
    grid-template-columns: 1fr auto;
    border-radius: 22px;
  }

  .primary-nav {
    position: fixed;
    z-index: 40;
    top: 94px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 22px;
    background: rgba(250, 253, 255, 0.92);
    box-shadow: 0 24px 60px rgba(20, 62, 102, 0.2), inset 0 1px 0 #fff;
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .menu-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 13px 15px;
    border-radius: 13px;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: #fff;
  }

  .primary-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .glass-button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
    border-radius: 16px;
  }

  .hero {
    min-height: auto;
    padding: 36px 22px 80px;
  }

  .hero::before {
    inset: 3% -40% auto 3%;
    height: 45%;
  }

  .hero-inner {
    max-width: 720px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-copy {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1,
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    max-width: 660px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    grid-row: 1;
    width: 100%;
    margin: -8px auto -8px;
  }

  .hero-art img {
    width: 108%;
    margin-left: -4%;
  }

  .art-chip {
    left: 4%;
    bottom: 5%;
  }
}

@media (max-width: 640px) {
  .site-header-wrap {
    padding: 10px 10px 0;
  }

  .site-header {
    min-height: 66px;
    padding: 8px 8px 8px 12px;
    border-radius: 20px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 14px;
  }

  .brand-mark svg {
    width: 25px;
    height: 27px;
  }

  .brand-copy {
    gap: 5px;
    font-size: 21px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions .glass-button {
    display: none;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .primary-nav {
    top: 84px;
    left: 10px;
    right: 10px;
  }

  .hero {
    padding: 20px 18px 68px;
  }

  .hero-inner {
    gap: 7px;
  }

  .hero-art {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 0;
  }

  .hero-art img {
    width: 100%;
    margin: 0;
    filter: drop-shadow(0 18px 24px rgba(31, 80, 124, 0.15));
  }

  .art-chip {
    display: none;
  }

  .hero-kicker {
    min-height: 35px;
    padding: 6px 13px 6px 7px;
    margin-bottom: 17px;
    font-size: 12px;
  }

  .hero-kicker-icon {
    width: 23px;
    height: 23px;
    border-radius: 8px;
  }

  .hero h1 {
    max-width: 440px;
    font-size: clamp(43px, 12.4vw, 58px);
    line-height: 0.99;
    letter-spacing: -0.065em;
  }

  .hero-lead {
    max-width: 420px;
    margin-top: 19px;
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.47;
  }

  .hero-actions {
    display: grid;
    justify-items: center;
    gap: 15px;
  }

  .hero-actions .glass-button {
    width: min(310px, 100%);
    min-width: 0;
    min-height: 58px;
    font-size: 17px;
  }

  .hero-note {
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .brand-copy {
    font-size: 19px;
  }

  .hero h1 {
    font-size: 41px;
  }

  .hero-lead {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
