/*
Theme Name: Indonesia Tapioca Starch
Theme URI: https://indonesiatapiocastarchs.com/
Author: PT Adhi Teknologi Indonesia
Description: Editable WordPress theme for the Indonesia Tapioca Starch catalogue, the PT Sari Agro Manunggal company profile, client-managed pages, News & Event, and customer enquiries.
Version: 2.8.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: indonesia-commodities
*/

:root {
  --ic-primary: #123f2f;
  --ic-primary-deep: #092b20;
  --ic-accent: #d4a915;
  --ic-background: #f7f5ee;
  --ic-surface: #ffffff;
  --ic-text: #17231d;
  --ic-muted: #64716a;
  --ic-border: #d9ded9;
  --ic-success: #25d366;
  --ic-radius-sm: 12px;
  --ic-radius-md: 20px;
  --ic-radius-lg: 32px;
  --ic-shadow-sm: 0 12px 34px rgba(18, 63, 47, 0.08);
  --ic-shadow-lg: 0 28px 70px rgba(9, 43, 32, 0.16);
  --ic-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ic-background);
  color: var(--ic-text);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button,
a[href] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ic-accent) 86%, white);
  outline-offset: 4px;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 99999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ic-surface);
  color: var(--ic-primary);
  box-shadow: var(--ic-shadow-sm);
}

.ic-container {
  width: min(calc(100% - 40px), var(--ic-container));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ic-border) 72%, transparent);
  background: color-mix(in srgb, var(--ic-background) 90%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 28px;
}

.site-branding {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--ic-primary);
  text-decoration: none;
}

.site-branding .custom-logo,
.site-branding .brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.02;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-weight: 800;
}

.primary-navigation {
  margin-left: auto;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  color: var(--ic-text);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--ic-accent);
}

.primary-navigation .menu-item-has-children {
  position: relative;
}

.primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  display: none;
  width: 230px;
  align-items: stretch;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--ic-border);
  border-radius: 14px;
  background: var(--ic-surface);
  box-shadow: var(--ic-shadow-lg);
}

.primary-navigation .sub-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 16px;
  content: "";
}

.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu {
  display: grid;
}

.primary-navigation .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
}

.primary-navigation .sub-menu a:hover {
  background: color-mix(in srgb, var(--ic-primary) 7%, white);
}

.header-action,
.ic-button,
.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ic-primary);
  color: #ffffff !important;
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.header-action:hover,
.ic-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--ic-primary-deep);
  box-shadow: 0 12px 24px rgba(9, 43, 32, 0.2);
  transform: translateY(-1px);
}

.ic-button--accent {
  background: var(--ic-accent);
  color: var(--ic-primary-deep) !important;
}

.ic-button--accent:hover {
  background: color-mix(in srgb, var(--ic-accent) 86%, white);
}

.ic-button--ghost {
  border-color: color-mix(in srgb, var(--ic-primary) 26%, transparent);
  background: transparent;
  color: var(--ic-primary) !important;
}

.ic-button--ghost:hover {
  background: color-mix(in srgb, var(--ic-primary) 8%, transparent);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--ic-border);
  border-radius: 14px;
  background: var(--ic-surface);
  color: var(--ic-primary);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.ic-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) 0 84px;
}

.ic-hero::before {
  position: absolute;
  top: -280px;
  right: -220px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ic-accent) 25%, transparent), transparent 67%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(46px, 7vw, 98px);
}

.ic-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: var(--ic-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ic-eyebrow::before {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--ic-accent);
  content: "";
}

.ic-hero h1,
.ic-section-title,
.entry-title,
.product-title {
  margin: 0;
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.ic-hero h1 {
  max-width: 730px;
  font-size: clamp(3rem, 6.3vw, 6.1rem);
}

.ic-hero h1 em,
.ic-section-title em {
  display: block;
  color: var(--ic-accent);
  font-weight: 500;
}

.hero-description {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ic-muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  max-width: 650px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 46px 0 0;
  list-style: none;
}

.hero-metrics li {
  padding: 17px 16px;
  border: 1px solid color-mix(in srgb, var(--ic-border) 75%, transparent);
  border-radius: var(--ic-radius-sm);
  background: color-mix(in srgb, var(--ic-surface) 80%, transparent);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--ic-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.hero-metrics span {
  margin-top: 4px;
  color: var(--ic-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border-radius: var(--ic-radius-lg);
  background: var(--ic-surface);
  box-shadow: var(--ic-shadow-lg);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo--primary {
  inset: 0 12% 7% 0;
}

.hero-photo--secondary {
  right: 0;
  bottom: 0;
  width: 47%;
  height: 48%;
  border: 8px solid var(--ic-background);
  border-radius: 24px;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  top: 34px;
  right: 0;
  display: grid;
  max-width: 190px;
  gap: 3px;
  padding: 18px 20px;
  border-radius: 18px 0 0 18px;
  background: var(--ic-accent);
  color: var(--ic-primary-deep);
  box-shadow: var(--ic-shadow-sm);
}

.hero-badge span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.trust-bar {
  background: var(--ic-primary);
  color: #ffffff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 0;
}

.trust-grid > div {
  min-height: 112px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,0.14);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid span,
.trust-grid strong {
  display: block;
}

.trust-grid span {
  color: color-mix(in srgb, var(--ic-accent) 84%, white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-grid strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.35;
}

.ic-section {
  padding: clamp(76px, 9vw, 126px) 0;
}

.ic-section--surface {
  background: var(--ic-surface);
}

.section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 48px;
  margin-bottom: 48px;
}

.ic-section-title {
  font-size: clamp(2.55rem, 4.8vw, 4.8rem);
}

.section-heading > p,
.section-copy {
  margin: 0;
  color: var(--ic-muted);
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius-md);
  background: color-mix(in srgb, var(--ic-surface) 92%, var(--ic-background));
}

.subsection-title {
  margin: 0 0 18px;
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 500;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.category-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: 116px minmax(0, 1fr);
  border: 1px solid var(--ic-border);
  border-radius: 18px;
  background: var(--ic-surface);
  color: var(--ic-text);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-card:hover {
  border-color: var(--category-accent, var(--ic-accent));
  box-shadow: var(--ic-shadow-sm);
  transform: translateY(-2px);
}

.category-card__image {
  min-height: 138px;
  background: color-mix(in srgb, var(--category-accent, var(--ic-accent)) 14%, white);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__body {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border-left: 5px solid var(--category-accent, var(--ic-accent));
}

.category-card__body strong {
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.category-card__body small {
  color: var(--ic-primary);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-card__body > span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ic-muted);
  font-size: 0.75rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field label {
  color: var(--ic-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.filter-field select,
.archive-search input {
  width: 100%;
  min-height: 50px;
  padding: 10px 42px 10px 15px;
  border: 1px solid var(--ic-border);
  border-radius: 12px;
  background-color: var(--ic-surface);
  color: var(--ic-text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--ic-border);
  border-radius: 24px;
  background: var(--ic-surface);
  box-shadow: 0 8px 28px rgba(18, 63, 47, 0.045);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--ic-accent) 72%, var(--ic-border));
  box-shadow: var(--ic-shadow-sm);
  transform: translateY(-3px);
}

.product-card[hidden] {
  display: none;
}

.product-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--ic-background) 72%, white);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.025);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.product-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ic-primary) 8%, white);
  color: var(--ic-primary);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-chip--accent {
  background: color-mix(in srgb, var(--ic-accent) 22%, white);
}

.product-card h3 {
  margin: 0;
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.18;
}

.product-card__excerpt {
  margin: 13px 0 20px;
  color: var(--ic-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.product-card__details {
  display: grid;
  gap: 9px;
  padding-top: 16px;
  margin: auto 0 20px;
  border-top: 1px solid var(--ic-border);
}

.product-card__details div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
}

.product-card__details dt {
  color: var(--ic-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card__details dd {
  margin: 0;
  color: var(--ic-text);
  font-size: 0.82rem;
  font-weight: 650;
}

.product-price {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

.product-price span {
  color: var(--ic-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-price strong {
  color: var(--ic-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.empty-products {
  padding: 38px;
  border: 1px dashed var(--ic-border);
  border-radius: var(--ic-radius-md);
  background: var(--ic-surface);
  color: var(--ic-muted);
  text-align: center;
}

.about-preview {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 7vw, 92px);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.company-card {
  display: grid;
  align-items: start;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--ic-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--ic-surface) 88%, var(--ic-background));
  box-shadow: 0 8px 28px rgba(18, 63, 47, 0.04);
}

.company-card__mark {
  display: flex;
  width: 82px;
  height: 82px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--ic-primary);
  color: #ffffff;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.company-card__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card span {
  color: var(--ic-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-card h3 {
  margin: 5px 0 9px;
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.company-card p {
  margin: 0;
  color: var(--ic-muted);
  font-size: 0.88rem;
}

.about-preview__media {
  position: relative;
}

.about-preview__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--ic-radius-lg);
  object-fit: cover;
  box-shadow: var(--ic-shadow-lg);
}

.about-preview__media::after {
  position: absolute;
  z-index: -1;
  right: -20px;
  bottom: -20px;
  width: 48%;
  height: 54%;
  border-radius: 24px;
  background: var(--ic-accent);
  content: "";
}

.about-preview .section-copy {
  max-width: 650px;
  margin: 25px 0 30px;
}

.contact-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: 50px;
  padding: clamp(38px, 7vw, 78px);
  border-radius: var(--ic-radius-lg);
  background: var(--ic-accent);
}

.contact-panel::after {
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(18, 63, 47, 0.1);
  border-radius: 50%;
  content: "";
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel .ic-section-title {
  color: var(--ic-primary-deep);
}

.contact-panel p {
  max-width: 670px;
  margin: 22px 0 0;
  color: color-mix(in srgb, var(--ic-primary-deep) 85%, black);
}

.contact-options {
  display: grid;
  gap: 14px;
}

.contact-options > a:not(.ic-button) {
  display: grid;
  padding: 14px 0;
  border-bottom: 1px solid rgba(9, 43, 32, 0.22);
  color: var(--ic-primary-deep);
  text-decoration: none;
}

.contact-options span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-options strong {
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.site-footer {
  padding: 72px 0 24px;
  background: var(--ic-primary-deep);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(180px, 0.65fr));
  gap: 52px;
}

.site-footer .site-branding {
  color: #ffffff;
}

.footer-brand p {
  max-width: 480px;
  margin: 20px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 10px;
  color: var(--ic-accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.58);
  font-size: 0.78rem;
}

.floating-whatsapp {
  position: fixed;
  z-index: 999;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  background: var(--ic-success);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(10, 70, 35, 0.25);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.floating-whatsapp:hover {
  filter: brightness(0.94);
  transform: translateY(-2px);
}

.floating-whatsapp svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.page-hero,
.archive-hero {
  padding: 84px 0 48px;
}

.page-hero .entry-title,
.archive-hero .entry-title {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.page-hero .archive-description,
.archive-hero .archive-description {
  max-width: 760px;
  margin-top: 22px;
  color: var(--ic-muted);
}

.entry-content {
  padding-bottom: clamp(76px, 9vw, 126px);
}

.entry-content > * {
  width: min(calc(100% - 40px), 820px);
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-gallery {
  width: min(calc(100% - 40px), var(--ic-container));
}

.entry-content > .alignfull {
  width: 100%;
  max-width: none;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.entry-content h2 {
  margin-top: 2.2em;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.entry-content h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.entry-content p,
.entry-content li {
  color: color-mix(in srgb, var(--ic-text) 88%, white);
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img,
.entry-content .wp-block-media-text__media img {
  border-radius: 18px;
}

.entry-content .wp-block-columns {
  gap: 22px;
}

.entry-content .wp-block-column {
  padding: 25px;
  border: 1px solid var(--ic-border);
  border-radius: 18px;
  background: var(--ic-surface);
}

.entry-content .wp-block-details {
  padding: 18px 22px;
  border: 1px solid var(--ic-border);
  border-radius: 14px;
  background: var(--ic-surface);
}

.entry-content .wp-block-details + .wp-block-details {
  margin-top: 12px;
}

.entry-content .wp-block-details summary {
  color: var(--ic-primary);
  font-weight: 750;
  cursor: pointer;
}

.product-detail {
  padding: clamp(64px, 8vw, 112px) 0;
}

.product-detail__grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(42px, 7vw, 92px);
}

.product-detail__media {
  position: sticky;
  top: 112px;
  overflow: hidden;
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius-lg);
  background: var(--ic-surface);
  box-shadow: var(--ic-shadow-sm);
}

.product-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-title {
  margin-top: 14px;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.product-intro {
  margin: 22px 0 28px;
  color: var(--ic-muted);
  font-size: 1.05rem;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.product-fact {
  padding: 17px;
  border: 1px solid var(--ic-border);
  border-radius: 14px;
  background: var(--ic-surface);
}

.product-fact span,
.product-fact strong {
  display: block;
}

.product-fact span {
  color: var(--ic-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-fact strong {
  margin-top: 4px;
  color: var(--ic-primary);
}

.product-content {
  margin: 35px 0;
}

.product-content h2,
.product-specifications h2,
.price-tiers h2 {
  margin: 0 0 18px;
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.spec-list,
.price-tier-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.spec-item,
.price-tier-item {
  padding: 17px;
  border: 1px solid var(--ic-border);
  border-radius: 14px;
  background: var(--ic-surface);
}

.spec-item span,
.spec-item strong,
.spec-item small,
.price-tier-item span,
.price-tier-item strong {
  display: block;
}

.spec-item span,
.price-tier-item span {
  color: var(--ic-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-item strong,
.price-tier-item strong {
  margin-top: 4px;
  color: var(--ic-primary);
}

.spec-item small {
  margin-top: 6px;
  color: var(--ic-muted);
}

.price-tier-list {
  margin-bottom: 32px;
}

.archive-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 32px;
}

.archive-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.pagination {
  margin-top: 42px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ic-border);
  border-radius: 12px;
  background: var(--ic-surface);
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--ic-primary);
  background: var(--ic-primary);
  color: #ffffff;
}

.not-found {
  padding: 100px 0;
  text-align: center;
}

.not-found .entry-title {
  font-size: clamp(3rem, 7vw, 6rem);
}

@media (max-width: 1050px) {
  .header-action {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);
    gap: 42px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
}

@media (max-width: 860px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-copy {
    font-size: 0.88rem;
  }

  .site-branding .custom-logo,
  .site-branding .brand-mark {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--ic-border);
    border-radius: 18px;
    background: var(--ic-surface);
    box-shadow: var(--ic-shadow-lg);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 2px;
  }

  .primary-navigation .sub-menu {
    position: static;
    display: grid;
    width: auto;
    padding: 0 0 4px 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .primary-navigation .sub-menu::before {
    display: none;
  }

  .primary-navigation a {
    display: block;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .primary-navigation a:hover {
    background: color-mix(in srgb, var(--ic-primary) 7%, white);
  }

  .hero-grid,
  .about-preview,
  .contact-panel,
  .product-detail__grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 600px;
  }

  .section-heading {
    gap: 20px;
  }

  .about-preview__media {
    order: 2;
  }

  .contact-panel {
    gap: 32px;
  }

  .product-detail__media {
    position: static;
    max-width: 620px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .ic-container {
    width: min(calc(100% - 28px), var(--ic-container));
  }

  .ic-hero {
    padding-top: 58px;
  }

  .ic-hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }

  .hero-actions .ic-button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .hero-metrics li {
    display: grid;
    align-items: center;
    grid-template-columns: 72px 1fr;
  }

  .hero-metrics span {
    margin-top: 0;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-photo--primary {
    right: 0;
    bottom: 12%;
  }

  .hero-photo--secondary {
    width: 50%;
    height: 42%;
  }

  .hero-badge {
    top: 20px;
    max-width: 160px;
    padding: 14px;
  }

  .trust-grid,
  .product-grid,
  .company-grid,
  .catalog-filters,
  .product-facts,
  .spec-list,
  .price-tier-list,
  .footer-grid,
  .archive-tools,
  .archive-search {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .product-card__details div {
    grid-template-columns: 86px 1fr;
  }

  .category-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .category-card__image {
    min-height: 124px;
  }

  .company-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .company-card__mark {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .contact-panel {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .footer-links {
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .footer-bottom {
    display: grid;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
    min-height: 58px;
    justify-content: center;
    padding: 0;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
  }

  .page-hero,
  .archive-hero {
    padding-top: 58px;
  }

  .entry-content > *,
  .entry-content > .alignwide,
  .entry-content > .wp-block-columns,
  .entry-content > .wp-block-gallery {
    width: min(calc(100% - 28px), var(--ic-container));
  }
}

.ic-extra-area { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1rem; }
.ic-extra-block { min-width: 0; max-width: 100%; }
.ic-extra-block img { max-width: 100%; height: auto; }
.ic-extra-block .wp-block-buttons { margin: 0; }

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

/* Page presentation: cover hero, content width, profile tables and stats. */
.page-hero--media {
  position: relative;
  padding: clamp(96px, 12vw, 172px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.page-hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--ic-page-hero-image);
  background-position: center;
  background-size: cover;
}

.page-hero--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ic-primary-deep) 82%, transparent) 0%, color-mix(in srgb, var(--ic-primary-deep) 94%, transparent) 100%);
}

.page-hero--media .entry-title,
.page-hero--media .ic-eyebrow,
.page-hero--media .archive-description {
  color: #fff;
}

.entry-content.ic-page-width-wide > * {
  width: min(calc(100% - 40px), var(--ic-container));
}

.entry-content.ic-page-width-full > *,
.entry-content.ic-page-width-full > .alignwide {
  width: min(calc(100% - 40px), 1600px);
}

.entry-content .wp-block-table {
  overflow-x: auto;
}

.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: 16px;
  overflow: hidden;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--ic-border);
  text-align: left;
  vertical-align: top;
  color: color-mix(in srgb, var(--ic-text) 88%, white);
}

.entry-content .wp-block-table thead th {
  background: var(--ic-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.entry-content .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
  background: color-mix(in srgb, var(--ic-background) 60%, var(--ic-surface));
}

.entry-content .wp-block-table td:first-child {
  font-weight: 650;
  color: var(--ic-primary-deep);
}

.entry-content .wp-block-table .wp-block-table__caption {
  margin-top: 10px;
  color: var(--ic-muted);
  font-size: 0.86rem;
}

.entry-content .ic-profile-stats .wp-block-column {
  text-align: left;
}

.entry-content .ic-profile-stats h3 {
  margin: 0;
  color: var(--ic-primary);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.entry-content .ic-profile-stats p {
  margin: 6px 0 0;
  color: var(--ic-muted);
  font-size: 0.94rem;
}

.entry-content > p.ic-eyebrow {
  margin-bottom: 0;
}

/* A coloured group must pass its colour to the text inside it. */
.entry-content .has-text-color :is(h1, h2, h3, h4, h5, h6, p, li, strong, em) {
  color: inherit;
}

@media (max-width: 782px) {
  .entry-content .wp-block-table th,
  .entry-content .wp-block-table td {
    padding: 11px 13px;
    font-size: 0.92rem;
  }
}

/* News & Event: cards, event details and the article page. */
.news-grid {
  columns: 3;
  column-gap: clamp(24px, 4vw, 56px);
}

.news-card {
  min-width: 0;
  overflow-wrap: anywhere;
  display: inline-flex;
  width: 100%;
  break-inside: avoid;
  margin-bottom: clamp(24px, 4vw, 56px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ic-border);
  border-radius: 0;
  background: var(--ic-surface);
}

.news-card__image {
  display: block;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: color-mix(in srgb, var(--ic-primary) 8%, var(--ic-surface));
}

.news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__image--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--ic-primary) 12%, var(--ic-surface)), color-mix(in srgb, var(--ic-accent) 12%, var(--ic-surface)));
}

.news-card__image--empty img {
  width: 42%;
  height: auto;
  object-fit: contain;
  opacity: 0.55;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 20px;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: var(--ic-text);
  font-size: 0.875rem;
  font-weight: 400;
}

.news-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ic-primary) 10%, transparent);
  color: var(--ic-primary);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-chip--upcoming {
  background: var(--ic-accent);
  color: var(--ic-primary-deep);
}

.news-chip--past {
  background: color-mix(in srgb, var(--ic-muted) 16%, transparent);
  color: var(--ic-muted);
}

.news-card h3 {
  margin: 0;
  font-family: var(--ic-font-heading, system-ui, sans-serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.news-card h3 a {
  color: var(--ic-primary-deep);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--ic-primary);
}

.news-card__location {
  margin: 0;
  color: var(--ic-muted);
  font-size: 0.88rem;
}

.news-card__excerpt {
  flex: 1;
  color: var(--ic-text);
  font-size: 1rem;
  line-height: 1.7;
}

.news-card__event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.news-card a:focus-visible,
.news-article-links a:focus-visible {
  outline: 2px solid var(--ic-primary);
  outline-offset: 4px;
}

.news-article-links ul {
  display: block;
  padding-inline-start: 24px;
  margin: 8px 0 0;
  list-style: disc;
}

.news-article-links li {
  margin: 0;
  padding: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.news-article-links a {
  display: inline;
  padding-block: 5px;
  color: var(--ic-primary);
  text-decoration: none;
}

.news-article-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 641px) and (max-width: 1000px) {
  .news-grid { columns: 2; }
}

.section-action {
  margin-top: clamp(26px, 3vw, 38px);
}

.ic-news-intro {
  padding-bottom: 0;
}

.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--ic-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.page-hero--media .news-single__meta {
  color: color-mix(in srgb, #ffffff 82%, transparent);
}

.news-event-details {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--ic-border);
  border-left: 4px solid var(--ic-accent);
  border-radius: 18px;
  background: var(--ic-surface);
}

.news-event-details h2 {
  margin: 0 0 14px;
  color: var(--ic-primary-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.news-event-details dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
}

.news-event-details dt {
  color: var(--ic-muted);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-event-details dd {
  margin: 5px 0 0;
  color: var(--ic-text);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.news-single__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(40px, 5vw, 64px);
}

.news-single__siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 650;
}

.news-single__siblings a {
  color: var(--ic-primary);
  text-decoration: none;
}

.news-single__siblings a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .news-grid {
    columns: 1;
  }
}

/* Company-profile tables: the label column keeps a steady width without a colgroup. */
.ic-profile-table table {
  border-collapse: collapse;
}

.ic-profile-table td,
.ic-profile-table th {
  padding: 12px 16px;
  border-color: var(--ic-border);
  vertical-align: top;
}

.ic-profile-table thead th {
  color: var(--ic-primary-deep);
  font-weight: 700;
  text-align: left;
}

.ic-profile-table tbody tr > *:first-child {
  width: 34%;
  color: var(--ic-primary-deep);
  font-weight: 650;
}

.ic-profile-table figcaption,
.ic-profile-table .wp-element-caption {
  color: var(--ic-muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .ic-profile-table tbody tr > *:first-child {
    width: 42%;
  }

  .ic-profile-table td,
  .ic-profile-table th {
    padding: 10px 12px;
    font-size: 0.92rem;
  }
}
