/*
 Theme Name: Americara
 Theme URI: https://americara.lt
 Description: MB Americara custom theme (Bootstrap-based)
 Author: MB Americara
 Version: 1.0.4
*/

/* =========================
   1. DESIGN TOKENS
========================= */
:root {
  --brand-accent: #d11f2a;
  --bg-main: #0b0e12;
  --bg-surface: #0f141b;
  --bg-graphite: #141a22;
  --bg-graphite-deep: #0e1218;
  --text: #e8edf4;
  --text-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.10);
  --nav-h: 76px;
  --radius: 22px;
  --shadow-1: 0 18px 40px rgba(0, 0, 0, 0.40);
  --shadow-2: 0 28px 64px rgba(0, 0, 0, 0.55);
}

/* =========================
   2. BASE STYLES
========================= */
html, body {
  height: 100%;
}

body {
  background: var(--bg-main);
  color: var(--text);
  padding-top: var(--nav-h); /* Fixed navbar offset */
}

a {
  color: var(--brand-accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

/* =========================
   3. BUTTONS
========================= */
.btn {
  border-radius: 14px;
}

.btn-danger {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

.btn-danger:hover,
.btn-danger:focus {
  background: #b31822;
  border-color: #b31822;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* =========================
   4. NAVBAR (FIXED & ALIGNED)
========================= */
.navbar {
  height: var(--nav-h);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
}

/* Konteineris išcentruoja turinį vertikaliai */
.amer-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logotipas */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.amer-brand-logo {
  height: 40px;
  width: auto;
}

/* Admin bar fix */
.admin-bar .navbar.fixed-top {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .navbar.fixed-top {
    top: 46px;
  }
}

/* =========================
   5. MENU ITEMS & DROPDOWNS (DESKTOP)
========================= */
@media (min-width: 992px) {
  .navbar-nav {
    align-items: center;
    gap: 4px;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    height: 44px;
  }

  .nav-link:hover,
  .nav-link.active,
  .current-menu-item > .nav-link {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  /* Dropdown Rodyklė */
  .nav-link.dropdown-toggle::after {
    margin-left: 6px;
    opacity: 0.6;
    border: none;
    vertical-align: middle;
  }

  /* Dropdown Dėžutė */
  .dropdown-menu {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-2);
    margin-top: 18px;
    padding: 8px 0;
    min-width: 240px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  /* Rodyti užvedus */
  .nav-item.dropdown:hover .dropdown-menu,
  .nav-item.dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s;
  }

  .dropdown-item:hover,
  .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--brand-accent);
    padding-left: 24px;
  }
  
  .dropdown-item.active {
    background: rgba(209, 31, 42, 0.1);
    color: var(--brand-accent);
  }
}

/* =========================
   6. MOBILE MENU
========================= */
@media (max-width: 991.98px) {
  :root { --nav-h: 70px; }
  
  .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 10px;
    border-radius: 10px;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    background: rgba(255,255,255,0.05);
  }

  .navbar-collapse {
    background-color: #0b0e12;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    z-index: 1000;
    border-radius: 0 0 24px 24px;
  }

  .navbar-nav .nav-link {
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
  }
  
  .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .navbar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 10px 0;
  }
  
  .dropdown-item {
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .dropdown-item:hover, .dropdown-item:active {
    background: transparent;
    color: var(--brand-accent);
  }
}

/* =========================
   7. HERO SECTIONS
========================= */
.amer-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.amer-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,7,12,.65) 0%, rgba(3,7,12,.4) 55%, rgba(3,7,12,.2) 100%);
  pointer-events: none;
}

.amer-hero .container { position: relative; z-index: 2; }

/* Inner Hero */
.amer-hero-inner {
  min-height: 42vh;
  padding-top: 84px;
  padding-bottom: 18px;
  background: rgba(15, 17, 21, 0.94);
}

.amer-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--amer-hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.20;
  transform: scale(1.02);
  z-index: 0;
}

.amer-hero-overlay--inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.8) 100%);
  z-index: 1;
}

@media (max-width: 575.98px) {
  .amer-hero-inner {
    min-height: 25vh;
    padding-top: 76px;
  }
}

/* =========================
   8. SECTIONS & CARDS
========================= */
.amer-section {
  padding: 80px 0;
  background: var(--bg-surface);
}

/* Services Section (Graphite) */
.amer-section.services {
  background-color: #151a21;
  background-image: radial-gradient(800px 400px at 50% 0%, rgba(255, 255, 255, 0.05), transparent 80%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.amer-section--alt {
  background: radial-gradient(1100px 520px at 18% -10%, rgba(255,255,255,.03), transparent 60%),
              linear-gradient(180deg, var(--bg-graphite-deep) 0%, #0b0f14 100%);
}

/* Cards */
.amer-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.amer-card.card-hover-effect:hover,
.amer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: var(--shadow-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.amer-card h2, .amer-card h3, .amer-card h4, .amer-card h5 { color: #fff; }
.amer-card p { color: var(--text-muted); line-height: 1.6; }

/* Card Media */
.amer-card-media {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.2);
}

.amer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.amer-card:hover .amer-card-media img {
  transform: scale(1.05);
}

.amer-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.amer-card-body i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}

.amer-card:hover .amer-card-body i {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: 0 0 15px rgba(209, 31, 42, 0.4);
}

/* =========================
   9. SERVICES: STEPS
========================= */
.amer-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.amer-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent);
  background: rgba(255, 255, 255, 0.06);
}

.amer-step-num {
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
}

.amer-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--brand-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =========================
   10. FORMS & TABLES (Contacts)
========================= */
/* Contact Icons */
.amer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.amer-contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.amer-contact-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand-accent);
  transition: all 0.3s ease;
}

.amer-contact-item:hover .amer-contact-icon {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(209, 31, 42, 0.3);
}

/* Inputs */
.amer-form-wrapper input:not([type="submit"]),
.amer-form-wrapper textarea,
.amer-form-wrapper select {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  margin-bottom: 12px;
}

.amer-form-wrapper input:focus,
.amer-form-wrapper textarea:focus {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  outline: none;
}

.amer-form-wrapper input[type="submit"] {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 36px;
  border-radius: 12px;
  transition: all 0.2s;
  width: 100%;
  margin-top: 10px;
}

.amer-form-wrapper input[type="submit"]:hover {
  background: #fff;
  color: #000;
}

.amer-form-wrapper label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
  color: rgba(255,255,255,0.6);
}

/* Priverstinis tamsus fonas pasirinkimo variantams (Dropdown options) */
.amer-form-wrapper select option {
  background-color: #0b0e12; /* Tamsiai juodas fonas */
  color: #fff; /* Baltas tekstas */
  padding: 10px;
}

/* Papildomas saugiklis, jei naršyklė ignoruotų pirmąjį */
select:focus > option:checked {
    background: #d11f2a !important; /* Raudonas fonas pasirinktam elementui */
    color: #fff !important;
}
/* GDPR Checkbox */
.amer-form-wrapper .wpcf7-list-item {
  margin: 0;
  display: block;
}
.amer-form-wrapper .wpcf7-acceptance {
  display: block;
  margin-bottom: 20px;
}
.amer-form-wrapper .wpcf7-acceptance label {
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  gap: 12px;
}
.amer-form-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}
.amer-form-wrapper input[type="checkbox"]:hover {
  border-color: var(--brand-accent);
}
.amer-form-wrapper input[type="checkbox"]:checked {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Details Table (Rekvizitai) */
.amer-details-table {
  width: 100%;
  margin-bottom: 0;
  color: #fff;
  background-color: transparent !important;
  --bs-table-bg: transparent !important;
}

.amer-details-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  vertical-align: middle;
  background-color: transparent !important;
  color: rgba(255,255,255,0.85);
}

.amer-details-table tr:last-child td { border-bottom: 0; }

.amer-details-table td:first-child {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  width: 40%;
}

.amer-details-table td:last-child {
  font-weight: 600;
  text-align: right;
}

.amer-copy-btn {
  opacity: 0.6;
  transition: all 0.2s;
  font-size: 1rem;
  margin-left: 10px;
  color: var(--text-muted);
}
.amer-copy-btn:hover {
  opacity: 1;
  color: var(--brand-accent) !important;
  transform: scale(1.1);
}

/* Messages */
.wpcf7 form.sent .wpcf7-response-output {
  background-color: rgba(25, 135, 84, 0.2);
  border: 1px solid #198754;
  color: #75b798;
  border-radius: 12px;
  padding: 15px;
  margin: 0 !important;
  margin-top: 20px !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #ea868f;
  border-radius: 12px;
  padding: 15px;
  margin: 0 !important;
  margin-top: 20px !important;
}

/* =========================
   11. FOOTER
========================= */
.amer-footer {
  background: #080a0d;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  font-size: 0.9rem;
}

.amer-footer a { color: rgba(255,255,255,.85); }
.amer-footer a:hover { color: #fff; }

/* =========================
   12. HELPER CLASSES
========================= */
.text-secondary { color: var(--text-muted) !important; }
iframe { border-radius: var(--radius); }
.wp-block-heading { color: #fff; }
.wp-block-paragraph { color: rgba(255,255,255,.78); }

/* =========================
   REMONTO PASLAUGOS
========================= */

/* Mažesnė ikona kontaktų sąraše */
.amer-contact-icon.sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

/* Paryškinimas ekspertizės kortelėje */
.border-danger {
  border-color: var(--brand-accent) !important;
}

/* Sąrašo stilius */
.list-unstyled li {
  display: flex;
  align-items: start;
}
.list-unstyled li i {
  margin-top: 4px; /* Lygiavimas su tekstu */
}
/* =========================
   HERO SIDE LOGO (Tik dideliems ekranams)
========================= */

.amer-hero-side-logo {
  max-width: 80%;      /* Reguliuoja logotipo dydį (galite keisti į 60% ar 90%) */
  height: auto;
  
  /* Suteikia gražų gylio efektą */
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  
  /* Švelnus atsiradimas */
  animation: slideInLogo 1.2s ease-out forwards;
  opacity: 0;
}

/* Animacija: logotipas švelniai įvažiuoja iš dešinės */
@keyframes slideInLogo {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1; 
    transform: translateX(0);
  }
}

/* =========================
   HERO SIDE BRANDING
========================= */

/* Logotipas */
.amer-hero-side-logo {
  max-width: 60%; /* Šiek tiek sumažinau, kad tilptų su tekstu */
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  
  /* Animacija */
  opacity: 0;
  animation: slideInLogo 1.2s ease-out forwards;
}

/* Tekstas po logotipu */
.amer-hero-brand-name {
  font-size: 3.5rem;    /* Labai didelis šriftas */
  font-weight: 900;     /* Maksimalus storumas */
  color: #fff;
  letter-spacing: 0.15em; /* Platūs tarpai tarp raidžių */
  line-height: 1;
  margin-top: 10px;
  text-transform: uppercase;
  
  /* Šešėlis ir stilius */
  text-shadow: 0 10px 40px rgba(0,0,0,0.8);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  
  /* Animacija (atsiranda šiek tiek vėliau nei logo) */
  opacity: 0;
  animation: slideInLogo 1.2s ease-out 0.2s forwards;
}

/* Bendra animacija */
@keyframes slideInLogo {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1; 
    transform: translateX(0);
  }
}

/* =========================
   HERO PRE-TITLE
========================= */
.amer-hero-pretitle {
  color: var(--brand-accent); /* Jūsų raudona spalva */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Kad gerai matytųsi ant fono */
}