:root {
  --color-primary: #1f1f1f;
  --color-primary-hover: #D35400;
  --color-secondary: #1ABC9C;
  --color-secondary-hover: #16A085;
  --footer-bg: #2C3E50;
  --footer-text: #ECF0F1;
  --footer-link-hover: #D35400;

  --max-width: 1200px;
  --border-radius: 0.2rem;
  --border-radius-large: 1.5rem;
  

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  

  --font-primary: 'Quattrocento', serif;
  --font-secondary: 'Lato', sans-serif;
  --font-tertiary: 'Lora', serif;
}



* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  font-family: var(--font-secondary), var(--font-primary), var(--font-tertiary), 'Vollkorn', Georgia, serif;
  background-color: white;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Prevent scrolling when mobile menu is open */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-primary);
}

h1 {
  font-size: 2rem;
}

section h1 {
  font-size: 2rem;
}

p {
  font-family: var(--font-secondary);
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulsate {
  0% {
    transform: translateX(-50%) scale(0.80);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) scale(1.15);
    opacity: 0.7;
  }
  100% {
    transform: translateX(-50%) scale(0.80);
    opacity: 0.8;
  }
}



.hero {
  position: relative;
  overflow: hidden;
  height: 600px;
  color: white;
  border-bottom: 0.1rem solid black;
}

#hero-2 {
  height: 250px; /* Non-index page height */
}

/* Hero background image */
.hero .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.15)
  );
  z-index: 1;
}

/* Hero content positioning */
.hero nav,
.hero-text,
#hero-2 .container {
  position: relative;
  z-index: 2;
}

/* Hero text content */
.hero-text {
  color: white;
  margin: 4.5rem auto 0;
  border-left: 1px solid white;
  padding: 4rem 0 0.4rem 1rem;
  max-width: 44rem;
  font-family: var(--font-primary);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.5s;
  z-index: 1;
}

.hero-text h1 {
  margin-bottom: var(--spacing-sm);
}

.hero-padding {
  padding: 0 var(--spacing-sm);
}

/* Hero text animations */
.h1-span-1 {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.5s;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.h1-span-2 {
  display: inline-block;
  color: #db7965;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 1.5s;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.hero-p {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 2.3s;
  font-size: clamp(1rem, 5vw, 1.05rem);
}

/* Scroll down indicator */
.scroll-down {
  display: none !important;
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  opacity: 0;
  animation: 
    fadeIn 2s ease-out 2.9s forwards,
    pulsate 1.5s ease-in-out 4s infinite;
}

.scroll-down svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
}



nav.container {
  display: flex;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: clamp(1rem, 100vw, 18rem);
}

.logo {
  padding: 0 0 0 var(--spacing-sm);
  margin: 2rem 0 0;
  font-size: clamp(1.2rem, 5vw, 3rem);
  font-weight: 400;
  font-family: var(--font-primary);
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  letter-spacing: 0.18rem;
  align-items: center;
  list-style: none;
  font-family: var(--font-primary);
  margin: 2rem 0 0;
  padding: 0;
  font-size: clamp(1.3rem, 5vw, 1.5rem);
  text-rendering: geometricPrecision;
}

.nav-links a:hover {
  color: rgb(172, 192, 235);
}



/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1.2rem;
  right: 1rem;
  z-index: 3;
  padding: 12px;
  box-sizing: border-box;
}

/* Hamburger bars */
.nav-toggle span {
  display: block;
  width: 35px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to X transformation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



main.container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Section containers */
.sub-container-services,
.sub-container-about,
.sub-container-blog {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-sm);
}

.sub-container-services {
  background-color: #f5f5f7;
  padding-top: 1.25rem;
  padding-bottom: var(--spacing-xl);
}

.sub-container-about {
  background-color: #ffffff;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
}

.sub-container-blog {
  background-color: #f5f5f7;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
}

/* Content sections */
section.services {
  max-width: var(--max-width);
  border-radius: var(--border-radius);
  padding: clamp(1rem, 5vw, 3rem);
  display: flex;
  box-sizing: border-box;
  background-color: #eaedf0;
  justify-content: center;
  align-items: center;
}

.about {
  max-width: var(--max-width);
  width: 100%;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  background-color: #eaedf0;
  padding: clamp(1rem, 5vw, 3rem);
}

.about a {
  margin-top: 1.5rem;
}


.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.service-item {
  flex: 1 1 300px;
  box-sizing: border-box;
}

.service-line {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.service-item h3 {
  height: 3rem;
  display: flex;
  gap: var(--spacing-sm);
  font-family: var(--font-primary);
  align-items: center;
  font-size: clamp(1rem, 5vw, 1.1rem);
  color: var(--color-primary);
}

.service-item svg {
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  fill: var(--color-primary);
}

#contact-us-services {
  color: rgb(23, 62, 146);
}

#contact-us-services:hover {
  color: rgb(78, 118, 204);
}



#contact-page {
  flex-direction: column;
  gap: 0;
}

#contact-page p {
  margin-top: 0.15rem;
}

#contact-page h2 {
  margin: var(--spacing-sm) 0;
}

.contact-link:hover {
  color: rgb(64, 84, 126);
}

.contact-svg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

#contact-page svg {
  fill: rgb(14, 96, 151);
}



#about-page p {
  margin-top: 0.85rem;
}

.bio-photo {
  float: left;
  max-width: 350px;
  width: 100%;
  height: auto;
  margin: 1rem 1.5rem 1.5rem 0;
  border-bottom-right-radius: 2.50rem;
  border-bottom-left-radius: 0.20rem;
  border-top-right-radius: 0.20rem;
  border-top-left-radius: 2.50rem;
}


.blog-previews {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: 4.5rem;
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  justify-content: center;
  gap: var(--spacing-md);
}

/* Blog post cards */
.post-preview {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #eaedf0;
  box-sizing: border-box;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  min-height: 33rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0s ease-in-out, box-shadow 0s ease-in-out;
  line-height: 1.4;
}

.post-preview:hover {
  background-color: #dde2e6;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.post-preview:hover img {
  filter: brightness(90%);
}

.post-preview a {
  position: relative;
  z-index: 1;
}

.blog-img-holder {
  height: 100%;
  min-height: 40%;
  max-height: 40%;
}

.blog-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-content {
  height: 50%;
  padding: var(--spacing-sm);
}

.blog-post-content h3 {
  margin-bottom: 0.20rem;
}

.blog-post-description {
  margin: 0;
  margin-top: 0.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: 2.3rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: rgb(27, 27, 27);
  font-family: var(--font-tertiary);
}

.page-number {
  width: 1.3rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid black;
  border-radius: 4px;
}

.page-number:hover {
  background-color: rgb(230, 230, 230);
}

.pagination .page-number.active {
  background: #333;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  padding: 0 8px;
}

.next {
  display: flex;
  align-items: center;
  justify-content: center;
}

.next:hover {
  color: rgb(82, 82, 82);
}

.read-more-articles-button-holder {
  width: 100%;
  display: flex;
  justify-content: center;
}

#view-more-articles {
  margin-top: var(--spacing-md);
}



.blog-post-page {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 2rem 1rem;
}

.blog-post-page li {
  font-family: var(--font-secondary);
}

/* Back button */
.post-nav .back-button {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: #0066cc;
  font-weight: 600;
  transition: color 0.2s;
}

.post-nav .back-button:hover {
  color: #004799;
}

/* Post header */
.post-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.featured-image {
  display: flex;
  height: 400px;
  width: 100%;
  border: 1px solid rgb(161, 161, 161);
  box-sizing: border-box;
  border-radius: var(--border-radius);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin: var(--spacing-sm) 0;
  text-align: left;
  line-height: 1.35;
}

.post-date {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  text-align: left;
  font-family: var(--font-secondary);
}

/* Post layout */
.post-layout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.post-content {
  flex: 1 1 60%;
  min-width: 300px;
  line-height: 1.7;
  word-wrap: break-word;
}

.post-sidebar {
  flex: 1 1 20%;
  max-width: 330px;
  margin-left: 1.5rem;
}

.post-sidebar .site-button {
  width: 70%;
  margin: 0 auto;
}

/* Sidebar widgets */
.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: sticky;
  top: 2rem;
  margin-top: 3rem;
}

.toc-widget {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: var(--spacing-sm);
}

#mobile-toc-widget {
  display: none;
}

.toc-widget h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-family: var(--font-secondary);
}

.toc-widget .toc-subtitle {
  margin: 0 0 var(--spacing-sm);
  font-size: 1rem;
  color: #666;
}

.toc-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-widget li {
  margin-bottom: 0.5rem;
}

.toc-widget a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.toc-widget a:hover {
  color: #042c5a;
}

/* Author widget */
.author-widget {
  border: 1px solid #e0e0e0;
  padding: var(--spacing-sm);
  border-radius: 4px;
  text-align: center;
  background: #fafafa;
}

.author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 0.15rem;
  border: 1px solid rgb(0, 0, 0);
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.author-name {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
}

.author-bio {
  font-size: 0.95rem;
  color: #444;
  text-align: left;
}

#learn-more-charles {
  font-size: 1rem;
  margin-top: var(--spacing-sm);
}

.author-name-under-blog-title {
  text-align: left;
}

#read-more {
  position: static;
  margin: auto 1.3rem 1.3rem 0;
  align-self: flex-end;
  font-size: 1rem;
  padding: 0.5rem 0.7rem;
}


.site-button {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: background 0.3s ease;
  letter-spacing: 0.1rem;
  font-family: var(--font-primary);
}

.site-button:hover {
  background: var(--color-primary-hover);
}

#services-button {
  margin-top: var(--spacing-xl);
  margin-left: var(--spacing-md);
}



.divider {
  display: flex;
  align-items: flex-start;
  border-top: 2px solid #000;
  margin: 3rem 0;
  width: 100%;
  max-width: var(--max-width);
}

.divider h2,
.divider h1 {
  margin: 0;
  padding: 1rem;
  background: #000;
  color: #fff;
  font-family: var(--font-primary), serif;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  display: inline-block;
  line-height: 1;
  border-bottom-left-radius: 0.1rem;
  border-bottom-right-radius: 0.1rem;
}

.site-footer {
  position: relative;
  width: 100%;
  min-height: 35rem;
  overflow: hidden;
  color: white;
  border-top: 1px solid black;
}

/* Footer background */
.site-footer .site-footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  z-index: 0;
}

.site-footer .site-footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(44, 62, 80, 0.9),
    rgba(44, 62, 80, 0.9)
  );
  z-index: 1;
}

.site-footer-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--spacing-sm);
}

footer#contact p {
  margin: 0;
}

/* Footer top section */
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  column-gap: 18rem;
  row-gap: var(--spacing-xl);
  padding: 7rem 0 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Footer CTA */
.footer-cta h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-cta p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.footer-cta .btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #2270ca;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.footer-cta .btn-primary:hover {
  color: rgb(172, 192, 235);
}

/* Footer navigation */
.footer-nav h3,
.footer-connect h3 {
  margin: 0.4rem 0 2rem;
  font-size: 1.6rem;
  color: white;
}

.footer-nav ul,
.footer-connect ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-connect li {
  margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-connect a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover,
.footer-connect a:hover {
  color: rgb(172, 192, 235);
}

.footer-nav p {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-sm);
  white-space: normal;
  word-break: break-word;
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: 0.25rem;
}

.social-links a {
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ddd;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  border-top: 1px solid white;
  max-width: var(--max-width);
  padding-top: 4rem;
  margin: 0 auto;
  font-size: 1.2rem;
  justify-content: space-between;
  font-family: var(--font-primary);
}

.footer-legal {
  display: flex;
  gap: 2.5rem;
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
}

.footer-legal a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: rgb(172, 192, 235);
}


@media (max-width: 769px) {
  /* Hero adjustments */
  .hero {
    height: 100vh;
  }

  #hero-2 {
    height: 150px;
  }

  .hero::before {
    background: linear-gradient(
      rgba(0, 0, 0, 0.80),
      rgba(0, 0, 0, 0.15)
    );
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    margin-top: 0;
    background: rgba(0, 0, 0, 1);
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 1rem;
    padding-top: 9rem;
    z-index: 2;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .logo {
    z-index: 3;
  }

  /* Scroll down */
  .scroll-down {
    display: flex !important;
  }

  /* Content adjustments */
  .sub-container-services,
  .sub-container-blog,
  .sub-container-about {
    padding-top: 0.2rem;
  }

  /* Blog sidebar */
  .post-sidebar {
    display: none;
  }

  .toc-widget {
    margin-bottom: 1.5rem;
  }

  #mobile-toc-widget {
    display: block !important;
  }
}




