/*
Theme Name: TradeFish Astra Child
Theme URI: https://tradefish.org/
Description: Astra child theme optimized for TradeFish seafood matching, trusted transaction, buyer/seller guide pages, editable landing copy, front registration, and member mypage.
Author: CERTIFIED, INC.
Template: astra
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tradefish-astra-child
*/

:root {
  --tf-navy: #061B2B;
  --tf-blue: #0B4E73;
  --tf-aqua: #12A3B8;
  --tf-sea: #E9F8FA;
  --tf-ice: #F7FBFC;
  --tf-ink: #102331;
  --tf-muted: #647889;
  --tf-line: rgba(6, 27, 43, .12);
  --tf-gold: #C58A2A;
  --tf-radius-lg: 28px;
  --tf-radius-md: 18px;
  --tf-shadow: 0 18px 55px rgba(6, 27, 43, .12);
  --tf-max: 1180px;
}

body {
  color: var(--tf-ink);
  background: #ffffff;
}

body.tradefish-design-refresh .site-content,
body.tradefish-design-refresh.ast-separate-container .ast-article-single,
body.tradefish-design-refresh.ast-separate-container .ast-article-post {
  background: var(--tf-ice);
}

body.tradefish-design-refresh .entry-header,
body.tradefish-design-refresh .ast-single-post .entry-header.ast-header-without-markup {
  max-width: var(--tf-max);
  margin-left: auto;
  margin-right: auto;
}

body.tradefish-design-refresh .entry-title {
  color: var(--tf-navy);
  letter-spacing: -.04em;
}

body.tradefish-design-refresh .entry-content {
  color: var(--tf-ink);
}

body.tradefish-design-refresh a {
  text-underline-offset: 3px;
}

.tfc-wrap {
  --tfc-section-pad: clamp(56px, 8vw, 112px);
  color: var(--tf-ink);
  background: var(--tf-ice);
  font-feature-settings: "palt" 1;
}

.tfc-section {
  padding: var(--tfc-section-pad) clamp(18px, 4vw, 48px);
}

.tfc-inner {
  max-width: var(--tf-max);
  margin: 0 auto;
}

.tfc-eyebrow {
  display: inline-flex;
  gap: .5em;
  align-items: center;
  color: var(--tf-aqua);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tfc-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.tfc-hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 148px) clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 82% 16%, rgba(18, 163, 184, .22), transparent 34%),
    linear-gradient(135deg, #061B2B 0%, #0B354C 48%, #0B4E73 100%);
  color: #ffffff;
}

.tfc-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% 36%;
  height: 66%;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px 999px 0 0;
  transform: rotate(-7deg);
}

.tfc-hero .tfc-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.tfc-hero h1 {
  color: #ffffff;
  margin: 18px 0 22px;
  font-size: clamp(2.35rem, 5.5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 900;
}

.tfc-hero-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.75vw, 1.32rem);
  line-height: 1.9;
}

.tfc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tfc-btn,
.tfc-wrap a.tfc-btn,
.entry-content .tfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--tf-aqua);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 12px 28px rgba(18, 163, 184, .25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tfc-btn:hover,
.tfc-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 163, 184, .35);
  background: #0F8EA5;
}

.tfc-btn.tfc-btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .38);
  color: #ffffff !important;
  box-shadow: none;
}

.tfc-btn.tfc-btn-light {
  background: #ffffff;
  color: var(--tf-navy) !important;
  box-shadow: var(--tf-shadow);
}

.tfc-hero-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px);
  border-radius: var(--tf-radius-lg);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}

.tfc-hero-card h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.tfc-fee-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .13);
}

.tfc-fee-rate {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--tf-navy);
  font-size: 1.6rem;
  font-weight: 900;
}

.tfc-hero-card p,
.tfc-fee-box p {
  color: rgba(255,255,255,.86);
  margin: 0;
  line-height: 1.8;
}

.tfc-stat-grid,
.tfc-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tfc-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tfc-card,
.tfc-step,
.tfc-panel {
  background: #ffffff;
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 8px 28px rgba(6, 27, 43, .06);
}

.tfc-card h3,
.tfc-step h3,
.tfc-panel h3 {
  margin: 0 0 10px;
  color: var(--tf-navy);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -.03em;
}

.tfc-card p,
.tfc-step p,
.tfc-panel p,
.tfc-list li {
  color: var(--tf-muted);
  line-height: 1.8;
}

.tfc-section-title {
  max-width: 820px;
  margin-bottom: 34px;
}

.tfc-section-title h2 {
  margin: 12px 0 12px;
  color: var(--tf-navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.06em;
}

.tfc-section-title p {
  color: var(--tf-muted);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.9;
}

.tfc-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.tfc-dark {
  background: var(--tf-navy);
  color: #ffffff;
}

.tfc-dark .tfc-section-title h2,
.tfc-dark .tfc-card h3,
.tfc-dark .tfc-panel h3 {
  color: #ffffff;
}

.tfc-dark .tfc-section-title p,
.tfc-dark .tfc-card p,
.tfc-dark .tfc-panel p,
.tfc-dark .tfc-list li {
  color: rgba(255,255,255,.74);
}

.tfc-dark .tfc-card,
.tfc-dark .tfc-panel {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.13);
  box-shadow: none;
}

.tfc-steps {
  display: grid;
  gap: 14px;
  counter-reset: tfcstep;
}

.tfc-step {
  position: relative;
  padding-left: clamp(74px, 8vw, 96px);
}

.tfc-step::before {
  counter-increment: tfcstep;
  content: counter(tfcstep, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tf-sea);
  color: var(--tf-blue);
  font-weight: 900;
}

.tfc-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tfc-kpi strong {
  color: var(--tf-navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.tfc-kpi span {
  color: var(--tf-muted);
  line-height: 1.6;
}

.tfc-notice {
  border-left: 4px solid var(--tf-aqua);
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 0 18px 18px 0;
  box-shadow: 0 8px 24px rgba(6,27,43,.06);
}

.tfc-list {
  margin: 0;
  padding-left: 1.2em;
}

.tfc-list li + li {
  margin-top: 8px;
}

.tfc-final-cta {
  background:
    radial-gradient(circle at 16% 0%, rgba(18, 163, 184, .22), transparent 34%),
    linear-gradient(135deg, var(--tf-navy), var(--tf-blue));
  color: #ffffff;
  border-radius: var(--tf-radius-lg);
  padding: clamp(32px, 6vw, 64px);
  overflow: hidden;
}

.tfc-final-cta h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.06em;
}

.tfc-final-cta p {
  color: rgba(255,255,255,.82);
  max-width: 760px;
  line-height: 1.9;
}

/* Plugin shortcode compatibility */
.tradefish-demo-wrap,
.tradefish-guide-wrap,
.tradefish-homepage-wrap {
  max-width: var(--tf-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) clamp(18px, 3vw, 28px);
}

.tradefish-demo-wrap .tradefish-demo-grid,
.tradefish-homepage-wrap .tradefish-home-grid {
  display: grid;
  gap: 18px;
}

.tradefish-demo-wrap .tradefish-panel,
.tradefish-homepage-wrap .tradefish-home-card,
.tradefish-demo-wrap .tradefish-demo-card {
  border-radius: var(--tf-radius-md) !important;
  border: 1px solid var(--tf-line) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 28px rgba(6,27,43,.06) !important;
}

/* Posts and archive polish */
.blog.tradefish-design-refresh .ast-article-post,
.archive.tradefish-design-refresh .ast-article-post,
.search.tradefish-design-refresh .ast-article-post {
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tf-line);
  box-shadow: 0 8px 28px rgba(6,27,43,.06);
}

.blog.tradefish-design-refresh .entry-title a,
.archive.tradefish-design-refresh .entry-title a,
.search.tradefish-design-refresh .entry-title a {
  color: var(--tf-navy);
  text-decoration: none;
}

@media (max-width: 921px) {
  .tfc-hero .tfc-inner,
  .tfc-split {
    grid-template-columns: 1fr;
  }
  .tfc-stat-grid,
  .tfc-card-grid,
  .tfc-card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tfc-hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .tfc-stat-grid,
  .tfc-card-grid,
  .tfc-card-grid.three {
    grid-template-columns: 1fr;
  }
  .tfc-cta-row {
    flex-direction: column;
  }
  .tfc-btn {
    width: 100%;
  }
  .tfc-step {
    padding-left: 22px;
    padding-top: 82px;
  }
  .tfc-step::before {
    left: 22px;
  }
}

/* v1.1.1 registration, login, and mypage */
.tfc-register-band {
  background:
    radial-gradient(circle at 10% 0%, rgba(18, 163, 184, .14), transparent 30%),
    linear-gradient(180deg, #F7FBFC 0%, #E9F8FA 100%);
}

.tfc-form-title {
  margin-bottom: 24px;
}

.tfc-register-form,
.tfc-login-panel,
.tfc-account-card {
  position: relative;
}

.tfc-form {
  display: grid;
  gap: 16px;
}

.tfc-form label,
.tfc-login-panel label {
  display: grid;
  gap: 7px;
  color: var(--tf-navy);
  font-weight: 800;
}

.tfc-form input[type="text"],
.tfc-form input[type="email"],
.tfc-form input[type="password"],
.tfc-login-panel input[type="text"],
.tfc-login-panel input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--tf-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--tf-ink);
  box-shadow: 0 4px 14px rgba(6, 27, 43, .04) inset;
}

.tfc-form input:focus,
.tfc-login-panel input:focus {
  outline: 2px solid rgba(18, 163, 184, .24);
  border-color: rgba(18, 163, 184, .7);
}

.tfc-form small,
.tfc-form-foot {
  color: var(--tf-muted);
  font-size: .92rem;
  line-height: 1.7;
}

.tfc-radio-cards {
  display: grid;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.tfc-radio-cards legend {
  margin-bottom: 8px;
  color: var(--tf-navy);
  font-weight: 900;
}

.tfc-radio-cards label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--tf-line);
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
}

.tfc-radio-cards label:has(input:checked) {
  border-color: var(--tf-aqua);
  background: var(--tf-sea);
}

.tfc-checkbox {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 10px !important;
  font-weight: 700 !important;
  color: var(--tf-muted) !important;
}

.tfc-checkbox input {
  margin-top: .35em;
}

.tfc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tfc-form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.7;
}

.tfc-message-success {
  color: #0E5B3D;
  background: #EAF8F1;
  border: 1px solid rgba(14, 91, 61, .18);
}

.tfc-message-error {
  color: #8A1F1F;
  background: #FFF0F0;
  border: 1px solid rgba(138, 31, 31, .18);
}

.tfc-mypage .tfc-compact-section {
  padding-top: clamp(28px, 4vw, 54px);
  padding-bottom: clamp(28px, 4vw, 54px);
}

.tfc-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

.tfc-status-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--tf-ice);
  border: 1px solid var(--tf-line);
}

.tfc-status-badge span {
  color: var(--tf-muted);
  font-weight: 800;
}

.tfc-status-badge strong {
  color: var(--tf-navy);
  font-weight: 900;
}

.tfc-status-badge.is-ok {
  background: #EAF8F1;
}

.tfc-login-panel .login-username,
.tfc-login-panel .login-password,
.tfc-login-panel .login-remember,
.tfc-login-panel .login-submit {
  margin: 0 0 14px;
}

.tfc-login-panel .button-primary {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--tf-aqua);
  color: #ffffff;
  font-weight: 900;
}

@media (max-width: 640px) {
  .tfc-status-badge {
    align-items: flex-start;
    flex-direction: column;
  }
}
