/* Taskport Website Refactor — New Section Styles
   Supplement to main.css for new components added in the 2026 refactor.
   This file is enqueued separately via functions.php. */

/* ─── Hero Full-Bleed (Homepage) ───────────────────────────────────── */
/* Orange matched to the app (#F97316) — text is white. */
.header__home--fullbleed {
  position: relative;
  padding: 120px 0 50px;
  overflow: hidden;
  background: linear-gradient(160deg, #fb8331 0%, #f97316 52%, #ef6c0c 100%);
}

.header__home--fullbleed .header__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0; /* drop the theme's 75px top margin that stacked with padding */
  height: auto; /* override the theme's fixed 920px so tall content isn't clipped */
}

.header__home--fullbleed .caption {
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 28px;
}

.header__home--fullbleed .caption__title {
  color: #fff;
  font-size: clamp(1.4rem, 8.7vw, 4.2rem) !important; /* +30%, one line (intrinsic ~8.66em) */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  white-space: nowrap;
}

.header__home--fullbleed .caption__desc {
  color: #fff;
  font-size: clamp(0.9rem, 4.55vw, 2rem) !important; /* +~30%, one line (intrinsic ~16.26em) */
  white-space: nowrap;
}

/* CTAs below the animation — same row on desktop, stacked on mobile */
.hero-actions {
  margin-top: 56px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.hero-actions .btn,
.page--features .page__header .btn-container .btn {
  max-width: 320px;
  padding: 0.5rem 1.9rem;  /* reduced height — same size across home + features */
  font-size: 1.05rem;
}

/* Security trust badge below the hero CTAs */
.hero-trust {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
}
.hero-trust .material-symbols-outlined { font-size: 25px; }
.hero-trust__text { text-align: center; line-height: 1.35; }
.hero-trust strong { font-weight: 700; color: #fff; }
a.btn.btn-light.hero-cta-primary,
a.btn.btn-light.hero-cta-primary:hover,
a.btn.btn-light.hero-cta-primary:focus {
  color: #f97316 !important; /* orange label, matched to the app */
  font-weight: 700;
}

/* Trademark mark on the brand logo */
.main-menu .navbar-brand::after {
  content: "\2122"; /* ™ */
  position: absolute;
  left: 172px;
  top: 2px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: #333;
}
.main-menu.theme-dark .navbar-brand::after { color: #fff; }

/* Make the Log In / Sign Up nav actions look like the rest of the menu items
   on every page (both nav themes), not pills. */
.main-menu a.btn.btn-pill {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 22px;
  font-weight: 400;
  padding: 4px 0;
  margin: 0 1rem; /* even spacing, matching the menu items */
  border-radius: 0;
}
.main-menu.theme-light a.btn.btn-pill { color: #202427 !important; } /* dark on light nav */
.main-menu.theme-dark a.btn.btn-pill  { color: #fff !important; }    /* white on orange nav */
.main-menu a.btn.btn-pill:hover,
.main-menu a.btn.btn-pill:focus {
  opacity: 0.82;
  background: transparent !important;
}
/* In the mobile overlay menu, match the 30px / 40px-spaced menu items */
@media (max-width: 991.98px) {
  .main-menu .navbar-collapse a.btn.btn-pill {
    font-size: 30px;
    line-height: 1;
    padding: 0;
    margin: 0 0 40px;
  }
}

/* ── Animated phrase (REQ-HERO-ANIM-002) ── */
.hero__phrase .hero-word {
  display: inline-block;
}
.hero__phrase { color: #fff; }
/* Words simply appear in sequence — no movement, no colour change */
.hero__phrase.is-animating .hero-word {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hero__phrase.is-animating .hero-word.is-on {
  opacity: 1;
}
/* "OR" / "AND" get an underline that reveals left-to-right */
.hero-word--uline {
  position: relative;
  display: inline-block;
}
.hero-word--uline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s ease;
}
.hero-word--uline.is-uline-on::after { transform: scaleX(1); }
/* "OR" -> "AND" flip in the both-mode slot also bounces */
.hero-word.is-flip {
  animation: hero-word-bounce 0.6s ease;
}
@keyframes hero-word-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.45) translateY(-5px); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ── Hero stage — entity column (left) + large device (right) ── */
.hero-stage {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3%;
}

/* Entity drawer icons stacked in a column on the left */
.hero-entities {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hero-entity { display: flex; align-items: center; gap: 12px; }

/* Device area (right) — large, fills the available width */
.hero-device {
  flex: 1 1 auto;
  position: relative;
  max-width: 900px;
}
.hero-screens {
  position: relative;
  width: 100%;
  aspect-ratio: 1.26; /* monitor area incl stand room */
}

.hero-frame {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ── Monitor shell (desktop) — screen + bezel, stand drawn below ── */
.hero-frame--desktop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 13%; /* leave room below for the stand */
  border: 7px solid #1c1c20;
  border-radius: 6px;
  background: #1c1c20;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}
.hero-frame--desktop .hero-screen { border-radius: 2px; }
/* monitor stand (neck + base) — on the device area so it isn't clipped by the screen */
.hero-screens::before,
.hero-screens::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); display: none; }
.hero-stage[data-scene="work"] .hero-screens::after,
.hero-stage[data-scene="together"] .hero-screens::after,
.hero-stage[data-scene="rest"] .hero-screens::after {
  display: block; bottom: 4%; width: 7%; height: 10%; background: linear-gradient(#34343a, #232328);
}
.hero-stage[data-scene="work"] .hero-screens::before,
.hero-stage[data-scene="together"] .hero-screens::before,
.hero-stage[data-scene="rest"] .hero-screens::before {
  display: block; bottom: 1%; width: 22%; height: 2.6%; border-radius: 4px; background: #2a2a30;
}

/* ── Phone shell ── */
.hero-frame--phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 94%;
  aspect-ratio: 1 / 2;
  border: 7px solid #16161b;
  border-radius: 14px;
  background: #16161b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.hero-frame--phone .hero-screen { border-radius: 10px; }

/* Material Symbols helper class (the Google css2 endpoint ships only @font-face) */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ── Entity rows in the left column (icon left, label right) ── */
.hero-entity__icon {
  color: #fff; /* default — white */
  flex: 0 0 auto;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.4s ease;
}
/* Icons take on the Life Mode colour for the active scene (home stays white) */
.hero-stage[data-scene="home"]     .hero-entity__icon { color: #fff; }     /* Home  */
.hero-stage[data-scene="work"]     .hero-entity__icon { color: #2563eb; }  /* Work  */
.hero-stage[data-scene="together"] .hero-entity__icon { color: #14b8a6; }  /* Both  */
.hero-entity__icon .material-symbols-outlined { font-size: 34px; }
.hero-entity__label {
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
/* Which frame is visible per scene */
.hero-stage[data-scene="home"] .hero-frame--phone,
.hero-stage[data-scene="work"] .hero-frame--desktop,
.hero-stage[data-scene="together"] .hero-frame--desktop,
.hero-stage[data-scene="rest"] .hero-frame--desktop { opacity: 1; }

.hero-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top; /* keep the informative top-left; crop bottom-right */
  opacity: 0;
  transition: opacity 0.55s ease;
}
/* Which screenshot is visible per scene */
.hero-stage[data-scene="home"] .hero-screen[data-screen="phone-home"],
.hero-stage[data-scene="work"] .hero-screen[data-screen="desktop-work"],
.hero-stage[data-scene="together"] .hero-screen[data-screen="desktop-both"],
.hero-stage[data-scene="rest"] .hero-screen[data-screen="desktop-both"] { opacity: 1; }

/* ── Emelee — the "AI", centred in the ring; appears on "AI that keeps up for you" ── */
.hero-emelee {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32%;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  perspective: 700px;
}
/* Soft ground shadow, floating a little below her */
.hero-emelee::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17%;
  transform: translateX(-50%);
  width: 56%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.12) 48%, rgba(0,0,0,0) 72%);
  pointer-events: none;
}
.hero-stage[data-scene="emelee"] .hero-emelee { opacity: 1; }
.hero-emelee__img {
  width: 100%;
  height: auto;
  display: block;
}
/* Twirl — Y-axis turn that keeps ~25% thickness (never goes paper-thin) */
.hero-emelee.is-twirl .hero-emelee__img--fold {
  animation: emelee-twirl 1.6s ease-in-out;
}
@keyframes emelee-twirl {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Labeled placeholder fill until real assets land */
.hero-screen.is-placeholder,
.hero-emelee__img.is-placeholder { object-fit: fill; }

@media (max-width: 991px) {
  .header__home--fullbleed {
    padding: 70px 20px 24px;
  }

  .header__home--fullbleed .caption {
    max-width: 100%;
    margin-bottom: 12px;
  }

  .hero-stage { gap: 3%; }
  .hero-entity__label { font-size: 15px; }
  .hero-entity__icon .material-symbols-outlined { font-size: 30px; }

  /* logo shrinks to 140px at this breakpoint — track it with the ™ */
  .main-menu .navbar-brand::after { left: 137px; top: 4px; font-size: 18px; }
}

@media (max-width: 767px) {
  /* stack: device on top, entity icons wrap into rows below */
  .hero-stage { flex-direction: column; gap: 20px; }
  .hero-device { order: 1; width: 100%; max-width: 440px; }
  /* taller area so the phone fills the height; monitor crops bottom-right (keeps top-left) */
  .hero-screens { aspect-ratio: 1; }
  .hero-frame--phone { height: 98%; }
  .hero-entities { order: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  .hero-entity__icon .material-symbols-outlined { font-size: 26px; }
  .hero-entity__label { font-size: 14px; }
  .hero-actions { margin-top: 30px; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__phrase.is-animating .hero-word { opacity: 1; transform: none; }
  .hero-emelee, .hero-screen { transition: none; }
  .hero-emelee.is-twirl .hero-emelee__img--fold { animation: none; }
}

/* Hidden sections — user-stats banner + bottom "Ready to tame the chaos?" CTA */
.section-user-stats,
.section-get-started { display: none !important; }

/* ─── Feature Highlights (Homepage) ────────────────────────────────── */
.section-features-home {
  padding: 80px 0;
}

.block-feature {
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.block-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.block-feature__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d2d2d;
}

.block-feature__desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ─── User Stats ──────────────────────────────────────────────────── */
.section-user-stats {
  padding: 60px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}

.stat-block__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  line-height: 1.2;
}

.stat-block__label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Get Started CTA ─────────────────────────────────────────────── */
.section-get-started {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.section-get-started .section__title {
  color: #fff;
}

.section-get-started .section__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.section-get-started .btn-primary {
  background: #fff;
  color: #667eea;
  border-color: #fff;
}

.section-get-started .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.section-get-started .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.section-get-started .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* ─── Testimonials ────────────────────────────────────────────────── */
.section-testimonials {
  padding: 80px 0;
}

.card-testimonial {
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.card-testimonial__text {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.card-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-testimonial__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.card-testimonial__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.card-testimonial__role {
  font-size: 0.85rem;
  color: #888;
}

/* ─── Features Page — Category Sections ───────────────────────────── */
.features-category {
  padding: 80px 0;
}

.features-category.theme-dark {
  background: #1e1e2e;
  color: #fff;
}

.features-category.theme-dark .section__title {
  color: #fff;
}

.features-category.theme-dark .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.features-category.theme-dark .card-feature {
  background: #2a2a3e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.features-category.theme-dark .card-feature__title {
  color: #fff;
}

.features-category.theme-dark .card-feature__summary {
  color: rgba(255, 255, 255, 0.8);
}

.features-category.theme-dark .card-feature__desc {
  color: rgba(255, 255, 255, 0.6);
}

.card-feature {
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  height: 100%;
  border: 1px solid #eee;
}

.card-feature__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 8px;
}

.card-feature__summary {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 10px;
}

.card-feature__desc {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─── Pricing Page — Plan Cards ───────────────────────────────────── */
.card-plan {
  padding: 32px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-plan--recommended {
  border-color: #667eea;
  box-shadow: 0 8px 40px rgba(102, 126, 234, 0.2);
}

.card-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #667eea;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-plan__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-plan__tagline {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

.card-plan__price {
  margin-bottom: 4px;
}

.card-plan__price .price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2d2d2d;
}

.card-plan__price .price-period {
  font-size: 1rem;
  color: #888;
}

.card-plan__annual {
  font-size: 0.85rem;
  color: #667eea;
  margin-bottom: 20px;
}

.card-plan__cta {
  margin-bottom: 24px;
}

.card-plan__features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.card-plan__features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #444;
}

.card-plan__features li:last-child {
  border-bottom: none;
}

/* ─── Comparison Table ────────────────────────────────────────────── */
.compare-features {
  padding: 80px 0;
  background: #fafbfc;
}

.table-comparison {
  font-size: 0.9rem;
}

.table-comparison thead th {
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #333;
}

.table-comparison tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.table-comparison tbody tr:nth-child(even) {
  background: #f5f6f8;
}

/* ─── Case Studies ────────────────────────────────────────────────── */
.card-case-study {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.card-case-study__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-case-study__body {
  padding: 24px;
}

.card-case-study__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #667eea;
  margin-bottom: 8px;
}

.card-case-study__title a {
  color: #2d2d2d;
  text-decoration: none;
}

.card-case-study__title a:hover {
  color: #667eea;
}

.card-case-study__excerpt {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

/* ─── Section Headers (shared) ────────────────────────────────────── */
.section__header {
  margin-bottom: 20px;
}

.section__title {
  font-weight: 800;
}

.section__subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-top: 8px;
}
