/* Vivid Crest Elegant Classic CSS - style.css */

/* 1. Root Variables for Brand and Classic Palette */
:root {
  --primary: #1753A6;
  --primary-dark: #133e7c;
  --secondary: #E6F0FA;
  --secondary-light: #F7FAFC;
  --accent: #15724E;
  --accent-light: #24B47E;
  --text-main: #222222;
  --text-muted: #6B7280;
  --bg-main: #FFFFFF;
  --bg-muted: #F4F5F7;
  --border: #D1D5DB;
  --shadow: 0 2px 16px rgba(23,83,166,0.07);
  --radius: 10px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Roboto', 'Georgia', serif;
  --font-size-base: 18px;
  --font-size-lg: 2.2rem;
  --font-size-md: 1.25rem;
  --font-size-sm: 1rem;
  --section-spacing: 60px;
  --container-max: 1200px;
}

/* 2. Reset & Base Styles */
html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  margin: 0;
  padding: 0;
  font-size: var(--font-size-base);
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  font-weight: 500;
}
h4, h5, h6 {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}
p, ul, ol {
  margin-top: 0;
  margin-bottom: 1.2em;
}
ul, ol {
  padding-left: 1.5em;
}
strong {
  font-weight: 600;
  color: var(--primary);
}

/* 4. Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 5. Header & Navigation */
header {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(23,83,166,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
header img {
  height: 44px;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-main);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.cta-button {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 12px 32px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-left: 24px;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(21,114,78,0.13);
}

/* 6. Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 16px;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,83,166,0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:focus {
  outline: 2px solid #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  padding: 40px 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent-light);
  background: rgba(255,255,255,0.07);
}

/* 7. Hero Section */
.hero {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px 0;
  margin-bottom: var(--section-spacing);
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 1.5em;
}

/* 8. Section Spacing & Layouts */
section {
  margin-bottom: var(--section-spacing);
  padding: 40px 0;
  background: none;
}
.section {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
}

/* 9. Feature Grid, Service Cards, Team, Gallery */
.feature-grid, .service-cards, .team-grid, .gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 24px;
}
.feature-grid > div, .service-cards > div, .team-grid > div, .gallery-grid > div {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-grid > div:hover, .service-cards > div:hover, .team-grid > div:hover, .gallery-grid > div:hover {
  box-shadow: 0 6px 32px rgba(23,83,166,0.10);
  border-color: var(--primary);
}

/* 10. Testimonial Slider & Cards */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 260px;
  max-width: 380px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: var(--text-main);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(23,83,166,0.13);
  border-color: var(--accent);
}

/* 11. Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 20px 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
thead {
  background: var(--secondary);
}
th, td {
  padding: 18px 16px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
th {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--secondary-light);
}

/* 12. FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-accordion > div:hover {
  box-shadow: 0 6px 24px rgba(23,83,166,0.10);
  border-color: var(--primary);
}

/* 13. Footer */
footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px 0;
  color: var(--text-muted);
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
  color: var(--text-muted);
}
footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 14. Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 16px rgba(23,83,166,0.07);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  color: var(--text-main);
  font-family: var(--font-body);
  flex: 1 1 auto;
  margin-right: 24px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin: 0;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,83,166,0.25);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(23,83,166,0.18);
  padding: 40px 32px 32px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal__close:focus {
  outline: 2px solid var(--primary);
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5em;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal__category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-modal__category.essential label {
  color: var(--accent);
  font-weight: 600;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}

/* 15. Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 12px !important; }
.mb-2 { margin-bottom: 12px !important; }

/* 16. Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  .feature-grid > div, .service-cards > div, .team-grid > div, .gallery-grid > div {
    min-width: 220px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 90vw;
  }
  .feature-grid, .service-cards, .team-grid, .gallery-grid, .testimonial-slider {
    gap: 18px;
  }
  .footer-nav {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    min-height: 56px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-button {
    margin-left: 0;
    padding: 10px 20px;
    font-size: 1rem;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .feature-grid, .service-cards, .team-grid, .gallery-grid, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div, .service-cards > div, .team-grid > div, .gallery-grid > div, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 20px 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    gap: 12px;
  }
  .cookie-banner__text {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .cookie-modal__content {
    padding: 24px 12px 18px 12px;
    min-width: 0;
    width: 95vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .cta-button {
    padding: 8px 12px;
    font-size: 0.98rem;
  }
  .cookie-modal__content {
    padding: 12px 6px 12px 6px;
  }
}

/* 17. Micro-interactions & Transitions */
.cta-button, .cookie-btn, .main-nav a, .footer-nav a, .mobile-nav a, .feature-grid > div, .service-cards > div, .testimonial-card, .faq-accordion > div {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* 18. Accessibility Focus States */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 19. Hide elements visually (for accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 20. Classic Card Container Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 21. Prevent Overlapping & Ensure Spacing */
section, .section, .card, .testimonial-card, .feature-grid > div, .service-cards > div, .team-grid > div, .gallery-grid > div {
  margin-bottom: 20px;
}

/* 22. Hide mobile menu by default on desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* 23. Print Styles (optional for classic look) */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
