@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --orange: #f76300;
  --orange-light: #ff8533;
  --orange-bg: rgba(247, 99, 0, 0.08);
  --dark: #1e2d3d;
  --text: #374151;
  --muted: #6b7280;
  --light-bg: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.14);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: #fff;
  margin: 0;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  outline: none;
}

/* ── NAVBAR ── */
.site-nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-nav .navbar-brand img {
  height: 44px;
  width: auto;
}

.site-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  margin: 0 2px;
  text-decoration: none;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  background: var(--orange-bg);
  color: var(--orange) !important;
}

.site-nav .nav-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  background: var(--orange-bg);
  color: var(--orange) !important;
}

.site-nav .nav-link.ebiuro-link {
  background: var(--orange);
  color: #fff !important;
  margin-left: 6px;
}

.site-nav .nav-link.ebiuro-link:hover {
  background: var(--orange-light);
  color: #fff !important;
}

/* ── HERO ── */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 45, 61, 0.7) 0%, rgba(247, 99, 0, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 70px 20px;
  max-width: 820px;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.hero-content p.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 24px;
  opacity: 0.93;
  line-height: 1.75;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  padding: 13px 34px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(247, 99, 0, 0.4);
}

.hero-cta:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(247, 99, 0, 0.5);
}

.hero-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.main-hero   { background-image: url('bgimage.jpeg'); }
.services-hero { background-image: url('bg2.jpeg'); }
.tax-hero    { background-image: url('bg3.jpeg'); }
.contact-hero  { background-image: url('bg4.jpeg'); }

/* ── FEATURE CARDS (homepage) ── */
.features-section {
  padding: 72px 0 64px;
  background: #fff;
}

.features-section .section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 52px;
  text-align: center;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.feature-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  margin-top: 0;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ── SERVICES ── */
.services-section {
  padding: 64px 0;
  background: var(--light-bg);
}

.services-section .section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 40px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow);
}

.service-card h3 {
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.service-card ul {
  margin: 0;
  padding-left: 16px;
}

.service-card ul li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ── TAX PAGE ── */
.tax-section {
  padding: 64px 0;
}

.cuf-logo {
  display: block;
  margin: 0 auto 40px;
  max-width: 180px;
}

.tax-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 40px;
}

.country-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
}

.country-card h3 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  margin-top: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

.country-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.country-card ul li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-card ul li:last-child {
  border-bottom: none;
}

.country-card ul li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── CONTACT PAGE ── */
.contact-section {
  padding: 64px 0;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  height: 100%;
}

.contact-info-card h2 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  margin-top: 0;
  font-size: 1.35rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--orange-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--orange);
  font-size: 15px;
}

.contact-text strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-text span {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border: none;
}

/* ── MAP (homepage) ── */
.map-section iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0 16px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--orange);
  margin-bottom: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item i {
  color: var(--orange);
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--orange);
}

.contact-text a {
  color: inherit;
  text-decoration: none;
}

.contact-text a:hover {
  color: var(--orange);
}

/* ── PAGE CTA BANNER ── */
.page-cta {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}

.page-cta p {
  font-size: 1.05rem;
  margin-bottom: 28px;
  opacity: 0.85;
  margin-top: 0;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 24px 0 14px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ── LANG SELECT ── */
.lang-select {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  padding-right: 22px;
}

.lang-select:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.lang-select:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Desktop: nav-collapse is a flex row */
@media (min-width: 900px) {
  .nav-collapse {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-collapse .lang-select {
    margin-left: 8px;
  }
}

/* ── MOBILE NAV HAMBURGER ── */
.nav-toggler {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggler span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggler:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.nav-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 899px) {
  .site-nav {
    position: sticky;
    flex-wrap: wrap;
  }

  .nav-toggler {
    display: flex;
  }

  .nav-collapse {
    display: none;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  .nav-collapse.open {
    display: block;
  }

  .nav-collapse .navbar-nav {
    flex-direction: column;
  }

  .nav-collapse .nav-link {
    padding: 10px 12px !important;
    display: block;
    border-radius: 6px;
    margin: 1px 0;
  }

  .site-nav .nav-collapse .ebiuro-link {
    margin: 8px 0 0 0;
    text-align: center;
  }

  .nav-collapse .lang-select {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 10px 28px 10px 12px;
    border-radius: 6px;
    box-sizing: border-box;
  }
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }

/* Ensure vertical gap between stacked cards (g-4 row-gap not in Bootstrap 4) */
.row.g-4 {
  row-gap: 1.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 576px) {
  .hero-content { padding: 52px 16px; }
  .hero-content h1 { font-size: 1.8rem; }
  .features-section { padding: 48px 0 36px; }
  .contact-info-card { padding: 24px; margin-bottom: 20px; }
  .map-embed { min-height: 260px; }
  .map-embed iframe { min-height: 260px; }
}

@media (max-width: 768px) {
  .services-section { padding: 48px 0; }
  .tax-section { padding: 48px 0; }
  .contact-section { padding: 48px 0; }
}
