/* Ghostly Pine - Minimalist, Responsive CSS (Flexbox only, NO grid/columns) */
/* -----------------------------------------------------
   1. 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,
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 { scroll-behavior: smooth; }
body {
  background-color: #fff;
  color: #2D4044;
  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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* -----------------------------------------------------
   2. Variables (with Fallbacks)
----------------------------------------------------- */
:root {
  --color-primary: #2D4044;
  --color-secondary: #A7C4A0;
  --color-accent: #F4F5F6;
  --color-white: #fff;
  --color-black: #10181A;

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

  --radius: 12px;
  --shadow-card: 0 2px 12px 0 rgba(39,56,53,0.06);
  --shadow-hover: 0 4px 18px 0 rgba(39,56,53,0.13);
  --transition: 0.2s cubic-bezier(.44,1.14,.6,1);
}

/* -----------------------------------------------------
   3. Typography
----------------------------------------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.subtitle {
  font-family: var(--font-body);
  font-size: 1.13rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-weight: 400;
}
strong { font-weight: 600; }
blockquote {
  font-style: italic;
  border-left: 3px solid var(--color-secondary);
  padding: 0 0 0 12px;
  color: var(--color-primary);
  margin: 0;
}

/* -----------------------------------------------------
   4. Layout Containers & Spacing
----------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) 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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -----------------------------------------------------
   5. Navigation & Header
----------------------------------------------------- */
header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 10px 0 rgba(39,56,53,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img {
  height: 40px;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 400;
  font-size: 1rem;
  padding: 6px 4px;
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 32px;
  box-shadow: var(--shadow-card);
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  min-width: 160px;
  margin-left: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px) scale(1.03);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
  outline: none;
  transition: background var(--transition), border var(--transition), color var(--transition);
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

/* -----------------------------------------------------
   6. Mobile Navigation (Burger Menu)
----------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 201;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px 0 rgba(39,56,53,0.09);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 64, 68, 0.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 202;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.64,-0.13,.21,1.13);
  pointer-events: none;
  opacity: 0;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--color-white);
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin: 0 18px 32px 0;
  cursor: pointer;
  z-index: 210;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin-left: 36px;
  margin-top: 24px;
}
.mobile-nav a {
  color: var(--color-white);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 6px 0;
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: rgba(255,255,255,0.11);
}

@media (max-width: 1024px) {
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 11px; }
}
@media (max-width: 840px) {
  header .container { gap: 8px; }
  .main-nav { gap: 6px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .btn-primary {
    margin-left: 0;
    min-width: 120px;
    padding: 11px 20px;
  }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 769px) {
  .mobile-menu-toggle { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* -----------------------------------------------------
   7. Main Content Sections & Cards
----------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section { margin-bottom: 38px; padding: 28px 6px; }
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
}
.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: 22px;
  }
}
.feature-list, .feature-grid, .services-list, .mission-list, .blog-list, .category-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.feature-grid {
  flex-direction: row;
  gap: 28px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.feature-grid li, .feature-list li, .services-list li, .mission-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.feature-grid img, .feature-list img {
  height: 34px; width: 34px;
  min-width: 34px;
}
.price {
  color: var(--color-secondary);
  font-weight: 600;
  margin-left: 10px;
  font-size: 1rem;
}

.services-list li {
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.blog-list > li {
  background: var(--color-accent);
  border-radius: var(--radius);
  padding: 22px 20px 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 768px) {
  .services-list, .feature-list, .feature-grid, .blog-list, .mission-list, .category-nav {
    gap: 12px;
  }
  .services-list li, .blog-list > li {
    padding: 13px 10px;
  }
  .feature-grid { gap: 12px; }
}

.category-nav {
  gap: 8px;
  flex-direction: row;
  align-items: center;
  font-size: 1rem;
}
.category-nav a {
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 0.99rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.category-nav a:hover, .category-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

.text-section {
  padding: 0;
  margin: 0;
}
.text-section img {
  display: inline-block;
  height: 22px;
  margin-right: 7px;
  vertical-align: middle;
}

/* -----------------------------------------------------
   8. Testimonials
----------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: #2D4044;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 1.09rem;
  color: #2D4044;
  line-height: 1.6;
  font-style: italic;
}
.testimonial-name {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--color-secondary);
  font-weight: 500;
}

/* -----------------------------------------------------
   9. Footer
----------------------------------------------------- */
footer {
  background: var(--color-accent);
  padding: 40px 0 16px 0;
  border-top: 1px solid #eaecec;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
}
.footer-brand img {
  width: 42px; height: 42px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap; gap: 22px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.99rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--color-secondary); }
.footer-info {
  color: #bfc7ca;
  font-size: 0.97rem;
  margin-top: 10px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.footer-social img {
  width: 26px;
  height: 26px;
  opacity: 0.73;
  transition: opacity var(--transition), filter var(--transition);
  filter: grayscale(25%);
  cursor: pointer;
}
.footer-social img:hover {
  opacity: 1;
  filter: none;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-nav {
    gap: 10px;
  }
}

/* -----------------------------------------------------
   10. Cookie Consent Banner
----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 22px 28px;
  box-shadow: 0 -2px 16px 0 rgba(39,56,53,0.09);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.32s var(--transition), opacity 0.2s;
  will-change: transform, opacity;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 1 1 0;
  min-width: 0;
  margin-right: 20px;
  font-size: 0.98rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  min-width: 0;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  min-width: 115px;
  padding: 10px 20px;
  outline: none;
  border: none;
  margin: 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.cookie-banner .cookie-accept {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.cookie-banner .cookie-accept:hover {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}
.cookie-banner .cookie-reject {
  background: none;
  color: var(--color-white);
  border: 1px solid var(--color-accent);
}
.cookie-banner .cookie-reject:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
.cookie-banner .cookie-settings {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-banner .cookie-settings:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 12px;
  }
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,34,36,0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius);
  padding: 38px 28px 32px 28px;
  max-width: 440px;
  width: 90vw;
  box-shadow: var(--shadow-hover);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-dialog h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 600;
}
.cookie-modal-dialog .category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px; height: 20px;
  background: var(--color-accent);
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
  border: 1px solid #E1E4E5;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
  background: var(--color-white);
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 19px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.45rem;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover { color: var(--color-secondary); }
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 18px;
}
.cookie-modal-actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-actions .cookie-save {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
}
.cookie-modal-actions .cookie-save:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-modal-actions .cookie-cancel {
  background: none;
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
}
.cookie-modal-actions .cookie-cancel:hover {
  background: var(--color-accent);
}

/* Essential cookies always enabled */
.category-item.essential label {
  font-weight: 600;
  color: var(--color-secondary);
}
.category-item.essential .cookie-toggle {
  pointer-events: none;
  opacity: 0.65;
  background: #E1E4E5;
}

/* -----------------------------------------------------
   11. Utility Classes
----------------------------------------------------- */
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }

/* -----------------------------------------------------
   12. Accessibility
----------------------------------------------------- */
:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.btn-primary:focus, .btn-secondary:focus, .main-nav a:focus, .footer-nav a:focus, .mobile-nav a:focus,
.cookie-banner button:focus, .cookie-modal-close:focus { outline: 2px solid var(--color-secondary); }

/* -----------------------------------------------------
   13. Responsive Design (Mobile-First)
----------------------------------------------------- */
@media (max-width: 700px) {
  .container { padding-left: 8px; padding-right: 8px; }
  h1, .h1 { font-size: 1.55rem; }
  h2, .h2 { font-size: 1.24rem; }
  .btn-primary, .btn-secondary {
    font-size: 0.92rem;
    min-width: 90px;
    padding: 10px 11px;
  }
}
