/*
Theme Name: Publikuota.lt Landing
Theme URI: https://publikuota.lt
Author: Tavo Vardas
Description: Pilnai mobiliems pritaikytas landing page (Responsive 1:1)
Version: 4.0
Text Domain: publikuota-lt
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-blue: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --bg-dots: #e5e7eb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: #fafafa;
  background-image: radial-gradient(var(--bg-dots) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-top: 0;
}

/* Mygtukai */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid #d1d5db;
}
.btn-outline:hover {
  background-color: #f3f4f6;
}
.btn-blue {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: 1px solid var(--primary-blue);
}
.btn-blue:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Headeris */
header {
  padding: 20px 0;
  width: 100%;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 36px;
  width: auto;
  display: block;
}
.header-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

/* Hero Sekcija */
.hero {
  padding: 60px 0 40px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content { flex: 1.1; }
.hero-image { flex: 0.9; }
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 700;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}
.hero-buttons {
  display: flex;
  gap: 16px;
}
.middle-banner {
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  padding: 40px 20px;
  color: var(--text-main);
  background: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Modulių ir sekcijų stiliai */
.section-title-wrapper { text-align: center; margin-bottom: 48px; }
.section-title-wrapper h2 { font-size: 36px; margin-bottom: 16px; line-height: 1.2; }
.section-title-wrapper p { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 28px; margin-bottom: 16px; color: var(--text-muted); font-size: 15px; }
.feature-list li::before { content: '✓'; color: var(--primary-blue); position: absolute; left: 0; font-weight: bold; font-size: 16px; }

/* Kortelės (Leidėjams / Agentūroms) */
.cards-grid {
  display: flex;
  gap: 30px;
  padding: 20px 0;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  flex: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 48px;
  height: 48px;
  background-color: #eff6ff;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.card > p {
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 24px;
}
.card .btn { width: 100%; margin-top: auto; }

/* Steps / Kaip tai veikia */
.steps-section {
  text-align: center;
  padding: 80px 0;
}
.steps-section h2 {
  font-size: 32px;
  margin-bottom: 60px;
}
.steps-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.steps-line {
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}
.step {
  flex: 1;
  position: relative;
  z-index: 2;
  padding: 0 15px;
}
.step-icon {
  width: 56px;
  height: 56px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-main);
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-light); margin: 0; }
.steps-footer-text {
  margin-top: 60px;
  color: var(--text-light);
  font-size: 15px;
}

/* Apie (Early Stage) */
.about-section {
  padding: 60px 0;
}
.about-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.about-content h2 {
  font-size: 32px;
  margin-bottom: 24px;
}
.about-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.quote {
  text-align: center;
  margin-top: 60px;
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
  font-style: italic;
}

/* Forma */
.form-section {
  text-align: center;
  padding: 80px 0;
}
.form-section h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.form-section > p {
  color: var(--text-light);
  margin-bottom: 40px;
}
.form-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  padding: 32px;
}
.form-card input[type="email"],
.form-card input[type="url"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-card input:focus {
  border-color: var(--primary-blue);
}
.form-card .btn {
  width: 100%;
  border: none;
}

/* Footeris */
footer {
  text-align: center;
  padding: 60px 0;
  font-size: 13px;
  color: var(--text-light);
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
}
footer div { margin-bottom: 8px; }
.footer-logo img {
  max-height: 24px;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}
footer a {
  color: var(--text-main);
  text-decoration: none;
}

/* ==================================================== */
/* MOBILUS PRITAIKYMAS (RESPONSIVE MEDIA QUERIES)       */
/* ==================================================== */

@media (max-width: 900px) {
  .cards-grid {
    flex-direction: column;
  }
  .card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Header Responsive */
  .header-inner { 
    flex-direction: column; 
    gap: 16px; 
    padding-bottom: 10px;
  }
  .header-buttons { 
    flex-wrap: wrap; 
    justify-content: center; 
    width: 100%;
  }
  .header-buttons .btn {
    flex: 1 1 calc(50% - 6px); 
    text-align: center;
    font-size: 13px;
    padding: 8px 10px;
  }
  .header-buttons .btn-blue {
    flex: 1 1 100%; 
  }

  /* Hero Responsive - Elementų perrikiavimas */
  .hero { 
    padding-top: 20px; 
  }
  .hero .container {
    flex-direction: column; 
    text-align: center; 
    gap: 20px !important; /* Perašome inline stiliaus tarpą */
  }
  /* Išskaidome hero-content, kad galėtume perrikiuoti jo vidinius elementus su paveikslėliu */
  .hero-content {
    display: contents;
  }
  
  .hero h1 { 
    font-size: 34px; 
    order: 1; /* H1 eina pirmas */
    margin-bottom: 0;
  }
  
  .hero-image {
    order: 2; /* Paveikslėlis eina antras (iškart po H1) */
    width: 100%;
    margin: 10px 0;
  }
  
  .hero p {
    font-size: 16px;
    order: 3; /* Tekstas eina trečias */
    margin-bottom: 0;
  }
  
  .hero-buttons { 
    order: 4; /* Mygtukai eina ketvirti */
    flex-direction: column; 
    width: 100%;
    margin-top: 10px;
  }
  .hero-buttons .btn {
    width: 100%;
  }

  /* Sections Responsive */
  .section-title-wrapper h2 {
    font-size: 28px;
  }
  .section-title-wrapper p {
    font-size: 16px;
  }
  
  /* Steps Responsive */
  .steps-container { 
    flex-direction: column; 
    gap: 40px; 
  }
  .steps-line { 
    display: none; 
  }
  
  /* About Responsive */
  .about-content h2 {
    font-size: 28px;
  }
  
  /* Forms Responsive */
  .form-section h2 {
    font-size: 28px;
  }
  .form-card {
    padding: 24px 20px;
  }
}