/* THE CC WAY — Main Stylesheet */
/* Navy, Black, Electric Blue Color Scheme */

:root {
  --navy: #001F3F;
  --black: #000000;
  --electric-blue: #0074D9;
  --off-white: #F8F9FA;
  --light-gray: #E8EAED;
  --dark-gray: #5F6368;
  --accent-navy: #003d5c;
  
  --font-serif: 'Georgia', 'Garamond', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--black);
  background-color: #ffffff;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--navy);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--navy);
  text-decoration: underline;
}

strong {
  font-weight: 700;
  color: var(--navy);
}

header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--light-gray);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 150px !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--electric-blue);
  text-decoration: none;
}

.nav-cta {
  background-color: var(--navy);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: var(--accent-navy);
  color: #ffffff !important;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.cta-button {
  display: inline-block;
  background-color: var(--navy);
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid var(--navy);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--navy);
  text-decoration: none;
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.cta-button-secondary:hover {
  background-color: var(--navy);
  color: #ffffff;
}

.email-signup {
  background-color: var(--navy);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}

.email-signup h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.email-signup-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.email-signup-form input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  flex: 1;
  min-width: 250px;
}

.email-signup-form button {
  padding: 0.75rem 2rem;
  background-color: var(--electric-blue);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.email-signup-form button:hover {
  background-color: #0052A3;
}

.content-section {
  padding: 3rem 0;
}

.content-section h2 {
  color: var(--navy);
  margin-bottom: 2rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.blog-list {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.blog-post-preview {
  border-left: 4px solid var(--electric-blue);
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.blog-post-preview:last-child {
  border-bottom: none;
}

.blog-post-preview h3 {
  margin-top: 0;
}

.blog-post-meta {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.blog-post-excerpt {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.read-more {
  color: var(--electric-blue);
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--navy);
}

.post-header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #2c3e50;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

footer {
  background-color: var(--navy);
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section a {
  color: #ffffff;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--electric-blue);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--electric-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }
  
  .hero-image {
    order: -1;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .email-signup-form {
    flex-direction: column;
  }
  
  .email-signup-form input,
  .email-signup-form button {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  .logo img {
    height: 70px !important;
  }
  
  nav a {
    font-size: 0.85rem;
  }
}

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

.text-navy {
  color: var(--navy);
}

.text-electric-blue {
  color: var(--electric-blue);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.py-2 { padding: 2rem 0; }
.py-3 { padding: 3rem 0; }

.article-page {
    background: #fff;
    padding: 4rem 1.5rem;
}

.article-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.article-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.article-subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 4rem;
    font-size: 1.15rem;
    line-height: 1.85;
}

.article-content p {
    margin-bottom: 1.6rem;
}

.pull-quote {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.25;
    font-weight: 800;
    margin: 3rem 0;
    padding-left: 1.5rem;
    border-left: 5px solid var(--navy);
}

.short-lines {
    font-size: 1.25rem;
    line-height: 2;
    font-weight: 600;
    margin: 2.5rem 0;
}

.article-signature {
    margin-top: 3rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

/* Mobile layout fix */
@media (max-width: 768px) {
  body {
    margin: 0;
    overflow-x: hidden;
  }

  .hero,
  .section,
  .container,
  main,
  article {
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    text-align: left;
  }

  .hero-content,
  .content-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }

  h1 {
    font-size: 42px;
    line-height: 1.1;
    margin-left: 0;
    margin-right: 0;
  }

  p {
    font-size: 20px;
    line-height: 1.6;
  }

  .button,
  .btn,
  .cta-button {
    width: 100%;
    max-width: 380px;
    text-align: center;
    display: block;
    margin-top: 32px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}
