/* Base styles */
body {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
    color: #333;
    font-size: 16px;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    color: #444;
}

/* Mobile Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    top: 20px;
    right: 20px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-wrapper {
    width: 100%;
}

nav {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 0.25rem 0;
}

nav a:hover {
    color: #000;
}

section {
    margin: 2rem 0;
}

.intro {
    font-size: 1.25rem;
    color: #666;
    margin: 1rem 0;
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

/* Blog specific styles */
.article-preview {
    margin: 2.5rem 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

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

.article-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #000;
    text-decoration: none;
    display: inline-block;
}

.article-title:hover {
    text-decoration: underline;
}

.article-excerpt {
    color: #555;
    margin-top: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 0rem;
    color: #555;
    text-decoration: none;
}

.back-link:hover {
    color: #000;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.headshot {
    width: 150px;
    height: auto;
    border-radius: 4px;
    margin-top: 0.75rem;
}

.book-cover {
    width: 100%;
    height: auto;
    max-width: 200px;
}

.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.book {
    max-width: 200px;
    text-align: left;
}

.book p {
    width: 100%;
    margin: 0.5rem 0 0 0;
    line-height: 1.3;
}

/* Speaking Section */
.speaking-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.speaking-item {
    text-align: left;
    max-width: 100%;
    width: 100%;
}

.speaking-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.speaking-image:hover {
    transform: translateY(-5px);
}

.speaking-item p {
    margin: 1rem 0 0 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
    text-align: left;
    max-width: 100%;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #333;
}

.contact-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Consolidated Links Section */
.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.link-item {
    padding: 0.6rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.link-item:hover {
    transform: translateY(-2px);
}

.link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.link-icon path {
    fill: currentColor;
}

/* Social Colors */
.linkedin { color: #0A66C2; }
.linkedin:hover { color: #084182; }

.x-twitter { color: #000; }
.x-twitter:hover { color: #333; }

.instagram { color: #E1306C; }
.instagram:hover { color: #C13584; }

/* Podcast Colors */
.apple-podcasts { color: #9353B8; }
.apple-podcasts:hover { color: #7A449C; }

.spotify { color: #1DB954; }
.spotify:hover { color: #1A9C4A; }

.youtube { color: #FF0000; }
.youtube:hover { color: #CC0000; }

/* HubSpot Form Overrides */
#hubspot-form {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.hs-form fieldset {
  max-width: 500px !important;
  margin: 0 auto !important;
}

.hs-input {
  font-family: inherit !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  padding: 0.8rem !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.hs-button.primary {
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  padding: 0.8rem 1.5rem !important;
  background: #ff6d2c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.hs-button.primary:hover {
  background: #e66027 !important;
}

/* Labels and text */
.hs-form label {
  font-size: 0.9rem !important;
  color: #444 !important;
  margin-bottom: 0.5rem !important;
}

.hs-form-required {
  color: #e53e3e !important;
}

/* Error messages */
.hs-error-msg {
  color: #e53e3e !important;
  font-size: 0.8rem !important;
  margin-top: 0.25rem !important;
}

/* Field adjustments */
#hubspot-form .hs_email {
  width: 100% !important;
  max-width: 500px !important;
}

#hubspot-form .hs-form-field {
  margin-bottom: 1.5rem !important;
}

#hubspotform .input {
  width: 100% !important;
  max-width: 100% !important;
}

/* Button container adjustments */
#hubspot-form .hs_submit {
  margin-top: 1rem !important;
  display: block !important;
  width: 100% !important;
}

#hubspot-form .hs-button.primary {
  width: 100% !important;
  max-width: 200px !important;
  display: block !important;
  margin: 0 auto !important;
}

.hbspt-form {
  font-family: inherit !important;
}

/* Add styles for the newsletter form container */
.newsletter-form {
  background-color: #f7f7f7;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 1.5rem;
}

/* Form layout */
.newsletter-form .hbspt-form {
  max-width: 500px;
  margin: 0;  /* Changed from 0 auto to 0 to left-align */
}

/* Adjust form fields to fit the container */
.newsletter-form .hs-form {
  margin: 0;
  text-align: left !important;
}

.newsletter-form .hs-form fieldset {
  padding: 0;
  border: none;
  margin: 0 !important;
  max-width: none !important;
  text-align: left !important;
}

/* Desktop form layout - horizontal form fields and button */
@media screen and (min-width: 769px) {
  .newsletter-form form.hs-form,
  .newsletter-form form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    text-align: left !important;
  }

  .newsletter-form .hs-form-field,
  .newsletter-form .hs_email {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0 !important;
    width: auto !important;
    text-align: left !important;
  }

  .newsletter-form .hs_submit {
    margin-top: 0 !important;
    width: auto !important;
    text-align: left !important;
  }

  .newsletter-form .hs-button.primary {
    margin: 0 !important;
    min-width: 120px;
    text-align: center !important;
  }
  
  /* Force horizontal layout */
  .newsletter-form .hs-form fieldset.form-columns-1,
  .newsletter-form .hs-form fieldset.form-columns-2,
  .newsletter-form fieldset {
    max-width: none !important;
    display: flex;
    align-items: flex-end;
    width: 100% !important;
    text-align: left !important;
  }
  
  .newsletter-form .input {
    margin-right: 10px !important;
    text-align: left !important;
  }
  
  /* Override HubSpot centering */
  .newsletter-form .hs-form {
    text-align: left !important;
  }
  
  .newsletter-form div.hs_email {
    text-align: left !important;
    width: 70% !important;
  }
}

/* Input fields styling */
.newsletter-form .hs-input {
  width: 100%;
  box-sizing: border-box;
}

/* Left aligned form overrides */
.left-aligned-form {
  text-align: left !important;
  max-width: 100% !important;
}

.left-aligned-form .hs-form,
.left-aligned-form.hs-form {
  text-align: left !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.left-aligned-form fieldset {
  max-width: 100% !important;
  text-align: left !important;
}

.left-aligned-form .hs-form-field {
  text-align: left !important;
}

@media screen and (min-width: 769px) {
  .left-aligned-form form {
    display: flex !important;
    align-items: flex-end !important;
    text-align: left !important;
  }
  
  .left-aligned-form .hs_email {
    flex: 1 !important;
    min-width: 300px !important;
    text-align: left !important;
  }
  
  .left-aligned-form .hs_submit {
    width: auto !important;
    margin-left: 10px !important;
  }
}

/* Spacing between form elements */
.newsletter-form .hs-form-field {
  margin-bottom: 1rem;
}

/* Style for the newsletter introductory text */
.newsletter-intro {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline;
  background-color: #fff3a6;
  padding: 0 4px;
  background-image: linear-gradient(to bottom, transparent 60%, #fff3a6 60%);
}

/* Submit button styling */
.newsletter-form .hs-submit {
  text-align: left;
  margin-top: 1rem !important;
  width: 100% !important;
}

/* Optional: Adjust the margin-top if needed */
.newsletter-form {
  margin-top: 0;
}

/* Responsive Design */
/* Desktop (default above) */

/* Tablet and Mobile */
@media screen and (max-width: 768px) {
    body {
        padding: 1.5rem;
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .intro {
        font-size: 1.1rem;
    }
    
    .headshot {
        width: 120px;
    }

    /* Speaking section adjustments */
    .speaking-image {
        border-radius: 6px;
    }
    
    /* Show hamburger menu */
    .hamburger-menu {
        display: flex !important;
    }
    
    /* Navigation styles for tablet */
    nav {
        display: none !important;
        flex-direction: column;
        padding: 1rem 0;
        opacity: 0;
        height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, height 0.3s ease;
    }
    
    nav.active {
        display: flex !important;
        opacity: 1;
        height: auto;
    }
    
    /* Hamburger menu open state */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Revert newsletter form to vertical on mobile */
    .newsletter-form form {
        display: block;
    }
    
    .newsletter-form .hs_submit {
        margin-top: 1rem !important;
        width: 100% !important;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    body {
        padding: 1rem;
        font-size: 16px; /* Increased from 15px for better readability */
    }
    
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem; /* Slightly increased from 1.25rem */
        margin-top: 2rem;
    }

    nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    nav a {
        display: block;
        padding: 0.5rem 0; /* Increased from 0.25rem for better touch targets */
        font-size: 18px; /* Increased font size for better readability on mobile */
    }

    .intro {
        font-size: 1.05rem; /* Slightly increased from 1rem */
    }

    .article-title {
        font-size: 1.25rem;
    }
    
    header {
        flex-direction: column;
        margin-top: 2rem; /* Give space for hamburger menu */
    }    
    
    .headshot {
        width: 100%;
        max-width: 200px;
        margin-top: 1rem;
    }
    
    .links-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .link-item {
        padding: 0.8rem 0;
        font-size: 17px; /* Increased from default */
    }

    /* Speaking section mobile adjustments */
    .speaking-item {
        max-width: 100%;
    }
    
    .speaking-image {
        border-radius: 4px;
        max-width: 100%;
    }

    .speaking-item p {
        font-size: 1.05rem; /* Slightly increased */
    }
    
    /* Adjust newsletter form for mobile */
    .newsletter-form {
        padding: 1.5rem;
    }
    
    .newsletter-intro {
        font-size: 1.05rem;
    }
    
    /* Hamburger menu position adjustment for mobile */
    .hamburger-menu {
        top: 15px;
        right: 15px;
    }
    
    /* Ensure proper display of newsletter form on small devices */
    .newsletter-form form {
        display: block;
    }
    
    .newsletter-form .hs-form-field {
        margin-bottom: 1rem !important;
    }
    
    .newsletter-form .hs_submit {
        margin-top: 1rem !important;
        width: 100% !important;
    }
    
    .newsletter-form .hs-button.primary {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* Print styles */
@media print {
    body {
        padding: 0;
        color: black;
    }

    nav {
        display: none;
    }
}