/* uphone.ca static site. Brand colours and font from the old rt_protean theme, modern layout. */
@font-face { font-family: "Rubik"; font-weight: 300; font-display: swap; src: url("../fonts/rubik-light-webfont.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("../fonts/rubik-regular-webfont.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url("../fonts/rubik-medium-webfont.woff2") format("woff2"); }

:root {
  --orange: #dd7926;
  --orange-dark: #b85f15;
  --teal: #1e948b;
  --teal-dark: #15706a;
  --ink: #1a1f24;
  --muted: #5d6670;
  --line: #e5e8eb;
  --soft: #f6f8f9;
  --dark: #1f2529;
  --bg: #fff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 4px 16px rgba(16, 24, 32, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 32, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 "Rubik", Helvetica, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--orange-dark); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
strong { font-weight: 500; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 500; color: var(--orange); margin: 0 0 .75rem; }

/* Buttons */
.button { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--orange); transition: background .15s, border-color .15s, transform .15s; }
.button:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.button-lg { padding: 14px 26px; font-size: 1.02rem; }
.button-ghost { background: transparent; border-color: rgba(255, 255, 255, .8); }
.button-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.button-ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-ghost-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.text-link { color: var(--muted); font-size: .92rem; }

/* Header (sticky) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { box-shadow: 0 2px 12px rgba(16, 24, 32, .08); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.logo { margin-right: auto; }
.logo img { display: block; width: 130px; height: auto; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--soft); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--orange-dark); background: #fdf1e7; }
.main-nav a.pbx { border: 1.5px solid var(--teal); color: var(--teal-dark); margin-left: 6px; }
.main-nav a.pbx:hover { background: var(--teal); color: #fff; }
.header-phone { order: 3; text-decoration: none; font-weight: 500; color: #fff; background: var(--orange); padding: 9px 16px; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.header-phone:hover { background: var(--orange-dark); color: #fff; }
.menu-toggle, .menu-button { display: none; }

@media (max-width: 960px) {
  .header-row { min-height: 64px; }
  .logo img { width: 110px; }
  .header-phone { order: 1; padding: 8px 12px; font-size: .88rem; }
  .menu-button { order: 2; display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px 4px; }
  .menu-button span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
  .main-nav { order: 4; display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0 0 12px; }
  .main-nav a { border-radius: 8px; padding: 12px; }
  .main-nav a.pbx { margin: 8px 0 0; text-align: center; }
  .menu-toggle:checked ~ .main-nav { display: flex; }
}
@media (max-width: 380px) { .header-phone { font-size: .8rem; padding: 7px 10px; } .logo img { width: 92px; } }

/* Hero */
.hero { color: #fff; background: linear-gradient(110deg, rgba(14, 40, 44, .92) 0%, rgba(21, 112, 106, .82) 55%, rgba(221, 121, 38, .55) 100%), #15403f url("../img/img-01.jpg") center / cover no-repeat; }
.hero-inner { padding-top: 96px; padding-bottom: 104px; max-width: 1160px; }
.hero .eyebrow { color: #ffd2ad; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 760px; margin-bottom: 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 300; max-width: 620px; margin: 0 0 2rem; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .hero-inner { padding-top: 56px; padding-bottom: 64px; } }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 22px; padding-bottom: 22px; }
.trust-list li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-list strong { color: var(--teal-dark); font-size: 1.05rem; }
.trust-list span { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .trust-list { grid-template-columns: repeat(2, 1fr); row-gap: 16px; } }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Price cards */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--teal); }
.badge { position: absolute; top: -13px; left: 28px; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.price { font-size: 2.6rem; font-weight: 500; color: var(--ink); margin: .3rem 0 1rem; letter-spacing: -.02em; }
.price span { font-size: .95rem; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.checks li { padding: 5px 0 5px 28px; position: relative; color: #333; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #e3f3f1; }
.checks li::after { content: ""; position: absolute; left: 7px; top: 13px; width: 7px; height: 4px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.card-actions { display: flex; align-items: center; gap: 16px; }

/* Case study band */
.case-band { background: var(--soft); }
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.case-text h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.case-text p { color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2.3rem; color: var(--orange); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }
.stat:first-child { grid-column: 1 / -1; background: var(--teal); }
.stat:first-child strong { color: #fff; font-size: 3rem; }
.stat:first-child span { color: #d8f0ed; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; gap: 32px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: #fdf1e7; color: var(--orange); display: grid; place-items: center; margin-bottom: 16px; transition: background .2s, color .2s; }
.feature:hover .icon-wrap { background: var(--orange); color: #fff; }
.feature h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.feature p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; flex: 1; }
.feature .more { color: var(--teal-dark); font-size: .9rem; font-weight: 500; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .features { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; }
  .features::-webkit-scrollbar { display: none; }
  .feature { flex: 0 0 80%; scroll-snap-align: center; }
}

/* Testimonials slider */
.quotes-band { background: var(--teal); color: #fff; padding: 72px 0 56px; }
.quotes-band h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 820px; margin: 0 auto; }
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; padding: 8px 24px; text-align: center; }
.slide blockquote { margin: 0 0 1.2rem; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 300; line-height: 1.55; }
.slide blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .8; color: #ffd2ad; font-family: Georgia, serif; }
.slide figcaption { font-weight: 500; color: #d8f0ed; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; }
.slider-dots button.active { background: #fff; transform: scale(1.2); }

/* Call to action band */
.cta-band { background: #fdf1e7; }
.cta { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { color: var(--muted); margin: 0 0 1.5rem; }
.cta .hero-actions { justify-content: center; }

/* Content pages */
.content { padding-top: 48px; padding-bottom: 72px; max-width: 860px; }
.content h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.content .pricing { margin: 2rem 0; }
.content li { margin: .3rem 0; }
.content h4 { font-size: 1.05rem; font-weight: 500; margin: 1.5rem 0 .5rem; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0 2rem; }
.toc li { margin: 0; }
.toc a { display: inline-block; text-decoration: none; background: var(--soft); border: 1px solid var(--line); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.toc a:hover { border-color: var(--orange); color: var(--orange-dark); }
.guide { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .5rem; }
.guide h2 { color: var(--orange-dark); }
.faq { margin: 0; }
.faq dt { font-weight: 500; margin-top: 1.4rem; font-size: 1.05rem; }
.faq dd { margin: .3rem 0 0; color: #333; }
.doc-list { list-style: none; padding: 0; }
.doc-list li { margin: 0 0 12px; }
.doc-list a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.doc-list a:hover { border-color: var(--orange); color: var(--orange-dark); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1.5rem 0; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.contact-card span { display: block; color: var(--orange-dark); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.contact-card strong { font-size: 1.35rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }

/* Footer */
.site-footer { background: var(--dark); color: #aab3bb; font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 40px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; margin: 0 0 .8rem; }
.footer-links a { display: block; color: #d3d9de; text-decoration: none; padding: 3px 0; }
.footer-links a:hover, .social a:hover { color: var(--orange); }
.footer-copy { align-self: flex-end; }
.footer-copy p { margin: .2rem 0; }
.social a { color: #d3d9de; margin-right: 14px; }
.content.wide { max-width: 1160px; }
.back-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 1.25rem 0 0; font-size: .92rem; }
.back-links a { text-decoration: none; font-weight: 500; color: var(--teal-dark); }
.back-links a:hover { color: var(--orange-dark); }
.guide:target { background: #fdf6ef; border-radius: var(--radius); padding: .5rem 1.25rem 1.25rem; margin-left: -1.25rem; margin-right: -1.25rem; border-top-color: transparent; }
