/*
Theme Name: Setu Surya Loka
Theme URI: https://example.com
Author: Ryan
Description: Company profile theme for an Indonesian frozen tuna and mackerel exporter. Home, FAQ and News pages. All text is edited in inc/content.php; news posts in WordPress > Posts.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: setu-surya-loka
*/

/* Layout: full-bleed sections joined by wave dividers, like moving from surface water to deep sea and back. */
:root {
  --navy: #053b38;       /* deep sea */
  --navy-2: #0a5a52;     /* mid water */
  --sea: #00b09b;        /* logo teal */
  --coral: #ee1c2e;      /* logo red */
  --ice: #eef7f5;        /* cold-storage white */
  --ink: #0b2a27;
  --muted: #4f6a66;
  --line: #d3e6e1;
  --white: #ffffff;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 12px;
  --max: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 112%;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; font-stretch: 105%; letter-spacing: 0; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 8px; background: no-repeat center / 22px 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 8'%3E%3Cpath d='M1 4c2.5-3 5-3 7 0s4.5 3 7 0 4.5-3 6 0' fill='none' stroke='%2300b09b' stroke-width='1.6'/%3E%3C/svg%3E"); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: #d10f20; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(5,59,56,.08);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
}
.nav a:not(.btn):hover { background: var(--ice); }
.nav a.is-active { color: var(--coral); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--coral);
}
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 1.8rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 150px;
  color: var(--white);
  background: linear-gradient(180deg, #0b6e63 0%, var(--navy-2) 35%, var(--navy) 100%);
  overflow: hidden;
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,59,56,.55), rgba(5,59,56,.85)); }
.hero-rays {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(100deg, transparent 40%, rgba(255,255,255,.07) 46%, transparent 52%),
    linear-gradient(75deg, transparent 58%, rgba(255,255,255,.06) 63%, transparent 68%),
    linear-gradient(110deg, transparent 70%, rgba(255,255,255,.05) 74%, transparent 79%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: #7fe3d4; }
.hero p.lead { max-width: 580px; font-size: 1.18rem; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2);
  max-width: 820px;
}
.hero-stats strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--white); }
.hero-stats span { color: rgba(255,255,255,.68); font-size: .93rem; }

.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; overflow: hidden; line-height: 0; }
.waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 80px; }
.wave-back path { fill: rgba(255,255,255,.28); }
.wave-front path { fill: var(--white); }
.wave-back { animation: drift 22s linear infinite; }
.wave-front { animation: drift 14s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wave-divider { line-height: 0; position: relative; z-index: 1; }
.wave-divider svg { width: 100%; height: 60px; display: block; overflow: visible; } /* path runs 4px past the bottom to hide the anti-aliased seam */
.wave-divider.flip svg { transform: scaleX(-1); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.row-head > div { max-width: 640px; }

.about { padding-bottom: 72px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); font-size: 1.08rem; }

.products {
  background-color: var(--ice);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15-10 30-10 45 0s30 10 45 0 22-8 30-4' fill='none' stroke='%2300b09b' stroke-opacity='.09' stroke-width='1.5'/%3E%3C/svg%3E");
  padding-top: 56px;
}
.product-group + .product-group { margin-top: 48px; }
.group-title { display: flex; align-items: baseline; gap: 12px; font-size: 1.5rem; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--navy); }
.group-title span { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(5,59,56,.05), 0 14px 34px rgba(5,59,56,.08);
  display: flex; flex-direction: column;
}
.card-body { padding: 24px 26px 28px; }
.card .latin { font-style: italic; color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card dl { margin: 0; font-size: .95rem; }
.card dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.card dt { font-weight: 700; color: var(--navy); }
.card dd { margin: 0; color: var(--muted); min-width: 0; }
.hs-list, .size-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.size-list li { font-variant-numeric: tabular-nums; }
.hs-list li { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.hs-list .mono { font-family: var(--mono); color: var(--ink); font-size: .88rem; }
.hs-list .covers { font-size: .88rem; }
.card .ph.card-img, .card .ph-img.card-img { aspect-ratio: auto; height: 190px; }
.card-body h3 { margin-bottom: 4px; }
.forms { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.forms li { padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--navy-2); font-size: .82rem; font-weight: 700; }
.note { margin: 28px 0 0; color: var(--muted); font-size: .95rem; }

/* Photo placeholders */
.ph {
  position: relative;
  aspect-ratio: 4 / 3; width: 100%; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(0,176,155,.06) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #dff1ed, #cfe8e2);
  color: var(--navy-2);
  border-bottom: 1px dashed rgba(10,90,82,.25);
}
.ph svg { width: 72px; height: 36px; }
.ph svg path, .ph svg circle { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .55; }
.ph svg circle { fill: currentColor; stroke: none; }
.ph span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; text-align: center; padding: 0 12px; }
.ph-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.samples { padding-top: 56px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ice); }
.gallery .ph { border-bottom: 0; }
.gallery figcaption { padding: 12px 16px; font-weight: 600; font-size: .95rem; }

.why { background: var(--navy); color: var(--white); padding: 64px 0; }
.why .section-head p { color: rgba(255,255,255,.72); }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.why-item { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.16); }
.why-item h3 { color: #7fe3d4; }
.why-item p { color: rgba(255,255,255,.78); margin: 0; }

.process { padding-top: 56px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; position: relative; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800;
}
.step::after { content: ""; position: absolute; top: 21px; left: 52px; right: -20px; border-top: 2px dashed var(--line); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); margin: 0; }
.cold-chain {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 44px 0 0; padding: 18px 22px;
  background: var(--ice); border-radius: var(--radius);
  color: var(--navy); font-weight: 600;
}
.cold-chain .temp { font-family: var(--mono); font-size: 1.3rem; color: var(--sea); }

.contact { background: var(--ice); padding-top: 56px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.contact-grid > div { min-width: 0; }
.contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px; min-width: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(5,59,56,.07);
  text-decoration: none; color: var(--ink);
}
.contact-card strong { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.contact-card .value { font-weight: 700; font-size: 1.12rem; text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.contact-card a.value:hover { color: var(--coral); }
.contact-card.wa { grid-column: 1 / -1; background: var(--navy); color: var(--white); flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 26px 28px; }
.contact-card.wa strong { color: #7fe3d4; width: 100%; }
.contact-card.wa .value { font-family: var(--mono); font-weight: 500; font-size: 1.5rem; flex: 1; }
.contact-card.office { grid-column: 1 / -1; }
.contact-card.wa:hover .btn { background: #d10f20; transform: translateY(-2px); }

/* ---------- Inner pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 48px) 0 36px;
}
.page-hero .lead { color: rgba(255,255,255,.8); font-size: 1.12rem; max-width: 620px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; color: rgba(255,255,255,.6); }
.crumbs a { color: #7fe3d4; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--white); }

.faq, .news, .article { padding: 56px 0 72px; }
.faq-wrap > * { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-family: var(--display); font-stretch: 105%; font-weight: 700; font-size: 1.15rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ice); color: var(--sea); font-size: 1.3rem; font-weight: 700;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--coral); color: var(--white); }
.faq-item p { margin: -6px 0 22px; color: var(--muted); max-width: 66ch; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.news-thumb { display: block; }
.news-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.news-body h2 { font-size: 1.25rem; margin: 8px 0 10px; }
.news-body h2 a { text-decoration: none; }
.news-body h2 a:hover { color: var(--coral); }
.excerpt { color: var(--muted); font-size: .98rem; flex: 1; }
.excerpt p { margin: 0 0 12px; }
.more { font-weight: 700; color: var(--coral); text-decoration: none; }
.more:hover { text-decoration: underline; }
.pager { margin-top: 36px; }
.pager .nav-links { display: flex; gap: 8px; }
.pager .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--ice); text-decoration: none; font-weight: 600; }
.pager .page-numbers.current { background: var(--navy); color: var(--white); }
.empty { color: var(--muted); font-size: 1.1rem; }

.article-wrap > * { max-width: 780px; }
.article-img { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.article-content { font-size: 1.1rem; line-height: 1.75; margin-bottom: 36px; }
.article-content h2 { font-size: 1.6rem; margin-top: 1.4em; }

.cta-band { background: var(--ice); padding: 48px 0 64px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta-inner p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); font-size: .95rem; }
.site-footer .wave-divider { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 32px; }
.footer-name { display: block; font-family: var(--display); font-stretch: 112%; font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #7fe3d4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 20px; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); padding: 16px 24px 24px;
    box-shadow: 0 14px 24px rgba(5,59,56,.12);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav a.is-active { background: var(--ice); }
  .nav a.is-active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .why-grid, .about-grid, .contact-grid, .news-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 8px; }
}
@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .wrap { padding-inline: 16px; }
  .brand img { height: 54px; }
  .hero { padding-bottom: 120px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .steps, .contact-cards, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .contact-card.wa .value { font-size: 1.25rem; }
  .admin-bar .site-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-back, .wave-front { animation: none; }
  .btn, .faq-item summary::after { transition: none; }
}
