/* Complete Greek summer theme redesign with new color palette and styling */

/* Greek Summer Color Palette */
:root {
  --aegean-blue: #145da0;
  --sun-gold: #f4c542;
  --white-stucco: #f7f4ef;
  --shadow-graphite: #2b2e34;
  --terracotta: #d37b5a;
}

/* Base styles */
* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: var(--white-stucco);
}

/* Header styles with Greek summer theme */
header {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(244, 197, 66, 0.2);
}

/* Greek summer gradient separators */
.section-divider {
  background: linear-gradient(90deg, rgba(20, 93, 160, 0) 0%, rgba(244, 197, 66, 0.2) 50%, rgba(20, 93, 160, 0) 100%);
}

/* Custom masks for Greek summer aesthetic */
.mask-wave {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.mask-stucco {
  border-radius: 20px;
  box-shadow: inset 0 2px 4px rgba(244, 197, 66, 0.1);
}

.mask-softrect {
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(20, 93, 160, 0.15);
}

/* Tile pattern for services */
.tile-pattern {
  position: relative;
  background-image: linear-gradient(45deg, rgba(211, 123, 90, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(211, 123, 90, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(211, 123, 90, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(211, 123, 90, 0.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Postcard styling for reviews */
.postcard-style {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
}

.postcard-style::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, var(--aegean-blue) 30%, transparent 30%);
  border-radius: 50%;
  opacity: 0.1;
}

/* Sun capsule styling for stats */
.sun-capsule {
  position: relative;
  background: linear-gradient(135deg, var(--white-stucco) 0%, #ffffff 100%);
  box-shadow: 8px 8px 20px rgba(20, 93, 160, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sun-capsule::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--sun-gold);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(4px);
}

/* Stucco frame for images */
.stucco-frame {
  border: 3px solid var(--white-stucco);
  box-shadow: inset 0 0 0 1px rgba(244, 197, 66, 0.2), 0 8px 24px rgba(20, 93, 160, 0.12);
}

/* Enhanced button styles with Greek summer theme */
.btn-primary {
  background: var(--aegean-blue);
  color: white;
  border-radius: 22px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 22px rgba(20, 93, 160, 0.18);
}

.btn-primary:hover {
  background: rgba(20, 93, 160, 0.9);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 15px 30px rgba(20, 93, 160, 0.25);
}

/* Hover underline effect for links */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aegean-blue);
  transition: width 0.3s ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* FAQ Flip-Accordion Tiles */
.faq-tile {
  perspective: 1000px;
  cursor: pointer;
  transition: all 0.5s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 93, 160, 0.15);
}

.faq-tile:focus {
  outline: 2px solid var(--aegean-blue);
  outline-offset: 2px;
}

.faq-front,
.faq-back {
  transition: all 0.3s ease;
}

.faq-tile[aria-expanded="true"] {
  background: linear-gradient(135deg, #ffffff 0%, var(--white-stucco) 100%);
  border-color: var(--aegean-blue);
}

/* Enhanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Card hover effects with Greek summer styling */
.card-hover {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--white-stucco) 0%, #ffffff 100%);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(20, 93, 160, 0.15);
}

/* Form styles with Greek summer theme */
.form-input {
  transition: all 0.3s ease;
  background: rgba(247, 244, 239, 0.5);
  border: 2px solid rgba(244, 197, 66, 0.3);
  border-radius: 12px;
}

.form-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 93, 160, 0.15);
  border-color: var(--aegean-blue);
  background: rgba(255, 255, 255, 0.9);
}

/* Custom scrollbar with Greek summer colors */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--white-stucco);
}

::-webkit-scrollbar-thumb {
  background: var(--aegean-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sun-gold);
}

/* Mobile menu animation */
#mobileMenu {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

#mobileMenu.hidden {
  opacity: 0;
  transform: translateY(-10px);
}

#mobileMenu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie popup with Greek summer styling */
#cookiePopup {
  animation: slideInUp 0.5s ease-out;
  box-shadow: 0 12px 32px rgba(20, 93, 160, 0.2);
  border: 1px solid rgba(244, 197, 66, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, var(--white-stucco) 100%);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Statistics counter styles */
.stat-counter {
  font-weight: 700;
  color: var(--aegean-blue);
  text-shadow: 0 2px 4px rgba(20, 93, 160, 0.1);
}

/* Team member cards with Greek summer theme */
.team-member {
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: scale(1.05);
}

/* Case study cards */
.case-card {
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--white-stucco) 0%, #ffffff 100%);
  border: 1px solid rgba(244, 197, 66, 0.2);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(20, 93, 160, 0.15);
}

.case-card img {
  transition: transform 0.3s ease;
}

.case-card:hover img {
  transform: scale(1.1);
}

/* Map wrapper with Greek summer styling */
.map-wrapper {
  box-shadow: 0 12px 32px rgba(20, 93, 160, 0.1);
  border: 2px solid rgba(244, 197, 66, 0.2);
}

/* Footer with Greek summer gradient */
footer {
  background: linear-gradient(135deg, var(--shadow-graphite) 0%, #1a1d21 100%);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--aegean-blue), var(--sun-gold), var(--aegean-blue));
  opacity: 0.6;
}

/* Micro-grain texture for depth */
.grain-texture {
  position: relative;
}

.grain-texture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.03;
  pointer-events: none;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
  filter: blur(1px);
}

/* Error states with Greek summer colors */
.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Success states */
.success {
  border-color: var(--sun-gold) !important;
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text {
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .faq-tile {
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .faq-tile {
    padding: 1rem;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  #cookiePopup {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    background: white;
  }

  .no-print {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .bg-blue-50 {
    background-color: #ffffff;
  }

  .text-gray-600 {
    color: #000000;
  }

  .border-gray-300 {
    border-color: #000000;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .faq-tile {
    transition: none !important;
  }
}

/* Enhanced focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus,
.faq-tile:focus {
  outline: 2px solid var(--aegean-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(20, 93, 160, 0.1);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--aegean-blue);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

/* Gradient radial utility */
.bg-gradient-radial {
  background: radial-gradient(circle, var(--white-stucco) 0%, rgba(247, 244, 239, 0.3) 100%);
}
