:root {
  --primary: #0b2a6b; /* Navy blue */
  --primary-light: #ff7a00; /* Construction orange accent */
  --primary-dark: #001a4d; /* Deeper navy */
  /* Neutral, low-blue grays for a balanced canvas */
  --white: #ffffff;
  --gray-100: #fbfbfd; /* soft neutral background */
  --gray-200: #eff1f5; /* light borders */
  --gray-300: #e3e7ee; /* dividers */
  --gray-600: #5a6473; /* muted text */
  --gray-800: #1e293b; /* body text */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --anim-duration: 0.3s;
  --btn-radius: 50px;
  --btn-padding: 0.8rem 2rem;
  --btn-min-width: 140px;
  --card-radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-100);
  padding-top: 90px; /* header height (60) + vertical padding (20) */
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}
/* Image defaults: keep aspect ratio, be responsive, avoid distortion */
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover; /* when width+height set elsewhere, preserves cover behavior */
}
/* Common utility classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Animation classes */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 {
  transition-delay: 0.2s;
}

.animate-delay-2 {
  transition-delay: 0.4s;
}

.animate-delay-3 {
  transition-delay: 0.6s;
}

.btn {
  display: inline-block;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--anim-duration) ease;
  min-width: var(--btn-min-width);
  border: 2px solid transparent;
}

/* Primary button - "Get Quote" style */
.btn-primary {
  background: #ff7a00;
  color: var(--white);
  border-color: #ff7a00;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #ff9933;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary button style */
.btn.btn-secondary {
  background: #ff7a00;
  color: var(--white);
  border-color: #ff7a00;
}

.btn.btn-secondary:hover {
  background: #ff9933;
  color: var(--white);
}

/* White variant for dark backgrounds */
.btn.btn-white {
  background: #ff7a00;
  color: var(--white);
  border-color: #ff7a00;
}

.btn.btn-white:hover {
  background: #ff9933;
  color: var(--white);
}

/* Small variant */
.btn.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Large variant */
.btn.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}
.post-card.card-link {
  text-decoration: none;
  color: inherit;
  display: grid;
}
.post-card.card-link:hover {
  text-decoration: none;
}
/* Blog card aesthetic (aligned with portfolio style) */
.post-grid .post-card.blog-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-grid .post-card.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-grid .post-card.blog-card .thumb {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}
.post-grid .post-card.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.post-grid .post-card.blog-card:hover .thumb img {
  transform: scale(1.05);
}
.post-grid .post-card.blog-card .post-body {
  padding: 1rem 1rem 1.25rem;
}
/* Blog card date fallback */
.post-grid .post-card.blog-card.no-thumb .thumb.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  height: 250px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 55%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.post-grid .post-card.blog-card .thumb.no-thumb .date-text {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* Generic no-thumb fallback for any post-card */
/* Generic card date fallback */
.post-card.no-thumb .thumb.no-thumb,
.admin-post-card.no-thumb .thumb.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  height: 250px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 55%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}
.post-card.no-thumb .thumb.no-thumb .date-text,
.admin-post-card.no-thumb .thumb.no-thumb .date-text {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* Toolbar and form controls (used on Blogs and Portfolio) */
.toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.form-control {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-800);
  font: inherit;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 42, 107, 0.12);
}
.toolbar .form-control {
  min-width: 140px;
}
.toolbar input.form-control::placeholder {
  color: var(--gray-600);
}
.pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
/* Hero fallback */
.project-hero.no-hero {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 50%,
    var(--primary-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-hero.no-hero .hero-inner {
  background: rgba(0, 0, 0, 0.35);
  padding: 2rem;
  border-radius: 8px;
}
/* About & team fallback blocks */
.about-image-block.no-thumb,
.team-photo.no-thumb {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 55%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 2px;
  width: 100%;
  height: 100%;
}
.about-image-block.no-thumb .initial,
.team-photo.no-thumb .initial,
.about-image-block.no-thumb .date-text,
.team-photo.no-thumb .date-text {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Bottom actions wrapper for post/blog pages */
.bottom-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

/* Alternative CTA style (light card) */
.cta-section.cta-alt {
  background: var(--white);
  color: var(--primary);
  padding: 3rem 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
}
.cta-section.cta-alt h2 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.cta-section.cta-alt p {
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}
.cta-section.cta-alt .btn {
  background: #ff7a00;
  border-color: #ff7a00;
  color: var(--white);
}
.cta-section.cta-alt .btn:hover {
  background: #ff9933;
  border-color: #ff9933;
  color: var(--white);
}

/* Default dark CTA uses Bosnian blue with yellow accents */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 4rem 1rem;
  margin-top: 2rem; /* prevent clash with preceding buttons/sections */
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-section p {
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}
.cta-section .btn-primary {
  background: #ff7a00;
  color: var(--white);
}
.cta-section .btn-primary:hover {
  background: #ff9933;
}
