/* --- CSS 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;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f8f9f5;
  color: #232a1e;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* --- BRAND FONTS (Google Fonts Fallback) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Brand palette + nature/organic earthtones */
  --color-primary: #1C2331;
  --color-secondary: #4798D0;
  --color-accent: #F2F2F2;
  /* Nature organic accent colors */
  --color-green: #3c6e5f;
  --color-olive: #627d4b;
  --color-brown: #a2855b;
  --color-sand: #efe7d5;
  --color-white: #fff;
  --color-black: #232a1e;
  --color-bg: #f8f9f5;
  --color-card: #f4f6ed;
  --color-shadow: rgba(86,97,69,0.09);
  /* Typography */
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  /* Scale */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 2px 10px var(--color-shadow);
  --shadow-2: 0 6px 24px var(--color-shadow);
  /* Spacing */
  --section-mb: 60px;
  --section-p: 40px 20px;
  --container-max: 1200px;
}

body {
  background: var(--color-bg);
  color: var(--color-black);
  font-size: 16px;
  font-family: var(--font-body);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-green);
  letter-spacing: -1px;
  font-weight: 900;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-olive);
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  font-size: 1rem;
  color: var(--color-black);
  margin-bottom: 16px;
  line-height: 1.8;
}
strong, b {
  font-weight: 700;
}

/* --- CONTAINER & SECTIONS --- */
.container {
  display: flex;
  flex-direction: column;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}
section {
  background: none;
  width: 100%;
}
.section {
  margin-bottom: var(--section-mb);
  padding: var(--section-p);
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px) scale(1.012);
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-sand);
  color: var(--color-black);
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  min-width: 260px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--color-black);
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--color-green);
  font-weight: 700;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 1px 10px 0 rgba(80,90,58,0.09);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}
header img[alt="Flickering Sights"] {
  height: 38px;
  margin-right: 28px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-green);
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color .2s;
  letter-spacing: 0.2px;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
}

.cta.primary,
.cta.secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  padding: 13px 32px;
  margin-left: 20px;
  line-height: 1.1;
  box-shadow: 0 1px 7px 0 rgba(80,90,58,0.06);
  border: none;
  cursor: pointer;
  transition: background .25s, color .18s, box-shadow .18s, transform .17s;
}
.cta.primary {
  background: var(--color-green);
  color: var(--color-white);
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--color-olive);
  color: var(--color-accent);
  transform: scale(1.037);
  box-shadow: var(--shadow-2);
}
.cta.secondary {
  background: var(--color-white);
  color: var(--color-green);
  border: 2px solid var(--color-green);
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--color-green);
  color: var(--color-white);
  transform: scale(1.037);
  box-shadow: var(--shadow-2);
}

/* --- BURGER MENU (MOBILE) --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1051;
  border: none;
  background: var(--color-green);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(52,80,48,0.13);
  cursor: pointer;
  transition: background .2s, color .17s, transform .17s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-olive);
  color: var(--color-card);
  transform: scale(1.08);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: 0 4px 40px 0 rgba(52,80,48,0.19);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.61,.07,.56,.95);
  padding: 60px 32px 32px 32px;
  opacity: 0.96;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 2.5rem;
  border: none;
  z-index: 1201;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-olive);
  color: var(--color-card);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.23rem;
  color: var(--color-green);
  font-weight: 700;
  padding: 12px 0 12px 4px;
  border-radius: var(--radius-sm);
  transition: color .16s, background .15s;
}
.mobile-nav a:hover {
  background: var(--color-sand);
  color: var(--color-olive);
}

/* --- FOOTER --- */
footer {
  background: var(--color-white);
  border-top: 1px solid #e2e1dc;
  box-shadow: 0 -1px 12px rgba(120,120,90,0.06);
  padding: 32px 0 18px 0;
  margin-top: 34px;
  font-size: 0.97em;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
footer nav a {
  color: var(--color-olive);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 1em;
  transition: color .16s;
}
footer nav a:hover {
  color: var(--color-green);
}
footer .text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--color-brown);
  font-size: 0.97em;
  align-items: flex-start;
  min-width: 210px;
}
footer .text-section img {
  height: 18px;
  margin-right: 5px;
  vertical-align: middle;
}
footer .social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}
footer .social-icons img {
  width: 33px;
  height: 33px;
  background: var(--color-card);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(52,80,48,0.09);
  padding: 5px;
  transition: background .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
}
footer .social-icons img:hover {
  background: var(--color-olive);
  transform: scale(1.08);
}

/* --- LISTS & ICONS --- */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: var(--color-black);
  margin-bottom: 9px;
  line-height: 1.6;
}
ul li img, ol li img {
  height: 29px;
  width: 29px;
  margin-right: 9px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* --- TABLES --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 18px;
  background: var(--color-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
}
th, td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid #e9e8e3;
}
th {
  background: var(--color-olive);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.1em;
}

/* --- FORMS (basic) --- */
input, select, textarea {
  width: 100%;
  font-size: 1rem;
  background: var(--color-card);
  border: 1.5px solid #b6c8ad;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  transition: border-color 0.16s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 2px #cedecb;
}
label {
  font-size: 1em;
  color: var(--color-green);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

/* --- SPACINGS BASED ON MANDATORY PATTERNS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BUTTONS / INTERACTIVE STATES --- */
button, .cta, [type='button'], [type='submit'], .cta.primary, .cta.secondary {
  cursor: pointer;
  border: none;
  outline: none;
  transition: background .2s, color .2s, box-shadow .19s, transform .14s;
}
button:active, .cta:active {
  transform: scale(0.98);
}

/* Subtle animation for links */
a, .cta {
  transition: color .20s, background .20s, box-shadow .16s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 38px;
  z-index: 1300;
  padding: 30px 16px 24px 16px;
  font-size: 1.03rem;
  box-shadow: 0 -1px 22px 0 rgba(52, 80, 48, 0.18);
  transition: transform .36s cubic-bezier(.61,.07,.56,.95), opacity .22s;
  opacity: 0.98;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 2 1 70%;
  max-width: 530px;
  font-size: 1rem;
  margin-right: 30px;
  color: var(--color-white);
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn, .cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  font-family: var(--font-display);
  font-size: 1em;
  border-radius: var(--radius-lg);
  padding: 11px 22px;
  background: var(--color-accent);
  color: var(--color-green);
  font-weight: 600;
  border: 2px solid var(--color-green);
  box-shadow: 0 1px 6px rgba(105,142,119,0.14);
  transition: background .17s, color .13s, border .13s;
}
.cookie-btn-accept {
  background: var(--color-olive);
  color: var(--color-white);
  border-color: var(--color-olive);
}
.cookie-btn-accept:hover { background: var(--color-green); }
.cookie-btn-reject {
  background: var(--color-card);
  color: var(--color-olive);
  border-color: var(--color-green);
}
.cookie-btn-reject:hover { background: var(--color-brown); color: var(--color-white); }
.cookie-btn-settings {
  background: var(--color-accent);
  color: var(--color-green);
  border-color: var(--color-green);
}
.cookie-btn-settings:hover { background: var(--color-white); color: var(--color-olive); }

/* Cookie modal popup */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(1);
  z-index: 1331;
  background: var(--color-white);
  color: var(--color-green);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 36px rgba(44,54,26,0.14);
  min-width: 330px;
  max-width: 98vw;
  width: 430px;
  padding: 35px 28px 23px 28px;
  animation: cookie-modal-in .29s cubic-bezier(.62,.11,.63,.99);
}
@keyframes cookie-modal-in {
  0% { opacity:0; transform: scale(.93) translate(-50%,-60%); }
  100% { opacity:1; transform: scale(1) translate(-50%,-48%); }
}
.cookie-modal.open {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal .cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15em;
}
.cookie-modal .cookie-modal-close {
  background: var(--color-green);
  color: var(--color-white);
  font-size: 1.7rem;
  border-radius: 50%;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .16s;
}
.cookie-modal .cookie-modal-close:hover { background: var(--color-olive); }
.cookie-modal-section {
  margin: 15px 0 3px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-toggle {
  width: 48px;
  height: 26px;
  background: var(--color-card);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  border: 2px solid var(--color-olive);
  transition: background .15s, border .13s;
}
.cookie-toggle input { display: none; }
.cookie-toggle-label {
  font-size: 1em;
  margin-right: 13px;
  font-weight: 600;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-green);
  transition: transform .15s, background .13s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-olive);
}
.cookie-toggle input:checked + .cookie-toggle-slider:before {
  background: var(--color-olive);
  transform: translateX(22px);
}
.cookie-toggle-slider {
  position: absolute; top:0; left:0; width:100%; height:100%; border-radius:20px; background:none;
}
.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-green);
  transition: transform .15s, background .13s;
}
/* Always checked for essential */
.cookie-toggle.essential {
  opacity: .8;
  pointer-events: none;
}
.cookie-modal-actions { display: flex; gap: 18px; margin-top: 12px; }

/* --- MEDIA QUERIES + RESPONSIVE LAYOUTS --- */
@media (max-width: 1100px) {
  .container { max-width: 960px; }
  .content-grid { gap: 10px; }
  .section { padding: 32px 8px; }
  footer .container { gap: 18px; }
}

@media (max-width: 900px) {
  .container { padding: 0 8px; }
  .card { padding: 18px; }
  header .container { height: auto; flex-wrap: wrap; padding-bottom: 12px; }
  .section { padding: 24px 4px; }
  .footer .container, .container { min-width: 0; }
}

@media (max-width: 768px) {
  header nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  .section { padding: 22px 3px; margin-bottom: 40px; }
  .container { padding: 0 3vw; }
  .content-wrapper { gap: 13px; }
  .card, .testimonial-card { min-width: 99%; }
  .card-container, .content-grid { flex-direction: column; gap: 12px; }
  .text-image-section { flex-direction: column; gap: 20px; }
  .testimonial-card { padding: 12px; font-size: 1em; }
  .feature-item { gap: 9px; }
  footer .container { flex-direction: column; gap: 16px; align-items: flex-start; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 23px;
    padding: 22px 10px 18px 10px;
    font-size: 0.93em;
  }
  .cookie-banner__text { margin-right: 0; font-size: 0.92em; }
  .cookie-modal { min-width: 0; width: 96vw; padding: 25px 8px 13px 13px; }
}

@media (max-width: 500px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.11rem; }
  h3 { font-size: 1rem; }
  .footer .container { padding: 0 2vw; }
  .testimonial-card, .card { padding: 8px 7px 10px 12px; }
  .cookie-banner { font-size: 0.87em; padding: 14px 2vw 10px 3vw; }
  .cookie-modal { padding-top: 14px; }
}

/* --- ORGANIC/NATURE SHAPE EFFECTS --- */
.section, .testimonial-card, .card, .cookie-modal,
.cookie-banner, .cta.primary, .cta.secondary {
  border-radius: var(--radius-lg);
  /* Organic corners using uneven rounding if possible */
}

/* Decorative organic background overlays (optional, not covering layout) */
body::before {
  content: '';
  position: fixed;
  top: -100px; left: -90px;
  width: 350px; height: 330px;
  background: radial-gradient(circle at 70% 30%, #e7eada 0%, rgba(243,247,232,0.2) 95%);
  opacity: 0.23;
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -120px; right: -70px;
  width: 260px; height: 220px;
  background: radial-gradient(circle at 30% 70%, #c0d6c6 0%, rgba(184,201,178,0.2) 100%);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* --- MICRO-INTERACTIONS / TRANSITIONS --- */
.card, .testimonial-card, .cta, .cookie-banner, .cookie-modal {
  transition: box-shadow .2s, background .2s, transform .18s, opacity .18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px) scale(1.01);
}

.cta:active, .card:active { transform: scale(.98); }

/* --- FOCUS VISIBLE SUPPORT --- */
a:focus, button:focus, .cta:focus, input:focus, select:focus, textarea:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 1.5px;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 900; position: relative; }
footer { z-index: 900; position: relative; }
.mobile-menu { z-index: 1200; }
.mobile-menu-toggle { z-index: 1051; }
.cookie-banner { z-index: 1300; }
.cookie-modal { z-index: 1331; }

/* --- PRINT (minimal) --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  section, .container { box-shadow: none !important; background: #fff !important; color: #000 !important; }
}