/* ============================================
   Template 15: Navy & Teal — aifinyo finance GmbH
   Primary: #003B5C | Accent: #00A7A0 | Dark: #001F33 | Light bg: #F2F9FA
   Font: Albert Sans
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* === Root Variables === */
:root {
  --primary: #003B5C;
  --accent: #00A7A0;
  --dark: #001F33;
  --light-bg: #F2F9FA;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray: #6C757D;
  --light-gray: #E9ECEF;
  --font-family: 'Albert Sans', sans-serif;
}

/* === Global === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.bg-light-section {
  background-color: var(--light-bg);
}

.bg-dark-section {
  background-color: var(--dark);
  color: var(--white);
}

.bg-primary-section {
  background-color: var(--primary);
  color: var(--white);
}

/* === Navbar (Template 15: NO fixed-top, container wrapper) === */
.custom-navbar {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  z-index: 1030;
}

.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-navbar .navbar-brand img {
  height: 3rem;
}

.custom-navbar .navbar-brand .company-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.custom-navbar .navbar-brand .company-name strong {
  font-weight: 800;
  color: var(--dark);
}

.custom-navbar .nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(0, 167, 160, 0.08);
}

.custom-navbar .navbar-buttons .btn {
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 0.65rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  font-weight: 600;
  padding: 0.65rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #008c87;
  border-color: #008c87;
  color: var(--white);
}

.btn-outline-primary-custom {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 0.65rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-lg-custom {
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
}

/* === Hero Section (Template 15: Clean Split, NOT full-screen) === */
.hero-section {
  padding: 7rem 0 4rem 0;
  background-color: var(--white);
}

.hero-section .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-section .hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-section .hero-content .hero-tagline {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-section .hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* === Features Image Cards === */
.features-image-section {
  padding: 5rem 0;
}

.features-image-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.features-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.features-image-card .card-img-wrapper {
  overflow: hidden;
  height: 220px;
}

.features-image-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.features-image-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.features-image-card .card-body {
  padding: 1.75rem;
}

.features-image-card .card-body h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.features-image-card .card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Advantages Section === */
.advantages-section {
  padding: 5rem 0;
}

.advantage-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.advantage-item .advantage-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 167, 160, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.advantage-item .advantage-text h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.advantage-item .advantage-text p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Services Section === */
.services-section {
  padding: 5rem 0;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  height: 100%;
  border-top: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card .service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 167, 160, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.75rem;
  color: var(--accent);
}

.service-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === About Page === */
.about-section {
  padding: 7rem 0 5rem 0;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* === FAQ Accordion === */
.faq-section {
  padding: 5rem 0;
}

.accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 8px !important;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: rgba(0, 59, 92, 0.03);
  border-color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent);
}

.accordion-body {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  padding: 1.5rem;
}

/* === Contact Form === */
.contact-section {
  padding: 5rem 0;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper .form-control {
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color 0.3s ease;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 167, 160, 0.1);
}

.contact-form-wrapper textarea.form-control {
  min-height: 140px;
}

/* === Contact Info Cards === */
.contact-info-section {
  padding: 3rem 0;
}

.contact-info-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.contact-info-card .contact-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 59, 92, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-info-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === Map === */
.map-section {
  padding: 0 0 4rem 0;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* === Team Section (Testimonials page) === */
.team-section {
  padding: 5rem 0;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card .team-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .team-body {
  padding: 1.75rem;
}

.team-card .team-body h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.team-card .team-body .role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* === Testimonial Cards === */
.testimonial-section {
  padding: 5rem 0;
}

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  border-left: 4px solid var(--accent);
}

.testimonial-card .quote {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--dark);
  font-style: normal;
}

.testimonial-card .author-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

/* === Page Header (for sub-pages) === */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--white);
  padding: 8rem 0 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* === Footer (Template 15: Simple centered) === */
.site-footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem 0;
  text-align: center;
}

.site-footer .footer-links {
  margin-bottom: 1.5rem;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 1rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
}

.site-footer .copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* === Stats / Achievement Numbers === */
.stats-section {
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 500;
}

/* === Responsive === */
@media (max-width: 991px) {
  .hero-section {
    padding: 5rem 0 3rem 0;
  }

  .hero-section .hero-content h1 {
    font-size: 2.4rem;
  }

  .page-header {
    padding: 6rem 0 2rem 0;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .hero-section .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-section .hero-image {
    margin-top: 2rem;
  }

  .site-footer .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* === Cookie Consent Popup Styles === */
.cookie-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 0;
  background: var(--white);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-alert.show {
  display: block;
}

/* === Legal Pages Styles === */
.container a {
  color: #000000;
  text-decoration: none;
}

.container a:hover {
  color: #00008B;
  text-decoration: underline;
}

.wp-block-heading strong {
  font-weight: 700;
}

.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}

.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
}

.has-fixed-layout {
  table-layout: fixed;
  width: 100%;
}

.wp-block-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.wp-block-table th {
  background-color: #f8f9fa;
  font-weight: 700;
  text-align: left;
}
