/* PolishFrame — Warm Editorial Photo Editing Guide
   Palette: Cream #FDF8F3, Forest Green #2D6A4F, Gold #D4A843, Charcoal #333, Sage #E8F0E8
   Fonts: Merriweather (headings) + Lato (body)
*/

/* ── Base ─────────────────────────────────────────── */
:root {
  --pf-cream:   #FDF8F3;
  --pf-green:   #2D6A4F;
  --pf-green-d: #245740;
  --pf-gold:    #D4A843;
  --pf-gold-l:  #E8C76A;
  --pf-charcoal:#333333;
  --pf-sage:    #E8F0E8;
  --pf-white:   #FFFFFF;
  --pf-border:  #D9D0C7;
  --pf-shadow:  rgba(45,106,79,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--pf-charcoal);
  background: var(--pf-cream);
  line-height: 1.75;
  font-size: 1rem;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--pf-green);
  line-height: 1.3;
}

a { color: var(--pf-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pf-gold); }

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

/* ── Navbar ───────────────────────────────────────── */
.pf-navbar {
  background: var(--pf-white);
  border-bottom: 2px solid var(--pf-sage);
  padding: .75rem 0;
}
.pf-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--pf-green);
}
.pf-navbar .navbar-brand:hover { color: var(--pf-gold); }
.pf-navbar .navbar-brand svg { width: 36px; height: 36px; }
.pf-navbar .nav-link {
  font-weight: 600;
  color: var(--pf-charcoal);
  padding: .5rem 1rem;
  transition: color .2s;
}
.pf-navbar .nav-link:hover,
.pf-navbar .nav-link.active { color: var(--pf-green); }
.pf-navbar .navbar-toggler { border-color: var(--pf-green); }
.pf-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232D6A4F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ──────────────────────────────────────────── */
.pf-hero {
  background: linear-gradient(160deg, var(--pf-cream) 0%, #F5EDE3 50%, var(--pf-sage) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.pf-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border: 3px solid var(--pf-gold);
  border-radius: 50%;
  opacity: .15;
}
.pf-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: var(--pf-green);
  border-radius: 50%;
  opacity: .05;
}
.pf-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}
.pf-hero .lead {
  font-size: 1.25rem;
  color: #555;
  max-width: 600px;
}
@media(max-width:768px) {
  .pf-hero { padding: 3rem 0 2.5rem; }
  .pf-hero h1 { font-size: 2rem; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn-pf-primary {
  background: var(--pf-green);
  color: var(--pf-white);
  border: none;
  padding: .65rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-pf-primary:hover { background: var(--pf-green-d); color: var(--pf-white); transform: translateY(-1px); }

.btn-pf-outline {
  background: transparent;
  color: var(--pf-green);
  border: 2px solid var(--pf-green);
  padding: .6rem 1.7rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-pf-outline:hover { background: var(--pf-green); color: var(--pf-white); }

/* ── Trust Bar ────────────────────────────────────── */
.pf-trust-bar {
  background: var(--pf-white);
  border-top: 2px solid var(--pf-sage);
  border-bottom: 2px solid var(--pf-sage);
  padding: 1.5rem 0;
}
.pf-trust-item {
  text-align: center;
  font-weight: 700;
  color: var(--pf-green);
  font-size: 1.05rem;
}
.pf-trust-item small {
  display: block;
  font-weight: 400;
  color: #777;
  font-size: .85rem;
}

/* ── Section Utilities ────────────────────────────── */
.pf-section { padding: 4rem 0; }
.pf-section-sage { background: var(--pf-sage); }
.pf-section-cream { background: var(--pf-cream); }
.pf-section-white { background: var(--pf-white); }

.pf-section-title {
  font-size: 2rem;
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
}
.pf-section-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--pf-gold);
  margin-top: .5rem;
}
.pf-section-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ── Cards ────────────────────────────────────────── */
.pf-card {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 16px var(--pf-shadow);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px var(--pf-shadow); }
.pf-card-sage { background: var(--pf-sage); border-color: #c8d8c8; }

.pf-card-icon {
  width: 56px; height: 56px;
  background: var(--pf-sage);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.pf-card-icon svg { width: 28px; height: 28px; fill: var(--pf-green); }

.pf-card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.pf-card p { color: #555; }

/* ── Featured Article ─────────────────────────────── */
.pf-featured {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px var(--pf-shadow);
}
.pf-featured h3 { font-size: 1.5rem; }
.pf-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pf-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--pf-green);
  color: var(--pf-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: 'Merriweather', serif;
}

/* ── Benefits ─────────────────────────────────────── */
.pf-benefit-icon {
  width: 48px; height: 48px;
  background: var(--pf-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}
.pf-benefit-icon svg { width: 24px; height: 24px; fill: var(--pf-white); }

/* ── CTA / Email Signup ───────────────────────────── */
.pf-cta {
  background: linear-gradient(135deg, var(--pf-green) 0%, var(--pf-green-d) 100%);
  color: var(--pf-white);
  border-radius: 14px;
  padding: 3rem;
}
.pf-cta h2 { color: var(--pf-white); }
.pf-cta .form-control {
  border: none;
  border-radius: 6px;
  padding: .7rem 1rem;
}
.pf-cta .btn-pf-gold {
  background: var(--pf-gold);
  color: var(--pf-charcoal);
  border: none;
  padding: .7rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  transition: background .2s;
}
.pf-cta .btn-pf-gold:hover { background: var(--pf-gold-l); }

/* ── Footer ───────────────────────────────────────── */
.pf-footer {
  background: var(--pf-charcoal);
  color: #CCC;
  padding: 3rem 0 1.5rem;
}
.pf-footer h5 { color: var(--pf-white); font-size: 1.1rem; margin-bottom: 1rem; }
.pf-footer a { color: #BBB; transition: color .2s; }
.pf-footer a:hover { color: var(--pf-gold); }
.pf-footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: .9rem;
  color: #999;
}

/* ── Cookie Banner ────────────────────────────────── */
.pf-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--pf-charcoal);
  color: #DDD;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 9999;
  font-size: .9rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.pf-cookie-banner a { color: var(--pf-gold); text-decoration: underline; }
.pf-cookie-banner .btn-sm {
  background: var(--pf-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .4rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── Article / Guide Pages ────────────────────────── */
.pf-article { padding: 3rem 0 4rem; }
.pf-article h1 { font-size: 2.4rem; margin-bottom: 1rem; }
.pf-article h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.pf-article h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .6rem; }
.pf-article p { margin-bottom: 1.15rem; }
.pf-article ul, .pf-article ol { margin-bottom: 1.15rem; padding-left: 1.5rem; }
.pf-article li { margin-bottom: .4rem; }

.pf-breadcrumb {
  background: none;
  padding: .75rem 0;
  font-size: .9rem;
}
.pf-breadcrumb a { color: var(--pf-green); }
.pf-breadcrumb .separator { color: #AAA; margin: 0 .4rem; }

.pf-sidebar-card {
  background: var(--pf-sage);
  border: 1px solid #c8d8c8;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.pf-sidebar-card h4 { font-size: 1.1rem; margin-bottom: .75rem; }
.pf-sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.pf-sidebar-card li { margin-bottom: .5rem; }
.pf-sidebar-card a { color: var(--pf-green); font-weight: 600; }

/* ── Comparison Table ─────────────────────────────── */
.pf-table {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pf-border);
}
.pf-table thead { background: var(--pf-green); color: var(--pf-white); }
.pf-table thead th { font-weight: 700; padding: .85rem 1rem; border: none; }
.pf-table tbody td { padding: .75rem 1rem; border-color: var(--pf-border); vertical-align: middle; }
.pf-table tbody tr:nth-child(even) { background: var(--pf-sage); }

/* ── Contact Form ─────────────────────────────────── */
.pf-form .form-control,
.pf-form .form-select {
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  padding: .65rem 1rem;
}
.pf-form .form-control:focus,
.pf-form .form-select:focus {
  border-color: var(--pf-green);
  box-shadow: 0 0 0 .2rem rgba(45,106,79,.15);
}
.pf-form label {
  font-weight: 600;
  margin-bottom: .3rem;
}

/* ── Utility ──────────────────────────────────────── */
.text-gold { color: var(--pf-gold); }
.text-green { color: var(--pf-green); }
.bg-sage { background: var(--pf-sage); }

/* Gold decorative line */
.pf-gold-rule {
  width: 80px; height: 3px;
  background: var(--pf-gold);
  border: none;
  margin: 1.5rem auto;
}

@media(max-width:576px) {
  .pf-section { padding: 2.5rem 0; }
  .pf-cta { padding: 2rem 1.25rem; }
}
