/* CSS RESET & NORMALIZATION */
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;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #24334B;
  background-color: #F5F7FA;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #F0A103;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #d48801;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: 700;
}

/* ----- BRAND VARIABLES ----- */
:root {
  --color-primary: #24334B;
  --color-secondary: #F5F7FA;
  --color-accent: #F0A103;
  --color-neutral: #ffffff;
  --color-text: #24334B;
  --color-bg: #F5F7FA;
  --color-shadow: rgba(48,36,1,0.07);
  --color-accent-light: #faecd9;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --shadow: 0 4px 18px 0 rgba(36,51,75,0.08);
  --shadow-sm: 0 2px 6px 0 rgba(36,51,75,0.08);
  --transition: 0.28s cubic-bezier(.7,0,.4,1);
  --transition-fast: 0.18s cubic-bezier(.7,0,.4,1);

  --spacing-xxs: 8px;
  --spacing-xs: 12px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  --spacing-xxl: 60px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}
h1 {
  font-size: 2.375rem; /* ~38px */
  margin-bottom: var(--spacing-md);
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}
h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-accent);
}
p, li {
  font-size: 1rem;
  color: var(--color-primary);
}
.section h1, .section h2, .section h3 {
  margin-top: 0;
}
.text-section {
  margin-bottom: var(--spacing-md);
}
.text-section p {
  margin-bottom: var(--spacing-xs);
}

/* UTILITIES */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* LAYOUT SECTIONS AND PADDING */
.section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl) var(--spacing-sm);
  border-radius: var(--radius-lg);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-neutral);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 260px;
  transition: box-shadow var(--transition), transform var(--transition-fast);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(240,161,3,0.11);
  transform: translateY(-2px) scale(1.015);
}
.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: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  transition: box-shadow var(--transition);
}
.testimonial-card strong {
  display: block;
  margin-top: 12px;
  color: var(--color-primary);
  font-weight: 600;
}
.testimonial-card span {
  color: #eda20d;
  font-size: 1.15em;
  margin-left: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px 0 rgba(240,161,3,0.15);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-neutral);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: var(--spacing-md); 
}

/* FLEX-LAYOUTS FOR PAGE-SPECIFIC BLOCKS */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.services-list > div {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  background: var(--color-neutral);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.services-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(240,161,3,0.11);
  transform: translateY(-3px) scale(1.017);
}
.services-list span {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.08em;
}
.services-list a {
  margin-top: var(--spacing-xs);
  align-self: flex-start;
  font-size: 1em;
  color: var(--color-neutral);
  background: var(--color-accent);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  font-weight: 600;
}
.services-list a:hover {
  background: #d48801;
  color: var(--color-neutral);
}

ol {
  margin: 0 0 24px 0;
}
ol > li {
  display: flex;
  align-items: center;
  background: var(--color-neutral);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: 18px;
  gap: 16px;
  font-size: 1.07em;
}
ol > li img {
  width: 40px;
  height: 40px;
}

.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: var(--spacing-md);
}
.article-list article {
  flex: 1 1 300px;
  min-width: 240px;
  background: var(--color-neutral);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  transition: box-shadow var(--transition);
}
.article-list article:hover {
  box-shadow: 0 8px 32px 0 rgba(240,161,3,0.12);
}

.categories {
  margin-bottom: var(--spacing-md);
}
.categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.categories li {
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 16px;
  padding: 7px 16px;
  font-weight: 500;
  font-size: 1em;
}

.featured-article {
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.tips-grid > div {
  flex: 1 1 240px;
  background: var(--color-neutral);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.tips-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(240,161,3,0.11);
  transform: translateY(-2px) scale(1.015);
}
.tips-grid img {
  width: 32px;
  height: 32px;
}

/* ----- HEADER / NAVIGATION ----- */
header {
  width: 100%;
  background: var(--color-neutral);
  box-shadow: 0 1px 12px rgba(36,51,75,.09);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-sm);
  height: 72px;
  position: relative;
  font-family: var(--font-display);
}
.main-nav > a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.06em;
  padding: 10px 0;
  position: relative;
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm);
}
.main-nav > a:hover,
.main-nav > a:focus {
  color: var(--color-accent);
  background: rgba(240,161,3,0.10);
}
.main-nav > a img {
  height: 36px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}
.cta-button {
  background: var(--color-accent);
  color: var(--color-neutral) !important;
  border-radius: var(--radius-md);
  padding: 9px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04em;
  letter-spacing: .03em;
  box-shadow: 0 2px 6px 0 rgba(240,161,3,0.10);
  border: none;
  outline: none;
  margin-left: auto;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  position: relative;
  z-index: 12;
}
.cta-button:hover,
.cta-button:focus {
  background: #c28708;
  color: var(--color-neutral);
  transform: translateY(-2px) scale(1.025);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-neutral);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: var(--spacing-sm);
  transform: translateY(-50%);
  z-index: 31;
  transition: background var(--transition-fast);
  cursor: pointer;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #c28708;
}

/* MOBILE NAVIGATION OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,51,75,0.98);
  z-index: 102;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--spacing-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.86,0,.07,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.19rem;
  padding: 11px 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(245,247,250,0.21);
  width: 100%;
  transition: background var(--transition-fast), color var(--transition-fast);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 930px) {
  .services-list,
  .tips-grid,
  .article-list{
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 850px) {
  .main-nav > a {
    font-size: 1em;
    margin-right: 3px;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .section {
    padding: var(--spacing-md) var(--spacing-xs);
  }
  .content-grid, .card-container{
    flex-direction: column;
    gap: 14px;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--color-neutral);
  margin-top: 60px;
  padding: 0;
  font-family: var(--font-body);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0 var(--spacing-md) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-content a img {
  height: 48px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-menu a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1em;
  transition: color var(--transition-fast);
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--color-accent);
}
.text-section p {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-section img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
.newsletter-signup {
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  min-width: 210px;
}
.newsletter-signup h4 {
  font-size: 1.08em;
  color: var(--color-primary);
}
.newsletter-signup p {
  color: var(--color-primary);
  font-size: 0.96em;
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .newsletter-signup {
    min-width: 0;
  }
}

/* BUTTONS & INTERACTIVES */
button,
input[type="button"],
input[type="submit"] {
  font-family: var(--font-display);
  background: var(--color-accent);
  color: var(--color-neutral);
  padding: 10px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  outline: none;
  margin: 4px 0;
}
button:hover, button:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #d48801;
  box-shadow: 0 8px 32px 0 rgba(240,161,3,0.13);
  transform: translateY(-2px) scale(1.025);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-neutral);
  color: var(--color-primary);
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm) var(--spacing-md);
  box-shadow: 0 -4px 30px rgba(36,51,75,0.18);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  transition: transform 0.3s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner .banner-text {
  font-size: 1.03em;
  max-width: 650px;
  color: var(--color-primary);
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-buttons button {
  font-size: 0.98em;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-neutral);
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.cookie-buttons button.settings {
  background: #24334B;
  color: #fff;
  border: 1.5px solid var(--color-accent);
}
.cookie-buttons button.reject {
  background: #bbb;
  color: #24334B;
  border: 1.5px solid #bbb;
}
.cookie-buttons button:hover,
.cookie-buttons button:focus {
  background: #c28708;
  color: #fff;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  width: 92vw;
  max-width: 440px;
  background: var(--color-neutral);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 48px rgba(36,51,75,.2);
  z-index: 10000;
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .28s, transform .28s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-45%) scale(0.98);
}
.cookie-modal h3 {
  color: var(--color-accent);
  margin-bottom: 0;
  font-size: 1.22em;
  font-weight: 700;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  padding: 12px 12px;
  font-size: 1em;
  font-weight: 500;
}
.cookie-category input[type=checkbox] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-accent);
  border-radius: 5px;
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.cookie-category input[type=checkbox]:checked {
  background: var(--color-accent);
  border-color: #c28708;
}
.cookie-category input[type=checkbox]:checked:after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cookie-category .label {
  font-size: 1em;
}
.cookie-category.disabled {
  opacity: 0.7;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: var(--color-accent);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.cookie-modal-close:hover {
  color: #c28708;
}
.cookie-modal .modal-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 1em;
  font-weight: 700;
}

@media (max-width: 520px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: var(--spacing-sm);
  }
  .cookie-modal {
    padding: var(--spacing-md);
    width: 98vw;
    max-width: none;
  }
}

/* --- MISCELLANEOUS --- */
.contact-box {
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: 18px;
  margin-bottom: 14px;
}

/* Table styles when exist */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
th, td {
  border: 1px solid #eee;
  padding: 14px 12px;
  text-align: left;
  font-size: 1em;
}
th {
  background: var(--color-accent-light);
  color: var(--color-primary);
  font-family: var(--font-display);
}
tr:nth-child(even) {
  background: #faf8f3;
}


/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.card, .testimonial-card, .article-list article, .tips-grid > div, .services-list > div {
  transition: box-shadow var(--transition), transform var(--transition-fast), background var(--transition-fast);
}
.cta-button, button, .cookie-buttons button, .mobile-menu-toggle {
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* --- FOCUS STATES (ACCESSIBILITY) --- */
a:focus, .cta-button:focus, button:focus, input:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #ece4ce;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e2c580;
}

/* --- RESPONSIVE FONT-SIZE (mobile-first) --- */
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .content-wrapper, .section {
    padding: var(--spacing-sm) var(--spacing-xs);
  }
  .card, .testimonial-card, .article-list article, .tips-grid > div, .services-list > div {
    padding: var(--spacing-sm);
  }
}
