/* ==========================
   CSS RESET & NORMALIZATION
   ========================== */
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 {
  /* Ensures font scaling and tap highlight off for mobiles */
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
body {
  background: #FAFAFA;
  color: #2D3142;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
ul, ol, li {
  list-style: none;
}
a {
  color: #EF8354;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, button:focus {
  outline: 2px solid #EF8354;
  outline-offset: 2px;
}

/* ==========================
   TYPOGRAPHY
   ========================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2D3142;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, dl, table, blockquote {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #EF8354;
}
.text-section h1, .text-section h2, .text-section h3, .text-section h4 {
  color: #2D3142;
}
.text-section p, .text-section ul, .text-section ol, .text-section dd {
  color: #2D3142;
}
li strong, dt {
  color: #2D3142;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
}

/* Artistic Creative Touches */
h1, h2 {
  position: relative;
  z-index: 1;
  padding-bottom: 6px;
  /* Decorative underline */
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  border-radius: 3px;
  margin-top: 5px;
  background: #EF8354;
}
h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  color: #2D3142;
  border-left: 5px solid #EF8354;
  padding-left: 16px;
  background: #FFF;
  margin: 16px 0;
}

dt {
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 4px;
}
dd {
  margin-bottom: 8px;
}

/* ==========================
   CONTAINERS & LAYOUT
   ========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(45,49,66,0.06);
  transition: box-shadow 0.2s;
}
section.hero {
  background: #BFC0C0;
  background: linear-gradient( 119deg, #BFC0C0 60%, #EF8354 100% );
  padding: 60px 0 48px 0;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  min-height: 380px;
}
.hero .content-wrapper {
  align-items: flex-start;
}

.text-section {
  background: #F8F1EA;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(45,49,66,0.08);
  padding: 32px 24px;
}

/* Responsive Flex Grids */
.card-container, .feature-grid, .team-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(45,49,66,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px;
}
.card:hover, .team-grid > div:hover {
  box-shadow: 0 8px 30px rgba(45,49,66,0.2);
  transform: translateY(-6px) scale(1.02) rotate(-1deg);
}
.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: #FFF;
  border-radius: 16px 40px 30px 16px;
  box-shadow: 0 2px 10px rgba(45,49,66,0.13);
  margin-bottom: 20px;
  border-left: 8px solid #EF8354;
  transition: box-shadow 0.2s, border-left-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(45,49,66,0.21);
  border-left-color: #2D3142;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #181B25;
  margin-bottom: 8px;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: #EF8354;
  font-family: 'Montserrat', Arial, sans-serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------------
   FEATURE GRID / TEAM GRID
------------------------------- */
.feature-grid, .team-grid {
  width: 100%;
  gap: 28px;
  margin: 16px 0 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.feature-grid li, .team-grid > div {
  background: #FFF;
  border-radius: 14px 38px 24px 14px;
  padding: 26px 20px 20px 26px;
  box-shadow: 0 3px 13px rgba(45,49,66,0.08);
  min-width: 225px;
  flex: 1 1 225px;
  max-width: 320px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.21s;
  margin-bottom: 20px;
  gap: 10px;
}
.feature-grid li:hover, .team-grid > div:hover {
  box-shadow: 0 9px 24px rgba(45,49,66,0.14);
  transform: translateY(-3px) scale(1.03) rotate(1deg);
}
.feature-grid img, .team-grid img {
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(239,131,84,0.15);
  object-fit: cover;
}
.feature-grid strong, .team-grid h3 {
  font-size: 1.13rem;
  color: #2D3142;
  margin-bottom: 2px;
}
.feature-grid p, .team-grid p {
  font-size: 0.99rem;
  color: #444952;
}

/* Cards generic ---------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

/* ==========================
   BUTTONS
   ========================== */
.btn-primary {
  background: #EF8354;
  color: #FFF;
  padding: 14px 38px;
  border: none;
  border-radius: 20px;
  font-size: 1.11rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 13px rgba(239,131,84,0.16);
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.15s;
  margin-top: 10px;
  margin-right: 4px;
  margin-bottom: 14px;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2D3142;
  color: #EF8354;
  box-shadow: 0 5px 22px rgba(45,49,66,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* Secondary buttons - for banners or contrast */
.btn-secondary, .btn-banner {
  background: #2D3142;
  color: #FFF;
  padding: 13px 32px;
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-top: 8px;
  margin-right: 4px; 
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.12s, transform 0.16s;
}
.btn-secondary:hover, .btn-banner:hover, .btn-secondary:focus,
.btn-banner:focus {
  background: #EF8354;
  color: #2D3142;
  transform: scale(1.03);
}

/* ==========================
   NAVIGATION & HEADER
   ========================== */
header {
  width: 100%;
  background: #FFF;
  box-shadow: 0 2px 10px rgba(45,49,66,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
nav > a img {
  height: 48px;
  width: auto;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
nav ul li a {
  color: #2D3142;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.07rem;
  padding: 7px 14px;
  border-radius: 10px;
  transition: background 0.16s, color 0.16s;
}
nav ul li a:hover, nav ul li a:focus, nav .btn-primary:hover {
  background: #EF8354;
  color: #FFF;
}

/* Hide nav on mobile - burger menu shows */
.mobile-menu-toggle {
  background: #EF8354;
  color: #FFF;
  border: none;
  border-radius: 10px;
  font-size: 2.2rem;
  padding: 6px 16px;
  margin-left: 8px;
  cursor: pointer;
  display: none;
  z-index: 51;
  transition: background 0.15s, color 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2D3142;
  color: #EF8354;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,49,66, 0.96);
  z-index: 1003;
  padding: 30px 22px 0 22px;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.7,.2,.2,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 2.6rem;
  position: absolute;
  top: 18px;
  right: 22px;
  cursor: pointer;
  z-index: 1018;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 56px;
  width: 100%;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.33rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: rgba(239,131,84, 0.11);
  border-radius: 11px;
  padding: 17px 10px 13px 20px;
  margin-bottom: 2px;
  transition: background 0.16s, color 0.13s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EF8354;
  color: #2D3142;
}

/* ==========================
   FOOTER
   ========================== */
footer {
  width: 100%;
  background: #2D3142;
  color: #FFF;
  padding: 44px 0 0 0;
  margin-top: 50px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 36px;
  justify-content: space-between;
}
footer a {
  color: #EF8354;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
}
footer a:hover, footer a:focus {
  color: #FFF;
  text-decoration: underline;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 7px rgba(239,131,84,0.12));
}
footer p {
  margin-bottom: 6px;
}
footer div[aria-label] a img {
  height: 32px;
  width: 32px;
  margin-right: 8px;
  filter: grayscale(12%) brightness(98%);
  transition: filter 0.18s;
}
footer div[aria-label] a:hover img {
  filter: grayscale(0%) brightness(115%) drop-shadow(0 2px 7px #EF8354);
}
footer > .container {
  padding-bottom: 22px;
}
footer .content-wrapper > div:last-child p {
  font-size: 0.97rem;
  color: #BBB;
  margin-top: 18px;
}

/* ==========================
   TABLES
   ========================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #F8F1EA;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 7px rgba(45,49,66,0.07);
  margin-bottom: 24px;
}
thead {
  background: #EF8354;
  color: #FFF;
}
caption {
  caption-side: top;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  margin-bottom: 7px;
}
th, td {
  padding: 16px 13px;
  text-align: left;
}
th {
  font-weight: 700;
}
tbody tr:nth-child(even) {
  background: #FFF;
}
tbody tr:nth-child(odd) {
  background: #F3F2F0;
}

/* ==========================
   COOKIE CONSENT BANNER
   ========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #2D3142;
  color: #FFF;
  padding: 28px 16px 22px 16px;
  box-shadow: 0 -4px 16px rgba(45,49,66,0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: cookie-slide-in 0.6s cubic-bezier(.45,.69,.47,1.13);
}
@keyframes cookie-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #FFF;
  font-size: 1.06rem;
  margin: 0 0 7px 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner .btn-banner {
  min-width: 130px;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 55px;
  transform: translateX(-50%) scale(1);
  min-width: 315px;
  width: 90vw;
  max-width: 418px;
  background: #FFF;
  color: #2D3142;
  border-radius: 18px;
  box-shadow: 0 6px 30px rgba(45,49,66,0.21);
  z-index: 1201;
  padding: 30px 22px 20px 22px;
  display: none;
  flex-direction: column;
  animation: fade-in-scale 0.41s cubic-bezier(.62,1.44,.14,1.12);
}
.cookie-modal.open {
  display: flex;
}
@keyframes fade-in-scale {
  from { opacity: 0; transform: translateX(-50%) scale(0.89); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 18px;
  color: #2D3142;
  font-size: 1.21rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
}
.cookie-category label {
  flex: 1;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: #EF8354;
  width: 20px;
  height: 20px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .btn-secondary {
  min-width: 120px;
}
.cookie-modal .close-cookie-modal {
  background: none;
  border: none;
  color: #EF8354;
  font-size: 2rem;
  position: absolute;
  top: 13px;
  right: 19px;
  cursor: pointer;
}

/* ==========================
   RESPONSIVE BREAKPOINTS
   ========================== */
@media (max-width: 1099px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  .feature-grid li, .team-grid > div {
    min-width: 185px;
    max-width: 48vw;
    padding: 18px 13px 14px 15px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper {
    gap: 14px;
  }
  section.hero {
    min-height: 270px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 34px 0 25px 0;
  }
  .feature-grid, .team-grid {
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .feature-grid li, .team-grid > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
    margin-bottom: 0;
  }
  .section {
    margin-bottom: 36px;
    padding: 22px 8px;
    border-radius: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .card {
    padding: 14px 9px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 9px;
    gap: 8px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  nav > a img {
    height: 37px;
  }
  nav {
    gap: 6px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  section.hero {
    min-height: 170px;
    padding: 20px 0 8px 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  .feature-grid li, .team-grid > div {
    border-radius: 10px 20px 12px 10px;
    padding: 11px 6px 8px 9px;
  }
}

/* ==========================
   MICRO-INTERACTIONS & EFFECTS
   ========================== */
section.hero .btn-primary {
  animation: hero-btn-bounce 1.5s 1s both;
}
@keyframes hero-btn-bounce {
  0%   { transform: translateY(32px) scale(0.93); opacity: 0; }
  70%  { transform: translateY(-7px) scale(1.05); opacity: 1; }
  82%  { transform: translateY(2px)  scale(1.03); }
  100% { transform: translateY(0)    scale(1); }
}

a, .btn-primary, .btn-secondary, .btn-banner {
  transition: background 0.16s, color 0.15s, box-shadow 0.15s, transform 0.18s;
}

/* ==========================
   FORMS (for potential future)
   ========================== */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #BFC0C0;
  background: #FFF;
  padding: 11px 16px;
  margin-bottom: 8px;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #EF8354;
}

/* ==========================
   Z-INDEX CONTROL
   ========================== */
.mobile-menu { z-index: 1003; }
.cookie-banner { z-index: 1100; }
.cookie-modal { z-index: 1201; }

/* ==========================
   UTILITY
   ========================== */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-12 { gap: 12px; }

/* Brand Colors as Custom Properties (for fallback, not required) */
:root {
  --color-primary: #2D3142;
  --color-secondary: #BFC0C0;
  --color-accent: #EF8354;
  --brand-bg: #F8F1EA;
}
