/* Property Investor App - Blog stylesheet
   Brand colours derived from propertyinvestorapp.co.uk
   - Primary navy:   #032e5a
   - Deeper navy:    #0f2139
   - Teal accent:    #21ced9
   - Cyan:           #01c2d0
   - Bright cyan:    #00fcff
   - Neutral greys:  #a0a4ae #ededed #f8f8f8
*/

:root {
  --pia-navy: #032e5a;
  --pia-navy-deep: #0f2139;
  --pia-teal: #21ced9;
  --pia-cyan: #01c2d0;
  --pia-cyan-bright: #00fcff;
  --pia-grey: #a0a4ae;
  --pia-grey-light: #ededed;
  --pia-bg: #f8f8f8;
  --pia-white: #fff;
  --pia-text: #1a1a1a;
  --pia-text-muted: #555;
  --pia-shadow: 0 4px 24px rgba(50, 50, 93, 0.1);
  --pia-radius: 8px;
  --pia-max-width: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--pia-text);
  background: var(--pia-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--pia-navy);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover, a:focus { color: var(--pia-cyan); }

h1, h2, h3, h4, h5, h6 {
  color: var(--pia-navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.4em 0 .6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

/* Layout */
.container {
  max-width: var(--pia-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--pia-navy);
  color: var(--pia-white);
  padding: 18px 0;
  box-shadow: var(--pia-shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pia-white);
}
.site-logo__icon {
  width: 36px;
  height: 36px;
  display: block;
}
.site-logo__text {
  color: var(--pia-white);
  font-size: 1.25rem;
  letter-spacing: .3px;
  line-height: 1;
  font-weight: 400;
}
.site-logo__text strong {
  font-weight: 700;
}
.site-logo:hover .site-logo__text { color: var(--pia-teal); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--pia-white);
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a:hover, .site-nav a:focus { color: var(--pia-teal); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--pia-navy) 0%, var(--pia-navy-deep) 100%);
  color: var(--pia-white);
  padding: 60px 0 70px;
  text-align: center;
}
.hero h1 {
  color: var(--pia-white);
  font-size: 2.4rem;
  margin: 0 0 12px;
}
.hero p {
  color: var(--pia-grey-light);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Card grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0 60px;
}
.post-card {
  background: var(--pia-white);
  border-radius: var(--pia-radius);
  box-shadow: var(--pia-shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(50, 50, 93, 0.15);
}
.post-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__meta {
  font-size: .82rem;
  color: var(--pia-grey);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  font-weight: 600;
}
.post-card__title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  line-height: 1.3;
}
.post-card__title a { color: var(--pia-navy); }
.post-card__title a:hover { color: var(--pia-cyan); }
.post-card__excerpt {
  color: var(--pia-text-muted);
  font-size: .96rem;
  margin: 0 0 16px;
  flex: 1;
}
.post-card__readmore {
  color: var(--pia-cyan);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.post-card__readmore::after { content: " →"; }

/* Article (single blog post) */
.article {
  background: var(--pia-white);
  margin: 40px auto 60px;
  padding: 48px 44px;
  border-radius: var(--pia-radius);
  box-shadow: var(--pia-shadow);
  max-width: 800px;
}
.article__meta {
  color: var(--pia-grey);
  font-size: .9rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
}
.article__title {
  font-size: 2.2rem;
  margin: 0 0 18px;
  line-height: 1.2;
}
.article__lead {
  font-size: 1.2rem;
  color: var(--pia-text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}
.article h2 {
  font-size: 1.55rem;
  margin-top: 1.8em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pia-grey-light);
}
.article h3 { font-size: 1.2rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.article blockquote {
  border-left: 4px solid var(--pia-teal);
  background: var(--pia-bg);
  padding: 16px 22px;
  margin: 24px 0;
  color: var(--pia-text-muted);
  font-style: italic;
}
.article a { color: var(--pia-cyan); border-bottom: 1px solid transparent; }
.article a:hover { border-bottom-color: var(--pia-cyan); }

/* Category tags above article title */
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  list-style: none;
  padding: 0;
}
.article__tags li {
  background: var(--pia-teal);
  color: var(--pia-navy);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Author byline */
.article__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin: 18px 0 28px;
  border-top: 1px solid var(--pia-grey-light);
  border-bottom: 1px solid var(--pia-grey-light);
}
.article__author-name {
  font-weight: 700;
  color: var(--pia-navy);
}
.article__author-bio {
  font-size: .88rem;
  color: var(--pia-text-muted);
  margin: 0;
}

/* Numbered section headings (h2 inside an article get an auto counter when wrapped) */
.article__body { counter-reset: section; }
.article__body > h2 {
  counter-increment: section;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.article__body > h2::before {
  content: counter(section);
  color: var(--pia-teal);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  min-width: 38px;
}

/* Pull quote (used for emphatic one-liners) */
.pullquote {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--pia-navy);
  font-weight: 700;
  border-left: 5px solid var(--pia-teal);
  background: linear-gradient(90deg, rgba(33,206,217,0.08) 0%, transparent 100%);
  padding: 20px 26px;
  margin: 28px 0;
  border-radius: 0 var(--pia-radius) var(--pia-radius) 0;
}
.pullquote em { color: var(--pia-cyan); font-style: normal; }

/* "Arsh's Investor View" call-out box */
.arsh-view {
  background: var(--pia-navy);
  color: var(--pia-white);
  padding: 28px 32px;
  border-radius: var(--pia-radius);
  margin: 32px 0;
  position: relative;
}
.arsh-view h2 { color: var(--pia-teal); margin-top: 0; }
.arsh-view h2::before { color: var(--pia-white) !important; }
.arsh-view p { color: var(--pia-grey-light); }
.arsh-view p:last-child { margin-bottom: 0; }

/* Key Takeaways highlight box */
.takeaways {
  background: var(--pia-bg);
  border-left: 4px solid var(--pia-cyan);
  padding: 22px 28px;
  border-radius: 0 var(--pia-radius) var(--pia-radius) 0;
  margin: 28px 0;
}
.takeaways h2 { margin-top: 0; }
.takeaways ul { margin-bottom: 0; }

/* FAQ section */
.faq h2 { border-bottom: none; }
.faq details {
  background: var(--pia-white);
  border: 1px solid var(--pia-grey-light);
  border-radius: var(--pia-radius);
  padding: 14px 22px;
  margin-bottom: 12px;
}
.faq details[open] { box-shadow: var(--pia-shadow); }
.faq summary {
  font-weight: 700;
  color: var(--pia-navy);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pia-cyan);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 4px; color: var(--pia-text-muted); }

/* App download buttons (App Store / Play Store) */
.app-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
  align-items: center;
}
.app-buttons a {
  display: inline-flex;
  align-items: center;
  transition: transform .15s ease, opacity .15s ease;
}
.app-buttons a:hover { transform: translateY(-2px); opacity: .9; }
.app-buttons__apple,
.app-buttons__google {
  height: 48px;
  width: auto;
  display: block;
}

/* Back link */
.back-link {
  display: inline-block;
  margin: 20px 0;
  color: var(--pia-white);
  font-weight: 600;
  font-size: .92rem;
}
.back-link::before { content: "← "; }
.back-link:hover, .back-link:focus { color: var(--pia-teal); }

/* CTA box (call to action inside articles) */
.cta {
  background: linear-gradient(135deg, var(--pia-navy) 0%, var(--pia-cyan) 100%);
  color: var(--pia-white);
  padding: 28px 32px;
  border-radius: var(--pia-radius);
  margin: 32px 0;
  text-align: center;
}
.cta h3 { color: var(--pia-white); margin-top: 0; }
.cta p { color: var(--pia-grey-light); }
.cta a.btn {
  display: inline-block;
  background: var(--pia-white);
  color: var(--pia-navy);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .5px;
}
.cta a.btn:hover { background: var(--pia-teal); color: var(--pia-white); }

/* Footer */
.site-footer {
  background: var(--pia-navy-deep);
  color: var(--pia-grey-light);
  padding: 40px 0 30px;
  margin-top: 40px;
  font-size: .92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer h4 {
  color: var(--pia-white);
  margin: 0 0 8px;
  font-size: 1rem;
}
.site-footer a { color: var(--pia-teal); }
.site-footer a:hover { color: var(--pia-cyan-bright); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 26px;
  padding-top: 18px;
  text-align: center;
  width: 100%;
  color: var(--pia-grey);
  font-size: .85rem;
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .hero { padding: 44px 0 50px; }
  .hero h1 { font-size: 1.8rem; }
  .article { padding: 28px 22px; }
  .article__title { font-size: 1.6rem; }
  .site-nav ul { gap: 14px; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--pia-navy);
  color: var(--pia-white);
  padding: 18px 22px;
  border-radius: var(--pia-radius);
  box-shadow: 0 10px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: .92rem;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; }
.cookie-banner__text a { color: var(--pia-teal); text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner__btn {
  background: transparent;
  color: var(--pia-white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.cookie-banner__btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.cookie-banner__btn--primary {
  background: var(--pia-teal);
  border-color: var(--pia-teal);
  color: var(--pia-navy);
}
.cookie-banner__btn--primary:hover { background: var(--pia-cyan-bright); border-color: var(--pia-cyan-bright); color: var(--pia-navy); }
@media (min-width: 640px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* "Read next" related posts */
.related-posts {
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 2px solid var(--pia-grey-light);
}
.related-posts h2 {
  font-size: 1.3rem;
  margin: 0 0 18px;
  padding-bottom: 0;
  border-bottom: none;
}
.related-posts h2::before { content: none !important; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--pia-bg);
  border: 1px solid var(--pia-grey-light);
  border-radius: var(--pia-radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: block;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pia-shadow);
  border-color: var(--pia-teal);
}
.related-card__meta {
  color: var(--pia-grey);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.related-card__title {
  color: var(--pia-navy);
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
}

/* Tag chips as links */
.article__tags a {
  color: var(--pia-navy);
  text-decoration: none;
}
.article__tags a:hover { text-decoration: underline; }

/* Author byline link */
.article__author-name a {
  color: var(--pia-navy);
  text-decoration: none;
}
.article__author-name a:hover { color: var(--pia-cyan); }

/* Print */
@media print {
  .site-header, .site-footer, .cta, .back-link, .cookie-banner { display: none; }
  .article { box-shadow: none; padding: 0; }
}
