/* ----------------------------------------------------
   DENTIFY CLINIC — OFFICIAL BRANDING & TYPOGRAPHY SYSTEM
   ---------------------------------------------------- */

:root {
  --color-ivory: #FBF9F5;
  --color-ivory-alt: #F4F1EA;
  --color-beige: #EFECE6;
  --color-beige-dark: #E4DFD5;
  --color-taupe: #DFD8CD;
  --color-charcoal: #1A1B1D;
  --color-charcoal-light: #2B2C2F;
  --color-olive: #5C6355;
  --color-olive-muted: #798270;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

body {
  overflow-x: hidden;
  background-color: var(--color-ivory);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* LOGO IMAGE STYLING */
.brand-logo-img {
  height: 76px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-logo-img:hover {
  opacity: 0.92;
}

.footer-logo-container {
  background-color: var(--color-ivory);
  padding: 1rem 1.6rem;
  border-radius: 1.25rem;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* TYPOGRAPHY UTILITIES */
.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.font-sans {
  font-family: var(--font-sans);
}

.bg-ivory { background-color: var(--color-ivory); }
.bg-beige { background-color: var(--color-beige); }
.bg-charcoal { background-color: var(--color-charcoal); }

.text-charcoal { color: var(--color-charcoal); }
.text-ivory { color: var(--color-ivory); }
.text-olive { color: var(--color-olive); }

/* HEADER STYLING & SCROLL STATE */
header#main-header.scrolled {
  background-color: rgba(251, 249, 245, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(223, 216, 205, 0.5);
}

/* NAVIGATION LINK UNDERLINE */
.nav-link {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-olive);
  transition: width 0.3s ease;
}

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

/* BUTTON STYLES */
.btn-primary {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(26, 27, 29, 0.12);
}

/* SERVICE ROW HOVER & INTERACTION */
.service-row {
  position: relative;
  transition: background-color 0.3s ease;
}

.service-row:hover {
  background-color: rgba(239, 236, 230, 0.45);
}

/* ANIMATIONS & SCROLL FADE */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--color-ivory);
}

::-webkit-scrollbar-thumb {
  background: var(--color-taupe);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-olive);
}

/* FORM STYLING */
input, select, textarea {
  font-family: var(--font-sans);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-olive) !important;
  box-shadow: 0 0 0 3px rgba(92, 99, 85, 0.12);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
  .brand-logo-img {
    height: 56px;
  }

  h1 {
    font-size: 2.25rem !important;
    line-height: 1.45 !important;
  }

  h2 {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }

  .service-row h3 {
    font-size: 1.4rem !important;
  }
}
