/* =====================
   Takmästarna Sverige – Professional Corporate Theme
   Modern, reliable and professional for B2B/B2C construction services
   Flexbox ONLY — grid/columns forbidden
   ===================== */

/* -------------
   CSS Reset/Nomalize
------------- */
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;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F4F6F8;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1D3447;
  line-height: 1.63;
  font-size: 1rem;
}
ul, ol {
  list-style: none;
}
a {
  color: #1D3447;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #A13C24;
  outline: none;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}
button:focus {
  outline: 2px solid #1D3447;
  outline-offset: 2px;
}

/* -------------
   TYPOGRAPHY
------------- */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.16;
  color: #1D3447;
}
@media (min-width: 768px) {
  h1, .h1 { font-size: 3rem; }
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1D3447;
}
@media (min-width: 768px) {
  h2, .h2 { font-size: 2rem; }
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #273947;
}
h4, .h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #3a4a5b;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #273947;
}
strong {
  font-weight: 600;
}
blockquote {
  font-style: italic;
  color: #1D3447;
  margin: 0 0 12px 0;
  padding-left: 18px;
  border-left: 4px solid #1D3447;
}

/* -------------
   CONTAINER
------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* -------------
   HEADER & NAVIGATION
------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29,52,71,0.07);
  z-index: 30;
  position: relative;
}
header .container {
  padding-top: 16px;
  padding-bottom: 16px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1D3447;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.22s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: #F4F6F8;
  color: #A13C24;
}
header .cta-btn {
  margin-left: 16px;
}

/* Site Logo */
header img {
  height: 44px;
  width: auto;
  display: block;
}

/* -------------
   CTA BUTTONS
------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #1D3447;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 24px;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 16px rgba(29,52,71,0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #A13C24;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* -------------
   HERO SECTIONS
------------- */
.hero {
  background: #EFF2F5;
  padding: 48px 0 32px 0;
  width: 100%;
  box-shadow: 0 1px 8px rgba(29,52,71,0.06);
}
.hero .container {
  flex-direction: column;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 680px;
}
.hero h1 {
  color: #1D3447;
  margin-bottom: 16px;
}
.hero p {
  color: #273947;
  font-size: 1.17rem;
}

/* -------------
   MAIN SPACING SECTIONS
  .section { margin-bottom: 60px; padding: 40px 20px; }
------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

/* -------------
   FLEXBOX PATTERNS
------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29,52,71,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px 24px 24px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 20px rgba(29,52,71,0.16);
  transform: translateY(-3px) scale(1.025);
  z-index: 1;
}
/* For mobile, cards take full width */
@media (max-width: 768px) {
  .card-container { flex-direction: column; gap: 16px; }
  .card { min-width: 0; width: 100%; }
}

.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) {
  .text-image-section { flex-direction: column; gap: 22px; align-items: flex-start; }
  .content-grid { flex-direction: column; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(29,52,71,0.08);
  margin-bottom: 24px;
  position: relative;
  flex-direction: column;
  max-width: 460px;
  transition: box-shadow 0.19s;
}
.testimonial-card blockquote {
  color: #1D3447;
  font-size: 1.08rem;
  line-height: 1.7;
}
.testimonial-card span {
  color: #273947;
  font-size: 0.96rem;
  font-style: normal;
  margin-top: 8px;
  align-self: flex-end;
}
.testimonials .content-wrapper {
  gap: 32px;
}
@media (min-width: 900px) {
  .testimonials .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px 30px;
    justify-content: flex-start;
    max-width: 940px;
  }
  .testimonial-card {
    max-width: 320px;
    flex: 1 1 270px;
  }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(29,52,71,0.07);
  padding: 13px 21px;
  font-size: 1.06rem;
  color: #1D3447;
  margin-bottom: 0; /* gap handles spacing */
}
.feature-grid img {
  width: 32px; height: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -------------
   SECTION SPECIFIC
------------- */
.features, .services, .process, .faq, .about, .team, .about-short, .articles, .contact-details, .cta, .thank-you, .policy {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(29,52,71,0.06);
}

/* Process steps - ordered list (tjanster.html) */
.process ol {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  counter-reset: step;
  margin-bottom: 20px;
}
.process ol li {
  background: #EFF2F5;
  padding: 16px 20px;
  border-radius: 8px;
  flex: 1 1 220px;
  font-size: 1.07rem;
  color: #1D3447;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.process ol li img {
  width: 25px;
  height: 25px;
}

/* Articles */
.articles ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.articles li h3 {
  margin-bottom: 6px;
}
.featured-article {
  background: #EFF2F5;
  padding: 18px 20px 15px 20px;
  border-radius: 10px;
  font-size: 1.08rem;
  margin-bottom: 18px;
  box-shadow: 0 1px 5px rgba(29,52,71,0.07);
}

@media (min-width: 900px) {
  .feature-grid { gap: 24px; }
}

/* Contact Details and Map */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-details p {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  color: #1D3447;
  font-size: 1rem;
}
.contact-details img {
  width: 22px; height: 22px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map {
  margin-top: 18px;
  background: #EFF2F5;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.97rem;
  color: #3a4a5b;
}

/* Footer */
footer {
  background: #1D3447;
  color: #fff;
  padding: 42px 0 24px 0;
  width: 100%;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  max-width: 1160px;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1rem;
  color: #c9d2db;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #EFF2F5;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A13C24;
}
.footer-contact p {
  color: #c9d2db;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

/* -------------
   MOBILE NAVIGATION
------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  width: 46px;
  height: 46px;
  background: #1D3447;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  border: none;
  z-index: 51;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #A13C24;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1111;
  padding: 32px 30px 30px 30px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  box-shadow: -2px 0 24px rgba(29,52,71,0.19);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  background: #1D3447;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A13C24;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: #1D3447;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  background: #EFF2F5;
  border-radius: 7px;
  padding: 13px 8px;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A13C24;
  color: #fff;
}

/* Only display mobile menu toggle on small screens */
@media (max-width: 950px) {
  nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 951px) {
  .mobile-menu { display: none !important; pointer-events: none; }
  .mobile-menu-toggle { display: none !important; }
}

/* -------------
   COOKIE CONSENT BANNER
------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #1D3447;
  box-shadow: 0 -2px 18px rgba(29,52,71,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 20px 18px 20px;
  z-index: 20009;
  font-size: 1.09rem;
  animation: cookieBannerIn 0.50s cubic-bezier(.27,0,.33,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  padding: 10px 26px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.19s, color 0.17s;
  box-shadow: 0 1px 8px rgba(29,52,71,0.09);
}
.cookie-btn.accept {
  background: #1D3447;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #A13C24;
}
.cookie-btn.reject {
  background: #EFF2F5;
  color: #1D3447;
}
.cookie-btn.reject:hover {
  background: #A13C24;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  border: 2px solid #1D3447;
  color: #1D3447;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #1D3447;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 20011;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45,57,80,0.24);
}
.cookie-modal-overlay.open {
  display: block;
  animation: cookieModalOverlayIn 0.32s;
}
@keyframes cookieModalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  z-index: 20033;
  background: #fff;
  color: #1D3447;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(29,52,71,0.20);
  min-width: 320px;
  max-width: 98vw;
  width: 440px;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cookieModalIn 0.32s;
}
@keyframes cookieModalIn {
  from { transform: translate(-50%, 30%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -46%) scale(0.98); opacity: 1; }
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: #1D3447;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.12s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #A13C24;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-modal-categories label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #cfd7df;
  border-radius: 12px;
  transition: .2s;
}
.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.11);
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background-color: #1D3447;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 7px;
}
.cookie-category-label {
  font-weight: 500;
  margin-right: 3px;
}
.cookie-category-desc {
  font-size: 0.96rem;
  color: #3a4a5b;
}

@media (max-width: 570px) {
  .cookie-modal { min-width: 93vw; width: 98vw; padding: 22px 8px 14px 8px; }
  .cookie-modal .cookie-modal-close { right: 8px; top: 8px; }
}

/* -------------
   MEDIA QUERIES - Responsive
------------- */
@media (max-width: 1150px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  h1, .h1 { font-size: 1.88rem; }
  h2, .h2 { font-size: 1.22rem; }
}
@media (max-width: 680px) {
  .hero, section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
  .content-wrapper { max-width: 98vw; padding: 0 2px; }
  .process ol { flex-direction: column; gap: 13px; }
  .feature-grid { flex-direction: column; gap: 13px; }
}
@media (max-width: 420px) {
  .hero .content-wrapper, .content-wrapper { padding: 0 2px; }
  .cta-btn, .cookie-btn { font-size: 0.98rem; padding: 10px 10px; }
}

/* -------------
   MISC/UTILS
------------- */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Utility classes */
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; gap: 18px; }
.flex-col { display: flex; flex-direction: column; gap: 18px; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-20 { gap: 20px; }

input[type="text"], input[type="email"], textarea {
  padding: 10px 13px;
  border-radius: 5px;
  border: 1px solid #b4c4d8;
  background: #F4F6F8;
  margin-bottom: 14px;
  width: 100%;
  font-size: 1rem;
  color: #1D3447;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #1D3447;
  background: #fff;
}

/* Thank you page distinct styling */
.thank-you {
  text-align: center;
  background: #EFF2F5;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(29,52,71,0.06);
  padding-top: 56px;
  padding-bottom: 56px;
  min-height: 340px;
}
.thank-you .cta-btn {
  margin-top: 24px;
}

/* Policy pages */
.policy h1, .policy h2, .policy h3, .policy h4 {
  margin-bottom: 15px;
}
.policy ul, .policy ol {
  margin-left: 22px;
  margin-bottom: 16px;
}
.policy li {
  list-style: disc;
  margin-bottom: 7px;
  font-size: 1rem;
}

/* Accessibility focus for all interactive elements */
a:focus-visible, button:focus-visible,
.cookie-btn:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid #A13C24; outline-offset: 2px;
}

/* Hide scroll when menu or modal open */
body.mobile-menu-open, body.cookie-modal-open {
  overflow: hidden !important;
}

/* -------------
   END CSS
------------- */
