/* ---------------------------------------------------
   Reforma Serena Nature Organic Theme
   style.css | Made by Senior CSS/UI Designer
--------------------------------------------------- */

/* --- RESET & BASE --- */
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;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8faf8;
  color: #243119;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}
button, .cta-button {
  font-family: inherit;
  outline: none;
}
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* --- COLOR PALETTE --- */
:root {
  --color-primary: #184764;
  --color-primary-light: #3a6b84;
  --color-secondary: #F2C14E;
  --color-accent: #E5E9E7;
  --color-green: #619179;
  --color-earth: #A4907C;
  --color-bark: #6f5437;
  --color-leaf: #CDE0BA;
  --color-bg: #f8faf8;
  --color-text: #243119;
  --color-paper: #fff;
  --shadow: 0 2px 16px 0 rgba(24, 71, 100, 0.10);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.12;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.22;
}
h4 {
  font-size: 1.08rem;
  line-height: 1.24;
}
p, ul, ol, li {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}
em {
  color: var(--color-green);
  font-style: italic;
}
.text-section {
  margin-bottom: 20px;
}

/* --- CONTAINERS & LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-paper);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: background 0.4s;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 5px;
    margin-bottom: 36px;
  }
}

/* --- NAVIGATION & HEADER --- */
header {
  width: 100%;
  background: var(--color-primary);
  box-shadow: 0 2px 10px 0 rgba(34,70,53,0.07);
  z-index: 20;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}
header img {
  height: 46px;
  width: auto;
  border-radius: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-leaf);
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta-button {
  background: var(--color-green);
  color: var(--color-paper);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(97,145,121,0.11);
  transition: background 0.17s, color 0.17s, box-shadow 0.24s;
  margin-left: 16px;
  letter-spacing: 0.02em;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(242,193,78,0.09);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  color: var(--color-paper);
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 60;
  transition: background 0.24s;
  margin-right: 6px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Hamburger visible only on mobile */
@media (max-width: 900px) {
  header nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,71,100, 0.95);
  backdrop-filter: blur(4px);
  z-index: 9999;
  transition: transform 0.33s cubic-bezier(.6,1.38,.34,.9);
  transform: translateX(-120vw);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-secondary);
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 14px 32px 0 0;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 38px 32px 0 38px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-leaf);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 14px 10px 14px 0;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN + FLEX LAYOUTS --- */
main {
  background: var(--color-bg);
  min-height: 70vh;
  margin-bottom: 40px;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--color-paper);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 30px;
  position: relative;
  flex: 1 1 240px;
  min-width: 250px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 34px 0 rgba(97,145,121, 0.13);
  transform: translateY(-3px) scale(1.03);
}

.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) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-leaf);
  color: var(--color-text);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: box-shadow 0.22s, background 0.15s;
  font-size: 1.1rem;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card p {
  margin: 0;
}

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

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.service-cards > div {
  flex: 1 1 230px;
  min-width: 210px;
  background: var(--color-paper);
  box-shadow: 0 2px 14px 0 rgba(166, 191, 133, 0.08);
  border-radius: 16px;
  padding: 26px 14px 20px 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.17s, transform 0.17s;
  border: 2px solid transparent;
}
.service-cards > div:hover {
  box-shadow: 0 5px 17px 0 rgba(166,250,170,0.07);
  border-color: var(--color-green);
  transform: translateY(-2px) scale(1.02);
}
.service-cards img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--color-leaf);
  padding: 8px;
}

.project-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-summaries > div {
  background: var(--color-paper);
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(97,145,121,0.08);
  padding: 24px 18px;
  flex: 1 1 280px;
  min-width: 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.project-summaries > div:hover {
  box-shadow: 0 7px 26px 0 rgba(34,70,53,0.12);
  transform: translateY(-3px) scale(1.02);
}

/* --- FAQ Accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion > div {
  background: var(--color-leaf);
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(97,145,121,0.08);
  padding: 18px 18px 13px 18px;
  transition: box-shadow 0.2s, background 0.18s;
}
.faq-accordion > div:hover {
  background: var(--color-accent);
  box-shadow: 0 4px 22px rgba(166,250,170,0.10);
}
.faq-accordion h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-list > div {
  background: var(--color-paper);
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(97,145,121,0.07);
  padding: 18px 14px 12px 14px;
  flex: 1 1 280px;
  min-width: 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-list > div:hover {
  box-shadow: 0 6px 22px 0 rgba(34,70,53,0.10);
  transform: translateY(-3px) scale(1.02);
}
.blog-tags {
  color: var(--color-green);
  font-size: 0.9rem;
  margin-top: 8px;
  display: inline-block;
  font-weight: 500;
}
.blog-read-more {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-green);
  transition: color 0.2s;
  margin-top: 5px;
}
.blog-read-more:hover, .blog-read-more:focus {
  color: var(--color-primary);
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: var(--color-primary);
  padding: 38px 0 24px 0;
  color: var(--color-leaf);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-leaf);
  font-size: 1rem;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
footer img {
  height: 38px;
  width: auto;
  background: none;
  border-radius: 0;
}
footer .text-section p {
  color: var(--color-leaf);
  font-size: 0.98rem;
  margin-top: 10px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* --- FORM ELEMENTS (future-ready) --- */
input, textarea, select {
  padding: 10px 16px;
  background: var(--color-accent);
  border: 2px solid var(--color-leaf);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--color-text);
  transition: border 0.18s, background 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  background: #fff;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--color-earth);
  color: #fff;
  box-shadow: 0 -2px 30px rgba(24,71,100,0.16);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 21px 20px 16px 20px;
  gap: 16px;
  animation: cookieBannerFadeIn 0.7s cubic-bezier(0.51,1.26,0.37,1) 1;
  font-size: 1.08rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  padding: 10px 22px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  box-shadow: 0 2px 6px rgba(242,193,78,0.08);
}
.cookie-btn.reject {
  background: var(--color-bark);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #472f18;
}
.cookie-btn.settings {
  background: var(--color-green);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #426e56;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

@keyframes cookieBannerFadeIn {
  0% {transform: translateY(100%); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,71,100,0.33);
  z-index: 20001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.25s;
}
.cookie-modal {
  background: var(--color-paper);
  color: var(--color-text);
  padding: 32px 30px 24px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(34,70,53,0.19);
  min-width: 285px;
  max-width: 95vw;
  z-index: 20002;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalAppear 0.33s cubic-bezier(.61,1.31,.33,.96) 1;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-secondary);
}
.cookie-modal .cookie-category {
  padding: 13px 0 9px 0;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal input[type="checkbox"] {
  margin-right: 6px;
  accent-color: var(--color-green);
}
@keyframes cookieModalAppear {
  0% {transform: scale(0.85); opacity:0;}
  100% {transform: scale(1); opacity:1;}
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}

/* --- SPACING & ORGANIC DECORATION --- */
.section {
  background: var(--color-paper);
  border-radius: 2.7vw 1vw 2vw 3vw/1.6vw 2vw 2vw 1.2vw;
  box-shadow: var(--shadow);
}
.card, .service-cards > div, .project-summaries > div, .blog-list > div, .testimonial-card, .faq-accordion > div {
  border-radius: 1.5vw 3vw 2vw 1.8vw/1vw 1.2vw 2vw 2.7vw;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 850px) {
  .service-cards, .project-summaries, .blog-list, .card-container {
    gap: 16px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
}
@media (max-width: 640px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.14rem; }
  .section {
    padding: 16px 2vw;
    margin-bottom: 24px;
  }
  .testimonial-card {
    font-size: 0.99rem;
    padding: 13px 5px 13px 5px;
  }
  .cookie-banner {
    font-size: 0.97rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* --- TABLET AND MOBILE FLEX --- */
@media (max-width: 850px) {
  .service-cards, .project-summaries, .blog-list, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- MICROINTERACTIONS & ANIMATIONS --- */
.card, .service-cards > div, .project-summaries > div, .blog-list > div, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.18s, border 0.17s;
}
.card:active, .service-cards > div:active,
.project-summaries > div:active, .blog-list > div:active {
  box-shadow: 0 2px 16px rgba(34,70,53,0.11);
  transform: scale(0.99);
}
.cta-button {
  transition: background 0.14s, color 0.14s, box-shadow 0.14s, transform 0.12s;
}
.cta-button:active {
  transform: scale(0.97);
}

/* --- ORGANIC SEPARATOR --- */
.section:after {
  content: '';
  display: block;
  width: 80px;
  height: 6px;
  margin: 28px auto 0 auto;
  border-radius: 6px 17px 12px 6px / 4px 10px 7px 4px;
  background: var(--color-green);
  opacity: 0.13;
}

/* --- UTIL CLASSES --- */
.d-none { display: none !important; }
.text-center { text-align: center; }
@media (max-width: 500px) {
  .section:after { width: 36px; height: 3px; }
}

/* --- END --- */
