/* ===== 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;
}
html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #EDF0F4;
  color: #223040;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(.4,0,.2,1);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
}

/* ===== GLOBAL THEME ===== */
:root {
  --color-primary: #223040;
  --color-secondary: #EDF0F4;
  --color-accent: #A88946;
  --color-on-primary: #fff;
  --color-on-secondary: #223040;
  --color-card-bg: #fff;
  --color-card-border: #D6DBE3;
  --color-shadow: rgba(34,48,64,0.06);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 5px;
  --shadow-sm: 0 2px 10px var(--color-shadow);
  --shadow-md: 0 4px 18px var(--color-shadow);
}

/* ===== TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: -1px;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.08;
}
@media (min-width: 600px) {
  h1, .h1 { font-size: 3.2rem; }
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--color-primary);
  line-height: 1.18;
  letter-spacing: -0.4px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 13px;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  letter-spacing: 0.1px;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-md);
}
@media (max-width: 768px) {
  .section { padding: 28px 8px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  z-index: 1;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-card-bg);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  flex: 1 1 320px;
  color: var(--color-primary);
  font-size: 1.08rem;
  transition: border-color 0.2s;
}
.testimonial-card:hover {
  border-left-color: #bfaa7e;
  box-shadow: 0 6px 20px rgba(168,137,70,0.10);
}
.testimonial-card p {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #223040cc;
}

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

.features-grid, .skills-grid, .grid-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  width: 100%;
}
.features-grid > div, .skills-grid > div, .grid-projects > div {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 1.5px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), border-color 0.2s;
}
.features-grid > div:hover,
.skills-grid > div:hover,
.grid-projects > div:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.features-grid img, .skills-grid img, .grid-projects img {
  margin-bottom: 12px;
  width: 38px;
  height: 38px;
}

/* ===== HEADER & NAV ===== */
header {
  background: var(--color-card-bg);
  box-shadow: 0 2px 8px rgba(34,48,64,0.04);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
header a img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  padding: 7px 0 7px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  color: var(--color-primary);
  position: relative;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.main-nav a.cta-primary {
  background: var(--color-accent);
  color: var(--color-on-primary);
  padding: 9px 22px;
  border-radius: var(--radius-lg);
  margin-left: 8px;
  font-size: 1.06rem;
  box-shadow: 0 2px 8px rgba(168,137,70,0.11);
  letter-spacing: 0.8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: #D1B97C;
  color: var(--color-primary);
  box-shadow: 0 6px 26px rgba(168,137,70,0.16);
}
.main-nav a:not(.cta-primary):hover,
.main-nav a:not(.cta-primary):focus {
  color: var(--color-accent);
  background: rgba(168,137,70,0.08);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--color-accent);
  color: var(--color-on-primary);
  padding: 5px 19px;
  border-radius: var(--radius-lg);
  margin-left: 15px;
  border: none;
  box-shadow: 0 2px 8px rgba(168,137,70,0.09);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover {
  background: #b09b5e;
  color: var(--color-on-primary);
}

@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,48,64, 0.95);
  z-index: 200;
  transform: translateX(-100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.44,.13,.53,1), opacity 0.32s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 26px 0 0 24px;
  color: var(--color-accent);
  font-size: 2.2rem;
  background: none;
  border: none;
  z-index: 210;
  align-self: flex-start;
  transition: color 0.22s;
  padding: 6px 20px 6px 6px;
}
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 58px 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.19rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: var(--radius-md);
  padding: 12px 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-on-primary);
}
@media (min-width: 951px) {
  .mobile-menu {display:none !important;}
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(130deg, #EDF0F4 68%, #D6DBE3 100%);
  padding: 58px 0 44px 0;
  border-bottom: 3.5px solid var(--color-accent);
}
.hero .content-wrapper {
  gap: 20px;
  max-width: 670px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.2rem;
}
@media (min-width: 600px) {
  .hero h1 { font-size: 3.1rem; }
}
.hero p {
  font-size: 1.16rem;
  color: #37475b;
  margin-bottom: 18px;
}
.hero a.cta-primary {
  margin-top: 8px;
}

/* ===== CTA AND BUTTONS ===== */
.cta-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-accent);
  color: var(--color-on-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 900;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(168,137,70,0.10);
  letter-spacing: 0.8px;
  text-align: center;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.13s;
  margin-top: 10px;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: #D1B97C;
  color: #223040;
  box-shadow: 0 4px 22px rgba(168,137,70,0.16);
  transform: translateY(-2px) scale(1.025);
}

/* ===== LISTS, TIMELINE, STEPPER ===== */
.about-timeline ul, .step-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 22px 0 16px 0;
}
.usp-list, .team-list, .blog-list, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0 10px 0;
}
.usp-list li, .step-list li, .about-timeline li {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--color-secondary);
  padding: 13px 17px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  font-size: 1.04rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.usp-list img, .step-list img, .contact-info img {
  width: 25px;
  height: 25px;
}
.contact-info li {
  align-items: center;
  gap: 10px;
}
.blog-list li {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  border: 1.5px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.16s;
}
.blog-list li:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

/* ===== BLOG CATEGORIES ===== */
.blog-categories {
  margin: 8px 0 12px 0;
  font-size: 0.98rem;
  color: #586176;
  font-family: 'Montserrat', Arial, sans-serif;
}
.blog-categories a {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  padding: 2px 0;
  border-radius: 2px;
  transition: border-color 0.16s;
}
.blog-categories a:hover {
  border-bottom: 2px solid var(--color-accent);
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 38px 0 0 0;
  width: 100%;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 42px;
  justify-content: space-between;
  padding-bottom: 10px;
}
.footer-logo img { width: 54px; height: 54px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.footer-nav a {
  color: var(--color-on-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.4px;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.75;
}
.footer-contact img {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  opacity: 0.75;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(168,137,70,0.11);
  border-radius: 50%;
  transition: background 0.18s;
}
.footer-social a:hover {
  background: var(--color-accent);
}
.footer-social img { width: 23px; height: 23px; }
.footer-copy {
  width: 100%;
  opacity: 0.5;
  font-size: 0.9em;
  margin: 18px 0 0 0;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: left;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
  }
  .footer-nav { flex-direction: row; gap: 16px; }
  .footer-logo img { margin-bottom: 10px; }
  .footer-copy { text-align: center; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .features-grid, .skills-grid, .grid-projects {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 9px; }
  .hero { padding-top: 35px; padding-bottom: 26px; }
  .footer-logo img { width: 40px; height: 40px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}

/* ===== MICRO-INTERACTIONS & TRANSITIONS ===== */
.card, .card-container > * {
  transition: box-shadow 0.21s cubic-bezier(.44,.13,.53,1), border-color 0.2s;
}
.card:hover, .features-grid > div:hover, .skills-grid > div:hover, .blog-list li:hover {
  transform: translateY(-3px) scale(1.012);
}

a, button, .cta-primary, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.13s;
}

/* ===== GEOMETRIC STYLE SHAPES ===== */
.features-grid > div, .skills-grid > div, .grid-projects > div, .testimonial-card, .card {
  box-shadow: 0 2.5px 12px var(--color-shadow);
  border-radius: 20px 4px 18px 4px;
  position: relative;
}
.features-grid > div::before, .skills-grid > div::before, .testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  top: -10px; right: -16px;
  width: 40px; height: 40px;
  background: rgba(168,137,70,0.17);
  clip-path: polygon(67% 0%,100% 66%,0% 100%,0% 0%);
  z-index: 0;
  border-radius: 12px 0 20px 0;
  pointer-events: none;
}
.features-grid > div::before { background: rgba(168,137,70,0.13); }
.testimonial-card::before {
  width: 26px; height: 26px;
  top: -13px; right: -16px;
  background: rgba(168,137,70,0.10);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(120%);
  width: 99vw;
  max-width: 600px;
  padding: 24px 18px 18px 18px;
  background: var(--color-card-bg);
  color: var(--color-primary);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(34,48,64,0.15);
  z-index: 490;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.2,.87,.34,1.09), opacity 0.22s;
  border: 2px solid var(--color-accent);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cookie-banner p { font-size: 1rem; margin-bottom: 0; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 22px;
  padding: 10px 24px;
  border: none;
  margin-right: 4px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(168,137,70,0.10);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #d1b97c;
  color: #223040;
}
.cookie-banner .reject {
  background: #eee;
  color: #223040;
  border: 1.2px solid #cfcfcf;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #cfcfcf;
  color: #223040;
}
.cookie-banner .settings {
  background: transparent;
  color: var(--color-accent);
  border: 1.2px solid var(--color-accent);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-accent);
  color: #fff;
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,60%) scale(0.97);
  min-width: 320px;
  max-width: 430px;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(34,48,64,0.21);
  z-index: 999;
  padding: 32px 26px 18px 26px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.30s cubic-bezier(.22,.76,.34,1.16), opacity 0.17s;
  border: 2px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category label {
  flex: 1;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #223040;
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-accent);
  border-radius: 6px;
  border: 1.5px solid #d6dbe3;
  margin-right: 8px;
}
.cookie-category input:disabled {
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .close-modal {
  background: transparent;
  color: #223040;
  font-size: 1.6rem;
  border: none;
  position: absolute;
  top: 16px; right: 22px;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 1002;
}
.cookie-modal .close-modal:hover {
  color: var(--color-accent);
}
.cookie-modal-desc {
  font-size: 0.98em;
  color: #53617a;
}

/* ===== MISC GEOMETRIC DECORATIONS ===== */
.section {
  position: relative;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  right: -37px;
  bottom: -17px;
  width: 80px;
  height: 40px;
  background: rgba(168,137,70,0.07);
  clip-path: polygon(100% 0, 100% 100%, 18% 100%, 0 0);
  border-radius: 1.5em 0 2em 0;
  z-index: 0;
}

/* ===== FORM ELEMENTS (for contact/newsletter) ===== */
input, textarea, select {
  background: #f7f9fb;
  border: 1.4px solid #ccd2db;
  border-radius: var(--radius-md);
  padding: 11px 15px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 12px;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
}

/* ===== UTILITIES ===== */
.mb-0 {margin-bottom: 0 !important;}
.mt-0 {margin-top: 0 !important;}
.flex-row {display: flex; flex-direction: row;}
.flex-col {display: flex; flex-direction: column;}
.align-center {align-items: center;}
.justify-between {justify-content: space-between;}
.gap-10 {gap: 10px;}
.gap-20 {gap: 20px;}

/* ===== PRINT ========= */
@media print {
  *, *:before, *:after {
    background: none !important;
    box-shadow: none !important;
    color: #000 !important;
  }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
