/* ========================================
   ADMA Kft. – Refreshed Stylesheet
   Bootstrap 5 + custom design
======================================== */

:root {
  --adma-primary:   #0d2d5e;
  --adma-secondary: #1565c0;
  --adma-accent:    #00897b;
  --adma-accent-light: #e0f2f1;
  --adma-light:     #f5f7fa;
  --adma-dark:      #0a1f3d;
  --adma-text:      #2d3748;
  --adma-muted:     #718096;
  --adma-border:    #e2e8f0;
  --adma-white:     #ffffff;
  --transition:     0.25s ease;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--adma-text);
  background: var(--adma-white);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Navbar ---- */
.adma-navbar {
  background-color: var(--adma-primary) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  padding: .6rem 0;
}

.adma-navbar .navbar-brand {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.5px;
  color: #fff !important;
}

.adma-navbar .navbar-brand .brand-sub {
  font-weight: 300;
  font-size: 1rem;
  opacity: .8;
}

.adma-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .45rem .75rem !important;
  transition: color var(--transition);
}

.adma-navbar .nav-link:hover,
.adma-navbar .nav-link.active {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.adma-navbar .dropdown-menu {
  background: var(--adma-dark);
  border: none;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  min-width: 220px;
}

.adma-navbar .dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  padding: .55rem 1.2rem;
  transition: background var(--transition);
}

.adma-navbar .dropdown-item:hover {
  background: var(--adma-secondary);
  color: #fff;
}

.lang-flag { font-size: 1.3rem; line-height: 1; }

/* ---- Carousel / Hero ---- */
.adma-carousel {
  background: var(--adma-dark);
}

.adma-carousel .carousel-item {
  min-height: 420px;
  background: linear-gradient(135deg, var(--adma-primary) 0%, #1565c0 60%, #00897b 100%);
  position: relative;
}

/* Each slide can have its own gradient accent */
.adma-carousel .carousel-item:nth-child(2)  { background: linear-gradient(135deg,#0d3b5e,#1976d2,#0097a7); }
.adma-carousel .carousel-item:nth-child(3)  { background: linear-gradient(135deg,#1b0069,#512da8,#8e24aa); }
.adma-carousel .carousel-item:nth-child(4)  { background: linear-gradient(135deg,#004d1a,#2e7d32,#1b5e20); }
.adma-carousel .carousel-item:nth-child(5)  { background: linear-gradient(135deg,#b45309,#d97706,#0d2d5e); }
.adma-carousel .carousel-item:nth-child(6)  { background: linear-gradient(135deg,#004d40,#00695c,#1a237e); }
.adma-carousel .carousel-item:nth-child(7)  { background: linear-gradient(135deg,#4a148c,#6a1b9a,#0d2d5e); }
.adma-carousel .carousel-item:nth-child(8)  { background: linear-gradient(135deg,#b71c1c,#c62828,#0d2d5e); }

/* If real images are present on the server, they appear on top of the gradient */
.adma-carousel .carousel-item img {
  object-fit: cover;
  height: 420px;
  opacity: .35;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}

.adma-carousel .carousel-caption {
  position: relative;
  text-align: left;
  padding: 80px 0 60px;
  max-width: 640px;
  left: auto; right: auto;
  bottom: auto;
}

.adma-carousel .carousel-caption h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  margin-bottom: 1rem;
}

.adma-carousel .carousel-caption .lead {
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.adma-carousel .carousel-caption .btn {
  margin-right: .5rem;
  margin-bottom: .5rem;
}

.adma-carousel .carousel-control-prev,
.adma-carousel .carousel-control-next {
  width: 5%;
  opacity: .8;
}

.adma-carousel .carousel-indicators [data-bs-target] {
  border-radius: 50%;
  width: 10px;
  height: 10px;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--adma-primary) 0%, var(--adma-secondary) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.page-hero p.lead {
  opacity: .85;
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ---- Breadcrumb in hero ---- */
.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: .6rem;
  font-size: .85rem;
}

.page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.55); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---- Cards ---- */
.service-card {
  border: 1px solid var(--adma-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--adma-white);
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(13,45,94,.12);
  transform: translateY(-3px);
}

.service-card .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--adma-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--adma-accent);
  font-size: 1.7rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--adma-primary);
  margin-bottom: .6rem;
}

.service-card p {
  font-size: .93rem;
  color: var(--adma-muted);
  margin-bottom: 1rem;
}

.service-card .btn-link-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--adma-secondary);
  text-decoration: none;
}

.service-card .btn-link-more:hover { text-decoration: underline; }

/* ---- Content Sections ---- */
.content-section {
  padding: 1.5rem 0 2rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--adma-primary);
  margin-bottom: .5rem;
  padding-bottom: .6rem;
  border-bottom: 3px solid var(--adma-accent);
  display: inline-block;
}

.content-box {
  background: var(--adma-white);
  border: 1px solid var(--adma-border);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--adma-primary);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--adma-border);
}

.content-box h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--adma-secondary);
  margin-top: 1.5rem;
  margin-bottom: .6rem;
}

.content-box h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--adma-text);
  margin-top: 1rem;
  margin-bottom: .4rem;
}

.content-box p, .content-box li {
  color: var(--adma-text);
  font-size: .96rem;
}

.content-box a {
  color: var(--adma-secondary);
}

.content-box a:hover { color: var(--adma-primary); }

.content-box ul, .content-box ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content-box ul li, .content-box ol li {
  margin-bottom: .35rem;
}

/* ---- CTA Box ---- */
.cta-box {
  background: linear-gradient(135deg, var(--adma-primary), var(--adma-secondary));
  color: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-box p {
  margin-bottom: 0;
  font-size: 1rem;
  flex: 1;
}

.cta-box .btn {
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn-adma-primary {
  background: var(--adma-accent);
  border-color: var(--adma-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: .55rem 1.4rem;
  transition: background var(--transition);
}

.btn-adma-primary:hover {
  background: #00695c;
  border-color: #00695c;
  color: #fff;
}

.btn-adma-outline {
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: .5rem 1.4rem;
  background: transparent;
  transition: all var(--transition);
}

.btn-adma-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ---- Carousel btn overrides ---- */
.adma-carousel .btn-primary {
  background: var(--adma-accent);
  border-color: var(--adma-accent);
  font-weight: 600;
}

.adma-carousel .btn-primary:hover {
  background: #00695c;
  border-color: #00695c;
}

/* ---- Intro block (homepage) ---- */
.intro-block {
  background: var(--adma-light);
  border-left: 5px solid var(--adma-accent);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.intro-block h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--adma-primary);
  margin-bottom: .8rem;
}

/* ---- Highlights row (homepage 3-col icons) ---- */
.highlight-card {
  text-align: center;
  padding: 2rem 1rem;
}

.highlight-card .hi-icon {
  font-size: 2.5rem;
  color: var(--adma-accent);
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--adma-primary);
  margin-bottom: .5rem;
}

.highlight-card p {
  font-size: .9rem;
  color: var(--adma-muted);
}

/* ---- Divider ---- */
.section-divider {
  border: none;
  border-top: 2px solid var(--adma-border);
  margin: 2.5rem 0;
}

/* ---- Contact form ---- */
.contact-form label { font-weight: 600; font-size: .9rem; color: var(--adma-primary); }
.contact-form .form-control { border-radius: 6px; border: 1px solid var(--adma-border); font-size: .93rem; }
.contact-form .form-control:focus { border-color: var(--adma-secondary); box-shadow: 0 0 0 3px rgba(21,101,192,.15); }
.contact-form .form-text { font-size: .8rem; }

/* ---- Map wrapper ---- */
.map-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--adma-border); margin-bottom: 2rem; }
.map-wrap gmp-map, .map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---- Soap hobby videos ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.video-item { background: #000; border-radius: 8px; overflow: hidden; }
.video-item p { background: var(--adma-primary); color: #fff; font-size: .85rem; margin: 0; padding: .5rem .75rem; }
.video-item iframe { width: 100%; height: 200px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer {
  background: var(--adma-dark);
  color: rgba(255,255,255,.65);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: .88rem;
}

.site-footer a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.back-to-top {
  font-size: .83rem;
  opacity: .7;
  transition: opacity var(--transition);
}

.back-to-top:hover { opacity: 1; }

/* ---- Alert / info ---- */
.info-alert {
  background: var(--adma-accent-light);
  border-left: 4px solid var(--adma-accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: .93rem;
  color: #004d40;
}

/* ---- Policy pages ---- */
.policy-content h1 { font-size: 1.7rem; font-weight: 700; color: var(--adma-primary); margin-bottom: 1.5rem; }
.policy-content h2 { font-size: 1.2rem; font-weight: 600; color: var(--adma-primary); margin-top: 1.8rem; }
.policy-content p, .policy-content li { font-size: .95rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .adma-carousel .carousel-item { min-height: 300px; }
  .adma-carousel .carousel-item img { height: 300px; }
  .adma-carousel .carousel-caption { padding: 40px 0 30px; }
  .adma-carousel .carousel-caption h1 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .cta-box { flex-direction: column; gap: 1rem; }
  .content-box { padding: 1.2rem; }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .adma-carousel .carousel-control-prev,
  .adma-carousel .carousel-control-next { display: none; }
}
