/*
Theme Name: Phone by Steinmetz Ventures
Description: Custom block theme for phone.steinmetz.ltd — a US Mobile reseller. Built to drive plan subscriptions with a live savings calculator and a network-trio brand device.
Version: 1.0.0
Author: Steinmetz Ventures
Requires at least: 6.4
Requires PHP: 7.4
*/

/* ---------------------------------------------------------------------
   Fonts (self-hosted references are enqueued in functions.php; this
   file only carries layout/component CSS that theme.json can't express)
------------------------------------------------------------------------ */

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--wp--preset--color--ink);
}

a {
  text-decoration: none;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.section-head .eyebrow {
  justify-content: center;
  display: flex;
}

.section-head p {
  color: var(--wp--preset--color--paper-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

::selection {
  background: var(--wp--preset--color--go);
  color: var(--wp--preset--color--ink);
}

:focus-visible {
  outline: 2px solid var(--wp--preset--color--go);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------
   Buttons
------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--wp--preset--color--go);
  color: var(--wp--preset--color--ink) !important;
}

.btn--primary:hover {
  background: #4fe3ac;
}

.btn--ghost {
  background: transparent;
  border-color: var(--wp--preset--color--ink-line);
  color: var(--wp--preset--color--paper) !important;
}

.btn--ghost:hover {
  border-color: var(--wp--preset--color--paper-muted);
}

/* ---------------------------------------------------------------------
   Header
------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wp--preset--color--ink-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.site-header .brand {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wp--preset--color--paper) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .brand__mark {
  display: inline-flex;
  gap: 3px;
}

.site-header .brand__mark span {
  width: 5px;
  border-radius: 2px;
  display: block;
}

.site-header .brand__mark span:nth-child(1) { height: 10px; background: var(--wp--preset--color--network-a); }
.site-header .brand__mark span:nth-child(2) { height: 16px; background: var(--wp--preset--color--network-b); }
.site-header .brand__mark span:nth-child(3) { height: 22px; background: var(--wp--preset--color--network-c); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--wp--preset--color--paper-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.primary-nav a:hover {
  color: var(--wp--preset--color--paper) !important;
}

.nav-toggle {
  display: none;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-toggle__icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wp--preset--color--paper);
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--wp--preset--color--paper);
}

.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }

@media (max-width: 480px) {
  .brand__sub {
    display: none;
  }
}

@media (max-width: 780px) {
  .primary-nav > ul,
  .site-header .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[open] .mobile-menu {
    display: flex;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
    list-style: none;
  }

  .mobile-menu a {
    color: var(--wp--preset--color--paper) !important;
    font-weight: 500;
  }
}

@media (min-width: 781px) {
  .nav-toggle {
    display: none !important;
  }
}

/* ---------------------------------------------------------------------
   Hero + network badge
------------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  background-image: var(--wp--preset--gradient--network-glow);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--go);
  margin-bottom: 1.25rem;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--wp--preset--color--paper-muted);
  max-width: 34em;
  margin: 1.25rem 0 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--wp--preset--color--paper-muted);
}

.network-dots {
  display: inline-flex;
  gap: 0.4rem;
}

.network-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.network-dots span:nth-child(1) { background: var(--wp--preset--color--network-a); }
.network-dots span:nth-child(2) { background: var(--wp--preset--color--network-b); }
.network-dots span:nth-child(3) { background: var(--wp--preset--color--network-c); }

/* Savings calculator */

.calculator {
  background: var(--wp--preset--color--ink-raised);
  border: 1px solid var(--wp--preset--color--ink-line);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.calculator__label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--paper-muted);
  margin-bottom: 0.5rem;
}

.calculator__bill {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--wp--preset--color--paper);
  margin-bottom: 0.75rem;
}

.calculator input[type="range"] {
  width: 100%;
  accent-color: var(--wp--preset--color--go);
  margin-bottom: 1.5rem;
  height: 4px;
}

.calculator__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--wp--preset--color--ink-line);
}

.calculator__result-label {
  font-size: 0.8rem;
  color: var(--wp--preset--color--paper-muted);
  margin-bottom: 0.35rem;
}

.calculator__result-value {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 1.6rem;
  font-weight: 700;
}

.calculator__result-value--you-pay {
  color: var(--wp--preset--color--paper);
}

.calculator__result-value--you-save {
  color: var(--wp--preset--color--go);
}

.calculator__foot {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--wp--preset--color--paper-muted);
}

/* ---------------------------------------------------------------------
   Trust strip
------------------------------------------------------------------------ */

.trust-strip {
  border-top: 1px solid var(--wp--preset--color--ink-line);
  border-bottom: 1px solid var(--wp--preset--color--ink-line);
  padding: 1.5rem 0;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--wp--preset--color--paper-muted);
  font-size: 0.9rem;
}

.trust-strip__inner strong {
  color: var(--wp--preset--color--paper);
}

/* ---------------------------------------------------------------------
   Plan cards
------------------------------------------------------------------------ */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  position: relative;
  background: var(--wp--preset--color--ink-raised);
  border: 1px solid var(--wp--preset--color--ink-line);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--wp--preset--color--go);
}

.plan-card--featured {
  border-color: var(--wp--preset--color--go);
  box-shadow: 0 30px 60px -30px rgba(52, 211, 153, 0.25);
}

.plan-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 1.75rem;
  background: var(--wp--preset--color--go);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}

.plan-card__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.plan-card__tagline {
  color: var(--wp--preset--color--paper-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.plan-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  font-family: var(--wp--preset--font-family--mono);
}

.plan-card__price-from {
  font-size: 0.85rem;
  color: var(--wp--preset--color--paper-muted);
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--wp--preset--color--paper);
}

.plan-card__per {
  color: var(--wp--preset--color--paper-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.plan-card__features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.plan-card__features li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--wp--preset--color--paper);
}

.plan-card__features li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.55rem;
  background: var(--wp--preset--color--go);
}

.plan-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--wp--preset--color--go);
  color: var(--wp--preset--color--ink) !important;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.plan-cta:hover {
  background: #4fe3ac;
  transform: translateY(-2px);
}

.plan-card--ghost .plan-cta {
  background: transparent;
  border: 1px solid var(--wp--preset--color--ink-line);
  color: var(--wp--preset--color--paper) !important;
}

.plan-card--ghost .plan-cta:hover {
  border-color: var(--wp--preset--color--go);
}

.plans-footnote {
  text-align: center;
  color: var(--wp--preset--color--paper-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------------
   Travel eSIM teaser
------------------------------------------------------------------------ */

.destination-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 46em;
}

.destination-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--wp--preset--color--ink-raised);
  border: 1px solid var(--wp--preset--color--ink-line);
  color: var(--wp--preset--color--paper);
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease);
}

.destination-chip:hover {
  border-color: var(--wp--preset--color--go);
}

.destination-chip--more {
  color: var(--wp--preset--color--paper-muted);
  border-style: dashed;
}

.esim-teaser {
  text-align: center;
}

/* ---------------------------------------------------------------------
   How it works
------------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: 3rem;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.95rem;
  color: var(--wp--preset--color--go);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin-bottom: 0.6rem;
}

.step p {
  color: var(--wp--preset--color--paper-muted);
}

/* ---------------------------------------------------------------------
   FAQ
------------------------------------------------------------------------ */

.faq-item {
  border-bottom: 1px solid var(--wp--preset--color--ink-line);
  padding: 1.25rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--wp--preset--color--go);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--wp--preset--color--paper-muted);
  margin-top: 0.9rem;
  max-width: 60em;
}

/* ---------------------------------------------------------------------
   Final CTA banner
------------------------------------------------------------------------ */

.cta-banner {
  background: var(--wp--preset--color--ink-raised);
  border: 1px solid var(--wp--preset--color--ink-line);
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background-image: var(--wp--preset--gradient--network-glow);
}

.cta-banner .btn {
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------------
   Footer
------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--wp--preset--color--ink-line);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand p {
  color: var(--wp--preset--color--paper-muted);
  max-width: 26em;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav a {
  color: var(--wp--preset--color--paper-muted) !important;
  font-size: 0.9rem;
}

.footer__nav a:hover {
  color: var(--wp--preset--color--paper) !important;
}

.footer__bottom {
  border-top: 1px solid var(--wp--preset--color--ink-line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--wp--preset--color--paper-muted);
}

/* ---------------------------------------------------------------------
   Block conversion compatibility (2026-09-11)
   Core Button/Navigation blocks render markup one level deeper than the
   old hand-coded <a class="btn"> / <li><a> markup did. These rules move
   the existing visual treatment onto the actual rendered nodes so the
   design is unchanged after converting to native blocks.
------------------------------------------------------------------------- */

.wp-block-button.btn { display: inline-flex; }

.wp-block-button.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.wp-block-button.btn .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.wp-block-button.btn--primary .wp-block-button__link {
  background: var(--wp--preset--color--go);
  color: var(--wp--preset--color--ink) !important;
}

.wp-block-button.btn--primary .wp-block-button__link:hover {
  background: #4fe3ac;
}

.wp-block-button.btn--ghost .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--ink-line);
  color: var(--wp--preset--color--paper) !important;
}

.wp-block-button.btn--ghost .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--paper-muted);
}

/* Primary nav: core/navigation renders nav-item__content anchors instead
   of a flat <li><a>. Reapply the same spacing/color/hover treatment. */

.primary-nav.wp-block-navigation {
  gap: 2rem;
}

.primary-nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--paper-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  padding: 0;
}

.primary-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--paper) !important;
}

.primary-nav .wp-block-navigation__responsive-container-open {
  color: var(--wp--preset--color--paper);
}

@media (max-width: 780px) {
  .site-header .header-cta {
    display: none;
  }
}

/* Homepage product grids (Devices / Accessories sections) — dark-theme
   card treatment to match the rest of the marketing page instead of
   WooCommerce's unstyled default. */

.section ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.section ul.products li.product {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--wp--preset--color--ink-raised);
  border: 1px solid var(--wp--preset--color--ink-line);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.section ul.products li.product:hover {
  transform: translateY(-6px);
}

.section ul.products li.product img {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.section ul.products li.product .woocommerce-loop-product__title,
.section ul.products li.product h2 {
  color: var(--wp--preset--color--paper);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.section ul.products li.product .price {
  color: var(--wp--preset--color--paper-muted);
  font-size: 0.95rem;
}

.section ul.products li.product .button {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--wp--preset--color--go);
  color: var(--wp--preset--color--ink) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Header CTA button: shrink to ~half size so header fits on one line (2026-09-11) */
.site-header .header-cta .wp-block-button__link {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  gap: 0.3rem;
}

/* Primary nav: tighten gap and force single row so 7 items fit without
   wrapping "Log In" to a second line (2026-09-11) */
.primary-nav.wp-block-navigation {
  gap: 1.1rem;
  flex-wrap: nowrap;
}

.primary-nav .wp-block-navigation__container {
  flex-wrap: nowrap;
}

/* Shrink homepage product grid cards (Devices/Accessories) so they feel
   less oversized/in-your-face (2026-09-14) */
.section ul.products {
  gap: 1rem;
}

.section ul.products li.product {
  flex: 1 1 160px;
  max-width: 190px;
  padding: 1rem;
  border-radius: 16px;
}

.section ul.products li.product img {
  margin-bottom: 0.65rem;
}

.section ul.products li.product .woocommerce-loop-product__title,
.section ul.products li.product h2 {
  font-size: 0.85rem;
  margin: 0 0 0.3rem;
}

.section ul.products li.product .price {
  font-size: 0.8rem;
}

.section ul.products li.product .button {
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Shop/category archive pages (WooCommerce Product Collection block) — give
   product tiles the same card treatment as the rest of the site instead of
   floating bare on the page background (2026-09-15) */
.wc-block-product-template .wc-block-product {
  background: var(--wp--preset--color--ink-raised);
  border: 1px solid var(--wp--preset--color--ink-line);
  border-radius: 16px;
  padding: 1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.wc-block-product-template .wc-block-product:hover {
  transform: translateY(-4px);
}

.wc-block-product-template .wc-block-components-product-image img {
  border-radius: 10px;
}

.wc-block-product-template .wp-block-post-title {
  color: var(--wp--preset--color--paper);
  font-size: 1rem;
}

.wc-block-product-template .wp-block-post-title a {
  color: inherit;
}

/* Form selects (WooCommerce variation dropdowns, etc.) were unstyled,
   inheriting black text with a transparent background over the dark page
   -- unreadable, and native dropdown popups rendered dark-on-dark
   (2026-09-15). */
select {
  background-color: var(--wp--preset--color--ink-raised);
  color: var(--wp--preset--color--paper);
  border: 1px solid var(--wp--preset--color--ink-line);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  color-scheme: dark;
}

select:focus {
  outline: 2px solid var(--wp--preset--color--go);
  outline-offset: 1px;
}

select option {
  background-color: var(--wp--preset--color--ink-raised);
  color: var(--wp--preset--color--paper);
}
