/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* CSS Variables */
:root {
  --color-primary: hsl(16, 63%, 41%);
  --color-secondary: hsl(154, 40%, 22%);
  --color-accent: hsl(196, 43%, 20%);
  --color-bg-light-yellow: hsl(64, 100%, 95%);
  --color-bg-light-peach: hsl(35, 83%, 95%);
  --color-bg-light-blue: hsl(193, 49%, 91%);
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: #222222;

  --font-primary: 'Bricolage Grotesque', sans-serif;
  --font-secondary: 'Public Sans', sans-serif;

  --transition: all 750ms cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

p { margin: 0 0 1rem 0; }

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

a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Header / Navigation */
.header {
  background-color: var(--color-secondary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.logo-img {
  height: 32px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0 1rem 0 auto;
  padding: 0;
}

.nav-links a {
  color: var(--color-white);
  font-weight: 400;
}

.nav-links a:hover {
  opacity: 0.8;
}

.nav-cta {
  display: flex;
  gap: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-bg-light-yellow) 0%, var(--color-bg-light-peach) 100%);
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.hero-secondary {
  font-size: 1.25rem;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Features Section */
.features {
  background-color: var(--color-secondary);
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features .section-header h2 {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-white);
  opacity: 0.9;
}

.pricing .section-subtitle {
  color: var(--color-secondary);
  opacity: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--color-bg-light-blue);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Benefits Section */
.benefits {
  background: linear-gradient(135deg, var(--color-bg-light-peach) 0%, var(--color-bg-light-yellow) 100%);
  padding: 5rem 0;
  scroll-margin-top: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.benefit-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--color-text);
  padding: 0.5rem 0;
}

/* Pricing Section */
.pricing {
  background-color: var(--color-bg-light-blue);
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background-color: var(--color-bg-light-yellow);
  padding: 2.5rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  background-color: var(--color-bg-light-yellow);
  color: var(--color-text);
}

.pricing-card.featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured h3,
.pricing-card.featured .price {
  color: var(--color-text);
}

.pricing-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
}

.trial {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--color-primary);
  border-radius: 8px;
  transition: var(--transition);
}

.pricing-features:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-features h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-bg-light-yellow);
}

.pricing-features p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.8;
  color: var(--color-bg-light-yellow);
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  color: var(--color-white);
  padding: 5rem 0;
  text-align: center;
}

.final-cta h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.final-cta .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.final-cta .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
}

/* Footer */
.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* Blog Page Styles */
.blog-hero {
  background: linear-gradient(135deg, var(--color-bg-light-yellow) 0%, var(--color-bg-light-peach) 100%);
  padding: 4rem 0;
  text-align: center;
}

.blog-hero h1 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.blog-hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text);
  opacity: 0.8;
  margin: 0;
}

.blog-section {
  background-color: #e0f0f5;
  padding: 5rem 0;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  width: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.blog-card-image {
  width: 40%;
  min-width: 300px;
  overflow: hidden;
  background-color: var(--color-bg-light-blue);
  flex-shrink: 0;
}

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

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

.blog-card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-content h3 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.blog-card-content h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.blog-card-content p {
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.7;
}

.blog-author {
  font-weight: 500;
}

.blog-date {
  font-style: italic;
}

.blog-card-readmore {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.blog-card:hover .blog-card-readmore {
  transform: translateX(5px);
}

/* Blog Article Page */
.blog-article {
  background-color: var(--color-white);
  padding: 3rem 0;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.back-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  transform: translateX(-5px);
}

.article-header h1 {
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.article-subtitle {
  color: var(--color-primary);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.8;
}

.article-author {
  font-weight: 600;
}

.article-date {
  font-style: italic;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-content h3 {
  color: var(--color-secondary);
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

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

.article-content .reference {
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 2rem;
  text-indent: -2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.author-bio {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.author-photo {
  width: 275px;
  height: 275px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-photo {
    width: 200px;
    height: 200px;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-secondary);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-content {
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 3rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 2rem;
  line-height: 1;
  font-weight: 300;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3rem;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-links a {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 500;
  font-family: var(--font-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-links a:hover {
  opacity: 0.7;
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.mobile-nav-cta .btn {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    flex-wrap: nowrap;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero {
    padding: 4rem 0;
  }

  .features,
  .benefits,
  .pricing,
  .final-cta {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }

  .blog-hero {
    padding: 3rem 0;
  }

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

  .blog-card-link {
    flex-direction: column;
  }

  .blog-card-image {
    width: 100%;
    min-width: unset;
    height: 240px;
  }
}

@media (max-width: 575px) {
  .logo-img {
    height: 24px;
  }

  .nav-links {
    font-size: 0.875rem;
    gap: 0.75rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-secondary {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

