/* ===============================================================
   CSS RESET & NORMALIZATION
   =============================================================== */
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,
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;
  background: transparent;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #f6efe8; /* Retro off-white */
  color: #23211f;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  background: transparent;
}
img {
  border: 0;
  max-width: 100%;
  vertical-align: middle;
}
button {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* ===============================================================
   FONT IMPORTS
   =============================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');


/* ===============================================================
   VINTAGE RETRO STYLE VARIABLES
   =============================================================== */
:root {
  --primary: #17405E;
  --secondary: #EBF5FB;
  --accent: #FFB84C;
  --retro-bg: #f6efe8;
  --retro-paper: #fcf8ee;
  --retro-brown: #73613e;
  --retro-orange: #ff9946;
  --retro-navy: #253a5a;
  --retro-green: #bee5b2;
  --retro-red: #dc614a;
  --retro-blue: #2e587e;
  --shadow: rgba(60,41,0,0.07);
  --text-dark: #23211f;
  --text-light: #fff7ea;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =====================================
   LAYOUT & CONTAINERS
   ===================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-paper);
  border-radius: 20px;
  box-shadow: 0 6px 30px var(--shadow);
  border: 1px solid #e4dbc5;
}

/* =====================================
   TYPOGRAPHY
   ===================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.025em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 1px 2px 0 var(--retro-orange), 0 1px 5px var(--shadow);
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--retro-brown);
  text-shadow: 1px 2px 0 var(--retro-green);
}
h3 {
  font-size: 1.25rem;
  color: var(--retro-navy);
  margin-bottom: 10px;
  font-weight: 700;
}
.text-section ul,
.text-section ol {
  margin: 18px 0 18px 24px;
  color: var(--retro-brown);
}
p, ul li, ol li {
  color: var(--text-dark);
  font-size: 1.0625rem;
  margin-bottom: 15px;
  font-family: var(--font-body);
}
strong, b {
  font-weight: 700;
}

blockquote {
  font-family: var(--font-display);
  background: #fff7ea;
  color: var(--retro-brown);
  font-size: 1.18rem;
  border-left: 5px solid var(--accent);
  margin: 0 0 12px 0;
  padding: 16px 22px 16px 18px;
  font-style: italic;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 2px 10px var(--shadow);
}

.tags {
  display: inline-block;
  background: var(--retro-green);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.92rem;
  border-radius: 6px;
  padding: 4px 12px;
  margin: 0 2px 0 0;
}

hr {
  border: none;
  border-bottom: 2px dotted var(--retro-orange);
  margin: 28px 0;
}

/* =====================================
   HEADER & NAVIGATION
   ===================================== */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 5px 24px var(--shadow);
  z-index: 50;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 28px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0px 2px 4px var(--shadow));
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: none;
}
.main-nav .cta-btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  border-radius: 8px;
  padding: 11px 28px;
  margin-left: 12px;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 4px 12px var(--shadow);
  transition: background 0.19s, color 0.16s, transform 0.16s;
}
.main-nav .cta-btn:hover {
  background: var(--retro-orange);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 10px;
  padding: 4px 14px 2px 14px;
  box-shadow: 0 2px 6px var(--shadow);
  margin-left: 10px;
  z-index: 90;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(110deg, var(--retro-paper) 85%, var(--retro-orange) 100%);
  z-index: 1300;
  display: none;
  flex-direction: column;
  padding: 18px 28px 32px 32px;
  transition: transform 0.4s cubic-bezier(.77,0,.175,1), opacity 0.3s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--retro-brown);
  color: #fff7ea;
  border-radius: 8px;
  font-size: 2.1rem;
  padding: 2px 13px 2px 13px;
  box-shadow: 0 1px 4px var(--shadow);
  margin-bottom: 28px;
  transition: background 0.18s, color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  padding: 12px 0;
  border-bottom: 1.5px dashed var(--retro-orange);
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.18s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--retro-green);
  color: var(--retro-navy);
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: repeating-linear-gradient(100deg,#f6efe8 0 14px,#fcf8ee 14px 28px);
  border-bottom: 5px double var(--retro-orange);
  padding: 58px 0 40px 0;
  box-shadow: 0 6px 30px var(--shadow);
  border-radius: 0 0 28px 28px;
  margin-bottom: 64px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section .content-wrapper {
  text-align: center;
  max-width: 750px;
}
.hero-section h1 {
  color: var(--retro-navy);
  text-shadow:2px 2px 0px #FFB84C, 3px 3px 8px #fff7ea;
}
.hero-section p {
  font-size: 1.18rem;
  margin-bottom: 23px;
  color: var(--retro-brown);
}
.hero-section .cta-btn {
  margin-top: 14px;
  font-size: 1.16rem;
}

/* =====================================
   BUTTONS & CALLS TO ACTION
   ===================================== */
.cta-btn {
  background: var(--accent);
  color: var(--primary);
  padding: 12px 34px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 12px;
  font-size: 1.10rem;
  transition: background 0.16s, color 0.13s, box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 3px 12px var(--shadow);
  border: 2px solid var(--accent);
  letter-spacing: 0.035em;
  outline: none;
  margin-bottom: 8px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--retro-navy);
  color: #fff;
  border-color: var(--retro-brown);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px var(--shadow);
}

/* =====================================
   FLEXBOX GRIDS & SPACING UTILITIES
   ===================================== */
.card-container,
.card-grid,
.project-list,
.team-list,
.feature-grid,
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.card {
  background: #fff7ea;
  border-radius: 16px;
  box-shadow: 0 3px 12px var(--shadow);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid #eadecc;
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 10px 36px var(--retro-orange);
  transform: translateY(-3px) scale(1.03);
  z-index: 2;
}
.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: #fff7ea;
  color: #23211f;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  border: 1.5px solid #e4dbc5;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.14s;
  flex-direction: row;
}
.testimonial-card:hover {
  box-shadow: 0 7px 30px var(--retro-brown);
  transform: translateY(-2px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 18px 18px 18px;
  background: #f9eee1;
  border-radius: 10px;
  border: 1.5px solid #eadecc;
  box-shadow: 0 1.5px 7px var(--shadow);
  min-width: 225px;
  flex: 1 1 225px;
  min-height: 250px;
  transition: box-shadow 0.14s, transform 0.14s;
}
.feature-item:hover {
  box-shadow: 0 8px 18px var(--retro-orange);
  transform: translateY(-2px) scale(1.04);
}
.feature-item img {
  height: 44px;
  width: 44px;
}

/* --- Project list & Team list --- */
.project-list, .team-list {
  gap: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
}
.project-item, .team-member, .blog-post {
  background: #fff7ea;
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 18px 20px 20px 20px;
  margin-bottom: 20px;
  border: 1.2px solid #ede2c6;
  flex: 1 1 270px;
  transition: box-shadow 0.18s, transform 0.1s;
}
.project-item:hover,
.team-member:hover {
  box-shadow: 0 7px 26px var(--retro-blue);
  transform: translateY(-1.5px) scale(1.03);
}
.team-member img {
  height:60px;
  width:60px;
  border-radius: 999px;
  box-shadow: 0 2px 9px var(--shadow);
  margin-bottom: 8px;
  background: #fcf8ee;
}

.blog-post {
  flex: 1 1 300px;
  min-width: 235px;
  background: #fffcf6;
}
.post-list {
  gap: 24px;
  margin-bottom: 16px;
}

.section:not(.hero-section) + .section, .section + section .section {
  margin-top: 40px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
}
.text-section {
  padding: 24px 10px 24px 10px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: #fff7ea;
  padding: 0 0 0 0;
  border-top: 5px double var(--retro-orange);
  margin-top: 60px;
  letter-spacing:0.01em;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 0 22px 0;
}
.footer-logo img {
  height: 44px;
  filter: drop-shadow(0px 1.5px 6px var(--shadow));
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #fff7ea;
  font-family: var(--font-display);
  font-size: 1.02rem;
  transition: color 0.12s, border-bottom 0.12s;
  border-bottom: 1.5px dotted transparent;
}
.footer-nav a:hover {
  color: var(--accent);
  border-bottom: 1.5px dotted var(--accent);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #fff7ea;
  font-size: 1.04rem;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a img {
  height: 25px;
  width: 25px;
  opacity: 0.8;
  transition: opacity 0.18s;
}
.footer-social a:hover img {
  opacity: 1;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: var(--retro-orange);
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 -6px 24px var(--shadow);
  z-index: 1500;
  padding: 18px 8vw 18px 8vw;
  font-family: var(--font-body);
  font-size: 1.08rem;
  transition: transform 0.33s, opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: var(--primary);
  color: #fff7ea;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 9px 23px;
  font-weight: 600;
  margin-left: 4px;
  border: 2px solid var(--primary);
  transition: background 0.16s, color 0.10s, border 0.16s;
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: var(--text-dark);
  border: 2px solid var(--retro-green);
}
.cookie-btn.reject,
.cookie-btn.settings {
  background: #fff7ea;
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--accent);
  color: var(--primary);
  outline: none;
  border: 2px solid var(--accent);
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 1550;
  background: rgba(23, 64, 94,0.44);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fcf8ee;
  border-radius: 20px;
  padding: 36px 34px 30px 34px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 12px 48px var(--shadow);
  border: 2.5px solid var(--retro-orange);
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-family: var(--font-body);
  color: var(--retro-brown);
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.20rem;
  margin-bottom: 12px;
  color: var(--retro-brown);
  text-shadow: 1px 1px 0 var(--retro-green);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1.04rem;
  font-weight: 500;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 16px;
  background: #eee0b1;
  position: relative;
  display: inline-block;
  margin-left: 16px;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.cookie-toggle-slider {
  position: absolute;
  left: 0; top: 0;
  width: 36px;
  height: 20px;
  border-radius: 16px;
  background: #e5d7a4;
  box-shadow: inset 0 1px 3px var(--shadow);
  transition: background 0.19s;
}
.cookie-toggle input[type='checkbox']:checked + .cookie-toggle-slider {
  background: var(--retro-green);
}
.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-toggle input[type='checkbox']:checked + .cookie-toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  min-width: 88px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 11px; right: 16px;
  background: var(--retro-orange);
  color: var(--primary);
  border-radius: 9px;
  font-size: 1.3rem;
  padding: 2px 12px 3px 12px;
  border: none;
  box-shadow: 0 2px 6px var(--shadow);
  transition: background 0.17s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: var(--retro-green);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .main-nav {
    gap: 18px;
    font-size: 0.93rem;
  }
}
@media (max-width: 900px) {
  .features, .card-container, .card-grid, .feature-grid, .team-list, .project-list, .post-list {
    gap: 18px;
  }
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    gap: 8px;
    min-height: 54px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 11px;
    padding: 22px 0 18px 0;
    align-items: flex-start;
  }
  .team-list, .feature-grid, .project-list, .post-list {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .hero-section {
    padding: 42px 0 18px 0;
    border-radius: 0 0 18px 18px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section .content-wrapper {
    max-width: 96vw;
    padding: 0 1vw;
  }
  .section {
    padding: 27px 2vw;
    margin-bottom: 32px;
    border-radius: 11px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 8px 13px 8px;
    min-width: 0;
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.20rem;
  }
  .section {
    padding: 17px 0.75vw 17px 0.75vw;
    margin-bottom: 19px;
  }
  .cookie-banner {
    padding: 10px 2vw 12px 2vw;
    font-size: 0.92rem;
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
  }
  .cookie-modal {
    padding: 18px 8px 18px 9px;
  }
}

/* ========== ACCESSIBILITY & HOVER STATES ========== */
a:focus, .cta-btn:focus, .cookie-btn:focus { outline: 2px solid var(--accent); }
a:active, .cta-btn:active { filter: brightness(0.93); }

/* ========== MISCELLANEOUS & RETRO/DECORATIVE ========== */
.section {
  background-image: repeating-linear-gradient(45deg, #fcf8ee 0 18px, #faf3e0 18px 36px);
  border-radius: 20px !important;
}

.feature-item, .testimonial-card, .card, .project-item, .blog-post {
  background: repeating-linear-gradient(-45deg, #fff7ea 0 10px, #f9eee1 10px 20px);
}

/* --- Retro Corner Pattern for Cards --- */
.card::before, .feature-item::before, .testimonial-card::before, .project-item::before, .blog-post::before {
  content: '';
  position: absolute;
  top:0; left:0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 10px 10px, #ffb84c 0 18px, transparent 20px);
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
}

/* ===============================================================
   END OF FILE
   =============================================================== */
