/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #F4F9FB;
  color: #223A4D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
footer p {
  color: white !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button, .btn {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* CUSTOM PROPERTIES - LUXURY PREMIUM PALETTE */
:root {
  --primary: #223A4D;
  --secondary: #7EC6C1;
  --accent: #F4F9FB;
  --gold: #C4A052;
  --gold-hover: #b49547;
  --surface: #fff;
  --text: #223A4D;
  --muted: #7a8c9e;
  --shadow: 0 6px 24px rgba(34, 58, 77, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}


/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; letter-spacing: -1.2px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 20px; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4, h5, h6 { font-size: 1.15rem; }
p, li { font-size: 1rem; color: var(--text); }
strong { color: var(--gold); font-weight: 700; }
.hero h1 { font-size: 2.7rem; margin-bottom: 20px; }
@media (max-width:768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.8rem; }
}


/* LAYOUT */
.container {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section { padding: 24px 6px; margin-bottom: 32px; }
  .container { padding: 0 6px; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* CARD / GRID PATTERN */
.card-container, .card-grid, .feature-grid, .services-list, .service-list, .benefit-grid, .team-grid, .solution-list, .project-list, .post-grid, .pricing-table, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.card, .feature-item, .service-item, .benefit-item, .team-member, .solution-item, .project-item, .blog-post-card, .pricing-package, .testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .feature-item:hover, .service-item:hover, .benefit-item:hover, .team-member:hover, .solution-item:hover, .project-item:hover, .blog-post-card:hover, .pricing-package:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(34,58,77,0.10);
  transform: translateY(-3px) scale(1.01);
}
@media (max-width: 768px) {
  .card-container, .card-grid, .feature-grid, .services-list, .service-list, .benefit-grid, .team-grid, .solution-list, .project-list, .post-grid, .pricing-table, .testimonial-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card, .feature-item, .service-item, .benefit-item, .team-member, .solution-item, .project-item, .blog-post-card, .pricing-package, .testimonial-card {
    min-width: 0;
    width: 100%;
    padding: 18px 12px;
  }
}

/* FLEXBOX GROUPS & SPECIALS */
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  padding: 40px 0 20px 0;
}
.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}
.footer-links, .footer-contact, .footer-social, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-social {
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
@media (max-width: 900px) {
  .footer-flex { flex-direction: column; align-items: flex-start; gap: 24px; }
  .header-flex { gap: 14px; }
}


/* HERO SECTIONS */
.hero {
  background: var(--primary);
  color: var(--accent);
  padding: 68px 0 54px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 50px 38px;
  align-items: flex-start;
  max-width: 700px;
  box-shadow: 0 10px 32px 0 rgba(34,58,77,0.11);
}
.hero h1, .hero h2, .hero p, .hero a {
  color: var(--accent) !important;
}
.hero .btn-primary { background: var(--gold); color: var(--primary); border: none; }
.hero .btn-primary:hover { background: var(--gold-hover); color: var(--primary); }
.hero .hero-subheadline,
.hero .subheadline { color: #f8f4e6; opacity: .91; font-size: 1.125rem; margin-bottom: 20px; }
@media (max-width: 768px) {
  .hero { padding: 36px 0 32px; }
  .hero .content-wrapper { padding: 25px 10px; }
}


/* BUTTONS */
.btn {
  padding: 13px 38px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-size: 1.08rem;
  border: none;
  background-clip: padding-box;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 2px 8px rgba(34,58,77,0.07);
  margin-right: 10px;
  display: inline-block;
  letter-spacing: .02em;
  text-transform: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--primary);
  border: 2px solid var(--gold);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 16px 0 rgba(196,160,82,0.12);
}
.btn-secondary {
  background: var(--primary);
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--gold);
  color: var(--primary);
}
.btn:active {
  filter: brightness(.97);
  transform: scale(.98);
}

/* NAVIGATION */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-right: 8px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--gold);
}
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 992px) {
  .main-nav { gap: 10px; }
}
@media (max-width: 850px) {
  .main-nav, .header-flex .btn-primary { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--gold);
  color: var(--primary);
  font-size: 2.1rem;
  padding: 4px 16px 2px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: none;
  transition: background color var(--transition);
  margin-left: auto;
  z-index: 125;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--gold-hover);
  outline: 2px solid var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(34,58,77,0.96);
  color: var(--accent);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.8,.09,.59,.93);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--gold);
  font-size: 2.15rem;
  margin: 24px 32px 0 0;
  border: none;
  cursor: pointer;
  z-index: 1510;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  margin-top: 30px;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  padding: 15px 8px;
  width: fit-content;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gold);
  color: var(--primary);
}
@media (min-width: 851px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(98deg, #F4F9FB 70%, #fff 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px 0 rgba(34,58,77,0.07);
  margin-bottom: 30px;
  padding: 44px 24px 44px 24px;
  display: flex;
  flex-direction: column;
}
.cta-section h2 { color: var(--primary); margin-bottom: 8px; }
.cta-section p { color: var(--muted); font-size: 1.15rem; }
@media (max-width:768px) {
  .cta-section {
    padding: 24px 8px;
  }
}

/* TEXT-IMAGE/FLEX SECTIONS */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) { .text-image-section { flex-direction: column; gap: 16px; } }

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* USP, FAQ, Policy, List Treatments */
.usp-list, .core-values, .faq-list, .faq-preview ul, .experience-highlights ul, .policy-text ul, .data-subject-rights ul, .contact-for-inquiries ul, .acceptance-options ul, .terms-of-service ul, .user-obligations ul, .contact-for-support ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin-top: 10px;
}
.usp-list li:before, .core-values li:before, .faq-list li:before, .policy-text ul li:before, .experience-highlights ul li:before {
  content: '\2022';
  color: var(--gold);
  font-weight: bold;
  margin-right: 12px;
}

/* TESTIMONIALS */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(34,58,77, 0.05);
  min-width: 270px;
  max-width: 380px;
  border-left: 6px solid var(--gold);
  margin-bottom: 20px;
}
.testimonial-card p {
  color: var(--text);
  font-style: italic;
  font-size: 1.05rem;
}
.testimonial-client strong {
  color: var(--primary);
}
@media (max-width:768px) {
  .testimonial-grid { flex-direction: column; gap: 16px; }
  .testimonial-card { width: 100%; min-width:0; max-width: none; }
}

/* FORMS & INPUTS */
input[type="text"], input[type="email"], input[type="password"], textarea {
  border: 1.5px solid #e0dfda;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px 10px;
  font-size: 1rem;
  color: var(--primary);
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--gold);
}

/* BLOG SEARCH & CATEGORIES */
.blog-search {
  margin-bottom: 12px;
}
.blog-search input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.7px solid #ecedea;
  font-size: 1rem;
  transition: border-color var(--transition);
}
.blog-categories-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin: 18px 0 15px 0;
}
.blog-categories-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.01rem;
  color: var(--primary);
  background: #f6f7fa;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.blog-categories-nav a.active, .blog-categories-nav a:hover {
  background: var(--gold);
  color: var(--primary);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  font-size: 1rem;
  width: 100%;
  margin-top: 36px;
  box-shadow: 0 -6px 32px 0 rgba(34,58,77, 0.09);
}
.footer-flex > a img { max-width: 128px; }
.footer-links a {
  color: var(--gold);
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-links a:focus { color: var(--accent); }
.footer-social img {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  filter: brightness(1) grayscale(0.3);
  transition: filter var(--transition);
  cursor: pointer;
}
.footer-social img:hover { filter: brightness(1.2) grayscale(0); }
.footer-legal small { color: #e3e6e1; font-size: 0.9rem; }
.footer-contact a { color: var(--gold); text-decoration: underline; }
.footer-contact a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .footer-flex { padding: 22px 0 12px 0; gap: 13px; }
  .footer-flex .footer-links a { font-size: 0.99rem; margin-bottom:4px; }
}

/* MODALS / COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  box-shadow: 0 -2px 16px 0 rgba(34, 58, 77, 0.07);
  background: #fff;
  padding: 28px 12px 22px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 9999;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 1;
  transform: translateY(0);
  gap: 24px;
}
.cookie-banner.hide { opacity: 0; pointer-events: none; transform: translateY(120%); }
.cookie-banner p {
  color: var(--text);
  font-size: 1.04rem;
  max-width: 600px;
  margin-bottom: 6px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-banner .btn {
  font-size: 0.97rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold);
  font-weight: 600;
}
.cookie-banner .btn-primary {
  background: var(--gold);
  color: var(--primary);
}
.cookie-banner .btn-primary:hover {
  background: var(--primary);
  color: var(--gold);
}
.cookie-banner .btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--gold);
}
.cookie-banner .btn-secondary:hover {
  background: var(--gold);
  color: var(--primary);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 96vw;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px 0 rgba(34,58,77,0.25);
  padding: 34px 26px 22px 26px;
  z-index: 19999;
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 1;
  transition: opacity 0.24s, transform 0.24s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; transform: translate(-50%, -45%) scale(0.94); }
.cookie-modal h2 { color: var(--gold); font-size: 1.18rem; margin-bottom: 6px; }
.cookie-modal .cookie-categories {
  margin: 18px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-modal .cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .cookie-toggle label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}
.cookie-modal .btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.cookie-modal .btn {
  padding: 9px 20px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}
.cookie-modal-close {
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 6px 12px 9px; }
  .cookie-modal { max-width:90vw; padding: 20px 8px 16px 12px; }
}

/* ANIMATIONS (Microeffects) */
.btn, .main-nav a, .mobile-nav a {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card, .feature-item, .service-item, .benefit-item, .team-member, .solution-item, .project-item, .blog-post-card, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.cta-section, .content-wrapper {
  transition: box-shadow var(--transition), background var(--transition);
}

/* GOLD ACCENT DETAILS */
h2, h3, .btn, .main-nav a.active {
  position: relative;
}
h2::after, .cta-section h2::after, .hero h1::after {
  content: '';
  display: block;
  width: 66px;
  height: 3.5px;
  margin-top: 10px;
  background: var(--gold);
  border-radius: 2px;
}
.cta-section h2::after { margin-top: 8px; }
.hero h1::after { background: var(--gold); opacity: 0.7; width: 42px; }
@media (max-width:768px){ h2::after, .cta-section h2::after, .hero h1::after { width: 28px; margin-top: 6px; } }

/* Microinteractions - List Item Icon */
ul li, .usp-list li, .faq-list li, .core-values li {
  padding-left: 0.5em;
  margin-bottom: 0.6em;
}

/* Utility classes for spacing/gap */
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-40 { margin-top: 40px; }

/* Hide visually-only, for a11y */
.visually-hidden { position: absolute; clip: rect(0, 0, 0, 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

/* Media Queries for Responsive Flex Layouts */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  .header-flex { gap: 11px; }
}
@media (max-width: 1000px) {
  .team-grid, .benefit-grid, .feature-grid, .service-list, .pricing-table, .project-list, .testimonial-grid, .post-grid {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .header-flex { flex-direction: column; gap: 8px; }
  .footer-flex { flex-direction: column; align-items: flex-start; }
  .footer-social { margin-top: 12px; }
}

/* Selection styling for premium feel */
::selection {
  background: var(--gold);
  color: var(--primary);
}

/* Scrollbar - luxury accent */
::-webkit-scrollbar {
  width: 9px;
  background: #ECE7DD;
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 8px;
}

/* Accessibility improvement for contrast */
.testimonial-card, .testimonial-grid, .faq-list, .policy-text, .contact-for-inquiries, .cookie-banner, .cookie-modal {
  color: #223A4D;
}

