/* === 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-family: 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;
  background: #f6f6f6;
  color: #2C3A4D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #2C3A4D;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 1.5em;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* === VARIABLE FALLBACKS === */
:root {
  --color-primary: #2C3A4D;
  --color-secondary: #f6f6f6;
  --color-accent: #C99E60;
  --color-bg: #f6f6f6;
  --color-card: #fff;
  --typography-display: 'Montserrat', Arial, sans-serif;
  --typography-body: 'Roboto', Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 7px;
  --shadow-md: 0 4px 24px rgba(44,58,77,0.08);
  --shadow-lg: 0 8px 36px rgba(44,58,77,0.14);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--typography-display);
  font-weight: 700;
  color: #2C3A4D;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: var(--typography-body);
  font-weight: 400;
  color: #2C3A4D;
  font-size: 1rem;
  margin-bottom: 14px;
}
blockquote {
  font-family: var(--typography-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #2C3A4D;
  margin-bottom: 12px;
}

/* === GENERAL CONTAINERS AND SPACING === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
  /* Ensures good vertical rhythm */
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==== FLEXBOX SYSTEM CLASSES ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* === HEADER NAVIGATION === */
header {
  background: linear-gradient(90deg, #f6f6f6 60%, #f0ece6 100%);
  box-shadow: 0 2px 8px rgba(44,58,77,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px;
  gap: 22px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--typography-display);
  font-weight: 500;
  font-size: 1rem;
  color: #2C3A4D;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e6e0d2;
  color: var(--color-accent);
}
.cta-button {
  font-family: var(--typography-display);
  background: linear-gradient(90deg, #C99E60 0%, #b7863f 100%);
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(44,58,77,0.08);
  transition: background 0.25s, transform 0.2s;
  margin-left: 14px;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #b7863f, #C99E60);
  transform: translateY(-2px) scale(1.02);
  color: #fff;
}
.mobile-menu-toggle {
  background: #fff;
  border: none;
  font-size: 2.2rem;
  color: #2C3A4D;
  border-radius: 50%;
  padding: 6px 14px;
  box-shadow: 0 2px 12px rgba(44,58,77,0.06);
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.15s;
  display: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e6e0d2;
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.56,.02,.36,.93);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 24px;
  background: #fff;
  color: #2C3A4D;
  font-size: 2.3rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2100;
  box-shadow: 0 2px 10px rgba(44,58,77,0.08);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e6e0d2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 60px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--typography-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #2C3A4D;
  padding: 18px 30px;
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f5efe3;
  color: var(--color-accent);
}

/* === HERO === */
.hero {
  background: linear-gradient(100deg, #f6f6f6 0%, #f1efea 70%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 6px 24px rgba(44,58,77,0.07);
}
.hero h1 {
  color: #2C3A4D;
  font-size: 2.3rem;
}
.hero p {
  font-size: 1.15rem;
  color: #444;
}

/* === FEATURES SECTION === */
.features .feature-grid, .features .feature-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 18px;
  min-width: 230px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.22s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) scale(1.01);
}
.feature-card img {
  height: 46px;
  margin-bottom: 10px;
}

/* === SERVICES STYLES === */
.services-preview .service-card-list, .services .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-card, .service-block {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card .price, .service-block .service-price {
  font-family: var(--typography-display);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 10px;
}
.service-pricing-table {
  margin-top: 28px;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-pricing-table caption {
  font-family: var(--typography-display);
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-weight: 600;
}
.service-pricing-table th, .service-pricing-table td {
  padding: 10px 20px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}
.service-pricing-table th {
  background: #f6f6f6;
  color: #2C3A4D;
}
.service-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* === PROJECT LIST, ABOUT, TEAM, ETC. === */
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.project-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 22px 18px;
  min-width: 240px;
  max-width: 330px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === TESTIMONIALS === */
.testimonials .testimonial-slider, .testimonials .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 18px;
  min-width: 240px;
  max-width: 370px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: #2C3A4D;
  font-size: 1.1rem;
}
.testimonial-author {
  font-family: var(--typography-body);
  color: #7d7b73;
  font-size: 1rem;
}

/* === BLOG === */
.blog-list .article-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.blog-post-preview {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 18px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-readmore {
  font-family: var(--typography-display);
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.16s;
}
.blog-readmore:hover, .blog-readmore:focus {
  color: #2C3A4D;
}

/* === CALL TO ACTION SECTION === */
.cta {
  background: linear-gradient(90deg, #C99E60 20%, #f5efe3 70%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.cta h2, .cta p {
  color: #2C3A4D;
}
.cta .cta-button {
  margin-top: 12px;
}

/* === CONTACT SECTION === */
.contact-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.opening-hours {
  margin-bottom: 16px;
  font-size: 0.98rem;
}

/* === LEGAL PAGES === */
.legal .text-section {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.legal h1, .legal h2 {
  color: #C99E60;
}
.legal ul {
  margin-bottom: 14px;
}

/* === CONFIRMATION / THANK YOU PAGE === */
.confirmation .thank-you-text, .confirmation .next-steps-information {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  margin-bottom: 16px;
}
.confirmation ul {
  margin-bottom: 12px;
}

/* === FOOTER === */
footer {
  background: #2C3A4D;
  color: #fff;
  padding: 46px 0 26px 0;
  border-radius: 24px 24px 0 0;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
footer a.logo img {
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--typography-display);
  font-size: 1rem;
  transition: text-decoration 0.2s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #C99E60;
  text-decoration: underline;
}
.footer-contact p, .footer-contact a {
  font-family: var(--typography-body);
  font-size: 0.98rem;
  color: #eee;
  margin-bottom: 5px;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.17s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #C99E60;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #2C3A4D;
  z-index: 3000;
  box-shadow: 0 -2px 18px rgba(44,58,77,0.12);
  padding: 28px 18px 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  animation: cookie-banner-in 0.7s cubic-bezier(.56,.02,.36,.93);
}
@keyframes cookie-banner-in {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  font-family: var(--typography-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
  margin-right: 10px;
  box-shadow: 0 2px 7px rgba(44,58,77,0.07);
}
.cookie-consent-banner .accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: #b7863f;
}
.cookie-consent-banner .reject {
  background: #eaeaea;
  color: #2C3A4D;
}
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus {
  background: #d8d2c7;
}
.cookie-consent-banner .settings {
  background: #f6f6f6;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: #fff4e6;
}

/* COOKIE MODAL */
.cookie-preferences-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  z-index: 3050;
  box-shadow: 0 16px 60px rgba(44,58,77,0.22);
  padding: 36px 32px;
  border-radius: 22px;
  min-width: 320px;
  max-width: 480px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.36s cubic-bezier(.56,.02,.36,.93);
}
@keyframes cookie-modal-in {
  from { transform: translate(-50%,-40%) scale(0.97); opacity: 0; }
  to { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-preferences-modal h2 {
  color: var(--color-accent);
}
.cookie-preferences-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-preferences-modal label {
  font-family: var(--typography-body);
  font-weight: 500;
  font-size: 1rem;
}
.cookie-preferences-modal input[type=checkbox]:disabled + span {
  opacity: 0.65;
  font-style: italic;
}
.cookie-preferences-modal .actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,58,77, 0.29);
  z-index: 3040;
  animation: cookie-backdrop-in 0.36s;
}
@keyframes cookie-backdrop-in {
  from { opacity: 0;} to {opacity: 1;}
}

/* === UTILITY CLASSES === */
.hide {
  display: none !important;
}
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1120px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 980px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  header .container {
    padding: 12px 8px;
    gap: 14px;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 880px) {
  .feature-grid, .services-preview .service-card-list, .services .service-list,
  .project-list, .testimonials .testimonial-slider, .testimonials .testimonial-list, .blog-list .article-preview-grid, .footer .container {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.4rem; }
  .content-wrapper {
    gap: 14px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .services-preview .service-card-list, .services .service-list,
  .project-list, .testimonials .testimonial-slider, .testimonials .testimonial-list, .blog-list .article-preview-grid {
    flex-direction: column;
    gap: 16px;
  }
  section, .section {
    margin-bottom: 36px;
    padding: 26px 8px;
  }
  .card, .feature-card, .service-card, .service-block, .project-item, .testimonial-card, .blog-post-preview {
    max-width: 100%;
    min-width: unset;
    padding: 18px 11px;
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .footer .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.08rem; }
  .logo img, footer a.logo img {
    height: 32px;
  }
  footer {
    padding: 30px 0 18px 0;
    border-radius: 12px 12px 0 0;
  }
  .cookie-consent-banner {
    padding: 16px 8px 14px 8px;
    font-size: 0.95rem;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
  }
  .cookie-preferences-modal {
    padding: 16px 6px;
    border-radius: 11px;
    min-width: unset;
    max-width: 99vw;
  }
}

/* === ANIMATIONS === */
.cta-button, .feature-card, .service-card, .testimonial-card, .blog-post-preview, .project-item {
  transition: box-shadow 0.16s, transform 0.2s, background 0.18s;
  will-change: box-shadow, transform, background;
}
.cta-button:active, .feature-card:active, .service-card:active, .testimonial-card:active, .blog-post-preview:active, .project-item:active {
  transform: scale(0.98);
}

/* === SELECTION === */
::selection {
  background: #C99E60;
  color: #fff;
}
