/* ========================================================================
   CSS RESET & NORMALIZATION (mobile-first)
   ======================================================================== */
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, 
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 { font-size: 16px; }
body {
  line-height: 1.55;
  background: #FAFAF8;
  color: #222;
  font-family: "Georgia", "Times New Roman", Times, serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ========================================================================
   BRAND VARIABLES AND TYPOGRAPHY
   ======================================================================== */
:root {
  --primary: #19376D;      /* deep navy */
  --secondary: #1CABAC;    /* teal accent */
  --accent: #F7EFE5;       /* very light warm beige */
  --grey-1: #F2F2F2;
  --grey-2: #DFDFDA;
  --grey-3: #AAA;
  --text-dark: #23231F;
  --text-light: #555;
  --heading-font: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  --body-font: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
  --display-font: 'Montserrat', serif;
}

@font-face {
  font-family: 'Merriweather';
  src: local('Merriweather'); font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'EB Garamond';
  src: local('EB Garamond'); font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'); font-weight: normal; font-style: normal;
}

body {
  font-family: var(--body-font);
  background: #FAFAF8;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p,
ul,
ol {
  font-family: var(--body-font);
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 16px;
}
strong { color: var(--primary); font-weight: bold; }


/* ========================================================================
   LAYOUT & CONTAINER STRUCTURE (Flexbox ONLY)
   ======================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}
.text-section {
  padding: 0 0 0 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (min-width: 900px) {
  .section {
    padding: 60px 0 60px 0;
  }
}

/* Flex Content Patterns */
.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
@media(max-width: 768px) {
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 24px 20px 24px;
  margin-bottom: 20px;
  background: #fff;
  border-left: 5px solid var(--secondary);
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(25, 55, 109, 0.05);
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(25, 55, 109, 0.11);
  transform: translateY(-2px) scale(1.014);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--display-font);
  margin-top: 8px;
}
.testimonial-card p {
  color: #23231F;
  font-size: 1.08rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(25,55,109,0.09);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 8px 38px rgba(25, 55, 109, 0.16);
  transform: translateY(-2px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.expert-analysis, .trending-topics {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 18px;
  border-left: 3px solid var(--primary);
}
.trending-topics ul {
  margin-left: 18px;
}

.map-location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
ul li, ol li {
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 1rem;
}

/* ========================================================================
   NAVIGATION & HEADER STYLES
   ======================================================================== */
header {
  background: var(--primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 8px rgba(25,55,109,0.04);
  position: relative;
  z-index: 900;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 20px;
}
header img[alt="Smart Dividend Global"] {
  width: 160px;
  height: auto;
  margin-right: 22px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
header nav a {
  color: #fff;
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 13px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  background: rgba(28,171,172,0.11);
}
.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 8px 26px;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  border: none;
  margin-left: 16px;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 7px rgba(25,55,109,0.07);
  transition: background 0.16s, color 0.17s, transform 0.11s;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.04);
}

/* Hide hamburger by default; show on small screens */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  margin-left: 18px;
  cursor: pointer;
  padding: 4px 10px;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
}

@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ---------------- Mobile Menu Overlay ---------------- */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(25,55,109,0.92);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 0 20px 24px 0;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 0;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.12rem;
  font-family: var(--display-font);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.14s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(28,171,172,0.11);
  border-radius: 4px;
}

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

/* ========================================================================
   HERO, FEATURES & GENERAL PAGE ELEMENTS
   ======================================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (min-width: 900px) {
  section {
    padding: 60px 0 60px 0;
    margin-bottom: 72px;
  }
}
.feature-grid > div, .feature-grid .card, .feature-grid .feature-item {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(25,55,109,0.08);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.15s, transform 0.14s;
  min-width: 210px;
}
.feature-grid > div:hover,
.feature-grid .card:hover,
.feature-grid .feature-item:hover {
  box-shadow: 0 8px 36px rgba(25, 55, 109, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.feature-grid img, .feature-item img {
  width: 40px; height: 40px; margin-bottom: 18px;
}

.article-list article {
  background: #fff;
  border-left: 4px solid var(--secondary);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 2px 14px rgba(25,55,109,0.08);
  transition: box-shadow 0.18s, transform 0.15s;
}
.article-list article:hover {
  box-shadow: 0 8px 32px rgba(25,55,109,0.17);
  transform: translateY(-1px) scale(1.01);
}

/* CTA section */
.text-section {
  max-width: 720px;
  margin: 0 auto;
  background: #fffaf7;
  border-radius: 14px;
  padding: 38px 24px 42px 24px;
  box-shadow: 0 1px 9px rgba(25,55,109,0.07);
}
.text-section h2 {
  margin-bottom: 15px;
}
.text-section a.btn-primary {
  margin-top: 12px;
  min-width: 220px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
footer {
  background: #151E35;
  color: #fff;
  padding: 48px 0 16px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  font-size: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1rem;
  color: var(--grey-3);
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  position: relative;
  top: 4px;
}
footer p {
  margin-bottom: 7px;
}
footer p:last-child {
  margin-bottom: 0;
}
@media (min-width: 767px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 52px;
    align-items: flex-end;
  }
  .footer-contact {
    max-width: 330px;
  }
}

/* ========================================================================
   BUTTONS AND LINKS
   ======================================================================== */
.button, .btn, .btn-primary {
  cursor: pointer;
  outline: none;
  border: none;
}
a { text-decoration: none; }

/* Accent underline for classic touch on links */
a:not(.btn-primary):not(.mobile-menu-close):not(.mobile-menu-toggle):not(.cookie-banner-btn):not(.cookie-banner-link) {
  border-bottom: 1px solid var(--secondary);
  transition: border-color 0.15s, color 0.12s;
}
a:not(.btn-primary):hover, a:not(.btn-primary):focus {
  color: var(--secondary);
  border-color: var(--primary);
}

/* ========================================================================
   FORM STYLES
   ======================================================================== */
input, textarea, select {
  border: 1px solid var(--grey-2);
  border-radius: 7px;
  padding: 9px 14px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fff;
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}
label {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--primary);
  font-family: var(--display-font);
}

/* ========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.fade-in-up { animation: fadeInUp 0.7s cubic-bezier(.43,.05,.1,.96) both; }

/* Classic card hover shadow */
.card, .feature-grid > div, .article-list article {
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .article-list article:hover {
  box-shadow: 0 12px 36px rgba(25,55,109,.17);
  transform: translateY(-4px) scale(1.025);
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */
@media (max-width:1024px) {
  .container { max-width: 95vw; padding: 0 10px; }
}
@media (max-width:726px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  .text-section { padding: 25px 8px 24px 8px; }
}
@media (max-width:460px) {
  .footer-contact, .footer-links { font-size: 0.97rem; }
}

/* ========================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: #fff;
  color: #23231F;
  box-shadow: 0 -3px 22px rgba(25, 55, 109, 0.13);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 8vw 20px 8vw;
  width: 100vw;
  max-width: 100vw;
  animation: fadeInUp 0.48s ease-out;
  border-top: 1px solid var(--grey-1);
}
.cookie-banner__content {
  font-size: 1rem;
  color: #1a2436;
  margin-bottom: 2px;
}
.cookie-banner-btn {
  background: var(--primary);
  color: #fff;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  margin-right: 10px;
  box-shadow: 0 2px 8px rgba(25,55,109,0.06);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.11s;
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner-link {
  color: var(--secondary);
  text-decoration: underline;
  background: none;
  border: none;
  font-family: var(--display-font);
  font-size: 0.98rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-banner-link:hover {
  color: var(--primary);
}

/* Modal Overlay for Cookie Settings */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(25, 55, 109, 0.33);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  min-width: 335px;
  max-width: 98vw;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(28,171,172,0.09), 0 2px 16px rgba(25,55,109,0.08);
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.cookie-modal input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}
.cookie-modal .essential-category {
  font-weight: bold;
  color: var(--secondary);
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  cursor: pointer;
  position: absolute;
  right: 22px; top: 13px;
  padding: 5px;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}

@media (max-width: 576px) {
  .cookie-banner { padding: 16px 2vw 16px 2vw; font-size: 0.98rem; }
  .cookie-modal { min-width: 98vw; padding: 24px 10px 18px 10px; }
}

/* ========================================================================
   UTILITY & MISCELLANEOUS
   ======================================================================== */
.d-none { display: none !important; }

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

/* ========================================================================
   ENSURE NO OVERLAP & CONSISTENT SPACING
   ======================================================================== */
section, .section, .card, .feature-grid > div, .testimonial-card, .article-list article, .text-section, .expert-analysis, .trending-topics {
  margin-bottom: 32px;
}
.card, .feature-grid > div, .testimonial-card, .article-list article {
  margin-right: 0;
  margin-left: 0;
}

/* ========================================================================
   END OF STYLE.CSS
   ======================================================================== */