/* RESET & BASE STYLES */
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 { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #f9f7f4;
  color: #2B3E4A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #2B3E4A;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; line-height: 1.13; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p, ul, ol { font-size: 1.1rem; margin-bottom: 16px; }
a { color: #A4812B; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #EBC560; text-decoration: none; }
strong { font-weight: 700; }

/* LUXURY COLOR PALETTE (Brand + Premium) */
:root {
  --color-primary: #2B3E4A;
  --color-secondary: #B9C6AE;
  --color-accent: #E8DFCE;
  --color-gold: #A4812B;
  --color-gold-light: #EBC560;
  --color-bg-main: #F9F7F4;
  --color-bg-section: #F2EEE7;
  --color-bg-card: #FFFFFF;
  --color-shadow: rgba(44, 41, 28, 0.08);
  --color-border: #E8DFCE;
  --color-contrast: #26231D;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
}

/* MAIN SECTIONS & SPACING PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 22px;
  box-shadow: 0 4px 24px var(--color-shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 28px 20px;
  min-width: 250px;
  flex: 1 1 260px;
  border: 1px solid var(--color-accent);
  transition: box-shadow .2s, transform .2s;
}
.card:hover,
.card:focus {
  box-shadow: 0 8px 30px var(--color-shadow);
  transform: translateY(-6px) scale(1.013);
  border-color: var(--color-gold);
}
.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: stretch; gap: 16px; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-bg-card);
  border-radius: 18px;
  box-shadow: 0 4px 14px var(--color-shadow);
  margin-bottom: 20px;
  border-left: 4px solid var(--color-gold);
  transition: box-shadow .2s;
}
.testimonial-card blockquote {
  font-size: 1.18rem;
  color: var(--color-contrast);
  font-style: italic;
  margin-right: 18px;
}
.testimonial-meta {
  font-size: 1rem;
  color: var(--color-gold);
  font-weight: 500;
  align-self: flex-end;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: none;
  border: none;
  box-shadow: none;
}

/* FEATURES-GRID/GRID VARIANTS */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
}
.features-grid > div {
  background: var(--color-bg-card);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  flex: 1 1 220px;
  padding: 32px 18px 24px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--color-accent);
  transition: box-shadow .2s, border-color .2s, transform .15s;
  min-width: 190px;
}
.features-grid > div:hover, .features-grid > div:focus {
  border-color: var(--color-gold);
  box-shadow: 0 6px 24px var(--color-shadow);
  transform: scale(1.025);
}
.features-grid img {
  width: 44px; height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 3px rgba(44,41,28,0.05));
}
.features-grid h3 {
  color: var(--color-gold);
  font-size: 1.13rem;
}
.features-grid p { color: var(--color-primary); font-size: 1rem; }

/* TIPS GRID */
.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.tips-grid > div {
  flex: 1 1 230px;
  background: var(--color-accent);
  border-radius: 14px;
  padding: 18px 14px;
  margin-bottom: 20px;
  border-left: 3px solid var(--color-gold);
  transition: box-shadow .18s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.tips-grid > div h3 { margin-bottom: 7px; color: var(--color-primary); }
.tips-grid > div p { color: var(--color-primary); }

/* NEWSLETTER SIGNUP BLOCK */
.newsletter-signup {
  background: var(--color-accent);
  border-radius: 16px;
  padding: 21px 28px;
  margin-top: 32px;
  max-width: 420px;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.newsletter-signup h3 { color: var(--color-gold); font-size: 1.28rem; }
.newsletter-signup p { color: var(--color-primary); }

/* BUTTONS & CTA */
.cta-button,
button,
input[type="submit"] {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 700;
  background: linear-gradient(90deg, #EBC560 60%, #A4812B 100%);
  color: #2B3E4A;
  border: none;
  padding: 14px 36px;
  border-radius: 100px;
  box-shadow: 0 4px 20px 0 rgba(164, 129, 43, 0.09);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform .15s;
  letter-spacing: 0.04em;
  outline: none;
  position: relative;
}
.cta-button:hover,
button:hover,
.cta-button:focus,
button:focus {
  background: linear-gradient(90deg, #A4812B 10%, #EBC560 85%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px 0 rgba(164, 129, 43, 0.16);
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-bg-card);
  border-bottom: 1.5px solid var(--color-accent);
  box-shadow: 0 2px 14px var(--color-shadow);
  z-index: 50;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 80px;
  gap: 18px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 2px 8px 2px 8px;
  border-radius: 8px;
  transition: background .14s, color .18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--color-gold);
  background: var(--color-accent);
}
header .cta-button {
  margin-left: 16px;
  font-size: 1.05rem;
  padding: 12px 26px;
}
header img {
  max-height: 50px;
  width: auto;
  margin-right: 24px;
}

/* HERO SECTION */
.hero {
  background: var(--color-bg-main);
  padding: 54px 0 52px 0;
  margin-bottom: 60px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 40px var(--color-shadow);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.68rem;
  color: var(--color-gold);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 16px;
  line-height: 1.18;
}
.hero p {
  color: var(--color-primary);
  max-width: 520px;
  margin-bottom: 26px;
  font-size: 1.14rem;
}
.hero .cta-button { margin-top: 10px; }

/* LISTS & BULLETS */
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul li::marker { color: var(--color-gold); font-weight: bold; }
ol li::marker { color: var(--color-gold-light); font-weight: bold; }
li img { margin-right: 7px; vertical-align: middle; }

/* IMAGE STYLES */
img { max-width: 100%; height: auto; border-radius: 8px; }

/* FOOTER */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0; margin: 0;
  width: 100%;
}
footer section {
  background: none;
  margin-bottom: 0;
  padding: 48px 0 28px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row;
}
footer img[alt="Gleamy Shield Domov"],
footer img[alt="Gleamy Shield Domov"] + nav {
  margin-bottom: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  transition: color .18s;
}
footer nav a:hover, footer nav a:focus { color: var(--color-gold); }
footer ul { color: #B9C6AE; font-size: .96rem; margin: 0 0 16px 0; padding: 0; list-style: none; }
footer ul li { margin-bottom: 5px; }
footer ul a { color: #B9C6AE; transition: color .17s; }
footer ul a:hover, footer ul a:focus { color: var(--color-gold);}
footer div > p, footer div > a { margin-bottom: 7px; }
footer .newsletter-signup {
  background: var(--color-bg-card);
  color: var(--color-primary);
  box-shadow: 0 2px 7px var(--color-shadow);
  padding: 23px 26px;
  border-radius: 12px;
}
footer .newsletter-signup h3 { color: var(--color-gold); font-size: 1.08rem; margin-bottom: 7px; }
footer .newsletter-signup p { color: var(--color-primary); }
footer a img {
  height: 28px; width: 28px;
  margin-right: 4px;
}

@media (max-width: 1024px) {
  .features-grid { gap: 16px; }
  .content-wrapper { gap: 8px; }
  footer .content-wrapper { gap: 28px; }
}
@media (max-width: 768px) {
  header .container { flex-direction: column; align-items: flex-start; gap: 8px; min-height: unset; }
  header nav { width: 100%; gap: 10px; flex-wrap: wrap; }
  header .cta-button { margin: 12px 0 0 0; }

  .features-grid { gap: 12px; }
  .features-grid > div { min-width: 140px; padding: 20px 8px 15px 10px; }
  .card-container { gap: 12px; }
  .section { padding: 26px 7px; margin-bottom: 30px; }
  .hero { padding: 36px 0; border-radius: 0 0 19px 19px; }
  .tips-grid { gap: 12px; }
  footer .content-wrapper { flex-direction: column; gap: 8px; }
}

/* MOBILE MENU (BURGER) */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 200;
  background: var(--color-gold);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 14px var(--color-shadow);
  transition: box-shadow .2s, background .15s;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-gold-light);
  color: #2B3E4A;
}
@media (max-width: 992px) {
  .mobile-menu-toggle { display: flex; }
  header nav, header .cta-button { display: none !important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.7,1.8,.3,1);
  box-shadow: 0 0 50px 14px rgba(44,41,28,0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: transparent;
  color: var(--color-gold);
  border: none;
  font-size: 2.1rem;
  position: absolute;
  top: 18px;
  right: 26px;
  cursor: pointer;
  z-index: 301;
  transition: color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--color-gold-light); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100%;
  justify-content: center;
  align-items: flex-start;
  margin: 80px 0 0 38px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 0 7px 0;
  border-radius: 8px;
  transition: background .13s, color .15s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-gold);
}

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

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-accent);
  color: var(--color-primary);
  z-index: 1000;
  box-shadow: 0 -2px 16px var(--color-shadow);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 1.09rem;
  animation: bannerfadein .55s;
}
@keyframes bannerfadein {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner button {
  padding: 9px 26px;
  border-radius: 28px;
  background: var(--color-gold);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background .18s, color .12s, transform .1s;
  outline: none;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}
.cookie-banner button.cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.5px solid var(--color-gold-light);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-gold-light);
  color: #fff;
  transform: scale(0.98);
}
.cookie-banner button.cookie-reject:hover,
.cookie-banner button.cookie-reject:focus {
  background: var(--color-gold);
  color: #fff;
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: var(--color-gold);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 22px 7px; gap: 13px; }
  .cookie-banner .cookie-buttons { gap: 9px; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38, 35, 29, 0.35);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bannerfadein .37s;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 90vw;
  padding: 34px 32px 26px 32px;
  box-shadow: 0 10px 50px 6px rgba(44,41,28,0.18);
  color: var(--color-primary);
  font-size: 1.09rem;
  position: relative;
  animation: modalpop .41s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@keyframes modalpop {
  0% { opacity: 0; transform: scale(0.82); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h2 { font-size: 1.23rem; color: var(--color-gold); margin-bottom: 13px; }
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.06rem;
  color: var(--color-primary);
}
.cookie-toggle {
  width: 32px;
  height: 18px;
  border-radius: 14px;
  background: var(--color-accent);
  position: relative;
  margin-right: 8px;
  display: inline-block;
  outline: none;
  cursor: pointer;
  border: 1.2px solid var(--color-gold-light);
  transition: background .18s, border-color .15s;
}
.cookie-toggle[aria-checked="true"] {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
}
.cookie-toggle .cookie-knob {
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 1px;
  transition: left .22s cubic-bezier(.45,1.7,.3,1.1);
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-toggle[aria-checked="true"] .cookie-knob {
  left: 14px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  padding: 9px 22px;
  min-width: 100px;
}

/* BASIC UTILITIES */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.text-center { text-align: center !important; }
.centered-row { display: flex; align-items: center; justify-content: center; }

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  .features-grid > div, .card { min-width: 110px; padding: 13px 6px; }
  .testimonial-card { padding: 13px 6px; font-size: 0.98rem; }
}

/* MICRO-INTERACTIONS */
.cta-button:active { transform: translateY(1px) scale(.99); box-shadow: 0 2px 18px var(--color-shadow); }
section a.cta-button:focus { outline: 2px solid var(--color-gold); }

/* ACCESSIBILITY & FOCUS */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

/* CARD VISUAL HIERARCHY */
.card h3,
.features-grid h3,
.card strong {
  color: var(--color-gold);
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.card p, .features-grid p { color: var(--color-primary); }

/* TESTIMONIALS COLOR CONTRAST ENFORCEMENT */
.testimonial-card, .testimonial-card blockquote, .testimonial-card .testimonial-meta {
  color: #2B3E4A;
  background: #fff;
}

/* Z-INDEX LAYERING */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 200 !important; }

/* DECORATIVE GOLD ACCENTS */
h2, h3, h1 {
  position: relative;
}
h2:after, h3:after {
  content: '';
  display: block;
  width: 42px;
  height: 3.5px;
  background: linear-gradient(90deg, #EBC560 70%, #A4812B 100%);
  border-radius: 2px;
  margin: 7px 0 0 0;
}

/* MISCELLANEOUS */
::-webkit-scrollbar {
  width: 8px; background: #E8DFCE;
}
::-webkit-scrollbar-thumb {
  background: #B9C6AE; border-radius: 12px;
}

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