/*
  Global Base Styles
  - Reset
  - Design tokens (colors, fonts, spacing, radii, shadows)
  - Reusable components: buttons, forms, cards, navbar
  - Layout helpers: container, flex, grid, text alignment
*/

/* 1) Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  /* Prevent horizontal overflow causing right-side gaps on mobile */
  max-width: 100%;
  overflow: hidden;
}

main {
  height: 100%;
  overflow-y: auto; /* scroll happens here */
}
/* Tap2Bid brand font styling */
.navbar__brand a,.site-footer__brand-title {
  font-family: 'Aldrich', sans-serif;
}

/* 2) Design Tokens */
:root {
  /* Brand palette (from palette image) */
  --color-primary: #0C4160;     /* Midnight Blue */
  --color-secondary: #738FA7;   /* Blue Gray */
  --color-accent: #C3CEDA;      /* Misty Blue */
  --color-dark: #071330;        /* Dark Blue */

  /* Neutrals */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-background: var(--color-white);
  --color-surface: #f6f8fb;
  --color-border: #e5e7eb;

  /* Typography */
  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  --font-serif-accent: 'EB Garamond', 'Times New Roman', Times, serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-display: 2.875rem; /* 46px */

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 65, 96, 0.15);
  --shadow-lg: 0 12px 24px rgba(7, 19, 48, 0.22);

  /* Layout */
  --container-max-width: 1200px;
}

/* Base elements */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}



img {
  max-width: 100%;
  display: block;
}
/* Ensure all embedded media scale within viewport */
video, iframe, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3) Reusable Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  /* padding: calc(var(--space-sm) + 2px) var(--space-lg); */
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease,
    background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--light {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-md);
}

.form__control {
  display: grid;
  gap: var(--space-xs);
}

.input, .select, .textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-sm) inset;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.help-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card__body {
  padding: var(--space-lg);
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-muted);
}

/* Navbar */
.navbar {
  background: linear-gradient(0deg, var(--color-dark), var(--color-primary));
  color: var(--color-white);
  position: relative; /* default, not sticky */
  z-index: 10;
  transition: all 0.3s ease;
}

header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


.navbar__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  font-weight: 700;
  font-size: var(--font-size-lg);
  letter-spacing: 0.3px;
}

.navbar__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.navbar__link { display: flex; align-items: center; }
.navbar__link a { color: var(--color-white); font-weight: 500; display: inline-flex; align-items: center; line-height: 1; padding: var(--space-sm) var(--space-xs); }

.navbar__toggle {
  display: none;
  background: transparent;
  color: var(--color-white);
  border: 1px solid color-mix(in srgb, var(--color-white) 25%, transparent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  transition: background 0.2s;
  position: relative;
  z-index: 100;
}
.navbar__toggle-bar {
  display: block;
  width: 32px;
  height: 3px;
  margin: 4px 0;
  background: #1a2233;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}



/* Enhanced mobile navbar for max-width: 768px */
@media (max-width: 768px) {
    .navbar__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    background: #eaf3fb;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(6,109,204,0.10);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
    position: relative;
    z-index: 100;
    outline: none;
  }
  .navbar__toggle:hover,
  .navbar__toggle:focus {
    background: #d0e6fa;
    box-shadow: 0 8px 32px rgba(6,109,204,0.16);
    transform: scale(1.06) rotate(-2deg);
  }
  .navbar__toggle-bar {
    width: 32px;
    height: 4px;
    margin: 4px 0;
    background: #1a2233;
    border-radius: 2px;
    transition: 
      background 0.3s cubic-bezier(.4,0,.2,1),
      transform 0.35s cubic-bezier(.4,0,.2,1),
      opacity 0.25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 4px #066dcc11;
  }
  /* Animate to X when open */
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  /* Subtle shadow on lines for depth */
  .navbar__toggle-bar {
    box-shadow: 0 2px 8px #066dcc11;
  }
  /* Ripple effect on click */
  .navbar__toggle:active::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 80%; height: 80%;
    background: rgba(6,109,204,0.08);
    border-radius: 50%;
    transform: translate(-50%,-50%) scale(1.2);
    animation: rippleMenu 0.4s;
    z-index: 1;
    pointer-events: none;
  }
  @keyframes rippleMenu {
    0% { opacity: 1; transform: translate(-50%,-50%) scale(0.7);}
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.2);}
  }
  .navbar__links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px rgba(12,65,96,0.13);
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    z-index: 99;
    animation: navbarLinksIn 0.35s cubic-bezier(.4,0,.2,1);
  }
  .navbar.navbar--open .navbar__links {
    display: flex;
  }
  .navbar__link {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .navbar__link a {
    color: var(--color-primary);
    font-size: 1.13rem;
    font-weight: 600;
    padding: 0.7rem 0.5rem;
    border-radius: 8px;
    display: block;
    transition: background 0.2s, color 0.2s;
  }
  .navbar__link a:hover,
  .navbar__link a:focus {
    background: var(--color-accent);
    color: var(--color-dark);
  }
  @keyframes navbarLinksIn {
    from { opacity: 0; transform: translateY(-18px);}
    to { opacity: 1; transform: translateY(0);}
  }
}
/* Navbar variant: light on white */
.navbar--light {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 1px 0 var(--color-border);
}
.navbar--light .navbar__link a { color: var(--color-text); }
.navbar--light .navbar__link .btn { color: var(--color-white); }

/* Ensure CTA aligns vertically with text links */
.navbar__links .btn {
  padding: var(--space-sm) var(--space-lg);
  line-height: 1;
}
.navbar--light .navbar__brand, .navbar--light .navbar__brand a { color: var(--color-text); text-decoration: none; }
.navbar--light .navbar__toggle {
  color: var(--color-text);
  border-color: color-mix(in srgb, var(--color-text) 25%, transparent);
}

/* Topbar (contact strip) */
.topbar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-sm);
}
.topbar__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 6px var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.topbar__group { 
  display: flex; 
  align-items: center; 
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.topbar__item { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  opacity: 0.95;
  white-space: nowrap;
}
.topbar__item i { display: inline-block; }
.topbar__sep { 
  width: 1px; 
  height: 14px; 
  background: color-mix(in srgb, var(--color-white) 60%, transparent);
  flex-shrink: 0;
}
.topbar a { color: var(--color-white); text-decoration: none; }

/* Responsive topbar for small screens */
@media (max-width: 768px) {
  .topbar__inner {
    justify-content: center;
    gap: var(--space-lg);
    padding: 10px var(--space-md);
  }
  
  .topbar__group {
    gap: var(--space-md);
  }
  
  .topbar__item {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .topbar {
    background: var(--color-primary);
    padding: 10px 0 8px;
    position: relative;
    overflow: hidden;
  }
  
  /* Subtle gradient overlay for depth */
  .topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
  }
  
  .topbar__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--space-md);
    gap: var(--space-sm);
  }
  
  .topbar__group:first-child {
    justify-self: start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  
  .topbar__group:last-child {
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
  }
  
  .topbar__item {
    font-size: 0.75rem;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .topbar__item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  .topbar__item i {
    font-size: 0.7rem;
    opacity: 0.9;
  }
  
  .topbar__sep {
    display: none;
  }
  
  /* Center divider */
  .topbar__inner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
  }
  
  /* Hide "Follow Us" text on mobile */
  .topbar__group:last-child .topbar__item:first-child {
    display: none;
  }
  
  /* Social icons as minimal squares */
  .topbar__group:last-child .topbar__item[aria-label] {
    width: 24px;
    height: 24px;
    padding: 0;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
  }
  
  .topbar__group:last-child .topbar__item[aria-label]:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px) rotate(5deg);
  }
  
  /* Social icons container */
  .topbar__social-row {
    display: flex;
    gap: 6px;
    align-items: center;
  }
}

/* Icon utility */
.icon { display: inline-block; line-height: 0; color: currentColor; }
.icon--sm { font-size: 0.85rem; }
.icon--md { font-size: 1rem; }
.icon--lg { font-size: 1.25rem; }

/* 4) Layout Helpers */
.container {
  max-width: var(--container-max-width);
  padding: 0 var(--space-md);
  margin: 0 auto;
}

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Grid helpers */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Text helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--color-text-muted); }

/* Spacing helpers */
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--color-surface); }

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}
footer .container {
  padding: var(--space-lg) var(--space-md);
}

/* Animated navbar link hover effect */
.navbar__link a {
  position: relative;
  transition: 
    color 0.22s cubic-bezier(.77,0,.18,1),
    background 0.22s cubic-bezier(.77,0,.18,1),
    transform 0.18s cubic-bezier(.77,0,.18,1);
  border-radius: var(--radius-pill);
  z-index: 1;
}

.navbar__link a::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: 
    opacity 0.22s cubic-bezier(.77,0,.18,1),
    transform 0.22s cubic-bezier(.77,0,.18,1);
  z-index: -1;
}

.navbar__link a:hover,
.navbar__link a:focus-visible {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-accent) 25%, transparent);
  transform: scale(1.07);
}

.navbar__link a:hover::after,
.navbar__link a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

/* For .navbar--light, keep button color on hover */
.navbar--light .navbar__link .btn.btn--primary:hover,
.navbar--light .navbar__link .btn.btn--primary:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(12,65,96,0.13);
}

/* Discuss Section */
.contact-discuss-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 2.5rem 0;
  position: relative;
  overflow: hidden;
  animation: discussFadeIn 1.2s cubic-bezier(.77,0,.18,1) both;
}
@keyframes discussFadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98);}
  to { opacity: 1; transform: translateY(0) scale(1);}
}
.contact-discuss__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
.contact-discuss__content {
  flex: 1 1 0;
  min-width: 320px;
  max-width: 700px;
  z-index: 2;
}
@media (min-width: 900px) and (max-width: 1400px) {
  .contact-discuss__content
  {
    margin-left: 2%;
  }
}
.contact-discuss__title {
  font-family: var(--font-serif-accent);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  animation: discussTitleUp 1s 0.2s both;
}
@keyframes discussTitleUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}
.contact-discuss__desc {
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 2rem;
  max-width: 540px;
  opacity: 0.95;
  animation: discussDescFade 1s 0.5s both;
}
@keyframes discussDescFade {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
.contact-discuss__btn {
  font-size: 1.08rem;
  padding: 0.7em 2.2em;
  border-radius: 2em;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(12,65,96,0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  animation: discussBtnPop 0.8s 0.8s both;
}
@keyframes discussBtnPop {
  from { opacity: 0; transform: scale(0.8);}
  to { opacity: 1; transform: scale(1);}
}
.contact-discuss__btn i {
  transition: transform 0.2s;
}
.contact-discuss__btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
.contact-discuss__btn:hover i {
  transform: translateX(5px);
}

/* Decorative elements */
.contact-discuss__decor {
  flex: 1 1 0;
  min-width: 220px;
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.contact-discuss__arrow {
  display: block;
  width: 120px;
  height: 50px;
  background-size: contain;
  position: absolute;
  left: 0;
  top: 40px;
  animation: arrowFloat 2.5s infinite alternate;
  z-index: 1;
}
@keyframes arrowFloat {
  0% { transform: translateY(0);}
  100% { transform: translateY(-12px);}
}
.contact-discuss__circle {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: var(--color-white);
  opacity: 0.10;
  border-radius: 50%;
  z-index: 0;
}
.contact-discuss__wave {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 180px;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg width="180" height="60" viewBox="0 0 180 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 30 Q45 60 90 30 T180 30" stroke="%23fff" stroke-width="3" fill="none" opacity="0.13"/></svg>') no-repeat center;
  background-size: contain;
  z-index: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-discuss__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .contact-discuss__decor {
    height: 120px;
    min-width: 0;
  }
  .contact-discuss__arrow {
    width: 60px;
    height: 24px;
    left: 0;
    top: 10px;
  }
  .contact-discuss__circle {
    width: 60px;
    height: 60px;
    right: 0;
    top: 0;
  }
  .contact-discuss__wave {
    width: 90px;
    height: 30px;
    right: 0;
    bottom: 0;
  }
}
@media (max-width: 600px) {
  .contact-discuss-section {
    padding: 1.2rem 0 1rem 0;
  }
  .contact-discuss__title {
    font-size: 1.3rem;
  }
  .contact-discuss__desc {
    font-size: 1rem;
  }
}

/* --- Animated Creative Footer --- */
.site-footer {
  position: relative;
  background: var(--color-white);
  color: var(--color-text);
  overflow: hidden;
  padding: 0;
  margin-top: 0;
  z-index: 2;
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -2px 24px rgba(12,65,96,0.06);
}

.footer-bg-graphic {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.13;
  animation: footerBgMove 18s linear infinite alternate;
  pointer-events: none;
}

@keyframes footerBgMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 20%; }
}

.site-footer__container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s 0.1s both;
}
.site-footer__logo {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 8px rgba(12,65,96,0.08));
  animation: logoBounce 2.5s infinite alternate;
}
@keyframes logoBounce {
  0% { transform: translateY(0);}
  100% { transform: translateY(-8px);}
}
.site-footer__brand-title {
  font-family: var(--font-serif-accent);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}
.site-footer__brand-sub {
  display: block;
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.site-footer__desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 520px;
  animation: fadeInUp 1s 0.2s both;
}

.site-footer__nav {
  display: flex;
  gap: 2rem;
  margin: 0.5rem 0 0.5rem 0;
  font-size: 1rem;
  animation: fadeInUp 1s 0.3s both;
}
.site-footer__nav a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.site-footer__nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.3s;
  border-radius: 2px;
  margin-top: 2px;
}
.site-footer__nav a:hover::after {
  width: 100%;
}
.site-footer__nav a:hover {
  color: var(--color-secondary);
}

.site-footer__social {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s 0.4s both;
}
.footer-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1.25rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(12,65,96,0.08);
}
.footer-social__icon:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.12) rotate(-8deg);
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem 0;
  animation: fadeInUp 1s 0.5s both;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark);
  font-weight: 500;
  background: rgba(195,206,218,0.13);
  padding: 0.35rem 1rem;
  border-radius: 1.5rem;
  box-shadow: 0 1px 4px rgba(12,65,96,0.04);
  transition: background 0.2s;
  animation: fadeInLeft 1s both;
}
.footer-contact__flag {
  font-size: 1.15rem;
  margin-right: 0.25rem;
  filter: drop-shadow(0 1px 2px rgba(12,65,96,0.08));
}

.site-footer__phones {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s 0.6s both;
}
.site-footer__phones i {
  margin-right: 0.4em;
  color: var(--color-secondary);
  animation: phonePulse 2s infinite alternate;
}
@keyframes phonePulse {
  0% { transform: scale(1);}
  100% { transform: scale(1.18);}
}

.site-footer__copyright {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-accent);
  padding-top: 1rem;
  width: 100%;
  animation: fadeInUp 1s 0.7s both;
}

/* --- Enhanced Footer Animations & Interactivity --- */

/* Logo bounce on hover */
.site-footer__logo {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.site-footer__brand:hover .site-footer__logo {
  transform: scale(1.08) rotate(-6deg);
}

/* Brand title color pop on hover */
.site-footer__brand-title {
  transition: color 0.3s cubic-bezier(.4,0,.2,1), letter-spacing 0.3s;
}
.site-footer__brand:hover .site-footer__brand-title {
  color: var(--color-secondary);
  letter-spacing: 1.5px;
}

/* Animate contact cards in */
.footer-contact {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: footerContactIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
.footer-contact:nth-child(2) { animation-delay: 0.2s; }
.footer-contact:nth-child(3) { animation-delay: 0.4s; }
.footer-contact:nth-child(4) { animation-delay: 0.6s; }
@keyframes footerContactIn {
  to { opacity: 1; transform: translateY(0) scale(1);}
}

/* Address hover effect */
.footer-contact:hover,
.footer-contact:focus-within {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(12,65,96,0.10);
  transform: scale(1.03);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* Phone numbers: pulse on hover */
.site-footer__phones span {
  transition: color 0.2s, transform 0.2s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  animation: footerPhoneIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
.site-footer__phones span:nth-child(1) { animation-delay: 0.7s; }
.site-footer__phones span:nth-child(2) { animation-delay: 0.9s; }
.site-footer__phones span:nth-child(3) { animation-delay: 1.1s; }
.site-footer__phones span:hover,
.site-footer__phones span:focus {
  color: var(--color-secondary);
  transform: scale(1.08) translateY(-2px);
}
@keyframes footerPhoneIn {
  to { opacity: 1; transform: translateY(0) scale(1);}
}

/* Copyright fade-in */
.site-footer__copyright {
  opacity: 0;
  animation: copyrightFadeIn 1.2s 1.3s forwards;
}
@keyframes copyrightFadeIn {
  to { opacity: 1; }
}

/* Footer nav underline animation */
.site-footer__nav a {
  position: relative;
  overflow: hidden;
}
.site-footer__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  width: 0;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
}
.site-footer__nav a:hover::after,
.site-footer__nav a:focus::after {
  width: 100%;
}

/* Footer background gentle float */
.footer-bg-graphic {
  animation: footerBgFloat 18s ease-in-out infinite alternate;
}
@keyframes footerBgFloat {
  0% { transform: translateY(0);}
  100% { transform: translateY(-18px);}
}


/* Footer Responsive Design */
@media (max-width: 768px) {
  .site-footer__container {
    padding: 2.5rem 1rem 1.5rem 1rem;
    gap: 1.25rem;
  }
  
  .site-footer__brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .site-footer__brand-title {
    font-size: 1.25rem;
  }
  
  .site-footer__brand-sub {
    font-size: 0.85rem;
  }
  
  .site-footer__desc {
    font-size: 0.95rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .site-footer__nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;
  }
  
  .site-footer__nav a {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: rgba(195,206,218,0.08);
    transition: background 0.2s;
  }
  
  .site-footer__nav a:hover {
    background: rgba(195,206,218,0.15);
  }
  
  .site-footer__contacts {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .footer-contact {
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .site-footer__phones {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .site-footer__phones span {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: rgba(195,206,218,0.08);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
  }
  
  .site-footer__copyright {
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  .site-footer__container {
    padding: 2rem 0.75rem 1.25rem 0.75rem;
    gap: 1rem;
  }
  
  .site-footer__brand-title {
    font-size: 1.1rem;
  }
  
  .site-footer__brand-sub {
    font-size: 0.8rem;
  }
  
  .site-footer__desc {
    font-size: 0.9rem;
    padding: 0 0.25rem;
  }
  
  .footer-contact {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .site-footer__phones span {
    padding: 0.4rem;
    font-size: 0.85rem;
  }
  
  .site-footer__copyright {
    font-size: 0.8rem;
  }
}

/* Scroll Animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: 
    opacity 0.7s cubic-bezier(.4,0,.2,1),
    transform 0.7s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}