/* ---- CSS RESET & BASE ---- */
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; background: none; border: none; outline: none; cursor: pointer; }

/* ---- CSS VARIABLES (with fallbacks) ---- */
:root {
  --color-primary: #1D3557;
  --color-secondary: #F7B801;
  --color-accent: #F1FAEE;
  --color-heading: #1D3557;
  --color-body: #273456;
  --color-light: #fff;
  --color-dark: #19213b;
  --color-gray: #e5e7ef;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ---- TYPOGRAPHY SCALE ---- */
body {
  font-family: var(--font-body, 'Open Sans', Arial, sans-serif);
  color: var(--color-body);
  font-size: 16px;
  background: var(--color-accent);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, .h1 { font-family: var(--font-display, 'Montserrat'); font-weight: 700; font-size: 2.5rem; line-height: 1.1; color: var(--color-primary); }
h2, .h2 { font-family: var(--font-display, 'Montserrat'); font-weight: 700; font-size: 2rem; line-height: 1.15; color: var(--color-primary); }
h3, .h3 { font-family: var(--font-display, 'Montserrat'); font-weight: 600; font-size: 1.25rem; color: var(--color-primary); margin-bottom: 8px; }
p { font-size: 1rem; line-height: 1.6; margin-bottom: 16px; }
strong, b { font-weight: bold; }
small { font-size: 0.875rem; color: #888; }

@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  h3, .h3 { font-size: 1.1rem; }
}

/* ---- BASE LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .section { padding: 28px 10px; margin-bottom: 36px; }
  .container { padding: 0 10px; }
}

/* ---- HEADER & NAVIGATION ---- */
header {
  width: 100%;
  background: linear-gradient(90deg, #F7B801 0%, #F1FAEE 90%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0; /* contained in nav */
  box-shadow: 0 2px 12px rgba(29,53,87,0.06);
  position: relative;
  z-index: 10;
}
header > img {
  width: 180px;
  margin: 20px 0 12px 32px;
}
header nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  background: none;
  padding: 16px 32px 16px 32px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: 24px;
  transition: background 0.25s, color 0.2s;   
}
header nav a:hover, header nav a.cta:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
header nav a.cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 700;
  margin-left: 18px;
  box-shadow: 0 2px 10px rgba(247,184,1,0.13);
  transition: background 0.25s, color 0.2s, box-shadow 0.25s;
}
header nav a.cta:active {
  background: #c29008;
  color: #fff;
}

header .mobile-menu-toggle {
  display: none;
}

/* ---- MOBILE HEADER ---- */
@media (max-width: 991px) {
  header > img { margin-left: 10px; width: 140px; }
  header nav { display: none; }
  header .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1001;
    width: 48px; height: 48px;
    font-size: 2rem;
    background: var(--color-primary);
    color: var(--color-accent);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(29,53,87,0.12);
    transition: background 0.15s;
  }
  header .mobile-menu-toggle:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
  }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(112deg, #F7B801 10%, #F1FAEE 80%);
  z-index: 1002;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s cubic-bezier(.7,.3,.3,1), visibility 0.25s;
  pointer-events: none;
  transform: translateX(-100vw);
  will-change: opacity, transform;
}
.mobile-menu.open {
  opacity: 1; visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2rem;
  margin: 14px 22px 22px 0;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.mobile-menu-close:hover { background: var(--color-secondary); color: var(--color-primary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-left: 36px;
  margin-top: 28px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 14px 0;
  border-radius: 14px;
  transition: background 0.2s, color 0.15s;
}
.mobile-nav a:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ---- HERO SECTION ---- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: linear-gradient(120deg, #F1FAEE 40%, #F7B801 100%);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 32px #e5e7ef66;
  margin-bottom: 48px;
  padding: 48px 0 32px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
  max-width: 700px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
}
.hero p {
  color: var(--color-dark);
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 22px 0 18px 0;
    border-radius: 0 0 18px 18px;
    min-height: 200px;
    margin-bottom: 26px;
  }
  .hero .content-wrapper { gap: 12px; }
  .hero h1 { font-size: 1.5rem; }
}

/* ---- CTA BUTTON ---- */
.cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 40px;
  box-shadow: 0 4px 20px #1D35572a;
  margin-top: 8px;
  transition: background 0.2s, box-shadow 0.22s, color 0.22s;
}
.cta:hover, .cta:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 8px 28px #F7B80133;
  outline: none;
}

/* ---- FLEX PATTERNS ---- */
.card-container, .feature-grid, .job-listing-cards, .service-cards, .guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #1d355721;
  padding: 24px;
  min-width: 260px;
  transition: box-shadow 0.17s;
}
.card:hover {
  box-shadow: 0 6px 24px #1d35573a;
}
.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; gap: 18px; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 20px #1D355722;
  min-width: 230px;
  max-width: 400px;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border-color 0.2s;
  border: 1.5px solid #e5e7ef;
}
.testimonial-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 40px #F7B80122;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- FEATURES / CARDS / GRIDS ---- */
.feature-grid > div, .service-cards > div, .job-card, .guide-list article {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px #27345617;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  flex: 1 1 220px;
  gap: 5px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, border-color 0.14s;
  border: 1px solid #e5e7ef;
}
.feature-grid > div:hover, .service-cards > div:hover, .job-card:hover, .guide-list article:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 40px #F7B80119;
}

@media (max-width: 1024px) {
  .feature-grid, .service-cards, .job-listing-cards, .guide-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* ---- CATEGORY LISTS ---- */
.category-list, .guide-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 8px 0 0 0;
}
.category-list li, .guide-categories li {
  background: #fff;
  color: var(--color-primary);
  border-radius: 16px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1.5px 6px #1d355711;
  border: 1px solid #ededed;
  transition: box-shadow 0.15s, border-color 0.14s;
}
.category-list li:hover, .guide-categories li:hover {
  box-shadow: 0 6px 24px #F7B8011a;
  border-color: var(--color-secondary);
}

/* ---- JOB CARDS ---- */
.job-listing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.job-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px #1d355711;
  padding: 24px 20px;
  min-width: 230px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  border: 1px solid #e5e7ef;
  transition: box-shadow 0.17s, border-color 0.14s;
}
.job-card:hover { box-shadow: 0 6px 28px #F7B80124; border-color: var(--color-secondary); }
.job-card h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.13rem;
  font-weight: 600;
}
.job-card a {
  margin-top: 10px;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 24px;
  transition: background 0.2s, color 0.13s;
  box-shadow: 0 2px 10px #1d35571e;
  align-self: stretch;
  text-align: center;
}
.job-card a:hover { background: var(--color-secondary); color: var(--color-primary); }

/* ---- SERVICE CARDS ---- */
.service-cards > div {
  min-width: 210px;
  flex: 1 1 210px;
}

/* ---- TESTIMONIALS ---- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 20px;
}
.stars { color: var(--color-secondary); font-size: 1.2rem; margin-bottom: 6px; }
.testimonial-card p {
  color: var(--color-dark);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1rem;
}

/* ---- GUIDE LIST ---- */
.guide-list article {
  min-width: 200px;
  flex: 1 1 200px;
  gap: 8px;
}
.guide-list article span { color: #999; font-size: 0.97rem; margin-top: 4px; }

/* ---- MISCELLANEOUS LAYOUTS ---- */
.text-section ul {
  padding-left: 18px;
  margin-bottom: 18px;
}
.text-section ul li {
  margin-bottom: 10px;
  color: var(--color-body);
  font-size: 1rem;
  padding-left: 2px;
  line-height: 1.45;
  list-style: disc;
}
.text-section h3 { margin: 20px 0 10px 0; font-size: 1.14rem; }

/* ---- OL, UL, GENERAL ---- */
ol, ul { margin-left: 20px; }
ol li, ul li {
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ---- FOOTER ---- */
footer {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 20px 20px;
  gap: 20px;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
}
footer > img {
  width: 52px;
  margin-bottom: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.87;
  padding: 6px 18px;
  border-radius: 16px;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover { background: var(--color-secondary); color: var(--color-primary); }
footer address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.87;
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}
footer address img { vertical-align: middle; width: 18px; height: 18px; margin-right: 4px; }
@media (max-width: 600px) {
  footer { padding: 22px 5px 16px 5px; border-radius: 18px 18px 0 0; }
  footer nav { gap: 12px; flex-wrap: wrap; }
}

/* ------ COOKIE CONSENT BANNER ------ */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: linear-gradient(90deg, #F7B801 7%, #f1faee 90%);
  color: var(--color-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 12px;
  box-shadow: 0 -2px 18px #1D355726;
  z-index: 2000;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.42s cubic-bezier(.7,.3,.3,1), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p { margin-bottom: 0; }
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 20px;
  border: none;
  transition: background 0.16s, color 0.11s;
}
.cookie-banner button.cookie-settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-banner button:hover, .cookie-banner button.cookie-settings:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 6px 18px 6px;
    font-size: 0.95rem;
  }
  .cookie-banner .cookie-actions { gap: 8px; }
}

/* ------ COOKIE MODAL ------ */
.cookie-modal-overlay {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(29,53,87,0.45);
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: var(--color-body);
  border-radius: 22px;
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  width: 95vw;
  box-shadow: 0 8px 48px #1D35573a;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInScale 0.35s cubic-bezier(.8,.02,.2,1);
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
}
.cookie-modal .category-list {
  flex-direction: column;
  gap: 8px;
  padding: 0;
}
.cookie-modal .category-list li {
  display: flex;
  align-items: center;
  background: #F1FAEE;
  color: var(--color-primary);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 1rem;
  gap: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  user-select: none;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px; height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}
.cookie-modal button {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 20px;
  border: none;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal button:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal .close-modal {
  background: #eee;
  color: var(--color-body);
  font-size: 1.55rem;
  border-radius: 50%;
  width: 44px; height: 44px;
  border: none;
  position: absolute;
  top: 10px; right: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.13s, color 0.14s;
  font-weight: 400;
}
.cookie-modal .close-modal:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 450px) {
  .cookie-modal { padding: 16px 6px 16px 6px; max-width: 97vw; }
}

/* ---- ANIMATION CLASSES ---- */
.fade-in {
  animation: fadeIn 0.6s ease-in both;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---- GENERAL FORM STYLES ---- */
input, textarea, select {
  border-radius: 8px;
  border: 1.5px solid #dedede;
  padding: 10px 13px;
  font-size: 1rem;
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-body);
  margin-bottom: 12px;
  width: 100%;
  transition: border-color 0.14s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 18px #F7B80122;
  outline: none;
}
label { font-weight: 500; color: var(--color-primary); margin-bottom: 6px; display: inline-block; }

/* ---- MISCELLANEOUS EFFECTS ---- */
::-webkit-scrollbar { width: 8px; background: #efefef; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #F7B801; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #ffd200; }

/* ---- ACCESSIBILITY ---- */
:focus-visible {
  outline: 2px solid var(--color-secondary); outline-offset: 2px;
}

/* ---- RESPONSIVE SPACING & LAYOUT ---- */
@media (max-width: 1100px) {
  .card-container, .feature-grid, .job-listing-cards, .service-cards, .guide-list, .testimonial-slider, .category-list { gap: 16px; }
}

@media (max-width: 768px) {
  .container { max-width: 100%; }
  .content-wrapper { gap: 12px; }
  .section { padding: 18px 4px; }
  .feature-grid > div, .service-cards > div, .job-card, .guide-list article {
    min-width: unset; flex: 1 1 90vw;  width: 100%;
  }
  .testimonial-slider { gap: 10px; }
}
@media (max-width:420px) {
  .feature-grid > div, .service-cards > div, .job-card, .testimonial-card { padding: 10px 4px; }
}

/* ---- VISUAL HIERARCHY: SPACING ---- */
.section, .feature-grid, .category-list, .job-listing-cards, .guide-list, .testimonial-slider, .service-cards {
  margin-bottom: 20px;
}

/* ---- ENSURE NO OVERLAP ---- */
.card, .feature-grid > div, .testimonial-card, .job-card, .guide-list article, .service-cards > div {
  margin-right: 0;
  margin-bottom: 20px;
}

/* ---- VISUAL DECORATION (GRADIENTS) ---- */
.section {
  background: linear-gradient(100deg, #F1FAEE 88%, #F7B801 100%);
  border-radius: 20px;
  box-shadow: 0 1.5px 8px #1D355709;
}

/* ---- TRANSITIONS ---- */
*, *:before, *:after {
  box-sizing: inherit;
  transition-property: background, color, border, box-shadow, transform;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(.6,.3,.29,1);
}

/* ---- PRINT ---- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #222; }
}
