/* ===== CSS 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,
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-smoothing: antialiased;
  background: #fff;
  color: #222;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
}

/* ===== VARIABLES ===== */
:root {
  --color-primary: #18191A;
  --color-secondary: #283747;
  --color-accent: #FFFFFF;
  --color-highlight: #E9CE6A;
  --color-gray-100: #F8F9FA;
  --color-gray-200: #EFF0F2;
  --color-gray-300: #DEE2E6;
  --color-gray-400: #B7BBC3;
  --color-gray-600: #66696d;
  --color-gray-800: #26282C;
  --shadow-card: 0 6px 24px rgba(40, 55, 71, 0.11), 0 1.5px 4px rgba(24, 25, 26, 0.04);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --transition-main: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
html {
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-accent);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 0.6em;
  letter-spacing: 0.005em;
  line-height: 1.15;
}
h1 { font-size: 2.6rem; margin-bottom: 18px; }
h2 { font-size: 2rem;  margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.13rem; }
h5, h6 { font-size: 1rem; }
p, li, span, a, strong, label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-primary);
}
strong {
  font-weight: 600;
}
.text-section strong {
  color: var(--color-secondary);
}
.text-section h3 {
  color: var(--color-gray-800);
  font-size: 1.18rem;
  margin: 22px 0 8px 0;
}
.text-section ul, .text-section ol {
  margin: 0 0 0.75em 1.25em;
  padding: 0;
  list-style-type: disc;
}
.text-section li {
  margin-bottom: 8px;
  color: var(--color-primary);
}

/* ===== CONTAINERS & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 26px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  max-width: 380px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.card:hover, .card:focus-within {
  box-shadow: 0 14px 32px rgba(40, 55, 71, 0.14), 0 4px 12px rgba(24, 25, 26, 0.11);
  transform: translateY(-4px) scale(1.015);
  z-index: 1;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ===== FLEXBOX UTILITY CLASSES ===== */
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-m);
  box-shadow: 0 2px 12px rgba(40,55,71,0.09);
  padding: 20px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-main), border var(--transition-main);
}
.testimonial-card:hover {
  box-shadow: 0 8px 18px rgba(40,55,71,0.15);
  border: 1px solid var(--color-secondary);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.04rem;
  color: var(--color-secondary);
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-gray-600);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(130deg, #fff 70%, var(--color-gray-200) 100%);
  padding: 60px 0 44px 0;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-section h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 #d7d7d7;
}
.hero-section p {
  color: var(--color-secondary);
  font-size: 1.18rem;
  max-width: 560px;
  margin-bottom: 18px;
}

/* ===== HEADER ===== */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(24, 25, 26, 0.03);
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-s);
  transition: background var(--transition-main), color var(--transition-main);
  position: relative;
}
.main-nav a:not(.cta-btn):after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-secondary);
  transition: width 0.22s var(--transition-main);
  margin: 2px 0 0 0;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 90%;
}
.main-nav a.cta-btn {
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.08rem;
  padding: 7px 28px;
  margin-left: 18px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(40,55,71,0.08);
  letter-spacing: 0.025em;
  font-weight: 700;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: var(--color-highlight);
  color: var(--color-primary);
  box-shadow: 0 2px 18px rgba(40,55,71,0.32);
}

/* ===== BURGER MENU (Mobile) ===== */
.mobile-menu-toggle {
  position: absolute;
  right: 20px;
  top: 22px;
  font-size: 2rem;
  line-height: 1;
  background: var(--color-secondary);
  color: var(--color-accent);
  border-radius: var(--radius-s);
  border: none;
  width: 44px;
  height: 44px;
  z-index: 1201;
  display: none;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-highlight);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(40,55,71,0.96);
  color: var(--color-accent);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s var(--transition-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  margin: 24px 0 12px 0;
  align-self: flex-start;
  margin-right: 28px;
  border-radius: var(--radius-m);
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-highlight);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  padding: 22px 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.23rem;
  font-weight: 500;
  padding: 7px 0 7px 7px;
  border-radius: var(--radius-m);
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-highlight);
  color: var(--color-secondary);
}

/* ===== SECTIONS ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== CARDS & FEATURE LISTS ===== */
.content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}
.content-wrapper ul li {
  background: var(--color-accent);
  border-radius: var(--radius-m);
  box-shadow: 0 2px 8px rgba(40,55,71,0.07);
  padding: 22px 20px 16px 20px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--color-gray-200);
  transition: box-shadow var(--transition-main);
}
.content-wrapper ul li:hover, .content-wrapper ul li:focus-within {
  box-shadow: 0 7px 16px rgba(40, 55, 71, 0.09);
  border: 1px solid var(--color-secondary);
}
.content-wrapper ul li img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}
.content-wrapper ul li strong {
  font-size: 1.09rem;
  color: var(--color-secondary);
}
.content-wrapper ul li span {
  background: var(--color-gray-100);
  color: var(--color-primary);
  padding: 3px 10px 2px;
  border-radius: 12px;
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}
.content-wrapper ul li p {
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.40;
}

/* ===== CONTACT INFO ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
  margin-bottom: 14px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
  color: var(--color-secondary);
  background: var(--color-gray-100);
  border-radius: var(--radius-s);
  padding: 8px 14px;
  border: 1px solid var(--color-gray-200);
}
.contact-info li strong {
  font-weight: 700;
}
.contact-info li a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 36px;
  border-radius: 24px;
  box-shadow: 0 3px 12px rgba(40, 55, 71, 0.12);
  border: none;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
  margin-top: 12px;
  margin-bottom: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-highlight);
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(40,55,71,0.23);
  transform: translateY(-2px) scale(1.022);
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-secondary);
  color: var(--color-accent);
  padding: 34px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.93;
  padding: 2px 9px;
  border-radius: 12px;
  transition: color var(--transition-main), background var(--transition-main);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-highlight);
  background: rgba(255,255,255,0.08);
}
.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  background: rgba(0,0,0,0.00);
}
.footer-contact img {
  width: 48px;
  height: 48px;
}
.footer-contact p, .footer-contact a {
  font-size: 1.04rem;
  color: var(--color-accent);
  opacity: 0.93;
  line-height: 1.46;
}
.footer-contact a {
  text-decoration: underline;
}
.footer-copy {
  font-size: 0.97rem;
  color: var(--color-gray-300);
  opacity: 0.80;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1700;
  background: rgba(40, 55, 71, 0.97);
  color: var(--color-accent);
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -4px 16px rgba(24,25,26,0.15);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: cookieSlideIn 0.44s var(--transition-main);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); }
  to   { transform: translateY(0); }
}
.cookie-banner p {
  color: var(--color-accent);
  font-size: 1.04rem;
  margin-bottom: 4px;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 7px 18px;
  background: var(--color-highlight);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  margin-bottom: 0;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
  box-shadow: 0 1px 7px rgba(233,206,106,0.17);
  cursor: pointer;
}
.cookie-btn.reject {
  background: var(--color-gray-100);
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  box-shadow: 0 1px 10px rgba(40,55,71,0.12);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 1800;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,25,26,0.67);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.32s var(--transition-main);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: var(--radius-l);
  box-shadow: 0 10px 36px rgba(40,55,71,0.19);
  padding: 34px 28px 22px 28px;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--color-secondary);
}
.cookie-modal-close {
  background: var(--color-gray-100);
  border: none;
  border-radius: 50%;
  color: var(--color-secondary);
  font-size: 1.45rem;
  width: 34px;
  height: 34px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-main), color var(--transition-main);
}
.cookie-modal-close:hover {
  background: var(--color-highlight);
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-gray-100);
  border-radius: var(--radius-s);
  padding: 7px 12px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-secondary);
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
}
.cookie-category.essential label {
  opacity: 0.68;
}
.cookie-category.essential input[type="checkbox"] {
  display: none !important;
}

/* ===== MEDIA QUERIES (Responsive) ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 750px;
  }
  .main-nav {
    gap: 14px;
  }
  .footer-contact {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  section, .section {
    padding: 36px 6px;
  }
  .main-nav {
    gap: 10px;
  }
  .content-wrapper ul {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
    max-width: 99vw;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section, section {
    padding: 30px 0px;
    margin-bottom: 44px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .content-wrapper ul {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid{
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px;
  }
  .footer-nav {
    gap: 16px;
    flex-direction: column;
  }
  .cookie-modal-content {
    min-width: 80vw;
    padding: 17px 7px 13px 11px;
  }
}
@media (max-width: 520px) {
  html {
    font-size: 15px;
  }
  h1 {font-size: 2rem;}
  h2 {font-size: 1.38rem;}
  .hero-section {
    padding: 35px 0 16px 0;
  }
  .cookie-banner {
    padding: 16px 4px 10px 4px;
    font-size: 0.98rem;
  }
  .cookie-modal-content {
    padding: 12px 3px 7px 7px;
    min-width: 95vw;
  }
}
/* ===== FORM ELEMENTS ===== */
input[type="text"], input[type="email"], textarea {
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-m);
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border var(--transition-main);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--color-secondary);
}
label {
  margin-bottom: 4px;
  font-weight: 500;
  color: var(--color-secondary);
}

/* ===== MICRO-INTERACTIONS/TRANSITIONS ===== */
.card, .testimonial-card, .content-wrapper ul li, .cta-btn, .cookie-btn, .mobile-menu, .mobile-menu-toggle {
  transition: box-shadow var(--transition-main), transform var(--transition-main), color var(--transition-main), background var(--transition-main), border var(--transition-main);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-gray-200);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: 10px;
}

/* ===== HIGH CONTRAST FOR TESTIMONIALS ===== */
.testimonial-card,
.testimonial-card p,
.testimonial-card span {
  background: var(--color-gray-100) !important;
  color: var(--color-secondary) !important;
  border-color: var(--color-gray-300) !important;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mb-0    { margin-bottom: 0 !important; }
.mb-8    { margin-bottom: 8px !important; }
.mb-16   { margin-bottom: 16px !important; }
.mb-32   { margin-bottom: 32px !important; }
.mt-16   { margin-top: 16px !important; }
.mt-32   { margin-top: 32px !important; }
.gap-8   { gap: 8px !important; }
.gap-16  { gap: 16px !important; }
.gap-24  { gap: 24px !important; }
.align-center { align-items: center !important; }

/* === CLASS FOR OPENING / CLOSING === */
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
}

/* ===== FOCUS OUTLINE ===== */
a, button, [tabindex]:not([tabindex='-1']) {
  outline: none;
  box-shadow: none;
}
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .main-nav a:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
}

/* ===== BRAND FONTS FALLBACKS ===== */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: local('Playfair Display Bold'), local('PlayfairDisplay-Bold'), url('https://fonts.gstatic.com/s/playfairdisplay/v28/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhVw.woff2') format('woff2');
  unicode-range: U+000-5FF;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('https://fonts.gstatic.com/s/montserrat/v25/JTUQjIg1_i6t8kCHKm45_Qph.woff2') format('woff2');
  unicode-range: U+000-5FF;
  font-display: swap;
}

/* ===== PRINT ADJUSTMENT ===== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
}
