/* =========================
   Angar Fumis Vintage Retro CSS
   ========================= */

/* 1. FONT IMPORTS (Vintage/Retro Style) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&family=Roboto+Slab:wght@700&family=Quicksand:wght@500&display=swap');

:root {
  /* Brand Colors */
  --primary: #133052;
  --secondary: #B6D1E5;
  --accent: #F3C75B;
  /* Vintage/Retro Palette */
  --retro-red: #C1440E;
  --retro-blue: #3B5D76;
  --retro-cream: #F9F6F2;
  --retro-brown: #7C5C3E;
  --retro-green: #A3B18A;
  --retro-orange: #E07A5F;
  --retro-bg: #F6E7CB;
  --retro-border: #E1C699;
  /* Typography */
  --font-display: 'Montserrat', 'Roboto Slab', 'Quicksand', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  /* Shadows */
  --shadow-card: 0 4px 18px 0 rgba(60, 40, 10, 0.08);
  --shadow-btn: 0 2px 8px 0 rgba(60, 40, 10, 0.10);
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --section-px: 20px;
  --gap-lg: 30px;
  --gap-md: 24px;
  --gap: 20px;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(.4,1,.7,1.2);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-bg);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--retro-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ========== VINTAGE/RETRO PATTERNS ========== */
body:before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(135deg, var(--retro-border), var(--retro-border) 2px, transparent 2px, transparent 24px);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-shadow: 1px 1px 0 var(--retro-cream), 2px 2px 0 var(--accent);
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}
p, ul, ol {
  font-family: var(--font-body);
  color: var(--primary);
  margin-bottom: 1.1em;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}
a {
  color: var(--retro-blue);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--retro-red);
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 2;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--retro-cream);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 2px 8px 0 rgba(60,40,10,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  gap: var(--gap);
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--retro-brown);
}
.cta-btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--accent) 80%, var(--retro-orange) 100%);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  margin-left: 10px;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--retro-orange) 80%, var(--accent) 100%);
  color: var(--retro-cream);
  transform: translateY(-2px) scale(1.03);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  z-index: 120;
}
.mobile-menu-toggle:active {
  background: var(--retro-orange);
  color: var(--retro-cream);
  transform: scale(0.96);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--retro-cream);
  box-shadow: 0 0 0 100vw rgba(19,48,82,0.12);
  z-index: 200;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,1,.7,1.2), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--retro-border);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--accent);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(120deg, var(--retro-cream) 70%, var(--secondary) 100%);
  border-bottom: 4px solid var(--accent);
  padding: var(--section-py) var(--section-px);
  margin-bottom: var(--section-mb);
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap);
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--retro-red);
  text-shadow: 2px 2px 0 var(--accent), 0 2px 0 var(--retro-cream);
}
.hero p {
  font-size: 1.15rem;
  color: var(--primary);
  max-width: 600px;
}

/* ========== SECTION SPACING & FLEX LAYOUTS ========== */
.section, section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
}
.features, .services, .about, .gallery, .process, .faq, .team, .contact, .legal, .thank-you, .cta, .testimonials {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 260px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  color: var(--primary);
  font-style: italic;
  border-left: 6px solid var(--accent);
  transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 8px 24px 0 rgba(60,40,10,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--retro-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  border: 2px dashed var(--retro-border);
  margin-bottom: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px 0 rgba(60,40,10,0.13);
}

/* ========== SERVICES & TEAM FLEX LAYOUTS ========== */
.feature-grid, .service-list, .service-grid, .team-grid, .project-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-start;
}
.service-item, .team-member, .project-item {
  background: var(--retro-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-item:hover, .team-member:hover, .project-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px 0 rgba(60,40,10,0.13);
}

/* ========== FAQ ACCORDION ========== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.faq-item {
  background: var(--retro-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  border-left: 6px solid var(--accent);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), background var(--transition);
}
.faq-item h3 {
  margin-bottom: 0.3em;
  color: var(--retro-red);
}
.faq-item:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 8px 24px 0 rgba(60,40,10,0.13);
}

/* ========== CTA SECTION ========== */
.cta {
  background: linear-gradient(90deg, var(--accent) 80%, var(--retro-orange) 100%);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-bottom: var(--section-mb);
}
.cta h2 {
  color: var(--primary);
  text-shadow: 1px 1px 0 var(--retro-cream), 2px 2px 0 var(--retro-orange);
}
.cta p {
  color: var(--primary);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: var(--retro-cream);
  padding: 40px 0 24px 0;
  border-top: 4px solid var(--accent);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-lg);
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 54px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--retro-orange);
}
.footer-contact p {
  margin: 0 0 6px 0;
  color: var(--retro-cream);
  font-size: 0.98rem;
}

/* ========== LEGAL SECTION ========== */
.legal {
  background: var(--retro-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ========== THANK YOU SECTION ========== */
.thank-you {
  background: var(--retro-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-cream);
  border-top: 4px solid var(--accent);
  box-shadow: 0 -2px 12px 0 rgba(60,40,10,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 16px 18px 16px;
  animation: cookie-slide-in 0.7s cubic-bezier(.4,1,.7,1.2);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  margin: 0 0 8px 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  margin: 0;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--retro-orange);
  color: var(--retro-cream);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: var(--retro-cream);
  font-weight: 700;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(19,48,82,0.25);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(60,40,10,0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-pop 0.4s cubic-bezier(.4,1,.7,1.2);
}
@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--retro-red);
}
.cookie-modal-content h2 {
  margin-bottom: 0.2em;
  color: var(--retro-red);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--secondary);
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transition: left var(--transition), background var(--transition);
}
.cookie-toggle:checked:before {
  left: 19px;
  background: var(--retro-red);
}
.cookie-category .always-on {
  font-size: 0.95rem;
  color: var(--retro-brown);
  font-style: italic;
  margin-left: 8px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .service-grid, .team-grid, .project-list, .content-grid {
    flex-direction: column;
    gap: var(--gap);
  }
  .footer-logo {
    margin-bottom: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: var(--gap);
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hero .container, .section, section {
    padding: 28px 8px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card, .feature-item, .service-item, .team-member, .project-item {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
  }
  .cookie-modal-content {
    padding: 18px 8px 18px 8px;
    min-width: 0;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .cta-btn, .cookie-btn {
    font-size: 0.98rem;
    padding: 10px 12px;
  }
}

/* ========== MICRO-INTERACTIONS ========== */
.card, .feature-item, .service-item, .team-member, .project-item, .testimonial-card, .faq-item {
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.card:hover, .feature-item:hover, .service-item:hover, .team-member:hover, .project-item:hover, .testimonial-card:hover, .faq-item:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px 0 rgba(60,40,10,0.13);
}

/* ========== VINTAGE/RETRO DECORATIVE ELEMENTS ========== */
.section:after {
  content: '';
  display: block;
  position: absolute;
  left: 18px; bottom: 18px;
  width: 60px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 8px, transparent 8px, transparent 16px);
  opacity: 0.18;
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
}

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* ========== PREVENT OVERLAPPING ========== */
.card, .feature-item, .service-item, .team-member, .project-item, .testimonial-card, .faq-item {
  margin-bottom: 20px;
}
.section, section {
  margin-bottom: var(--section-mb);
}

/* ========== END OF CSS ========== */
