/* CSS 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #FFFFFF;
  color: #2C3E55;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
ol, ul {
  list-style: none;
  margin-left: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* BRAND FONTS & SIZES ================================ */
:root {
  --brand-primary: #2C3E55;
  --brand-secondary: #FFFFFF;
  --brand-accent: #F1A700;
  --brand-muted: #B2B8C2;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --card-shadow: 0 6px 24px rgba(44, 62, 85, 0.12);
  --focus-shadow: 0 0 0 3px #F1A70044;
  --transition: all 0.2s cubic-bezier(.55,.25,.52,.99);
}


/* TYPOGRAPHY =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
p, ul, li, table, th, td {
  font-family: var(--body-font);
  font-size: 1rem;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: var(--brand-primary);
}

/* LINKS */
a, a:visited {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: var(--brand-accent);
  outline: none;
}

/* CONTAINER ================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* HEADER, NAVIGATION, LOGO =============== */
header {
  width: 100%;
  background: var(--brand-secondary);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 16px rgba(44,62,85,0.07);
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 0;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 36px;
  height: 66px;
  transition: transform .16s;
}
.logo img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.main-nav a {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color .15s;
  color: var(--brand-primary);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-accent);
  color: #2C3E55;
}
.main-nav .cta-btn {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-weight: 800;
  box-shadow: 0 3px 11px rgba(241,167,0,.08);
  margin-left: 18px;
  transition: background .18s, color .18s, box-shadow .18s;
  border: 0;
}
.main-nav .cta-btn:hover,
.main-nav .cta-btn:focus {
  background: #fff3cf;
  color: var(--brand-primary);
  box-shadow: 0 0 0 3px #F1A70066;
}
.mobile-menu-toggle {
  margin-left: auto;
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: none;
  font-size: 2.3rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  z-index: 100;
}
.mobile-menu-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px #F1A70066;
}

@media (max-width: 992px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU ============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--brand-primary);
  z-index: 101;
  transform: translateX(-100vw);
  transition: transform .32s cubic-bezier(.88,0,.22,1);
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-accent);
  font-size: 2.2rem;
  margin: 22px 25px 0 18px;
  align-self: flex-end;
  cursor: pointer;
  outline: none;
  transition: color .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff3cf;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin: 54px 0 0 32px;
}
.mobile-nav a {
  color: var(--brand-accent);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  padding: 7px 0 7px 2px;
  border-radius: var(--radius-sm);
  width: 100%;
  display: block;
  transition: background .16s, color .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff3cf;
  color: var(--brand-primary);
}

/* LAYOUT SECTIONS, SPACING, FLEXBOX PATTERNS =========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-secondary);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--brand-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 28px 26px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s, transform .21s;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(44, 62, 85, 0.17);
  transform: translateY(-2px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(44,62,85,0.09);
  padding: 20px;
  margin-bottom: 20px;
  color: #24282e;
  min-width: 275px;
  transition: box-shadow .20s, transform .21s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(44,62,85,0.13);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* SPACING: Ensure minimum 20px between cards/sections */
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item {
  margin-left: 20px;
}
.section + .section {
  margin-top: 0;
}

/* UTILITIES & HR ============================== */
hr {
  width: 100%;
  border: 0;
  border-top: 2px solid var(--brand-muted);
  margin: 36px 0;
}

/* BUTTONS & CTA ============================== */
.cta-btn,
button.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-family: var(--heading-font);
  font-weight: 800;
  padding: 12px 32px;
  font-size: 1.14rem;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(241,167,0,.06);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color .15s, transform .13s;
  margin-top: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff7e0;
  color: var(--brand-primary);
  box-shadow: 0 0 0 3px #F1A70055;
  transform: scale(1.045);
  outline: none;
}

/* TABLES ===================================== */
table {
  width: 100%;
  background: var(--brand-secondary);
  border-radius: var(--radius-sm);
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(44,62,85,0.05);
  overflow-x: auto;
}
thead {
  background: var(--brand-primary);
}
th, td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--brand-muted);
}
th {
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}
td {
  font-size: 1rem;
  color: var(--brand-primary);
}
tr:last-child td {
  border-bottom: 0;
}

/* FOOTER ===================================== */
footer {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  padding: 0 0 40px 0;
  box-shadow: 0 -2px 20px rgba(44,62,85,0.10);
  margin-top: 60px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 0 0 0;
  row-gap: 32px;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 120px;
}
.footer-main a {
  color: var(--brand-secondary);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1rem;
  transition: color .15s, text-decoration .16s;
}
.footer-main a:hover, .footer-main a:focus {
  color: var(--brand-accent);
  text-decoration: underline;
}
.footer-main img {
  max-width: 80px;
  margin-bottom: 8px;
}
.footer-main > div > p {
  font-size: 0.96rem;
  color: var(--brand-secondary);
  margin-bottom: 6px;
}
.social-media-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.social-media-icons img {
  width: 32px;
  height: 32px;
  filter: brightness(104%);
  transition: filter .18s;
  cursor: pointer;
}
.social-media-icons img:hover {
  filter: brightness(150%) drop-shadow(0 2px 5px #F1A70066);
}

/* FORMS (for possible future forms support) ==== */
input, textarea, select {
  font-family: var(--body-font);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--brand-muted);
  margin-bottom: 16px;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--brand-accent);
  box-shadow: var(--focus-shadow);
}
label {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
}

/* CONTACT DETAILS ============================= */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1rem;
  margin-bottom: 14px;
}

/* PROJECT HIGHLIGHTS ========================= */
.project-highlights {
  margin-top: 16px;
  padding: 20px 18px;
  background: var(--brand-muted);
  color: #1a2534;
  border-radius: var(--radius-md);
  font-family: var(--body-font);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(44,62,85,0.05);
}
.project-highlights ul {
  list-style: disc inside;
}
.project-highlights li {
  margin-bottom: 10px;
}

/* RESPONSIVE DESIGN (MOBILE-FIRST) =========== */
@media (max-width: 1200px) {
  .footer-main {
    gap: 18px;
  }
}
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .footer-main {
    flex-wrap: wrap;
    gap: 18px;
  }
  .card {
    padding: 20px 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-right: 10px;
    padding-left: 10px;
  }
  .section {
    padding: 38px 7px;
    margin-bottom: 38px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 14px;
  }
  .testimonial-card {
    min-width: 0;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.1rem; }
  .main-nav a, .footer-main a {
    font-size: .97rem;
  }
  .footer-main {
    gap: 10px;
    padding: 20px 0 0 0;
  }
  .footer-main img { max-width: 64px; }
}

/* COOKIE CONSENT BANNER ====================== */
.cookie-consent {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; bottom: 0;
  background: var(--brand-primary);
  color: #fff;
  padding: 26px 18px 24px 18px;
  width: 100vw;
  box-shadow: 0 -6px 32px rgba(44,62,85,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .33s cubic-bezier(.7,.3,.35,1);
  transform: translateY(0);
}
.cookie-consent.hide {
  transform: translateY(110%);
}
.cookie-consent p {
  font-family: var(--body-font);
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  justify-content: center;
}
button.cookie-btn {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 22px;
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .17s;
}
button.cookie-btn:hover, button.cookie-btn:focus {
  background: #fff1cc;
  color: var(--brand-primary);
  box-shadow: 0 0 0 3px #F1A70066;
  outline: none;
}
.cookie-settings-btn {
  background: none!important;
  color: var(--brand-accent)!important;
  border: 1.5px solid var(--brand-accent)!important;
  font-weight: 700;
  padding: 9px 20px;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--brand-accent)!important;
  color: var(--brand-primary)!important;
}

/* COOKIE PREFERENCES MODAL =================== */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,62,85,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeIn .23s cubic-bezier(.7,.3,.32,1);
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 410px;
  width: 95%;
  padding: 30px 24px 28px 24px;
  box-shadow: 0 14px 44px rgba(44,62,85,0.23);
  color: var(--brand-primary);
  font-family: var(--body-font);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: slideUp .34s cubic-bezier(.7,.3,.32,1);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity:0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal .modal-content h3 {
  font-family: var(--heading-font);
  font-size: 1.46rem;
  margin-bottom: 4px;
  font-weight: 800;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.cookie-category label {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--brand-accent);
  width: 22px;
  height: 22px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.7rem;
  position: absolute;
  top: 12px; right: 16px;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus { color: var(--brand-accent); }

@media (max-width: 450px) {
  .cookie-modal .modal-content {
    padding: 15px 5px 16px 5px;
    max-width: 98vw;
  }
}

/* MICRO-INTERACTIONS & TRANSITIONS ========== */
.card, .cta-btn, .testimonial-card, .cookie-modal .modal-content {
  transition: box-shadow .18s, transform .15s, background .14s, color .14s;
}

/* GEOMETRIC/DECORATIVE SHAPES FOR MODERN BOLD */
.section {
  position: relative;
  overflow: visible;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: var(--brand-accent);
  border-radius: 24px 0 56px 0;
  opacity: .09;
  z-index: 0;
}
.section:nth-of-type(even)::before {
  left: -20px; right: auto;
  top: -18px; bottom: auto;
  border-radius: 0 50px 0 22px;
}
@media (max-width:768px) {
  .section::before {
    width: 48px; height: 48px;
    top: -12px; right: -15px;
  }
  .section:nth-of-type(even)::before {
    left: -9px;
  }
}

/* ACCESSIBILITY ============================= */
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 1px;
}

/* PRINT SUPPORT ============================= */
@media print {
  header, footer, .mobile-menu, .cookie-consent, .cookie-modal {
    display: none !important;
  }
  .section, .container {
    box-shadow: none !important;
    background: #fff !important;
    color: #2C3E55 !important;
    padding: 0 !important;
  }
}
