/* ============================================================
   profizivotopis — components.css
   Shared UI components used across multiple templates.
   Page-specific styles live in /css/pages/*.css
   ============================================================ */

/* ============ NAV ============ */
.nav {
  padding: 22px 0;
  background: var(--cream);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream3);
  border: 1.5px solid var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--terra-text);
  transform: translateY(-1px);
}
.wm {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1;
}
.wm .dot { color: var(--terra-text); }
.wm .tld { color: var(--terra-text); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--terra-text); }
.nav-links a.current-menu-item,
.nav-links a[aria-current="page"] { color: var(--terra-text); }

/* ============ BUTTONS (PILLS) ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all .15s;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.pill.forest {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--forest2);
}
.pill.forest:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--forest2);
}
.pill.terra {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 4px 0 var(--terra-shadow);
}
.pill.terra:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--terra-shadow);
}
.pill.ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.pill.ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.pill.outline-terra {
  border-color: var(--terra);
  color: var(--terra-text);
  background: transparent;
}
.pill.outline-terra:hover {
  background: var(--terra);
  color: #fff;
}
.pill.outline-terra.small {
  font-size: 14px;
  padding: 10px 20px;
}
.pill.lg {
  padding: 16px 30px;
  font-size: 16px;
}
.pill.sm {
  padding: 9px 16px;
  font-size: 13px;
}
.pill.outline-forest {
  border-color: var(--forest);
  color: var(--forest);
  background: transparent;
}
.pill.outline-forest:hover {
  background: var(--forest);
  color: var(--cream);
}
.pill.block {
  width: 100%;
  justify-content: center;
}

/* underline accent link */
.link-u {
  color: var(--terra-text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-weight: 600;
  font-size: 16px;
}
.link-u:hover {
  color: var(--forest);
  text-decoration-color: var(--forest);
}

/* WCAG: inline links inside post/page content must have non-color cue (underline) — applies to wp_content rendered articles */
.entry-content a,
article p a,
article li a,
article blockquote a {
  color: var(--terra-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover,
article p a:hover,
article li a:hover,
article blockquote a:hover {
  color: var(--forest);
}

/* ============ BREADCRUMB (on all sub-pages per CSS audit) ============ */
.crumb {
  padding: 4px 0 18px;
}
.crumb .wrap {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--terra-text);
}
.crumb a {
  color: var(--ink3);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.crumb a:hover { color: var(--terra-text); }
.crumb .sep { color: var(--ink3); margin: 0 10px; font-style: normal; }
.crumb .em { font-style: italic; color: var(--terra-text); }
.crumb .dash { color: var(--ink3); margin-right: 8px; font-style: normal; }

/* ============ FAQ ACCORDION (on 7 pages per CSS audit) ============ */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 960px;
}
.qa {
  background: var(--cream3);
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(31,26,23,.05);
  box-shadow: 0 1px 0 rgba(31,26,23,.04);
  overflow: hidden;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  user-select: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa .q {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -.005em;
  flex: 1;
}
.qa .q .i { font-style: italic; color: var(--forest); }
.qa .plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terra-soft);
  color: var(--terra-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  transition: transform .2s;
  flex-shrink: 0;
}
.qa[open] .plus {
  transform: rotate(45deg);
  background: var(--terra);
  color: #fff;
}
.qa .a {
  padding: 0 36px 30px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink2);
  max-width: 820px;
}
.qa .a strong { color: var(--ink); font-weight: 600; }

/* ============ PRICING CARDS ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price {
  background: var(--cream3);
  border-radius: 24px;
  padding: 44px 36px 40px;
  border: 1px solid rgba(31,26,23,.06);
  box-shadow: 0 1px 0 rgba(31,26,23,.04), 0 10px 28px -14px rgba(31,26,23,.1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
}
.price.featured {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
  padding-top: 56px;
  transform: translateY(-16px);
}
.ribbon {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terra);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--terra-shadow);
}
.price .tier {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra-text);
}
.price.featured .tier { color: var(--terra-l); }
.price .pname {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.005em;
}
.price.featured .pname { color: var(--cream); }
.price .pname .i { font-style: italic; color: var(--forest); }
.price.featured .pname .i { color: var(--terra-l); }
.price .pdesc {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink3);
  line-height: 1.4;
}
.price.featured .pdesc { color: var(--cream2); }
.price .amt {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price .amt .n {
  font-family: var(--font-serif);
  font-size: 88px;
  line-height: .95;
  color: var(--forest);
  letter-spacing: -.02em;
}
.price.featured .amt .n { color: var(--cream); }
.price .amt .u {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 32px;
  color: var(--terra-text);
}
.price.featured .amt .u { color: var(--terra-l); }
.price .asub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-top: 6px;
}
.price.featured .asub { color: var(--cream2); }
.price ul {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding-top: 24px;
  border-top: 1px dashed var(--dash);
}
.price.featured ul { border-top-color: rgba(245,241,234,.25); }
.price li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.price li .c {
  color: var(--terra-text);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.price.featured li { color: var(--cream); }
.price.featured li .c { color: var(--terra-l); }
.price li.off {
  color: var(--ink3);
  text-decoration: line-through;
}
.price li.off .c { color: var(--ink3); }
.price.featured li.off { color: rgba(245,241,234,.4); }
.price .pcta { margin-top: 28px; }
.price .pcta .pill {
  width: 100%;
  justify-content: center;
}

/* ============ ADD-ONS ============ */
.addons-head {
  margin-top: 72px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.addons-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink3);
  max-width: 560px;
}
.addons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.addon {
  background: var(--cream3);
  border-radius: 20px;
  padding: 28px 30px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  border: 1px dashed var(--terra);
  box-shadow: 0 1px 0 rgba(31,26,23,.04);
}
.addon-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--terra-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.addon-body { flex: 1; min-width: 0; }
.addon-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.addon h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.005em;
}
.addon h3 .i { font-style: italic; color: var(--forest); }
.addon-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--terra-text);
  line-height: 1;
  letter-spacing: -.01em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--terra-soft);
  white-space: nowrap;
}
.addon-price .u {
  font-style: italic;
  font-size: 16px;
  color: var(--terra-text);
  margin-left: 2px;
  opacity: .85;
}
.addon p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink2);
}

/* ============ TESTIMONIALS (POLAROIDS) ============ */
.voices {
  background: var(--cream2);
  padding: 120px 0 140px;
  position: relative;
}
.polaroids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 72px;
  padding: 20px 0;
}
.pol {
  background: var(--cream3);
  padding: 28px 26px 30px;
  border-radius: 6px;
  box-shadow:
    0 2px 0 rgba(31,26,23,.04),
    0 20px 40px -20px rgba(31,26,23,.25);
  transition: transform .25s ease;
}
.pol-1 { transform: rotate(-1.5deg); }
.pol-2 { transform: rotate(.8deg); margin-top: 12px; }
.pol-3 { transform: rotate(-.5deg); }
.pol:hover { transform: rotate(0) scale(1.02); }

.stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: .12em;
  font-family: var(--font-serif);
}
.pol .q {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.pol .sep {
  margin: 22px 0 18px;
  border-top: 1px dashed var(--dash);
}
.pol .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pol .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--terra-l);
  color: var(--cream3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  overflow: hidden;
  flex-shrink: 0;
}
.pol .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.pol .who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pol .who .n {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.pol .who .r {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink3);
}
.pol .who .r .flag { margin-right: 4px; }

/* ============ CTA (final section on most pages) ============ */
.cta-wrap {
  position: relative;
  padding-top: 80px;
}
.cta-wrap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  border-bottom-left-radius: 50% 80px;
  border-bottom-right-radius: 50% 80px;
  z-index: 2;
}
.cta {
  background: var(--forest);
  color: var(--cream);
  padding: 160px 0 140px;
  text-align: center;
  position: relative;
}
.cta .kicker {
  color: var(--terra-l);
  justify-content: center;
  display: inline-flex;
}
.cta h2 {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 88px;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--cream);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.cta h2 .i { font-style: italic; color: var(--terra-l); }
.cta .sub {
  margin: 32px auto 0;
  max-width: 620px;
  font-size: 19px;
  color: var(--cream2);
  line-height: 1.6;
}
.cta .row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
.cta .note {
  margin-top: 36px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--terra-l);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--cream2);
  padding: 80px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-brand p {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink2);
  max-width: 340px;
  line-height: 1.55;
}
.foot-col .foot-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--terra-text);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  font-size: 15px;
  color: var(--ink2);
  padding: 5px 0;
}
.foot-col a:hover { color: var(--terra-text); }
.foot-bot {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px dashed var(--dash);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink3);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bot .r {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.foot-legal {
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--dash);
  display: flex;
  gap: 24px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px;
  flex-wrap: wrap;
}
.foot-legal a { color: var(--ink3); }
.foot-legal a:hover { color: var(--terra-text); }

/* ============ RESPONSIVE (placeholder breakpoints) ============ */
/* Full responsive pass scheduled for Krok 3.10 (QA). Minimal stops only. */
@media (max-width: 1024px) {
  :root { --wrap-pad: 32px; }
  .pricing { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; }
  .polaroids { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --wrap-pad: 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.pill) { display: none; }
  .sec-title { font-size: 42px; }
  .cta h2 { font-size: 56px; }
  .foot-grid { grid-template-columns: 1fr; }
}
