/*
Theme Name: Alamiko Coffee
Description: Katalog kopi dan permintaan penawaran WhatsApp dalam Bahasa Indonesia dan English.
Author: Alamiko
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: alamiko
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --paper: #eaf3fc;
  --linen: #e0edf9;
  --hero-bg: #e0eefc;
  --ink: #18314c;
  --muted: #435b73;
  --rule: #c8d9ea;
  --accent: #2c5279;
  --accent-deep: #203f61;
  --business-bg: #dcebf9;
  --white: #f4f9ff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
section[id], [id="legalitas"] { scroll-margin-top: 22px; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.quote-panel :focus-visible { outline-color: var(--accent); }

.shell { width: min(calc(100% - 112px), 1264px); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 9px 15px;
  background: var(--white);
  color: var(--accent-deep);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  column-gap: 20px;
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
}
.brand img { object-fit: contain; mix-blend-mode: multiply; }
.header-inner .brand img { width: 81px; height: 63px; }
.footer-identity .brand img { width: 89px; height: 69px; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(23px, 3vw, 45px);
}
.desktop-nav a, .mobile-nav a {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #e5effa;
}
.language-switch a, .language-switch span {
  display: grid;
  min-width: 29px;
  min-height: 31px;
  place-items: center;
  border-radius: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
}
.language-switch [aria-current], .language-switch a:hover {
  background: #d7e6f7;
  color: var(--accent-deep);
}
.mobile-nav { display: none; }

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .89rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button-primary { background: var(--accent); color: #f5faff; }
.button-primary:hover { background: var(--accent-deep); }
.button-outline { border-color: #93acc6; background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--accent); color: var(--accent); background: #dceafb; }
.button.header-contact { min-height: 41px; padding: 9px 14px; }
.arrow { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -.19em; }

.hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: stretch;
  padding-top: 32px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  min-height: 516px;
  padding: 35px clamp(24px, 3.1vw, 47px) 38px;
  border-radius: 9px 0 0 9px;
  background: linear-gradient(135deg, #f0f7ff 0%, var(--hero-bg) 100%);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.4;
  text-transform: uppercase;
}
.kicker::before {
  width: 23px;
  height: 1px;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.45rem, 5.84vw, 5.62rem);
  font-weight: 400;
  letter-spacing: -.034em;
  line-height: .96;
}
html[lang="en"] .hero h1 { font-size: clamp(3.18rem, 5.5vw, 5.35rem); }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-description {
  max-width: 380px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}
.hero-visual {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0 9px 9px 0;
  background: #cddfee;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 29px 0 0;
  padding: 0;
  border-block: 1px solid var(--rule);
  list-style: none;
}
.trust-strip li { display: flex; align-items: center; justify-content: center; min-width: 0; }
.trust-strip li + li { border-left: 1px solid var(--rule); }
.trust-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 10px 13px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.trust-strip a:hover { background: #e0edf9; color: var(--accent); }
.trust-strip svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent); }

.catalog { padding-block: clamp(64px, 7vw, 96px) 83px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 35px;
  margin-bottom: 29px;
}
.section-heading .kicker { margin-bottom: 12px; }
.section-heading h2, .business-copy h2, .about-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 4.58vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
}
.section-heading > p { max-width: 295px; padding-bottom: 3px; color: var(--muted); font-size: .96rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #f1f7fe;
}
.product-media { position: relative; margin: 0; }
.product-image-note {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 3px;
  background: #edf5fdf2;
  color: var(--accent-deep);
  font-size: .68rem;
  line-height: 1.35;
}
.product-image { width: 100%; aspect-ratio: 1.59; object-fit: cover; background: var(--linen); }
.product-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 21px 22px 22px; }
.product-info h3, .quote-panel h3 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.6vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -.016em;
  line-height: 1.05;
}
.product-info p { margin: 9px 0 18px; color: var(--muted); font-size: .92rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--accent-deep);
  font-size: .88rem;
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: #7d9ab7;
}
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.product-info .text-link { margin-top: auto; }
.photo-note { margin-top: 14px; color: var(--muted); font-size: .78rem; }
.store-link { margin-top: 13px; }

.business-band {
  padding-block: clamp(62px, 7.4vw, 104px);
  border-block: 1px solid var(--rule);
  background: linear-gradient(118deg, #d7e7f8, var(--business-bg) 48%, #e2effb);
  color: var(--ink);
}
.business-grid { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(32px, 6.1vw, 92px); }
.business-copy h2 { font-size: clamp(3.08rem, 5.2vw, 5.2rem); }
.business-description { max-width: 400px; margin-top: 21px; color: var(--muted); }
.business-services {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 19px 0 0;
  border-top: 1px solid #bfd2e7;
  list-style: none;
  color: var(--ink);
  font-size: .93rem;
}
.business-services li { display: flex; align-items: baseline; gap: 11px; }
.business-services li span { color: var(--accent); }

.quote-panel { border: 1px solid #c6d9ec; border-radius: 8px; padding: clamp(23px, 3.5vw, 42px); background: #f0f7fe; color: var(--ink); box-shadow: 0 12px 30px #426b9510; }
.quote-panel > p { margin: 8px 0 19px; color: var(--muted); font-size: .9rem; }
.quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; }
.field { display: flex; min-width: 0; flex-direction: column; }
.field label { display: block; flex: 1; margin-bottom: 5px; font-size: .82rem; font-weight: 700; }
.field label span { color: var(--muted); font-size: .72rem; font-weight: 400; white-space: nowrap; }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #a9bed3;
  border-radius: 3px;
  color: var(--ink);
  background: #f5faff;
  font-size: .9rem;
}
.field input::placeholder { color: #526983; }
.form-button { width: 100%; margin-top: 17px; }

.about-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 6.4vw, 98px);
  padding-block: clamp(62px, 7.3vw, 100px);
}
.about-copy .kicker { margin-bottom: 13px; }
.about-copy > p:last-child { max-width: 440px; margin-top: 16px; color: var(--muted); }
.certification-card { width: min(100%, 410px); margin: 0; justify-self: end; }
.certification-image { width: 100%; height: auto; }

.site-footer { border-top: 1px solid var(--rule); background: var(--linen); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: 29px;
  padding-block: 38px 34px;
}
.footer-identity > p { color: var(--muted); font-size: .85rem; }
.footer-identity p.company-name { margin-top: 5px; color: var(--ink); font-weight: 700; }
.footer-identity p.company-location { margin-top: 2px; font-size: .77rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 6px; }
.footer-links h2 { margin: 0 0 4px; font-size: .9rem; font-weight: 700; }
.footer-links a { color: var(--muted); font-size: .87rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-links a.contact-number { color: var(--accent-deep); font-weight: 700; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 15px;
  padding-block: 14px 18px;
  border-top: 1px solid #bed3e8;
  color: var(--muted);
  font-size: .79rem;
}
.footer-bottom small { font-size: inherit; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

.content-page { padding-block: 56px 76px; }
.content-page article + article { margin-top: 36px; }
.content-page h1, .content-page h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
}
.entry-content { max-width: 760px; }
.entry-content p + p { margin-top: 1em; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 76px); }
  .hero-copy { min-height: 470px; padding-inline: 26px; }
  .hero h1 { font-size: clamp(3.35rem, 6.15vw, 4.45rem); }
  html[lang="en"] .hero h1 { font-size: clamp(3rem, 5.65vw, 4.15rem); }
  .product-info { padding-inline: 17px; }
  .business-grid { gap: 38px; }
}

@media (max-width: 850px) {
  .shell { width: calc(100% - 50px); }
  .hero { grid-template-columns: .99fr 1.01fr; padding-top: 24px; }
  .hero-copy { min-height: 420px; padding: 24px 19px; }
  .hero h1 { font-size: clamp(2.9rem, 6.6vw, 3.8rem); }
  html[lang="en"] .hero h1 { font-size: clamp(2.7rem, 6.05vw, 3.56rem); }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 45px; padding-inline: 12px; font-size: .82rem; }
  .product-grid { gap: 14px; }
  .product-info h3 { font-size: 1.75rem; }
  .product-info { padding: 15px; }
  .business-grid { grid-template-columns: .9fr 1.1fr; gap: 26px; }
  .quote-panel { padding: 23px; }
  .quote-fields { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .about-grid { gap: 29px; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 38px); }
  .header-inner { grid-template-columns: 1fr auto auto; min-height: 70px; column-gap: 10px; }
  .header-inner .brand img { width: 66px; height: 51px; }
  .desktop-nav { display: none; }
  .header-actions { gap: 7px; }
  .language-switch a, .language-switch span { min-width: 27px; }
  .button.header-contact { min-height: 38px; padding-inline: 8px; font-size: .76rem; gap: 4px; }
  .header-contact .arrow { width: 13px; height: 13px; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    display: flex;
    width: 41px;
    height: 41px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #93acc6;
    border-radius: 3px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 15px; height: 1px; background: var(--ink); }
  .mobile-nav nav {
    position: absolute;
    z-index: 3;
    top: 62px;
    right: 0;
    display: grid;
    width: min(270px, 100%);
    padding: 8px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    background: var(--paper);
    box-shadow: 0 9px 30px #213e5f20;
  }
  .mobile-nav a { padding: 9px 12px; }
  .mobile-nav a:hover { background: var(--linen); }

  .hero { grid-template-columns: 1fr; padding-top: 17px; }
  .hero-copy { min-height: 0; padding: 25px 19px 23px; border-radius: 9px 9px 0 0; }
  .hero h1 { font-size: clamp(2.85rem, 10.4vw, 4.72rem); }
  html[lang="en"] .hero h1 { font-size: clamp(2.65rem, 9.75vw, 4.45rem); }
  .hero-description { margin-top: 15px; font-size: .94rem; }
  .hero-actions { margin-top: 17px; }
  .hero-actions .button { padding-inline: 10px; gap: 7px; font-size: .79rem; }
  .hero-actions .arrow { width: 13px; height: 13px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.52; border-radius: 0 0 9px 9px; }
  .trust-strip { margin-top: 17px; }
  .trust-strip a { min-height: 64px; flex-direction: column; gap: 4px; padding: 7px 5px; font-size: .71rem; text-align: center; }
  .trust-strip svg { width: 17px; height: 17px; }

  .catalog { padding-block: 50px 52px; }
  .section-heading { display: block; margin-bottom: 19px; }
  .section-heading > p { margin-top: 9px; padding: 0; }
  .product-grid { grid-template-columns: 1fr; gap: 17px; }
  .product-image { aspect-ratio: 1.83; }
  .product-info { padding: 16px 17px 14px; }
  .product-info h3 { font-size: 2.03rem; }
  .product-info p { margin-bottom: 9px; }

  .business-band { padding-block: 51px; }
  .business-grid, .about-grid { grid-template-columns: 1fr; }
  .business-copy h2 { font-size: clamp(3rem, 9.5vw, 4.35rem); }
  .business-description { margin-top: 15px; }
  .business-services { margin-top: 16px; padding-top: 13px; }
  .quote-panel h3 { font-size: 2.15rem; }
  .quote-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { padding-block: 54px; }
  .certification-card { justify-self: start; width: min(100%, 335px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 25px 29px; gap: 18px; }
  .footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 375px) {
  .shell { width: calc(100% - 30px); }
  .hero h1 { font-size: clamp(2.65rem, 10.6vw, 3.03rem); }
  html[lang="en"] .hero h1 { font-size: clamp(2.47rem, 10.15vw, 2.85rem); }
  .header-inner { column-gap: 7px; }
  .header-inner .brand img { width: 61px; height: 48px; }
  .mobile-nav summary { width: 37px; height: 38px; }
  .hero-copy { padding-inline: 15px; }
  .quote-fields { grid-template-columns: 1fr; }
  .hero-actions .button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
