/*
Theme Name: Apostile LT
Theme URI: https://www.apostile.lt/
Author: Apostile.lt
Description: Aiški, šiuolaikiška paslaugų tema dokumentų tvirtinimui apostile ir legalizavimui.
Version: 1.0.5
Requires at least: 6.9
Requires PHP: 7.4
Text Domain: apostile-lt
*/

:root {
  --apostile-ink: #102a43;
  --apostile-deep: #0b1f33;
  --apostile-blue: #0f5f70;
  --apostile-teal: #167c80;
  --apostile-coral: #ef6a4c;
  --apostile-sand: #f4ede1;
  --apostile-cream: #fbf8f2;
  --apostile-white: #ffffff;
  --apostile-muted: #5f6f7d;
  --apostile-line: #d9e2e8;
  --apostile-shadow: 0 22px 60px rgba(16, 42, 67, 0.12);
}

html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: 0.18em; }

.apostile-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 226, 232, 0.85);
}

.apostile-site-header .wp-block-site-title a {
  letter-spacing: -0.04em;
  text-decoration: none;
}

.apostile-header-actions { white-space: nowrap; }

.apostile-site-header .wp-block-navigation__container {
  flex-wrap: nowrap;
}

@media (max-width: 1200px) {
  .apostile-site-header .wp-block-navigation {
    font-size: .84rem;
  }

  .apostile-site-header .wp-block-navigation__container {
    gap: .65rem !important;
  }

  .apostile-header-actions {
    display: none;
  }
}

.apostile-language-switcher {
  align-items: center;
  display: flex;
  font-size: .76rem;
  font-weight: 900;
  gap: .25rem;
  letter-spacing: .04em;
}
.apostile-language-switcher a {
  border-radius: 999px;
  color: var(--apostile-ink);
  padding: .35rem .45rem;
  text-decoration: none;
}

.apostile-localized-logo {
	color: var(--wp--preset--color--deep);
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.apostile-localized-logo-footer {
	color: #fff;
	font-size: 1.55rem;
}
.apostile-language-switcher a:hover {
  background: var(--apostile-sand);
  color: var(--apostile-blue);
}

.apostile-eyebrow {
  align-items: center;
  color: var(--apostile-blue);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apostile-eyebrow::before {
  background: var(--apostile-coral);
  border-radius: 999px;
  content: "";
  height: 0.55rem;
  width: 0.55rem;
}

.apostile-hero {
  overflow: hidden;
  position: relative;
}

.apostile-hero::before,
.apostile-hero::after {
  border-radius: 999px;
  content: "";
  pointer-events: none;
  position: absolute;
}

.apostile-hero::before {
  background: rgba(239, 106, 76, 0.13);
  height: 30rem;
  right: -12rem;
  top: -16rem;
  width: 30rem;
}

.apostile-hero::after {
  background: rgba(22, 124, 128, 0.1);
  bottom: -12rem;
  height: 24rem;
  left: -10rem;
  width: 24rem;
}

.apostile-hero > .wp-block-group__inner-container,
.apostile-hero > * { position: relative; z-index: 1; }

.apostile-hero h1 {
  font-size: clamp(2.55rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 13ch;
  overflow-wrap: normal;
  word-break: normal;
}

.apostile-lead {
  color: var(--apostile-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  max-width: 40rem;
}

.apostile-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.35rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.apostile-proof-list li {
  color: var(--apostile-ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.apostile-proof-list li::before {
  color: var(--apostile-teal);
  content: "✓";
  font-weight: 900;
  margin-right: 0.45rem;
}

.apostile-hero-card {
  background: linear-gradient(150deg, #123b50, #0b1f33);
  border-radius: 1.5rem;
  box-shadow: var(--apostile-shadow);
  color: #fff;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  transform: rotate(1.5deg);
}

.apostile-hero-card > * { transform: rotate(-1.5deg); }
.apostile-hero-card h2 { color: #fff; }
.apostile-hero-card p { color: rgba(255,255,255,.8); }

.apostile-step-number {
  align-items: center;
  background: var(--apostile-coral);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  margin-right: 0.55rem;
  width: 2rem;
}

.apostile-decision-grid,
.apostile-service-grid,
.apostile-values-grid {
  align-items: stretch;
}

.apostile-decision-grid,
.apostile-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.apostile-service-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.apostile-decision-grid > .wp-block-column,
.apostile-service-grid > .wp-block-column {
  min-width: 0;
}

.apostile-card {
  background: var(--apostile-white);
  border: 1px solid var(--apostile-line);
  border-radius: 1.15rem;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.05);
  height: 100%;
  padding: 1.55rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.apostile-card:hover {
  border-color: var(--apostile-teal);
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.11);
  transform: translateY(-4px);
}

.apostile-card a { text-decoration: none; }
.apostile-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  margin-top: 0.8rem;
  overflow-wrap: normal;
  word-break: normal;
}

.apostile-card-icon {
  align-items: center;
  background: var(--apostile-sand);
  border-radius: 0.8rem;
  color: var(--apostile-blue);
  display: inline-flex;
  font-size: 1.35rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.apostile-band {
  background: var(--apostile-deep);
  color: var(--apostile-white);
}

.apostile-band h2,
.apostile-band h3 { color: var(--apostile-white); }
.apostile-band p { color: rgba(255,255,255,.76); }

.apostile-note {
  background: #e9f5f3;
  border-left: 4px solid var(--apostile-teal);
  border-radius: 0 .8rem .8rem 0;
  padding: 1rem 1.25rem;
}

.apostile-warning {
  background: #fff5ed;
  border-left-color: var(--apostile-coral);
}

.apostile-price-table {
  background: #fff;
  border: 1px solid var(--apostile-line);
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(16,42,67,.07);
  overflow: hidden;
}

.apostile-price-table table { margin: 0; }
.apostile-price-table thead { background: var(--apostile-deep); color: #fff; }
.apostile-price-table th,
.apostile-price-table td { border-color: var(--apostile-line); padding: 1rem 1.15rem; }
.apostile-price-table tbody tr:nth-child(even) { background: var(--apostile-cream); }

.apostile-form-shell {
  background: #fff;
  border: 1px solid var(--apostile-line);
  border-radius: 1.35rem;
  box-shadow: var(--apostile-shadow);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.apostile-form-shell .wpforms-field-label { color: var(--apostile-ink) !important; }
.apostile-form-shell input,
.apostile-form-shell textarea,
.apostile-form-shell select {
  background: #fff !important;
  border: 1px solid #b8c6cf !important;
  border-radius: .65rem !important;
  min-height: 3rem;
}
.apostile-form-shell button[type="submit"] {
  background: var(--apostile-coral) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 800 !important;
  min-height: 3.2rem;
  padding: 0 1.6rem !important;
}

.apostile-request-form form { margin: 0; }
.apostile-form-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.apostile-form-field { margin: 0 0 1rem; }
.apostile-form-field label {
  color: var(--apostile-ink);
  display: block;
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: .35rem;
}
.apostile-form-field input,
.apostile-form-field textarea {
  box-sizing: border-box;
  width: 100%;
}
.apostile-form-field input[type="file"] {
  background: var(--apostile-cream) !important;
  border: 1px dashed var(--apostile-teal) !important;
  cursor: pointer;
  padding: .75rem;
}
.apostile-form-field small {
  color: var(--apostile-muted);
  display: block;
  font-size: .8rem;
  line-height: 1.4;
  margin-top: .35rem;
}
.apostile-form-consent {
  align-items: flex-start;
  display: flex;
  font-size: .88rem;
  gap: .5rem;
  margin: .5rem 0 1.25rem;
}
.apostile-form-consent input { margin-top: .32rem; }
.apostile-form-submit {
  background: var(--apostile-coral);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 3.2rem;
  padding: 0 1.6rem;
}
.apostile-form-message {
  border-radius: .65rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
}
.apostile-form-success { background: #e9f5f3; color: #0f5f70; }
.apostile-form-error { background: #fff0ec; color: #9e321e; }
.apostile-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.apostile-page-hero {
  background: linear-gradient(135deg, #eef7f5, var(--apostile-cream));
  border-bottom: 1px solid var(--apostile-line);
}

.apostile-content h2 { margin-top: 2.5rem; }
.apostile-content h2.has-x-large-font-size { font-size: clamp(1.35rem, 2vw, 1.85rem) !important; overflow-wrap: normal; }
.apostile-content h3 { margin-top: 1.8rem; }
.apostile-content li { margin-bottom: .55rem; }

.apostile-exception-section h2.has-xx-large-font-size,
.apostile-band h2.has-xx-large-font-size {
  font-size: clamp(2rem, 3.5vw, 2.85rem) !important;
  overflow-wrap: normal;
}

.apostile-site-footer a { color: rgba(255,255,255,.88); }
.apostile-site-footer .wp-block-site-title a { color: #fff; text-decoration: none; }

@media (max-width: 960px) {
  .apostile-header-actions { display: none !important; }
  .apostile-hero-card { transform: none; }
  .apostile-hero-card > * { transform: none; }
  .apostile-decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .apostile-site-header { position: relative; }
  .apostile-hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); max-width: none; }
  .apostile-price-table { overflow-x: auto; }
  .apostile-price-table table { min-width: 38rem; }
  .apostile-form-grid { grid-template-columns: 1fr; }
  .apostile-decision-grid { grid-template-columns: 1fr; }
}
/* Keep withdrawal of cookie consent visible on every language route. */
.apostile-cookie-settings { position: fixed; right: 1rem; bottom: 1rem; z-index: 9998; }
.apostile-cookie-settings button { display: inline-block; padding: .55rem .85rem; border: 0; border-radius: 999px; background: #17354b; color: #fff; font-size: .8rem; box-shadow: 0 3px 12px #0003; cursor: pointer; }
.apostile-cookie-settings button:hover, .apostile-cookie-settings button:focus { color: #fff; background: #0b2639; }
.apostile-policy-table { max-width: 100%; overflow-x: auto; }
.apostile-policy-table table { min-width: 40rem; }

/* Mobile navigation and duplicate cookie control fix — 2026-09-26 */
.apostile-site-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.apostile-site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: #fff !important;
  color: #102a43 !important;
}
body:has(.apostile-cookie-settings-button) #cb-badge {
  display: none !important;
}
/* Context-aware request selector — 2026-10-03 */
.apostile-request-form select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 3rem;
  padding: .8rem .9rem;
  border: 1px solid var(--apostile-line);
  border-radius: .5rem;
  background: var(--apostile-white);
  color: var(--apostile-ink);
  font: inherit;
}
.apostile-request-form select:focus-visible {
  outline: 2px solid var(--apostile-teal);
  outline-offset: 2px;
}
.apostile-request-form #apostile-context-help {
  display: block;
  margin-top: .5rem;
  color: var(--apostile-muted);
}

