/* ============================================================
   KAPITAN FROZEN — Main Stylesheet
   Twin Win Frozen Seafood Sdn Bhd
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0b2d4e;
  --blue:   #1a5f9c;
  --teal:   #0e8fa0;
  --teal-d: #0a7a8a;
  --ice:    #e8f4f8;
  --gold:   #c9922a;
  --gold-d: #b07a1e;
  --white:  #ffffff;
  --g1:     #f4f7fa;
  --g2:     #e2e8f0;
  --g3:     #94a3b8;
  --g4:     #475569;
  --text:   #1e293b;
  --r:      8px;
  --shadow: 0 2px 12px rgba(11,45,78,0.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal); }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { color: var(--g4); line-height: 1.7; }

.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.section-title { margin-bottom: 12px; }
.section-desc  { max-width: 560px; color: var(--g4); margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r);
  font-weight: 600; font-size: .92rem;
  cursor: pointer; border: none; transition: all .18s;
  text-decoration: none;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-primary   { background: var(--teal);  color: var(--white); }
.btn-primary:hover { background: var(--teal-d); color: var(--white); }
.btn-outline   { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--g2); }
.btn-outline-navy:hover { border-color: var(--teal); color: var(--teal); }
.btn-gold   { background: var(--gold);  color: var(--white); }
.btn-gold:hover { background: var(--gold-d); color: var(--white); }
.btn-wa     { background: #25d366; color: var(--white); }
.btn-wa:hover { background: #1da851; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark {
  width: 42px; height: 42px; background: var(--teal);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem;
}
.nav-logo img,
.custom-logo-link img,
img.custom-logo { height: 48px; width: auto; max-height: 48px; border-radius: 0; object-fit: contain; }
.nav-logo-brand { font-size: 1rem; font-weight: 800; color: var(--white); line-height: 1.1; display: block; }
.nav-logo-sub   { font-size: .65rem; color: var(--g3); letter-spacing: .06em; text-transform: uppercase; display: block; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.8); padding: 8px 13px;
  border-radius: var(--r); font-size: .88rem; font-weight: 500; transition: all .15s;
}
.nav-links a:hover, .nav-links a.current-menu-item { color: var(--white); background: rgba(255,255,255,.1); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 9px 20px; font-size: .85rem; }

/* Language Switcher (Polylang) */
.lang-switcher { display: flex; gap: 3px; }
.lang-switcher a, .lang-switcher .lang-btn {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  border: none; padding: 5px 9px; border-radius: 4px;
  font-size: .72rem; font-weight: 700; cursor: pointer; transition: all .15s;
  text-decoration: none; display: inline-block;
}
.lang-switcher a:hover, .lang-switcher .lang-btn:hover,
.lang-switcher a.current-lang, .lang-switcher .lang-btn.active {
  background: var(--teal); color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all .2s; }

@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    padding: 12px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 50%, var(--teal) 100%);
  display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: '🐟';
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  font-size: 14rem; opacity: .06; pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; padding: 80px 0; }
.hero-content { max-width: 640px; }
.hero-content .section-label { color: rgba(255,255,255,.7); }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--ice); padding: 18px 0;
  border-top: 3px solid var(--teal); border-bottom: 3px solid var(--teal);
}
.trust-bar-inner { display: flex; flex-wrap: wrap; gap: 0; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--navy); padding: 6px 24px; }
.trust-icon { font-size: 1.2rem; }
.trust-divider { width: 1px; height: 24px; background: var(--g2); }
@media (max-width: 600px) { .trust-divider { display: none; } .trust-item { padding: 8px 16px; } }

/* ---------- Stats Section ---------- */
.stats-section { background: var(--navy); padding: 56px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 28px 20px; text-align: center; }
.stat-num  { font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 8px; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Cards & Grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--g2);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(11,45,78,.14); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card-excerpt { font-size: .88rem; color: var(--g4); margin-bottom: 12px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card-img { width: 100%; height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder { background: var(--ice); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; height: 200px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.badge-teal { background: #d0f4f7; color: var(--teal); }
.badge-navy { background: #d6e6f5; color: var(--navy); }
.badge-gold { background: #fdf0dc; color: var(--gold); }

/* ---------- Spec table (mini, in cards) ---------- */
.spec-table-mini { width: 100%; border-collapse: collapse; font-size: .8rem; }
.spec-table-mini td { padding: 4px 8px; border-bottom: 1px solid var(--g2); color: var(--g4); }
.spec-table-mini td:first-child { font-weight: 600; color: var(--navy); width: 90px; }

/* ---------- Spec table (full, on product page) ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table tr:nth-child(even) td { background: var(--g1); }
.spec-label { font-weight: 600; color: var(--navy); width: 180px; padding: 11px 16px; border-bottom: 1px solid var(--g2); }
.spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--g2); color: var(--g4); }

/* ---------- Why Us ---------- */
.reason-card { padding: 28px; background: var(--white); border: 1px solid var(--g2); border-radius: var(--r); box-shadow: var(--shadow); }
.reason-icon { font-size: 2rem; margin-bottom: 14px; }
.reason-card h3 { margin-bottom: 8px; }
.reason-card p { font-size: .88rem; }

/* ---------- CTA Banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--navy), #1a4a7a); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); }
.cta-inner p  { color: rgba(255,255,255,.75); margin-top: 8px; }
.cta-actions  { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Page Hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 64px 0; text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.75); margin: 12px auto 0; max-width: 520px; }
.page-hero .section-label { color: rgba(255,255,255,.65); }
.breadcrumb-back { color: rgba(255,255,255,.7); font-size: .85rem; display: inline-block; margin-bottom: 16px; }
.breadcrumb-back:hover { color: var(--white); }

/* ---------- About Page ---------- */
.about-content p { margin-bottom: 16px; }
.about-image-col { display: flex; justify-content: center; }
.about-img-placeholder {
  width: 100%; max-width: 480px; min-height: 340px;
  background: var(--ice); border-radius: var(--r); border: 2px dashed var(--g2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 3rem; gap: 12px;
}
.about-img-placeholder span { font-size: 1rem; color: var(--g3); }

/* Certifications */
.cert-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.cert-item { background: var(--white); border: 2px solid var(--g2); border-radius: var(--r); padding: 16px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.cert-icon { font-size: 1.8rem; }
.cert-item strong { display: block; font-size: .92rem; color: var(--navy); }
.cert-item small { font-size: .78rem; color: var(--g3); }

/* Process steps */
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.process-step { display: flex; align-items: flex-start; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--g2); }
.process-step:last-child { border-bottom: none; }
.step-num { width: 44px; height: 44px; background: var(--teal); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.step-content h4 { margin-bottom: 4px; }
.step-content p  { font-size: .88rem; }

/* ---------- Products Archive ---------- */
.products-section { background: var(--g1); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 18px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--white); border: 2px solid var(--g2); color: var(--g4);
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.filter-btn:hover, .filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination { display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--g2); font-size: .88rem; }
.pagination .current { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ---------- Single Product ---------- */
.product-single-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 768px) { .product-single-grid { grid-template-columns: 1fr; } }
.product-single-img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.product-img-placeholder { width: 100%; min-height: 360px; background: var(--ice); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.cert-strip { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cert-strip span { background: var(--ice); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--g2); }
.specs-heading { margin: 28px 0 14px; font-size: 1rem; color: var(--navy); border-bottom: 2px solid var(--g2); padding-bottom: 8px; }
.product-excerpt { font-size: 1rem; color: var(--g4); }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-content { border-top: 1px solid var(--g2); padding-top: 24px; }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.rfq-form { background: var(--g1); border-radius: var(--r); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--g2); border-radius: var(--r);
  font-size: .92rem; font-family: inherit; color: var(--text);
  background: var(--white); transition: border-color .15s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,143,160,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .78rem; color: var(--g3); text-align: center; }

.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.contact-method-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--g1); border: 1px solid var(--g2);
  border-radius: var(--r); text-decoration: none; transition: all .15s;
}
.contact-method-card:hover { border-color: var(--teal); background: var(--ice); }
.contact-method-wa { background: #f0fdf4; border-color: #86efac; }
.contact-method-wa:hover { background: #dcfce7; border-color: #25d366; }
.method-icon { font-size: 1.5rem; flex-shrink: 0; }
.method-label { font-size: .75rem; font-weight: 600; color: var(--g3); text-transform: uppercase; letter-spacing: .06em; }
.method-value { font-size: .92rem; font-weight: 600; color: var(--navy); margin-top: 2px; }

.buyer-info-box { background: var(--ice); border: 1.5px solid var(--teal); border-radius: var(--r); padding: 22px 24px; }
.buyer-info-box h4 { margin-bottom: 8px; }
.buyer-checklist { display: flex; flex-direction: column; gap: 6px; }
.buyer-checklist li { font-size: .88rem; color: var(--g4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-mark { font-size: 2rem; margin-bottom: 8px; }
.footer-brand-name { font-size: 1rem; font-weight: 800; color: var(--white); }
.footer-brand-sub  { font-size: .72rem; color: var(--g3); margin-bottom: 14px; letter-spacing: .04em; }
.footer-desc { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; margin-bottom: 12px; }
.footer-contact-item a { color: rgba(255,255,255,.7); }
.footer-contact-item a:hover { color: var(--teal); }
.footer-certs { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-pill { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--g3); }

/* ---------- WhatsApp Float ---------- */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; background: #25d366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
.wa-float svg  { width: 30px; height: 30px; fill: white; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- WPForms overrides ---------- */
.wpforms-form .wpforms-field-label { font-weight: 600 !important; color: var(--navy) !important; font-size: .88rem !important; }
.wpforms-form input[type=text],
.wpforms-form input[type=email],
.wpforms-form input[type=tel],
.wpforms-form textarea,
.wpforms-form select {
  border: 1.5px solid var(--g2) !important;
  border-radius: var(--r) !important;
  font-family: inherit !important;
  font-size: .92rem !important;
  padding: 11px 14px !important;
  transition: border-color .15s !important;
}
.wpforms-form input:focus,
.wpforms-form textarea:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(14,143,160,.1) !important;
}
.wpforms-form .wpforms-submit {
  background: var(--teal) !important;
  border-radius: var(--r) !important;
  font-weight: 600 !important;
  padding: 13px 32px !important;
  font-size: 1rem !important;
  width: 100% !important;
}
