/* --- CSS 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,
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;
  vertical-align: baseline;
  font: inherit;
  font-size: 100%;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  background: #23282C;
  color: #F2F2F2;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #B07A44;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #FFDCA9;
  text-decoration: underline;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #2A3A3E;
  --primary-dark: #1C2629;
  --secondary: #EADBB1;
  --secondary-tint: #FFF7E6;
  --brand-bg: #23282C;
  --accent: #B07A44;
  --accent-neon: #FFC466;
  --white: #FFFFFF;
  --black: #141518;
  --brand-blue: #375257;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #FFF;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 700;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; letter-spacing: 0.04em; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--accent); }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol, li, table, th, td {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #F2F2F2;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 18px;
  line-height: 1.7;
  list-style-type: disc;
}
strong { font-weight: 700; color: #FFDCA9; }

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

.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 2px 24px 0 rgba(176, 122, 68, 0.05);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 0;
}
.brand-logo img {
  height: 46px;
  transition: filter 0.2s;
  filter: drop-shadow(0 0 8px var(--accent-neon));
}
.brand-logo:hover img {
  filter: drop-shadow(0 0 14px #FFC46699);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #FFF;
  font-weight: 500;
  padding: 2px 7px;
  font-size: 1rem;
  position: relative;
  transition: color 0.18s;
}
.main-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s;
  margin: 3px auto 0 auto;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent-neon);
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.cta-btn {
  display: inline-block;
  border-radius: 28px;
  padding: 12px 28px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  background: var(--secondary-tint);
  color: var(--primary);
  border: none;
  box-shadow: 0 2px 24px 0 rgba(176, 122, 68, 0.12);
  margin-left: 10px;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  position: relative;
  z-index: 3;
  cursor: pointer;
}
.cta-btn.primary {
  background: var(--accent);
  color: #FFF;
  box-shadow: 0 0 16px 0 #B07A4466;
}
.cta-btn.secondary {
  background: var(--primary);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cta-btn.accent, .accent-bg .cta-btn {
  background: var(--accent);
  color: #FFF;
  box-shadow: 0 0 12px 0 #FFC46677;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-neon);
  color: #1C2629;
  box-shadow: 0 4px 32px 0 #FFC46677;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #FFF;
  cursor: pointer;
  z-index: 4;
  padding: 4px 10px;
  margin-left: 10px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent-neon);
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #23282CB7;
  backdrop-filter: blur(4px);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(.82,-0.01,.36,.98);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%) scale(1.04);
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: none;
  border: none;
  color: var(--accent-neon);
  margin: 25px 30px 8px 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1001;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #22292E;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  min-width: 70vw;
  max-width: 92vw;
  padding: 36px 28px 30px 44px;
  margin-top: 10px;
  box-shadow: -6px 0 38px 0 #2A3A3E99;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
  padding: 5px 0;
  border-radius: 6px;
  transition: background 0.14s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent-neon);
  background: #53423544;
}

/* --- LAYOUT CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  border-radius: 21px;
  position: relative;
  box-shadow: 0 6px 24px 0 rgba(176, 122, 68, 0.15);
  background: #263135;
  transition: box-shadow 0.2s, transform 0.18s;
  border: 1px solid #222933;
}
.card:hover {
  box-shadow: 0 12px 36px 0 #B07A4488, 0 1.5px 0 0 var(--accent) inset;
  transform: translateY(-4px) scale(1.018);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- HERO & FEATURE SECTION --- */
.hero {
  background: linear-gradient(78deg, #2A3A3E 60%, #B07A44 110%);
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 40px 0;
  box-shadow: 0 2px 42px 0 #B07A4422;
  position: relative;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 560px;
  margin: auto;
  min-height: 320px;
  padding: 38px 9vw 36px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
.hero h1 {
  font-size: 2.6rem;
  color: #FFF;
  text-shadow: 0 2px 6px #23282C99;
  letter-spacing: 0.05em;
}
.hero p {
  font-size: 1.25rem;
  color: #EADBB1;
  line-height: 1.5;
}
.hero .cta-btn {
  margin-top: 22px;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 25px 0 0 0;
}
.feature-card {
  flex: 1 1 235px;
  min-width: 235px;
  max-width: 350px;
  background: linear-gradient(112deg, #263135 90%, #B07A4415 120%);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 3px 18px #23282C33;
  color: #EADBB1;
  border: 1.5px solid #33404A;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, border 0.16s;
  position: relative;
}
.feature-card img {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 1.18rem;
  margin: 0 0 6px 0;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.feature-card p {
  font-size: 1rem;
  color: #EADBB1;
}
.feature-card:hover, .feature-card:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 32px #B07A4444, 0 1px 0 0 var(--accent) inset;
  z-index: 1;
}

/* --- CARDS, BLOG POSTS, CASE STUDIES --- */
.blog-list, .case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.blog-post, .case {
  background: #22282F;
  border-radius: 16px;
  box-shadow: 0 3px 16px #23282C2c;
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 355px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border 0.18s, transform 0.16s;
  border: 1.5px solid #283045;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 13px;
}
.blog-post h3, .case h3 {
  color: var(--accent-neon);
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.blog-post .tags, .case .tags {
  font-size: 0.92rem;
  color: var(--secondary);
}
.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 6px;
  letter-spacing: 0.03em;
}
.read-more:hover {
  color: var(--accent-neon);
}
.blog-post:hover, .case:hover {
  box-shadow: 0 6px 32px #B07A4440, 0 1.5px 0 0 var(--accent) inset;
  border-color: var(--accent-neon);
  transform: translateY(-3px) scale(1.012);
}

/* --- PRICING TABLE --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 26px 0 20px 0;
  background: #22282F;
  box-shadow: 0 3px 12px #23282C22;
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 13px 12px;
  font-size: 1rem;
  color: #EADBB1;
}
th {
  background: #28304A;
  color: #FFF;
  font-weight: 700;
}
tr:nth-child(even) td {
  background: #24303B;
}
tr:nth-child(odd) td {
  background: #23282C;
}
td {
  border-bottom: 1px solid #283045;
}
tr:last-child td {
  border-bottom: none;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: 16px;
  background: #F8F4EB;
  box-shadow: 0 5px 24px #B07A4425;
  max-width: 600px;
  margin: 23px auto 20px auto;
  border: 1.5px solid #B07A4414;
  color: #23282C;
  font-family: 'Lato', Arial, sans-serif;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card p {
  color: #23282C;
  font-size: 1.08rem;
}
.testimonial-card .stars {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: #B07A44;
  text-shadow: 0 1px 12px #FFDCA944;
}
.testimonial-name {
  color: #375257;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px #FFDCA955;
  transform: scale(1.02);
}

/* --- CTA BAR --- */
.cta-bar, .accent-bg {
  background: linear-gradient(80deg, #B07A44 86%, #23282C 120%);
  color: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 24px #B07A4455;
  margin-bottom: 60px;
}
.cta-bar h2, .accent-bg h2 {
  color: #FFF;
}
.cta-bar .cta-btn, .accent-bg .cta-btn {
  margin-top: 18px;
  background: #FFF;
  color: #2A3A3E;
  border: none;
}
.cta-bar .cta-btn:hover {
  background: var(--accent-neon);
  color: var(--black);
}

/* --- TEXT SECTION --- */
.text-section {
  margin-bottom: 30px;
  background: #23282C;
  padding: 30px 0;
  border-radius: 14px;
}
.text-section h2, .text-section h1 {
  color: var(--accent-neon);
}
.text-section ul li { color: #EADBB1; margin-bottom: 6px; }

/* --- CONTACT DETAILS --- */
.contact-details p, .contact-details a {
  color: #EADBB1;
  font-size: 1rem;
  margin-bottom: 7px;
}
.contact-details a {
  color: var(--accent);
}
.contact-details a:hover {
  color: var(--accent-neon);
}

/* --- FOOTER --- */
footer {
  background: #23282C;
  padding: 48px 0 24px 0;
  /* seamless gradient border top */
  border-top: 4px solid var(--accent);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.footer-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.8;
  transition: color 0.15s, opacity 0.14s;
}
.footer-nav a:hover {
  color: var(--accent-neon);
  opacity: 1;
}
.footer-copy {
  color: #B07A44;
  font-size: 0.97rem;
  font-family: 'Lato', Arial, sans-serif;
}

/* --- FORMS (for eventual use) --- */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
}
input, textarea {
  border-radius: 8px;
  border: 1.2px solid #222933;
  padding: 10px 12px;
  width: 100%;
  background: #23282C;
  color: #FFF;
  margin-bottom: 18px;
  box-shadow: 0 1px 9px #23282C11;
  transition: border 0.16s, box-shadow 0.16s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
  box-shadow: 0 2px 6px #B07A4444;
}
label {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 600;
  color: #FFF;
  margin-bottom: 9px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  z-index: 2220;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #23282C;
  color: #FFF;
  padding: 22px 6vw 22px 6vw;
  box-shadow: 0 -2px 24px #23282C55;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.35s, opacity 0.27s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #FFF;
  flex: 3 1 220px;
  line-height: 1.4;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-shrink: 0;
  gap: 14px;
}
.cookie-btns button {
  padding: 9px 23px;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Lato', Arial, sans-serif;
  background: var(--accent);
  color: #FFF;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 2px 15px #FFDCA993;
}
.cookie-btns button:hover {
  background: var(--accent-neon);
  color: var(--primary);
}
.cookie-btns .settings-btn {
  background: #28304A;
  color: #FFF;
}
.cookie-btns .settings-btn:hover {
  background: var(--accent-neon);
  color: #23282C;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2230;
  width: 100vw;
  height: 100vh;
  left: 0; top: 0;
  background: #23282C77;
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  transition: opacity 0.26s;
  opacity: 0;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #22282F;
  color: #FFF;
  border-radius: 16px;
  max-width: 410px;
  width: 98vw;
  padding: 34px 22px 22px 28px;
  box-shadow: 0 18px 64px #1C262999;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInModal 0.5s cubic-bezier(.5,.23,.4,.92);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  color: var(--accent-neon);
  font-size: 1.2rem;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.cookie-category label {
  color: #FFDCA9;
  font-weight: 500;
}
.cookie-toggle {
  width: 44px;
  height: 22px;
  border-radius: 15px;
  background: #283045;
  position: relative;
  transition: background 0.16s;
  margin-left: 10px;
  flex-shrink: 0;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .slider {
  display: block;
  background: #B07A44;
  border-radius: 15px;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  transition: left 0.16s, background 0.16s;
}
.cookie-toggle input:checked + .slider {
  background: var(--accent-neon);
  left: 23px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal-actions button {
  padding: 9px 22px;
  border-radius: 16px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #FFF;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-modal-actions button.cancel-btn {
  background: #28304A;
}
.cookie-modal-actions button:hover {
  background: var(--accent-neon);
  color: #23282C;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 1.5rem;
  color: var(--accent-neon);
  background: transparent;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:focus {
  outline: 2px solid var(--accent);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1120px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .header-flex { gap: 14px; }
  .footer-nav { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .header-flex {
    flex-direction: row;
    gap: 9px;
  }
  .main-nav { display: none; }
  .cta-btn.primary { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  .mobile-menu {
    display: flex;
    justify-content: flex-end;
  }
  .hero .content-wrapper {
    padding: 36px 15px 36px 0;
    min-height: 210px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .blog-list, .case-studies {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    padding: 18px;
  }
  ul, ol { margin-left: 16px; }
  .section {
    margin-bottom: 40px;
    padding: 30px 10px;
  }
  table, th, td { font-size: 0.95rem; }
  .cookie-banner { flex-direction: column; gap: 8px; padding: 16px 4vw; }
}
@media (max-width: 520px) {
  .container { padding: 0 9px; }
  .footer-nav nav { flex-direction: column; gap: 6px; }
  .hero h1 { font-size: 1.55rem; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.08rem; }
}

/* Layout: .text-image-section - flex row on desktop, column on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Accessibility: high-contrast for testimonials & reviews */
.testimonial-card, .testimonial-card * {
  color: #22282C !important;
  background: #F8F4EB;
}
.testimonial-card .stars { color: #B07A44 !important; }

/* Small fix for always 20px card gap */
.card-container, .blog-list, .case-studies, .feature-grid, .content-grid {
  gap: 20px;
}
.card, .blog-post, .case, .feature-card {
  margin-bottom: 20px;
}

/* --- Utilities --- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.centered { justify-content: center; align-items: center; }

/* --- Neon Accent Animation (micro-interactions) ---*/
@keyframes neonfade {
  0%,100% { box-shadow: 0 0 10px #B07A4488, 0 0 2px #B07A44; }
  50% { box-shadow: 0 0 22px #FFC466BB, 0 0 4px #FFDCA9; }
}
.cta-btn.accent, .feature-card:hover, .main-nav a:hover::after {
  animation: neonfade 2.6s ease-in-out infinite;
}

/* --- Hide visually, keep accessible ---*/
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

