/*
Theme Name: Profit for Passion Astra Child
Theme URI: https://profitforpassion.com/
Description: Lightweight Astra child theme for Profit for Passion. Clean editorial styling for Gutenberg, blog posts, archives, header/footer and lead-generation pages.
Author: Profit for Passion
Template: astra
Version: 1.0.0
Text Domain: profit-for-passion
*/

:root {
  --pfp-navy: #172f4f;
  --pfp-blue: #2f6fed;
  --pfp-blue-dark: #2358c5;
  --pfp-ink: #243447;
  --pfp-muted: #667085;
  --pfp-border: #e4e9f0;
  --pfp-soft: #f6f8fb;
  --pfp-white: #ffffff;
  --pfp-content: 760px;
  --pfp-wide: 1180px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--pfp-ink);
  background: var(--pfp-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .site-title {
  color: var(--pfp-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.65rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin-top: 1.8em; }
h4 { font-size: 1.2rem; }

p, ul, ol { margin-bottom: 1.35em; }
strong { color: #1c2d40; }

/* Links remain unmistakably links. */
a { color: var(--pfp-blue); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.entry-content a { text-decoration-line: underline; }
a:hover, a:focus { color: var(--pfp-blue-dark); }

/* Global width and whitespace */
.ast-container { max-width: var(--pfp-wide); padding-left: 28px; padding-right: 28px; }
.site-content { padding-top: 34px; padding-bottom: 60px; }

/* Header */
.site-header { border-bottom: 1px solid var(--pfp-border); background: rgba(255,255,255,.98); }
.main-header-bar { min-height: 76px; }
.site-title a { color: var(--pfp-navy); text-decoration: none; }
.main-header-menu > .menu-item > .menu-link { color: var(--pfp-ink); font-weight: 600; font-size: 0.95rem; }
.main-header-menu > .menu-item > .menu-link:hover { color: var(--pfp-blue); }

/* Single posts: narrow, publication-style reading column */
.single-post .site-content > .ast-container { max-width: calc(var(--pfp-content) + 56px); }
.single-post .content-area { width: 100%; }
.single-post .site-main { width: 100%; }
.single-post article { max-width: var(--pfp-content); margin-inline: auto; }
.single-post .entry-header { margin-bottom: 30px; }
.single-post .entry-title { font-size: clamp(2.35rem, 5vw, 3.8rem); margin-bottom: 16px; }
.single-post .entry-meta { color: var(--pfp-muted); font-size: .88rem; }
.single-post .post-thumb img,
.single-post .wp-post-image { border-radius: 10px; width: 100%; height: auto; }
.single-post .entry-content { font-size: 1rem; }
.single-post .entry-content > * { max-width: var(--pfp-content); margin-left: auto; margin-right: auto; }
.single-post .entry-content > .alignwide { max-width: 1040px; width: min(1040px, 100%); }
.single-post .entry-content > .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Gutenberg content */
.wp-block-image { margin-top: 2em; margin-bottom: 2em; }
.wp-block-image img { border-radius: 8px; }
.wp-block-quote { border-left: 4px solid var(--pfp-blue); padding: .5rem 0 .5rem 1.4rem; margin: 2rem 0; color: #344054; }
.wp-block-quote p { font-family: Georgia, "Times New Roman", serif; font-size: 1.15em; }
.wp-block-separator { border-color: var(--pfp-border); margin: 3rem auto; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; font-size: .94rem; }
.wp-block-table th { background: var(--pfp-soft); color: var(--pfp-navy); }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--pfp-border); padding: .75rem .9rem; }

/* Buttons */
.wp-block-button__link,
.ast-button,
.button,
input[type="submit"] {
  background: var(--pfp-blue);
  color: #fff !important;
  border: 0;
  border-radius: 7px;
  padding: .8em 1.35em;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color .18s ease, transform .18s ease;
}
.wp-block-button__link:hover,
.ast-button:hover,
.button:hover,
input[type="submit"]:hover { background: var(--pfp-blue-dark); transform: translateY(-1px); }

/* Forms / opt-in blocks */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  border: 1px solid #cfd7e3;
  border-radius: 7px;
  background: #fff;
  padding: .8rem .9rem;
  font-size: 1rem;
  min-height: 48px;
}
input:focus, textarea:focus, select:focus { border-color: var(--pfp-blue); outline: 2px solid rgba(47,111,237,.14); outline-offset: 1px; }

/* Utility classes for the homepage Gutenberg build */
.pfp-hero { background: linear-gradient(135deg, #f7f9fc 0%, #eef4fb 100%); border-radius: 16px; padding: clamp(34px, 6vw, 72px); margin: 12px auto 64px; }
.pfp-hero h1 { margin-top: 0; max-width: 720px; }
.pfp-eyebrow { color: var(--pfp-blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.pfp-leadbox { background: #fff; border: 1px solid var(--pfp-border); border-radius: 12px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 12px 34px rgba(23,47,79,.08); }
.pfp-section { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 72px); }
.pfp-section-soft { background: var(--pfp-soft); border-radius: 14px; padding: clamp(28px, 5vw, 56px); }
.pfp-kicker { color: var(--pfp-blue); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pfp-card { height: 100%; background: #fff; border: 1px solid var(--pfp-border); border-radius: 10px; padding: 26px; }
.pfp-card h3 { margin-top: 0; }
.pfp-cta { background: var(--pfp-navy); color: #fff; border-radius: 14px; padding: clamp(30px, 6vw, 58px); }
.pfp-cta h2, .pfp-cta h3, .pfp-cta strong { color: #fff; }
.pfp-cta a:not(.wp-block-button__link) { color: #fff; }

/* Blog/archive cards */
.blog .ast-article-post,
.archive .ast-article-post,
.search .ast-article-post { border-bottom: 1px solid var(--pfp-border); padding-bottom: 40px; margin-bottom: 40px; }
.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.blog .entry-title a, .archive .entry-title a, .search .entry-title a { color: var(--pfp-navy); text-decoration: none; }
.blog .entry-title a:hover, .archive .entry-title a:hover, .search .entry-title a:hover { color: var(--pfp-blue); }
.entry-meta { color: var(--pfp-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--pfp-border); }
.site-footer, .site-footer a { font-size: .88rem; }
.site-footer a { color: var(--pfp-muted); }

/* Remove visual clutter */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post { box-shadow: none; }
.widget { margin-bottom: 2rem; }

@media (max-width: 782px) {
  body { font-size: 17px; }
  .ast-container { padding-left: 20px; padding-right: 20px; }
  .site-content { padding-top: 24px; }
  .pfp-hero { border-radius: 12px; margin-bottom: 42px; }
}
