/* === STIKLIUS.LT TVARKINGAS STILIUS === */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00c4ff;
    --text-color: #333;
    --light-gray: #f8f8f8;
    --white: #fff;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
      background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 60%);
  color: #172033;
  font-family: Arial, sans-serif;
}

.top-header {
  border-bottom: 0 !important;
  background: rgba(244,248,251,.72) !important;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-header-inner {
  max-width: 1280px !important;
  min-height: 70px !important;
  margin: 0 auto;
  padding: 0 30px;
  border-radius: 26px !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(218,231,242,.95) !important;
  box-shadow: 0 18px 55px rgba(15,33,70,.10) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.top-nav a {
  font-size: 13px;
  padding: 9px 10px;
  letter-spacing: -.1px;
  white-space: nowrap;
  text-decoration: none;
  color: #24354a;
  font-weight: 800;
  border-radius: 999px;
  transition: .18s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: #0876d8;
  background: #eaf4ff;
}

.top-nav a.nav-cta {
  padding: 11px 18px;
      background: linear-gradient(135deg, #07162d, #101827);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(7,22,45,.12);
}

.top-nav a.nav-cta:hover,
.top-nav a.nav-cta.active {
  transform: translateY(-1px);
      background: linear-gradient(135deg, #000, #222);
}

.menu-toggle {
  display: none;
  border: 0;
      background: linear-gradient(135deg, #0d77d8, #0aa5ff);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 12px 25px rgba(13,119,216,.25);
}
.menu-toggle span {
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
  display: block;
  transition: .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Account dropdown */
.account-menu { position: relative; }
.account-btn,
.user-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px !important;
  border: 1px solid #e0ebf4 !important;
  background: #f5f8fc !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
      background: linear-gradient(135deg, #0d77d8, #061b3d);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}
.avatar.big { width: 44px; height: 44px; font-size: 16px; }
.account-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 58px;
  width: 270px;
  background: rgba(255,255,255,.98);
  border: 1px solid #e6edf5;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
  padding: 12px;
  z-index: 9999;
}
.account-dropdown.show { display: block; }
.account-dropdown::before {
  content: "";
  position: absolute;
  right: 22px;
  top: -9px;
  width: 18px;
  height: 18px;
  background: #fff;
  transform: rotate(45deg);
  border-left: 1px solid #e6edf5;
  border-top: 1px solid #e6edf5;
}
.account-head {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 8px;
}
.account-head small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.account-dropdown a {
  display: block;
  padding: 12px 13px;
  border-radius: 12px;
  color: #071833;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.account-dropdown a:hover { background: #f3f7fb; }
.account-dropdown .logout { color: #d93025; }

.cart-btn { display: none !important; }
.mobile-menu-backdrop { display:none; }

@media (max-width: 980px) {
  body.menu-open { overflow: hidden; }
  .top-header { padding: 8px 10px; }
  .top-header-inner {
    border-radius: 20px !important;
    min-height: 68px !important;
    padding: 0 14px 0 18px;
  }
  .site-logo img { height: 42px !important; max-width: 230px; }
  .menu-toggle { display: flex; }

  .mobile-menu-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7,22,45,.28);
    z-index: 998;
  }

  .top-nav {
    display: none;
    position: fixed;
    top: 88px;
    left: 18px;
    right: 18px;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
    background: rgba(255,255,255,.98);
    border: 1px solid #e3e8ef;
    box-shadow: 0 24px 70px rgba(15,33,70,.18);
    border-radius: 26px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    z-index: 1001;
  }

  .top-nav.open { display: flex; }

  .top-nav a {
    width: 100%;
    padding: 15px 18px;
    border-radius: 18px;
    border: 1px solid #edf2f7;
    background: #fff;
    text-align: center;
    font-size: 15px !important;
    color: #263548;
  }

  .top-nav a:hover,
  .top-nav a.active {
    background: #eaf4ff;
    border-color: #cfe5ff;
    color: #0876d8;
  }

  .top-nav a.nav-cta {
    background: #07162d;
    color: #fff !important;
    border-color: #07162d;
  }

  .account-menu {
    width: 100%;
    order: 20;
  }
  .account-btn {
    width: 100%;
    height: auto;
    padding: 12px;
    border-radius: 18px !important;
    justify-content: center;
    background: #f8fbff !important;
  }
  .account-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border-radius: 18px;
  }
  .account-dropdown::before { display:none; }
}

@media (max-width: 420px) {
  .site-logo img { height: 36px !important; max-width: 205px; }
  .menu-toggle { width: 48px; height: 48px; }
  .top-nav { left: 12px; right: 12px; top: 82px; }
}

/* Baneris */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('img/hero-banner.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 8rem 5%;
    text-align: center;
    position: relative;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #eee;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* Mygtukai */
.order-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
    border: 2px solid transparent;
}

.order-button:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Skyriai */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* Galerija */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.gallery-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.gallery-box h3 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.swiper {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.swiper-slide img:hover {
    transform: scale(1.05);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Privalumų blokai */
.advantages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.advantage-box {
    flex: 1;
    min-width: 250px;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.advantage-box:hover {
    transform: translateY(-10px);
}

.advantage-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Kontaktų sekcija */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.contact-info, .social-info {
    flex: 1;
    min-width: 250px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links img {
    width: 24px;
    height: 24px;
}

/* Forma */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    min-height: 1rem;
}

#contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

#contact-form button:hover {
    background-color: #0055aa;
}

.button-text {
    display: inline-block;
    transition: all 0.3s;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#contact-form button.loading .button-text {
    opacity: 0;
}

#contact-form button.loading .loading-spinner {
    display: block;
}

/* Atsakymo žinutė */
#response-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

#response-message.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

#response-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Footer */
footer {
    background-color: var(--light-gray);
    color: #555;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Animacijos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobilusis dizainas */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 1.8rem;
    }

    .banner p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 5%;
    }

    .swiper {
        height: 250px;
    }

    .contact-container, .advantages-container {
        flex-direction: column;
    }

    .advantage-box {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 5%;
    }

    .banner {
        padding: 6rem 5%;
    }

    .banner h1 {
        font-size: 1.5rem;
    }

    .order-button {
        padding: 0.6rem 1.5rem;
    }

    section {
        padding: 2rem 5%;
    }
}
