/* 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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAF9F7;
  color: #3D2B18;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* BRAND COLORS & FONTS */
:root {
  --primary: #1E3B28;
  --secondary: #7D6350;
  --accent: #ECE9E2;
  --bg: #FAF9F7;
  --compliment: #F7E7D8;
  --shadow: rgba(125,99,80,0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', Arial, Verdana, sans-serif;
}

/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p, li, small {
  font-family: var(--font-body);
  color: #3D2B18;
  font-size: 1rem;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX LAYOUTS (MANDATORY PATTERNS) */
.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(125,99,80,0.18);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 8px var(--shadow);
  margin-bottom: 24px;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 600;
}

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

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 8px var(--shadow);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img {
  height: 56px;
  border-radius: var(--radius-md);
}

.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}

.button-primary,
.button-primary:visited {
  display: inline-block;
  background: var(--secondary);
  color: #fff !important;
  padding: 13px 32px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.18s, transform 0.16s, box-shadow 0.28s;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.button-primary:hover,
.button-primary:focus {
  background: #5d422f;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 6px 22px rgba(125,99,80,0.18);
}
.button-secondary {
  display: inline-block;
  background: #fff;
  color: var(--primary) !important;
  border: 2px solid var(--secondary);
  padding: 13px 32px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background 0.18s, color 0.15s, border-color 0.15s;
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--accent);
  color: var(--secondary) !important;
  border-color: var(--primary);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.18s;
  z-index: 2001;
}
.mobile-menu-toggle:active {
  background: #5d422f;
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,59,40,0.94);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.71,.05,.13,1.03);
  z-index: 3333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: none;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 44px;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.mobile-menu-close:hover {
  background: rgba(125,99,80,0.17);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: var(--font-body);
  padding: 14px 0;
  border-radius: var(--radius-sm);
  transition: background 0.19s, color 0.19s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(236,233,226,0.13);
  color: #F9D7B9;
}

@media (max-width: 1020px) {
  .container {
    max-width: 92vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
  }
}

@media (max-width: 820px) {
  header .container { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section, .container, .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 20px;
  }
  .testimonial-card {
    margin-bottom: 16px;
    padding: 14px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(110deg, var(--accent) 60%, #F7E7D8 100%);
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 2px 16px var(--shadow);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.3rem;
  color: var(--primary);
  font-weight: 900;
}
.hero p {
  font-size: 1.2rem;
}
.hero .button-primary {
  margin-top: 16px;
}

/* FEATURE ICONS */
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 32px 0 0 0;
}
.feature-icons > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 8px var(--shadow);
  padding: 24px 18px;
  width: 220px;
  text-align: center;
  transition: box-shadow 0.21s, transform 0.16s;
}
.feature-icons > div:hover {
  box-shadow: 0 4px 28px var(--shadow);
  transform: translateY(-2px) scale(1.03);
}
.feature-icons h4 {
  margin: 5px 0 0 0;
  font-weight: 600;
  color: var(--primary);
}
.feature-icons p {
  font-size: 0.97rem;
}
.feature-icons img {
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
}

/* LISTS */
ul, ol {
  margin-left: 19px;
  margin-top: 12px;
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}
ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.12em;
  top: 0;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 8px var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}
thead tr {
  background: var(--accent);
}
th, td {
  padding: 16px 14px;
  text-align: left;
}
th {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--accent);
}
td {
  color: var(--secondary);
}

/* TEXT SECTIONS */
.text-section {
  margin-bottom: 18px;
}
.text-section p {
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: #3D2B18;
}
.text-section ul {
  margin-top: 12px;
}

/* CTA & MISSION */
.section .button-primary, .section .button-secondary {
  margin-top: 8px;
}
.mission-statement {
  background: var(--accent);
  padding: 24px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 8px var(--shadow);
  margin-top: 32px;
}

/* FOOTER */
footer {
  background: #fff;
  margin-top: 44px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -1px 8px var(--shadow);
  padding: 44px 0 10px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: background 0.19s, color 0.19s;
}
.footer-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
.footer-info {
  font-size: 0.96rem;
  color: #9c8266;
}

/* CONTACT INFO */
.contact-info {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 8px var(--shadow);
  padding: 18px 20px;
  margin-top: 14px;
}
.contact-info ul {
  margin: 0;
}
.contact-info li {
  margin-bottom: 9px;
}
.contact-info a {
  color: var(--secondary);
  text-decoration: underline;
}
.contact-info a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* TEAM LISTING */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.team-list .text-section {
  flex: 1 1 250px;
  background: #fff;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 8px var(--shadow);
  margin-bottom: 0;
  min-width: 220px;
}

@media (max-width: 900px) {
  .team-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* MISC FORMATTING */
small {
  font-size: 0.95em;
  color: #827269;
}
strong {
  color: var(--primary);
}

/* CARD SPACING & GAPS (MANDATORY) */
.card-container > *:not(:last-child),
.card > *:not(:last-child),
.feature-grid > *:not(:last-child) {
  margin-right: 0;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; }
.text-image-section { gap:30px; }
.testimonial-card { gap:20px; padding: 20px; }
.feature-item { gap: 15px; }

/* ENSURE MINIMUM CARD SPACING */
.card,
.section > .container > .content-wrapper > .testimonial-card,
.feature-grid > *,
.feature-icons > * {
  margin-bottom: 20px;
}

/* ------------- RESPONSIVE ------------ */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero {
    padding-top: 34px;
    padding-bottom: 38px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .feature-icons {
    flex-direction: column;
    gap: 18px;
  }
  .feature-icons > div {
    width: 100%;
    padding: 18px 10px;
  }
  .team-list .text-section {
    padding: 14px 7px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
}

/* ------------- COOKIE BANNER & MODAL ------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--secondary);
  color: #fff;
  padding: 28px 10px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  box-shadow: 0 -2px 13px rgba(125,99,80,0.16);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 1;
  transition: transform 0.27s, opacity 0.21s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  color: #fff;
  margin: 0 12px 0 0;
  flex: 1 1 200px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: #fff;
  color: var(--secondary);
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 22px;
  margin-left: 0;
  cursor: pointer;
  box-shadow: 0 1px 8px var(--shadow);
  transition: background 0.15s, color 0.15s, box-shadow 0.20s;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--compliment);
  color: var(--primary);
  box-shadow: 0 3px 14px var(--shadow);
}
.cookie-btn-secondary {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-secondary:hover {
  background: #487756;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10021;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(30,59,40,0.33);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--secondary);
  border-radius: var(--radius-lg);
  min-width: 310px;
  max-width: 94vw;
  padding: 34px 28px 26px 28px;
  box-shadow: 0 2px 30px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInCookieModal 0.35s cubic-bezier(.5,-.38,.39,1.28);
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; transform: translateY(36px) scale(0.94); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0 0 16px 0;
  font-weight: 900;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.7rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
  cursor: pointer;
}
.cookie-modal-close:hover {
  background: var(--accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 13px;
}
.cookie-category label {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.07rem;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #E6D4C3;
  border-radius: 12px;
  outline: none;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:after {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-toggle:checked:after {
  left: 18px;
}
.cookie-category .essential {
  font-weight: 700;
  color: var(--primary);
  margin-left: 8px;
}
.cookie-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}

@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 4px 7px 4px;
    gap: 7px;
  }
  .cookie-banner p {
    margin: 0 0 4px 0;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
  }
  .cookie-modal {
    padding: 18px 8px 18px 8px;
    min-width: 0;
  }
}

/* ------------- ANIMATIONS & INTERACTION ------------- */
.button-primary, .button-secondary, .cookie-btn {
  transition: background 0.18s, color 0.18s, transform 0.22s, box-shadow 0.18s;
}
.card, .feature-icons > div {
  transition: box-shadow 0.19s, transform 0.20s;
}

/* ------------- MISC / HELPER CLASSES ------------- */
.hide {
  display: none !important;
}
.visible {
  display: block !important;
}

/* For accessibility: focus outlines */
a:focus-visible, button:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Prevent overlap: force all cards/sections to get space */
section > .container > .content-wrapper > * + * {
  margin-top: 20px;
}
.section + .section {
  margin-top: 40px;
}

/* END OF CSS */
