/* =========================================================
   CSS Reset & Base (Normalize + Modern Reset)              
   ========================================================= */
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, 
main, 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, main, menu, nav, section {
  display: block; 
}
body {
  line-height: 1.6;
  background: #F6F8FA;
  color: #233746;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #233746;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, button:focus {
  outline: 2px solid #CDBA87;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}
h1, .display {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #233746;
  line-height: 1.19;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #233746;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #233746;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
  color: #233746;
  margin-bottom: 6px;
  font-weight: 600;
}
p, ul li, ol li, address {
  font-family: 'Roboto', Arial, sans-serif;
  color: #233746;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
blockquote {
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
  color: #394D5B;
  background: #F0F4F8;
  border-left: 4px solid #CDBA87;
  padding: 12px 18px;
  margin-bottom: 12px;
}

/* =========================================================
   LAYOUT STRUCTURE (CONTAINERS, FLEXBOX)                  
   ========================================================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(35,55,70,0.08);
}

/* Flex container utilities */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35,55,70,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #E8ECF0;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(35,55,70,0.13);
  transform: translateY(-2px) scale(1.01);
  z-index: 1;
}
.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;
}

/* Card-like lists (blog-preview, features, services) */
.feature-grid, .blog-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.feature-grid > div, .blog-preview-grid > div {
  background: #F6F8FA;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(35,55,70,0.04);
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  padding: 24px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #E8ECF0;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-grid > div:hover, .blog-preview-grid > div:hover {
  border-color: #CDBA87;
  box-shadow: 0 4px 20px rgba(35,55,70,0.16);
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(35,55,70,0.08);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #E8ECF0;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service:hover, .service:focus-within {
  border-color: #CDBA87;
  box-shadow: 0 6px 22px rgba(35,55,70,0.14);
}

/* Feature column (for About, Appraisals, Contact benefits, etc.) */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  padding-left: 4px;
}
.benefits-list img {
  width: 28px;
  height: 28px;
}

/* Testimonial styles */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F0F6FB;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(35,55,70,0.09);
  margin-bottom: 20px;
  color: #233746;
  font-size: 1rem;
  border-left: 5px solid #CDBA87;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding: 0;
  color: #233746;
}
.testimonial-card p {
  margin-left: 16px;
  color: #697A8C;
  font-style: italic;
  margin-bottom: 0;
  font-size: 1rem;
}

.tagline {
  font-size: 1.3rem;
  color: #5B6D81;
  font-style: italic;
  margin: 16px 0 0 0;
  padding-left: 8px;
  border-left: 3px solid #CDBA87;
}
.subheadline {
  font-size: 1.18rem;
  color: #697A8C;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
}

/* Blog categories */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
.blog-categories li {
  background: #E8ECF0;
  color: #233746;
  font-size: 0.98rem;
  padding: 4px 18px;
  border-radius: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

/* =========================================================
   HEADER & NAVIGATION (Desktop and Mobile)                 
   ========================================================= */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 1px 10px rgba(35,55,70,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 14px 0;
  max-width: 1080px;
  margin: 0 auto;
}
nav > a > img {
  height: 38px;
  width: auto;
  margin-right: 28px;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav ul li a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #233746;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #F0F6FB;
  color: #CDBA87;
}
.cta-button {
  background: #233746;
  color: #FFFFFF;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 32px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(35,55,70,0.05);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  text-align: center;
  letter-spacing: 0.01em;
  margin-left: 10px;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: #CDBA87;
  color: #233746;
  box-shadow: 0 6px 22px rgba(35,55,70,0.14);
}

/* ==================== Mobile Menu Styles =================== */
.mobile-menu-toggle {
  display: none;
  background: #233746;
  color: #fff;
  font-size: 2rem;
  border-radius: 6px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  z-index: 201;
  border: 0;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #CDBA87;
  color: #233746;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,55,70, 0.93);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.5,0.16,0.19,1.1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 14px 24px 0 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #CDBA87;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px 32px 0 32px;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  background: none;
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 14px 0 14px 6px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #CDBA87;
  color: #233746;
}

/* Hides desktop nav on mobile and shows burger */
@media (max-width: 920px) {
  nav ul { display: none; }
  .cta-button { display: none !important; }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 921px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Ensure .mobile-menu overlay covers properly */
.mobile-menu {
  box-shadow: 0 2px 32px rgba(35,55,70, 0.12), 0 1px 2px #E8ECF0;
}

/* Prevent background scroll when mobile menu open (utility for JS) */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* =========================================================
   FOOTER                                                   
   ========================================================= */
footer {
  background: #233746;
  color: #fff;
  width: 100%;
  padding: 40px 0 0 0;
  margin-top: 80px;
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 0 0 24px 0;
}
footer h3 {
  color: #CDBA87;
  margin-bottom: 10px;
  font-size: 1.18rem;
}
footer address, footer a {
  color: #F0F4F8;
  font-style: normal;
  font-size: 1rem;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
footer nav ul li a {
  color: #F0F4F8;
  font-size: 0.96rem;
  padding: 4px 10px;
  border-radius: 3px;
  transition: background 0.17s, color 0.17s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  background: #CDBA87;
  color: #233746;
}
footer .social-media {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
footer .social-media a img {
  width: 32px;
  height: 32px;
  filter: grayscale(0.25);
  transition: filter 0.2s, transform 0.19s;
}
footer .social-media a:hover img, footer .social-media a:focus img {
  filter: grayscale(0);
  transform: scale(1.10);
}

/* =========================================================
   BUTTONS & INTERACTIVE ELEMENTS                          
   ========================================================= */
button, .cta-button {
  transition: background 0.2s, color 0.2s, box-shadow 0.19s, border 0.18s;
}

/* =========================================================
   RESPONSIVENESS AND FLEXBOX COLUMN SWITCHES              
   ========================================================= */
@media (max-width: 1024px) {
  .feature-grid > div, .blog-preview-grid > div, .service {
    min-width: 45%;
    max-width: 48%;
  }
}
@media (max-width: 800px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .card-container, .feature-grid, .blog-preview-grid, .service-list, .content-grid {
    gap: 14px;
  }
  .feature-grid > div, .blog-preview-grid > div, .service {
    min-width: 98%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .feature-grid, .blog-preview-grid, .card-container, .service-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  nav {
    padding: 9px 0;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 455px) {
  h1, .display { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  p, ul li, ol li, .benefits-list li { font-size: 0.97rem; }
}

/* =========================================================
   COOKIE CONSENT BANNER & MODAL                           
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #233746;
  color: #F0F4F8;
  padding: 22px 8px 18px 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9000;
  box-shadow: 0 -2px 14px rgba(35,55,70,0.13);
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}
.cookie-banner__message {
  flex: 1 1 300px;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.cookie-banner__button, .cookie-modal .cookie-options-btn {
  background: #CDBA87;
  color: #233746;
  border: none;
  border-radius: 5px;
  padding: 9px 22px;
  font-size: 0.97rem;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
  margin-left: 5px;
}
.cookie-banner__button:hover, .cookie-banner__button:focus {
  background: #e2cf97;
  color: #222;
}
.cookie-banner__button.reject {
  background: #F0F4F8;
  color: #233746;
  border: 1px solid #CDBA87;
}
.cookie-banner__button.reject:hover, .cookie-banner__button.reject:focus {
  background: #c3cfe1;
  color: #233746;
}

/* Cookie preference modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35,55,70, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.39,0.58,0.57,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__window {
  background: #fff;
  color: #233746;
  border-radius: 14px;
  min-width: 320px;
  max-width: 420px;
  padding: 32px 30px 26px 30px;
  box-shadow: 0 8px 42px rgba(35,55,70,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: none;
  color: #233746;
  border: none;
  font-size: 1.65rem;
  cursor: pointer;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #CDBA87;
}
.cookie-modal__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #233746;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  padding: 7px 0;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #F0F4F8;
  border-radius: 12px;
  position: relative;
  outline: none;
  border: 1px solid #CDBA87;
  margin-right: 7px;
  flex-shrink: 0;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle__slider {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #CDBA87;
  transition: left 0.22s cubic-bezier(0.45,0,0.55,1);
  pointer-events: none;
}
.cookie-toggle input[type='checkbox']:checked + .cookie-toggle__slider {
  left: 20px;
  background: #233746;
}
.cookie-category.essential {
  color: #A7AEB7;
  font-style: italic;
}
.cookie-options-btn {
  background: #CDBA87;
  color: #233746;
  border: none;
  border-radius: 5px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 10px;
  transition: background 0.19s, color 0.17s;
}
.cookie-options-btn:hover, .cookie-options-btn:focus {
  background: #c3a972;
  color: #222;
}

@media (max-width: 500px) {
  .cookie-modal__window {
    padding: 18px 7px 16px 7px;
    min-width: 92vw;
    max-width: 97vw;
  }
  .cookie-modal__title {
    font-size: 1.09rem;
  }
}

/* Hide cookie banner when .hide class is set */
.cookie-banner.hide {
  display: none !important;
}

/* =========================================================
   ACCESSIBILITY/UI MICRO-INTERACTIONS                     
   ========================================================= */
.card, .feature-grid > div, .service, .testimonial-card {
  cursor: default;
}
.card:active, .feature-grid > div:active, .service:active {
  box-shadow: 0 1px 4px rgba(35,55,70,0.24);
}
.cta-button:active {
  background: #1c2932;
  color: #fff;
}
nav ul li a:active, .mobile-nav a:active {
  color: #CDBA87;
}

/* ==================== MISCELLANEOUS UI POLISH =================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F0F4F8;
}
::-webkit-scrollbar-thumb {
  background: #C3CEDB;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #CDBA87;
}

::selection {
  background: #CDBA87;
  color: #233746;
}

/* END OF Gilded Traverse Corporate CSS */
