/* eteisininkas.lt — design tokens & layout */

:root {
  --bg: #f6f4ef;
  /* Mid tone used on inner pages (matches former Apie section bottom) */
  --bg-mid: #ebe7dc;
  /* Shared “Apie-style” page surface: cream → warm neutral */
  --page-surface: linear-gradient(180deg, var(--bg), var(--bg-mid));
  --bg-elevated: #fffdf8;
  --ink: #141821;
  --ink-muted: #4b5568;
  --line: rgba(20, 24, 33, 0.12);
  --accent: #ff6b00;
  --accent-deep: #c2410c;
  --accent-soft: rgba(255, 107, 0, 0.14);
  --gold: #c5a059;
  --gold-soft: rgba(197, 160, 89, 0.2);
  --shadow: 0 18px 50px rgba(20, 24, 33, 0.08);
  --shadow-sm: 0 8px 24px rgba(20, 24, 33, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.visually-hidden {
  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 {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 1.05rem;
}

.logo-dot {
  color: var(--accent);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
}

.nav-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--gold);
}

.nav-cta {
  padding-inline: 1.15rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 21px;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 20px 1.25rem;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    gap: 0.75rem;
    transform-origin: top;
    transform: scaleY(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav-list a {
    display: block;
    padding: 0.6rem 0.25rem;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #ff8f40, var(--accent));
  color: #141821;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.5);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
  background: var(--page-surface);
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse 80% 60% at 20% 10%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, var(--gold-soft), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.hero-stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.hero-panel {
  position: relative;
}

.hero-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-card-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero-card-text {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.hero-badge {
  position: absolute;
  right: 1rem;
  bottom: -0.75rem;
  background: var(--ink);
  color: #f1f5f9;
  font-size: 0.82rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 5rem);
}

.section-about,
.section-services,
.section-templates {
  background: var(--page-surface);
}

/* After hero (cream → tan), continue tan → cream so home scroll feels one surface */
.section-contact {
  background: linear-gradient(180deg, var(--bg-mid), var(--bg));
  padding-block: clamp(4rem, 9vw, 5.5rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h1,
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-lead.tight {
  max-width: 42ch;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.about-card h2,
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.about-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.about-card.accent {
  background: linear-gradient(160deg, var(--accent-deep), #ea580c);
  color: #fff8f0;
  border-color: transparent;
}

.about-card.accent h2,
.about-card.accent h3 {
  color: #fff;
}

.about-profile {
  display: block;
  margin-bottom: 2rem;
}

.about-profile::after {
  content: "";
  display: block;
  clear: both;
}

.about-profile-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.about-profile-copy .section-lead {
  max-width: 48ch;
}

.about-quote {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
}

.about-profile-media {
  float: right;
  width: min(28vw, 380px);
  margin: 0 0 1.5rem 2rem;
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #efe7d8, #ddd4c3);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.about-list li + li {
  margin-top: 0.4rem;
}

.about-accent-copy {
  margin: 0;
  color: rgba(255, 248, 240, 0.94);
}

.check-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(238, 242, 247, 0.92);
  font-size: 0.98rem;
}

.check-list li {
  margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
  .about-detail-grid {
    grid-template-columns: 1fr;
  }

  .about-profile-media {
    float: none;
    width: min(100%, 280px);
    margin: 0 0 1.5rem;
  }
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Paslaugos & Šablonai — one shared card shell */
.service-card,
.template-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card {
  display: block;
}

.service-card:hover,
.template-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: var(--shadow-sm);
}

.service-card.wide {
  grid-column: 1 / -1;
}

.service-icon {
  display: block;
  font-size: 1rem;
  color: var(--gold);
  line-height: 1;
}

.service-card h2,
.service-card h3,
.template-card h2,
.template-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
}

.service-card p,
.template-card p {
  margin: 0;
  flex: 1;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Templates */

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1000px) {
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

.template-card.featured {
  border-color: var(--gold);
  background: linear-gradient(155deg, var(--bg-elevated), #ede5d4);
}

.template-card.featured:hover {
  border-color: var(--gold);
}

.template-card-link {
  text-decoration: none;
  color: var(--ink);
}

.template-card-link:visited,
.template-card-link:hover,
.template-card-link:active {
  color: var(--ink);
  text-decoration: none;
}

.template-card-link * {
  text-decoration: none;
}

.template-card-link:focus-visible {
  outline-offset: 4px;
}

.pill {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-gold {
  background: var(--gold-soft);
  color: #5c481f;
}

.meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  opacity: 0.85;
}

.template-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.template-card-footer .meta {
  line-height: 1.25;
}

.template-card-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.25;
  text-align: right;
}

.package-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.package-detail-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.85rem 0 1rem;
}

.package-detail-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.03rem;
}

.package-detail-cta {
  min-width: 180px;
  display: grid;
  justify-items: end;
  gap: 0.9rem;
  align-content: start;
}

.package-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--accent);
}

.package-price-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-right: 0.35rem;
}

@media (max-width: 760px) {
  .package-detail {
    grid-template-columns: 1fr;
  }

  .package-detail-cta {
    justify-items: start;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.contact-address {
  font-style: normal;
  margin-top: 1.5rem;
  color: var(--ink-muted);
}

.contact-address p {
  margin: 0 0 1rem;
}

.contact-address a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.contact-address a:hover,
.contact-address a:focus-visible {
  border-bottom-color: var(--gold);
}

.contact-form {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffef9;
  color: var(--ink);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
}

.footer-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.section-page-top {
  scroll-margin-top: 5.5rem;
}

/* Focus */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
