/* ========================================
   Daykin Insurance Agency — Custom Styles
   Classic & Elegant Design System
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ---------- Selection ---------- */
::selection {
  background-color: #1f5f5d;
  color: #d6ecea;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.scroll-reveal.revealed ~ .scroll-reveal {
  transition-delay: 0.15s;
}

/* ---------- Navbar ---------- */
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 125, 122, 0.15);
}

#navbar.scrolled .nav-logo-text {
  color: #ffffff;
}

/* ---------- Buttons ---------- */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Form Styles ---------- */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 125, 122, 0.1);
}

/* ---------- Smooth Scroll Offset ---------- */
section[id] {
  scroll-margin-top: 80px;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  animation: fadeIn 0.3s ease-out;
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #aed9d7;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* ---------- Image Hover Effects ---------- */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* ---------- Print Styles ---------- */
@media print {
  nav, #contact, .scroll-reveal {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
