/* ================== 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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  display:block;
}
body {
  line-height:1;
}
ol,ul {
  list-style:none;
}
a {
  text-decoration:none;
  color:inherit;
}
table {
  border-collapse:collapse;
  border-spacing:0;
}
img {
  max-width:100%;
  display:block;
}
*, *:before, *:after {
  box-sizing: border-box;
}

/* ================== VARIABLES WITH FALLBACK ================== */
:root {
  --primary: #24292F;
  --secondary: #85B6D9;
  --accent: #999999;
  --text: #222325;
  --heading: #2B2522;
  --border: #E9E4DD;
  --contrast-bg: #fff;
  --shadow: 0 2px 16px rgba(36,41,47,0.07);
  --radius: 12px;
  --focus-ring: 0 0 0 3px rgba(133,182,217,0.3);
  --btn-hover-bg: #85B6D9;
  --btn-hover-text: #24292F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --contrast-bg: #222225;
    --text: #F9F5F0;
    --heading: #fff;
    --border: #363535;
  }
}

/* ================== TYPOGRAPHY ================== */
body {
  font-family: 'Source Sans Pro', Georgia, Times, Serif;
  font-size: 16px;
  background: var(--accent);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 700;
  color: var(--heading);
  line-height:1.15;
  margin-bottom: 18px;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p, ul, ol, blockquote, li { font-size: 1.1rem; line-height: 1.7; }
@media (max-width: 600px){
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
}

strong, b { font-weight: 700; }
i, em { font-style: italic; }
blockquote {
  font-style: italic;
  color: var(--secondary);
  border-left: 4px solid var(--secondary);
  padding-left: 18px;
  margin: 0 0 18px 0;
  background: #f2f6fa;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============= LAYOUT: CONTAINERS & SECTIONS ============= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--contrast-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width:768px) {
  .section {
    margin-bottom: 40px;
    padding: 24px 12px;
  }
}

.text-section {
  background: none;
  box-shadow: none;
  padding: 0;
}

/* ===== FLEX & SPACING PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;  /* ample spacing for classic look */
}
.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;
}
@media (max-width: 768px) {
  .content-grid,
  .text-image-section,
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-width: 230px;
  max-width: 340px;
  margin-bottom: 20px;
}
.testimonial-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .testimonial-list { flex-direction: column; gap: 20px; }
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--primary);
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
}

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

/* ================ HEADER & NAVIGATION ================ */
header {
  background: var(--accent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(36,41,47,0.02);
  z-index: 40;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 16px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 9px 14px;
  border-radius: 20px;
  transition: background .22s, color .22s;
  position: relative;
}
nav a:hover:not(.btn-primary),nav a:focus-visible:not(.btn-primary) {
  background: var(--secondary);
  color: #fff;
  outline: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 24px;
  font-size: 1.06rem;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(36,41,47,0.10);
  border: none;
  transition: background .24s, color .24s, box-shadow .24s;
  display: inline-block;
  cursor: pointer;
  margin-left: 8px;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--secondary);
  color: var(--btn-hover-text)!important;
  box-shadow: 0 4px 18px 0 rgba(36,41,47,0.12);
}

@media (max-width: 1020px) {
  nav { gap: 14px; }
  header .container { height: 72px; }
}
@media (max-width: 900px) {
  nav, header nav { display:none; }
  .mobile-menu-toggle { display:block; }
  header .container { height: 62px; }
}
@media (min-width: 901px) {
  .mobile-menu-toggle { display: none !important; }
}

/* ============== MOBILE MENU =============== */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: var(--primary);
  color:#fff;
  font-size:2rem;
  border-radius: 6px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  cursor:pointer;
  box-shadow: 0 2px 14px rgba(36,41,47,0.075);
  transition: background .18s;
  z-index: 999;
}
.mobile-menu-toggle:focus-visible {
  outline: var(--focus-ring);
}
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: var(--accent);
  box-shadow: 2px 0 24px rgba(36,41,47,0.1);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 18px 2px 0;
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  padding: 4px 12px 4px 12px;
  border-radius: 6px;
  transition: background .16s;
  z-index: 1401;
}
.mobile-menu-close:hover,.mobile-menu-close:focus-visible {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: 'Montserrat',Georgia,serif;
  color: var(--primary);
  padding: 13px 6px 13px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  transition: background .17s;
  width: 100%;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover,.mobile-nav a:focus-visible {
  background: var(--secondary);
  color: #fff;
}

/* Overlay for mobile menu (if needed) */
.mobile-menu.open:after {
  content: '';
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  background: rgba(36,41,47,0.07);
  z-index: 1200;
}

@media (min-width: 901px) {
  .mobile-menu { display: none!important; }
}

/* ============= MAIN SECTION ELEMENTS ============= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width:768px){
  section { margin-bottom: 40px; padding: 22px 7px; }
}

ul, ol {
  margin: 0 0 18px 1.3em;
  padding-left: 1em;
}
ul>li, ol>li {
  margin-bottom: 12px;
  padding-left: 2px;
}
ul>li b, ol>li b {
  color: var(--primary);
}
li::marker { color: var(--secondary); }

.price {
  display: inline-block;
  font-family: 'Montserrat', Georgia, serif;
  color: var(--primary);
  background: #f4f8fb;
  border-radius: 10px;
  padding: 5px 13px;
  margin: 9px 0 0 0;
  font-size:1.09em;
  font-weight: 600;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow .22s, transform .19s;
  cursor:pointer;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 20px rgba(36,41,47,0.10);
  transform: translateY(-4px) scale(1.015);
}

.feature-item h3, .feature-item h2 {
  margin-bottom:4px;
}

.content-wrapper > a.btn-primary, .content-wrapper > button.btn-primary {
  margin-top: 6px;
  align-self: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 12px 0;
}
.contact-info img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 5px;
  filter: grayscale(0.6) brightness(0.7);
}
.contact-info a {
  font-weight: 500;
  color: var(--secondary);
  transition: text-decoration .15s, color .15s;
}
.contact-info a:hover, .contact-info a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}
.map-placeholder {
  padding: 14px 22px;
  background: #f4f6fa;
  color: var(--primary);
  border-radius: var(--radius);
  margin: 18px 0 4px 0;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}
.client-logos img {
  height: 34px;
  filter: grayscale(1) opacity(0.8);
  transition: filter .2s;
}
.client-logos img:hover { filter: grayscale(0) opacity(1); }

/* ============== FOOTER ============== */
footer {
  background: var(--accent);
  padding: 56px 0 12px 0;
  border-top: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.04rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-family: 'Montserrat', serif;
  color: var(--primary);
  padding: 3px 0;
  transition: color .18s;
}
.footer-nav a:hover,.footer-nav a:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-logo img {
  height: 39px;
  width: auto;
  opacity: 0.88;
}
.footer-copy {
  flex-basis: 100%;
  width: 100%;
  font-size: .93rem;
  margin-top: 38px;
  text-align: center;
  color: #7f7f7f;
}

@media (max-width: 900px) {
  footer .container { gap: 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width:420px){
  .footer-logo img {height:28px;}
}

/* ========= ANIMATIONS & TRANSITIONS ==========*/
a, .btn-primary, .card {
  transition: color .22s, background .20s, box-shadow .22s, border .16s, transform .18s;
}

/* Animated slide for mobile menu */
.mobile-menu,
.cookie-banner, .cookie-modal {
  will-change: transform, opacity;
}

/* ============= BUTTONS STYLES ============= */
button, .btn-primary {
  font-family: 'Montserrat',Georgia,serif;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  cursor:pointer;
  transition: background .18s, color .18s, box-shadow .19s;
  outline: none;
}
button:disabled, .btn-primary:disabled {
  opacity:0.60;
  cursor: not-allowed;
}

/* ============= COOKIE BANNER ============= */
.cookie-banner {
  position: fixed;
  left:0; right:0; bottom:0;
  background: var(--primary);
  color: #fff;
  padding: 32px 15px 24px 15px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1500;
  box-shadow: 0 -4px 36px rgba(36,41,47,0.08);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .37s cubic-bezier(.6,.2,.4,1), opacity .32s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity:1;
  pointer-events: initial;
}
.cookie-banner p {
  font-size: 1.08rem;
  margin-bottom: 7px;
  color: #fff;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}
.cookie-banner button,
.cookie-banner .btn-cookie {
  background: #fff;
  color: var(--primary);
  padding: 8px 22px;
  font-weight: 600;
  border-radius: 21px;
  margin-top: 3px;
  box-shadow: 0 2px 12px 0 rgba(36,41,47,0.07);
  border: none;
}
.cookie-banner button:hover,
.cookie-banner button:focus-visible {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .btn-cookie-settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  margin-left: 4px;
  font-weight: 500;
  transition: background .19s, color .19s;
}
.cookie-banner .btn-cookie-settings:hover, .cookie-banner .btn-cookie-settings:focus-visible {
    background: #fff;
    color: var(--primary);
}
@media (max-width:768px) {
  .cookie-banner {padding:18px 8px 14px 8px;gap:10px;}
  .cookie-banner .cookie-buttons { gap:8px; }
}

/* ============= COOKIE MODAL ============= */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index:1700;
  background: rgba(36,41,47,.38);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity:0;
  pointer-events: none;
  transition: opacity .32s cubic-bezier(.5,.2,.8,1);
}
.cookie-modal.active {
  opacity:1;
  pointer-events: auto;
}
.cookie-modal .modal-box {
  background: #fff;
  color: var(--primary);
  min-width:330px;
  max-width:95vw;
  border-radius: var(--radius);
  box-shadow: 0 6px 42px rgba(36,41,47,0.11);
  padding: 38px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal .modal-close {
  position: absolute;
  right:20px; top:14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--secondary);
  cursor: pointer;
  border-radius: 4px;
  transition: background .17s;
}
.cookie-modal .modal-close:hover,.cookie-modal .modal-close:focus-visible {
  background: var(--accent);
}
.cookie-modal h2 {
  font-size: 1.3rem; margin-bottom: 8px;
}
.cookie-modal .modal-categories {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cookie-modal .modal-category {
  display:flex;
  align-items: center;
  gap:12px;
  padding:6px 0;
  font-size: 1.06rem;
  color: var(--primary);
}
.cookie-modal .modal-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 19px;
  height: 19px;
}
.cookie-modal .modal-category label {
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal .modal-cat-essential {
  opacity: 0.75;
}
.cookie-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 9px;
}
.cookie-modal .modal-footer button {
  background: var(--secondary);
  color: #fff;
  padding: 8px 18px;
  font-weight: 600;
  border-radius: 21px;
  border: none;
  font-size:1rem;
}
.cookie-modal .modal-footer button:focus-visible, .cookie-modal .modal-footer button:hover {
  background: var(--primary);
}
@media (max-width: 600px) {
  .cookie-modal .modal-box { padding: 18px 7px 14px 14px; }
  .cookie-modal .modal-box { min-width: 90vw; }
}

/* ============== MISC =============== */
::-webkit-scrollbar { width:7px; background:var(--accent); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius:5px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 34px 0 14px 0;
}

/* ============= ACCESSIBILITY ============= */
:focus-visible {
  outline: var(--focus-ring);
}

/* ============= UTILITIES ============= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-4 { margin-bottom: 16px !important; }

/* ========== PRINT ========== */
@media print { 
  header,footer,.mobile-menu,.cookie-banner,.cookie-modal {display:none!important;}
  body { background: #fff; color: #222; }
  section,.container { box-shadow:none;border:none;}
}
