@font-face {
  font-family: 'Albra';
  src: url(https://static1.squarespace.com/static/618712634cc9d14bd80427f3/t/618726ad2ae7d330b43cb5f8/1636247213169/BumbumType+-+Albra+Light.otf);
}

@font-face {
  font-family: 'Albra-Italic';
  src: url(https://static1.squarespace.com/static/618712634cc9d14bd80427f3/t/618726b6bf654a24c669edb5/1636247222114/BumbumType+-+Albra+Light+Italic.otf);
}

:root {
  --base-font-size: 15px;
  --heading-font-font-family: "adobe-caslon-pro", serif;
  --heading-font-font-style: normal;
  --heading-font-font-weight: 400;
  --heading-font-text-transform: none;
  --heading-font-letter-spacing: 0em;
  --heading-font-line-height: 1.5em;
  --body-font-font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --body-font-font-style: normal;
  --body-font-font-weight: 400;
  --body-font-text-transform: none;
  --body-font-letter-spacing: .01em;
  --body-font-line-height: 1.6em;
  --heading-2-size: 2.5rem;
  --heading-2-size-value: 2.5;
  --heading-3-size: 1.9rem;
  --heading-3-size-value: 1.9;
  --small-text-size: 1.15rem;
  --small-text-size-value: 1.15;
  --normal-text-size: 1rem;
  --normal-text-size-value: 1;
  --white-hsl: 0,0%,100%;
  --black-hsl: 0,0%,0%;
  --paragraphLinkColor: hsla(var(--black-hsl), 1);
  --paragraphSmallColor: hsla(var(--black-hsl), 1);
  --paragraphMediumColor: hsla(var(--black-hsl), 1);
  --headingLargeColor: hsla(var(--black-hsl), 1);
  --headingMediumColor: hsla(var(--black-hsl), 1);
  --siteBackgroundColor: hsla(var(--white-hsl), 1);
}

html { font-size: var(--base-font-size); }
body {
  margin: 0;
  background: var(--siteBackgroundColor);
  color: var(--paragraphMediumColor);
  font-family: var(--body-font-font-family);
  font-style: var(--body-font-font-style);
  font-weight: var(--body-font-font-weight);
  line-height: var(--body-font-line-height);
  letter-spacing: var(--body-font-letter-spacing);
  text-transform: var(--body-font-text-transform);
}

/* Layout helpers to mirror services page grid */
.content-wrapper { max-width: 1200px; margin: 0 auto; box-sizing: content-box; width: 100%; position: relative; padding: 0 7vw; display: flex; justify-content: center; }
.content { width: 100%; }
.sqs-row:before, .sqs-row:after { content: ""; display: table; }
.sqs-row:after { clear: both; }
[class*="sqs-col"] { float: left; padding: 0 17px; }
.sqs-col-12 { width: 100%; }
.sqs-col-5 { width: 41.6667%; }
.sqs-col-7 { width: 58.3333%; }
.sqs-col-2 { width: 16.6667%; }
.sqs-col-3 { width: 25%; }

/* Nested column ratios inside col-7 */
.sqs-col-7 .sqs-col-2 { width: 28.5714%; }
.sqs-col-7 .sqs-col-3 { width: 42.8571%; }

/* Blog hero section - matches services hero exactly */
.blog-hero {
  padding-top: 100px; /* space under header */
  min-height: 66vh;
  display: flex;
  align-items: center; /* vertical centering */
  position: relative;
  background-image: url('../../assets/blog_hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.blog-hero .sqs-block { position: relative; padding: 17px 0; }

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35); /* overlay for readability */
  pointer-events: none;
  z-index: 0;
}

.blog-hero > * {
  position: relative;
  z-index: 1;
}

/* Typography to match services hero */
.blog-hero h2 {
  margin: 0.5rem 0 0.75rem 0;
  font-family: Albra, var(--heading-font-font-family), serif !important;
  font-weight: 400;
  line-height: 3.3rem !important;
  color: var(--headingLargeColor);
}
.blog-hero h3 {
  margin: 0.25rem auto 1.25rem auto;
  font-family: Albra-Italic, var(--heading-font-font-family), serif !important;
  font-weight: 400;
  line-height: 1.7 !important;
  color: var(--headingMediumColor);
  max-width: 920px; /* constrain subtitle width */
}

/* Match services centered alignment */
.blog-hero h2,
.blog-hero h3 { text-align: center; white-space: pre-wrap; }

/* Limit main text block width and center it */
.blog-hero .sqs-col-7 .sqs-html-content { max-width: 960px; margin: 0 auto; }

/* Spacer behavior similar to services */
.sqs-block-spacer .sqs-block-content,
.sqs-block[data-definition-name="website.components.spacer"] .sqs-block-content { visibility: hidden; }
.sqs-block.vsize-1 .sqs-block-content { height: 34px; }
.sqs-block.sized .sqs-block-content { overflow: hidden; }
.sqs-block .sqs-intrinsic { position: relative !important; }

/* Responsive type from services logic */
@media screen and (min-width: 768px), screen and (max-width: calc(1295px)) and (orientation: landscape) {
  body { font-size: calc((var(--normal-text-size-value) - 1) * 1.2vw + 1rem); }
  .blog-hero h2 { font-size: calc((var(--heading-2-size-value) - 1) * 1.2vw + 1rem); }
  .blog-hero h3 { font-size: calc((var(--heading-3-size-value) - 1) * 1.2vw + 1rem); }
}
@media screen and (min-width: 1296px) {
  body { font-size: calc(var(--normal-text-size-value) * 1rem); }
  .blog-hero h2 { font-size: calc(var(--heading-2-size-value) * 1rem); }
  .blog-hero h3 { font-size: calc(var(--heading-3-size-value) * 1rem); }
}

/* Simple mobile stacking */
@media (max-width: 900px) {
  .sqs-col-5, .sqs-col-7, .sqs-col-2, .sqs-col-3 { width: 100%; float: none; }
  .content-wrapper { padding: 0 6vw; }
  .blog-hero { min-height: 60vh; }
}

/* Center hero content horizontally in the middle */
.blog-hero .sqs-col-5 { display: none; }
.blog-hero .sqs-col-7 { width: 100%; float: none; margin: 0 auto; }
/* Slightly reduce text width for nicer line length */
.blog-hero .sqs-col-7 .sqs-html-content { max-width: 820px; margin: 0 auto; }

/* Main content styling */
.main-content {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Blog Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* Blog Post Cards */
.blog-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 30px 25px;
}

.blog-content h2 {
  font-family: Albra, var(--heading-font-font-family), serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  color: #2c3e50;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-meta {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0 0 15px 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content p:last-child {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-image {
    height: 200px;
  }
  
  .blog-content {
    padding: 25px 20px;
  }
  
  .blog-content h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .blog-grid {
    gap: 25px;
  }
  
  .blog-content {
    padding: 20px 15px;
  }
  
  .blog-content h2 {
    font-size: 1.1rem;
  }
}

/* Contact Section */
.contact-section {
  background: #e2f1fc;
  padding: 80px 0;
  margin-top: 40px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.contact-info {
  text-align: center;
}

.phone-number {
  font-family: Albra, var(--heading-font-font-family), serif;
  font-size: 3rem;
  font-weight: 400;
  color: #2c3e50;
  margin: 0 0 30px 0;
  line-height: 1.2;
}

.consultation-btn {
  display: inline-block;
  background: #fff;
  color: #2c3e50;
  padding: 15px 35px;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.consultation-btn:hover {
  background: #2c3e50;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.2);
}

.service-areas h3 {
  font-family: Albra, var(--heading-font-font-family), serif;
  font-size: 2rem;
  font-weight: 400;
  color: #2c3e50;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.service-areas p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* Contact Section Responsive */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .phone-number {
    font-size: 2.2rem;
  }
  
  .service-areas h3 {
    font-size: 1.6rem;
  }
  
  .service-areas p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 50px 0;
  }
  
  .phone-number {
    font-size: 1.8rem;
  }
  
  .consultation-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .service-areas h3 {
    font-size: 1.4rem;
  }
}

/* Special Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg);
  }
  to {
    opacity: 1;
    transform: rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-bounce-in {
  opacity: 0;
  animation: bounceIn 0.8s ease-out forwards;
}

.animate-slide-top {
  opacity: 0;
  animation: slideInFromTop 0.8s ease-out forwards;
}

.animate-rotate-in {
  opacity: 0;
  animation: rotateIn 0.8s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Staggered Animation Delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Hero Animation Enhancements */
.blog-hero h2 {
  opacity: 0;
  animation: slideInFromTop 1s ease-out 0.3s forwards;
}

.blog-hero h3 {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Blog Post Hover Animations */
.blog-post {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-post:hover .blog-image img {
  transform: scale(1.1) rotate(1deg);
}

/* Contact Section Animations */
.phone-number {
  transition: all 0.3s ease;
}

.phone-number:hover {
  transform: scale(1.05);
  color: #106194;
}

.consultation-btn {
  position: relative;
  overflow: hidden;
}

.consultation-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.consultation-btn:hover::before {
  left: 100%;
}

/* Floating Animation for Blog Cards */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.blog-post.floating {
  animation: float 3s ease-in-out infinite;
}

/* Glowing Effect */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 4px 30px rgba(16, 97, 148, 0.3);
  }
}

.blog-post.glowing {
  animation: glow 2s ease-in-out infinite;
}