/* ================================================
   OTONDE | MODERN VISUAL UPGRADE OVERRIDE
   ================================================ */

/* ===== GLOBAL REFINEMENTS ===== */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

section {
  padding: 80px 0;
}

img {
  object-fit: cover;
  transition: .3s ease;
}

/* ===== CLEANER HEADINGS ===== */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.3px;
}

h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

p {
  opacity: .9;
}

/* ===== SMOOTH ANIMATIONS ===== */
.fade-in {
  animation: fadeIn .8s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp .8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVBAR UPGRADE ===== */
header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(7px);
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

header nav a {
  font-weight: 600;
  color: #222 !important;
  padding: 8px 16px;
  border-radius: 6px;
  transition: .3s;
}

header nav a:hover {
  background: #edf0f3;
  color: #000 !important;
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card img:hover {
  transform: scale(1.07);
}

/* ===== BUTTON GLOW ===== */
.btn:hover {
  box-shadow: 0 6px 18px rgba(0,110,255,0.3);
}

/* =========================================================
   MOBILE MENU - CLEAN PROFESSIONAL VERSION
   ========================================================= */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f1423 100%);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.open {
  right: 0;
}

/* Subtle Background Pattern - Very Light and Blurred */
.mobile-menu-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/brand/otonde-symbol.png');
  background-repeat: repeat;
  background-size: 80px;
  opacity: 0.04;
  pointer-events: none;
  filter: blur(8px);
  animation: none;
}

/* Remove floating construction icons */
.mobile-menu-overlay::after {
  display: none;
}

/* Menu Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-logo img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: 2px solid #F26B00;
  animation: none;
}

.mobile-menu-logo span {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.mobile-menu-logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: #F26B00;
  transform: rotate(90deg);
}

/* Quick Actions Grid */
.mobile-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.quick-action-btn i {
  font-size: 1.1rem;
}

.quick-action-btn:hover {
  background: #F26B00;
  border-color: #F26B00;
  transform: translateY(-2px);
}

/* Navigation Links */
.mobile-nav-links {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links h4 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.mobile-nav-links ul {
  list-style: none;
  padding: 0;
}

.mobile-nav-links li {
  margin-bottom: 5px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-links a i {
  width: 24px;
  font-size: 1.1rem;
  opacity: 0.7;
}

.mobile-nav-links a:hover {
  background: rgba(242, 107, 0, 0.2);
  padding-left: 20px;
}

.mobile-nav-links a.active {
  background: rgba(242, 107, 0, 0.3);
  border-left: 3px solid #F26B00;
}

/* Services Section */
.mobile-services {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-services h4 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.service-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-shortcuts button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 100%;
}

.service-shortcuts button i {
  width: 24px;
  font-size: 1.1rem;
}

.service-shortcuts button:hover {
  background: rgba(242, 107, 0, 0.2);
  border-color: #F26B00;
}

/* Social Links */
.mobile-social {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social h4 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #F26B00;
  transform: translateY(-3px);
}

/* Contact Info */
.mobile-contact-info {
  padding: 20px;
}

.mobile-contact-info h4 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-details .detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.85rem;
}

.contact-details .detail i {
  width: 24px;
  color: #F26B00;
}

.contact-details .detail a {
  color: white;
  text-decoration: none;
}

.contact-details .detail a:hover {
  color: #F26B00;
}

/* CTA Button */
.mobile-cta {
  padding: 20px;
  padding-top: 0;
}

.mobile-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  header nav a {
    padding: 10px 14px;
  }
  .card img {
    height: 200px;
  }
  section {
    padding: 60px 0;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* =========================================================
   DESKTOP NAV: 2 ROWS + BUTTON STYLE
   ========================================================= */
@media (min-width: 1024px) {
  .header-container {
    align-items: center;
    gap: 16px;
  }

  .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .main-nav .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 10px;
    max-width: 720px;
  }

  .nav-link {
    background: rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(113, 128, 150, 0.25);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  }

  .nav-link:hover {
    transform: translateY(-1px);
    background: rgba(242, 107, 0, 0.12);
    border-color: rgba(242, 107, 0, 0.35);
    color: var(--primary) !important;
  }

  .nav-link.active {
    background: rgba(242, 107, 0, 0.14);
    border-color: rgba(242, 107, 0, 0.45);
    color: var(--primary) !important;
  }

  .nav-link.active::after {
    display: none !important;
  }
}

/* =========================================================
   LOGO ANIMATION (subtle + premium)
   ========================================================= */
@media (min-width: 768px) {
  .logo-img {
    transform-origin: center;
    animation: logoFloat 4.2s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(242, 107, 0, 0.18);
  }

  .logo-main {
    position: relative;
  }

  .logo-main::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(16,163,127,.85), transparent);
    transform: scaleX(0.35);
    opacity: 0.6;
    animation: logoShine 2.8s ease-in-out infinite;
  }

  @keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-0.6deg); }
  }

  @keyframes logoShine {
    0%, 100% { transform: scaleX(0.35); opacity: 0.45; }
    50% { transform: scaleX(0.85); opacity: 0.8; }
  }
}

/* Keep full logo crisp, not boxed */
@media (min-width: 768px) {
  .logo-img.logo-full {
    animation: none !important;
    box-shadow: none !important;
  }
}
.mobile-menu-logo img {
  border-color: #F26B00;
  background: rgba(255,255,255,0.05);
}
