/* Custom CSS for Building Blueprint Static Site */

/* ---- Global base ---- */
html {
  scroll-padding-top: 120px;
}

body {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  color: #193d5c;
  background-color: #f9f7f2;
  margin: 0;
  padding: 0;
}

/* ---- Headings / nav / CTA buttons ---- */
h1, h2, h3, h4, h5, h6,
.site-nav a,
button, .cta {
  font-family: "Cormorant SC", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 0;
}

/* ---- Fine-tune buttons on hover ---- */
button:hover,
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
  transition: .15s;
}

/* Make sure headings scale nicely */
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 0.75rem; }

@media(max-width: 768px){
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

/* Navigation link styles */
.user__login,
.link-list__link {
  font-family: "Cormorant SC", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* iPad & other touch devices */
@media (pointer:coarse){
  .hero-section{background-attachment:scroll!important;}
}

/* Header Styles */
.header {
  background-color: #f9f7f2;
  font-size: 18px;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header a,
.header a.link-list__link,
.header a.link-list__link:hover {
  color: #193d5c;
  text-decoration: none;
}

.header__container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__image {
  width: 120px;
  display: block;
}

.link-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.link-list__link {
  color: #193d5c;
  text-decoration: none;
  font-size: 18px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 1px;
  text-decoration: none;
  font-family: "Cormorant SC", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: all 0.15s;
  cursor: pointer;
}

.btn--outline {
  background: transparent;
  border: 2px solid #193d5c;
  color: #193d5c;
}

.btn--outline:hover {
  background: #193d5c;
  color: #fff;
}

.btn--solid {
  background: #34495e;
  border: 2px solid #34495e;
  color: #fff;
}

.btn--solid:hover {
  background: #2c3e50;
  border-color: #2c3e50;
}

/* Section Styles */
.section {
  padding: 60px 0;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Mobile Navigation - Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #193d5c;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .header__container {
    padding: 0 20px;
    flex-direction: row;
    gap: 0;
  }
  .hamburger {
    display: flex;
  }
  .link-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #f9f7f2;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }
  .link-list.active {
    right: 0;
  }
  .link-list__link {
    font-size: 1.1rem;
  }
  .link-list .btn {
    margin-top: 10px;
  }
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 998;
  }
  .mobile-nav-overlay.active {
    display: block;
  }
}

/* Hero Section */
.hero-section {
  background-color: #f9f7f2;
  padding: 100px 0;
  text-align: center;
}

.hero-section h1 {
  margin-bottom: 20px;
}

.hero-section h4 {
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Styles */
.footer {
  background-color: #f9f7f2;
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: #193d5c;
  text-decoration: none;
}

.copyright {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.social-icons__icon {
  color: #193d5c;
  font-size: 24px;
}

/* Blog Styles */
.blog-listings {
  padding: 40px 0;
}

.blog-listing {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.blog-listing__title {
  color: #193d5c;
  text-decoration: none;
  font-size: 1.5rem;
}

.blog-listing__title:hover {
  text-decoration: underline;
}

.blog-listing__date {
  color: #193d5c;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Sidebar */
.sidebar {
  padding: 20px;
}

.sidebar__block {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

/* Calculator Styles */
.calculator-section {
  padding: 60px 0;
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Font Awesome Twitter/X fix */
.fa.fa-twitter,
.fab.fa-twitter {
  font-family: sans-serif;
}

.fa.fa-twitter::before,
.fab.fa-twitter::before {
  content: "𝕏";
  font-size: 1.2em;
}

/* Row layout */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-lg-9 {
  flex: 0 0 75%;
  max-width: 75%;
  padding: 0 15px;
}

.col-lg-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

@media (max-width: 992px) {
  .col-lg-9,
  .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
