/*
Theme Name:   Astra Child — Mistras
Theme URI:    https://mistras.lt
Description:  Astra child theme for UAB Mistras. Walnut + orange palette, Inter Tight + Open Sans typography. Tokens from VERCEL_SPEC.md §2.
Author:       Syntara
Author URI:   https://syntara.lt
Template:     astra
Version:      1.0.0
Text Domain:  astra-child-mistras
*/

/* ───────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   Mirror of VERCEL_SPEC.md §2. Single source of brand values.
─────────────────────────────────────────────────────────── */
:root {
  /* Walnut — primary brand / text */
  --walnut:        #5D4037;
  --walnut-dark:   #3E2723;
  --walnut-light:  #8D6E63;

  /* Slate — secondary / trust */
  --slate-brand:   #2C3E50;

  /* Orange — CTA / accent */
  --orange:        #E67E22;
  --orange-dark:   #CF6D17;
  --orange-light:  #F39C12;

  /* Surface */
  --bg:            #F9F9F9;
  --muted:         #6B7280;
  --border:        #E8E0D4;

  /* Type */
  --font-heading:  'Inter Tight', system-ui, sans-serif;
  --font-body:     'Open Sans', system-ui, sans-serif;

  /* Radius */
  --radius-card:   12px;
  --radius-hero:   20px;
  --radius-pill:   999px;

  /* Shadow */
  --shadow-sm:     0 1px 3px rgba(0,0,0,.10);
  --shadow:        0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.16);
  --shadow-orange: 0 8px 24px rgba(230,126,34,.40);

  /* Layout */
  --container:     1200px;
  --gutter:        5%;
  --touch:         44px;
}

/* ───────────────────────────────────────────────────────────
   2. BASE
─────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--walnut-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--walnut-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }      /* display-xl */
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }    /* display-lg */
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }      /* display-md */

p { line-height: 1.65; }

a { color: inherit; text-decoration: none; }

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

html { scroll-behavior: smooth; }

section { scroll-margin-top: 80px; }

/* ───────────────────────────────────────────────────────────
   3. UTILITIES
─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-block {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .section-block { padding: 80px 40px; }
}

/* Section tag — small uppercase eyebrow with orange dot, Vercel signature */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--walnut-light);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

/* ───────────────────────────────────────────────────────────
   4. NAVBAR (sticky, walnut-dark)
   Astra default header gets restyled. Header logo + menu in WP
   Customizer should already be set; this is colour/spacing.
─────────────────────────────────────────────────────────── */
.site-header,
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--walnut-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 72px;
}

.site-header .ast-primary-header-bar { background: var(--walnut-dark); }

.site-header a,
.site-header .menu-item a { color: rgba(255,255,255,0.85); }

.site-header a:hover,
.site-header .menu-item a:hover { color: var(--orange); }

/* Logo orange period accent — wrap "." in <span class="logo-dot"> in Customizer */
.site-title .logo-dot { color: var(--orange); }

.site-header .phone-link {
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

/* ───────────────────────────────────────────────────────────
   5. CTA BUTTONS
─────────────────────────────────────────────────────────── */
.cta-btn,
.elementor-button.cta-btn,
a.cta-btn {
  background: var(--orange);
  color: #fff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
}

.cta-btn:hover,
.cta-btn:focus {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.cta-btn--outline {
  background: transparent;
  color: var(--walnut-dark) !important;
  border: 1.5px solid var(--walnut-light);
  box-shadow: none;
}
.cta-btn--outline:hover { background: rgba(0,0,0,0.04); }

.cta-btn--ghost-on-dark {
  background: rgba(255,255,255,0.10);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.cta-btn--ghost-on-dark:hover { background: rgba(255,255,255,0.20); }

/* ───────────────────────────────────────────────────────────
   6. HERO (dark gradient, grain, herringbone, orange glow)
─────────────────────────────────────────────────────────── */
.mistras-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--walnut-dark) 0%, #2C1810 50%, var(--slate-brand) 100%);
  color: #fff;
  padding: 120px 20px 80px;
}

.mistras-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.mistras-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.3) 10px, rgba(255,255,255,0.3) 11px);
  opacity: 0.05;
  pointer-events: none;
}

.mistras-hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(230,126,34,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mistras-hero h1 { color: #fff; max-width: 800px; }
.mistras-hero h1 .accent { color: var(--orange); }
.mistras-hero p { color: rgba(255,255,255,0.70); font-size: 1.125rem; max-width: 480px; }

.mistras-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.80);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.mistras-hero .eyebrow::before {
  content: '●';
  color: var(--orange);
  font-size: 0.5rem;
}

.mistras-hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.mistras-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.80);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}

/* ───────────────────────────────────────────────────────────
   7. TRUST BAR (4 stat cards)
─────────────────────────────────────────────────────────── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 40px 0;
}
@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.trust-stat {
  text-align: center;
  padding: 24px 16px;
}
.trust-stat__value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.trust-stat__label {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────────
   8. SERVICE CARDS (6 services)
─────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card__icon { font-size: 2rem; }
.service-card__title { font-size: 1.25rem; margin: 0; }
.service-card__desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.service-card__price { color: var(--orange); font-weight: 700; font-size: 0.95rem; }
.service-card__link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 8px;
}
.service-card__link:hover { text-decoration: underline; }

/* ───────────────────────────────────────────────────────────
   9. WHY US PILLARS
─────────────────────────────────────────────────────────── */
.why-us {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .why-us { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-us { grid-template-columns: repeat(4, 1fr); } }

.pillar { text-align: left; padding: 24px; }
.pillar__icon { font-size: 2rem; margin-bottom: 12px; }
.pillar__title { font-size: 1.1rem; margin: 0 0 8px; }
.pillar__desc { color: var(--muted); font-size: 0.95rem; }

/* ───────────────────────────────────────────────────────────
   10. REVIEWS (static 3-up grid — no carousel per Path C)
─────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card__stars { color: var(--orange); font-size: 1rem; }
.review-card__text { font-size: 0.95rem; line-height: 1.6; flex: 1; }
.review-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ───────────────────────────────────────────────────────────
   11. FAQ ACCORDION
─────────────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ───────────────────────────────────────────────────────────
   12. PORTFOLIO GRID (static, no filter per Path C)
─────────────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.portfolio-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
  transition: transform 0.3s ease;
}
.portfolio-item:hover img { transform: scale(1.03); }

/* ───────────────────────────────────────────────────────────
   13. CTA BANNER (repeating bottom block)
─────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--walnut-dark);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius-hero);
  margin: 40px auto;
  max-width: 1100px;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.cta-banner .cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ───────────────────────────────────────────────────────────
   14. FOOTER (dark walnut, 4 col)
─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--walnut-dark);
  color: rgba(255,255,255,0.70);
  padding: 60px 20px 32px;
  font-size: 0.9rem;
  line-height: 1.8;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.60); }
.site-footer a:hover { color: var(--orange); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 32px;
  padding-top: 24px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* ───────────────────────────────────────────────────────────
   15. STICKY MOBILE BOTTOM BAR
─────────────────────────────────────────────────────────── */
.mistras-mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  display: none;
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.mistras-mobile-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch);
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mistras-mobile-cta .call {
  flex: 1;
  background: #fff;
  color: var(--slate-brand);
  border: 1.5px solid var(--border);
}
.mistras-mobile-cta .quote {
  flex: 2;
  background: var(--orange);
  color: #fff;
}
.mistras-mobile-cta .quote:hover { background: var(--orange-dark); }

/* Show only on mobile, push body content above bar */
@media (max-width: 767px) {
  .mistras-mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* ───────────────────────────────────────────────────────────
   16. FORM (contact / kontaktai)
─────────────────────────────────────────────────────────── */
.wpforms-container input[type=text],
.wpforms-container input[type=tel],
.wpforms-container input[type=email],
.wpforms-container textarea {
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  background: #fff !important;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus {
  border-color: var(--orange) !important;
  outline: none !important;
}
.wpforms-container .wpforms-submit {
  background: var(--orange) !important;
  color: #fff !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 16px 32px !important;
  min-height: var(--touch) !important;
  cursor: pointer !important;
  box-shadow: var(--shadow-orange) !important;
}
.wpforms-container .wpforms-submit:hover {
  background: var(--orange-dark) !important;
}
