/* ==========================================================================
   ADOPTY AI — SHARED SITE STYLES
   Single source of truth for NEW pages (blog, service pages, generic pages).
   Link it in a page <head> with:
     <link rel="stylesheet" href="styles.css">          (root pages)
     <link rel="stylesheet" href="../styles.css">       (pages in /blog/ etc.)

   NOTE: The existing V2 pages (adopty_homepage_v2.html, adopty_health-clinics_v2.html)
   keep their own inline CSS and do NOT use this file. This file is extracted from the
   V2 design so anything linking it matches the V2 look exactly. See STYLE-GUIDE.md.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root{
  /* Orange accent scale */
  --orange-50:#FBEEE7; --orange-100:#F5D3BF; --orange-300:#E8A47C;
  --orange-500:#D97757; --orange-600:#C15F3F; --orange-700:#9C4A31;
  /* Neutrals / backgrounds (the blueish page background is --cream) */
  --cream:#F4F4F9; --cream-2:#E4E6ED; --card:#FFFFFF;
  /* Ink (text) */
  --ink:#211C16; --ink-2:#5B5347; --ink-3:#8C8375;
  /* Lines / borders */
  --line:#E2E4EB; --line-strong:#CFD2DC;
  /* Shape */
  --radius:14px;
}

/* --- Reset & base -------------------------------------------------------- */
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  background:var(--cream); color:var(--ink); line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.serif{font-family:'Fraunces',serif;}
.wrap{max-width:1120px; margin:0 auto; padding:0 32px;}
a{color:inherit; text-decoration:none;}
section{padding:52px 0;}
h1,h2,h3{font-weight:500; line-height:1.15;}

/* --- Buttons ------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px; border-radius:999px; font-weight:600; font-size:15px;
  cursor:pointer; border:1px solid transparent; white-space:nowrap;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn:active{transform:translateY(0) scale(.98);}
.btn-primary{background:var(--orange-500); color:#fff;}
.btn-primary:hover{background:var(--orange-600); box-shadow:0 14px 24px -12px rgba(193,95,63,.55);}
.btn-ghost{background:transparent; color:var(--ink); border-color:var(--line-strong);}
.btn-ghost:hover{border-color:var(--ink-3); box-shadow:0 10px 20px -14px rgba(0,0,0,.25);}

/* --- Eyebrow label ------------------------------------------------------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
  color:var(--orange-700); background:var(--orange-50); padding:6px 14px; border-radius:999px;
  letter-spacing:.01em; border:1px solid var(--orange-500); transition:transform .15s ease, box-shadow .15s ease;
}
.eyebrow:hover{transform:translateY(-2px); box-shadow:0 8px 16px -10px rgba(193,95,63,.5);}

/* --- Section heading block ---------------------------------------------- */
.section-head{max-width:600px; margin:0 0 48px;}
.section-head.center{max-width:640px; margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:34px; margin:14px 0 12px;}
.section-head p{font-size:17px; color:var(--ink-2);}

/* --- Small dot marker (used in lists / badges) -------------------------- */
.dot{width:7px; height:7px; border-radius:50%; background:var(--orange-500); display:inline-block;}

/* --- Header / nav (shared) ---------------------------------------------- */
header{
  position:sticky; top:0; z-index:50; background:rgba(244,244,249,.92);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--line);
}
nav{display:flex; align-items:center; justify-content:space-between; padding:18px 0;}
.logo{display:flex; align-items:flex-end; gap:9px; font-weight:600; font-size:21px; line-height:1;}
header .logo{position:relative; top:-1px;}
.logo-mark{
  width:21px; height:21px; border-radius:7px; background:var(--orange-500); position:relative;
  display:inline-block; flex-shrink:0; transition:transform .4s cubic-bezier(.34,1.56,.64,1);
}
.logo-mark:after{content:""; position:absolute; inset:7px; border-radius:3px; background:#fff; opacity:.9;}
.logo:hover .logo-mark{transform:rotate(25deg);}
.nav-links{display:flex; gap:32px; font-size:15px; font-weight:500; color:var(--ink-2);}
.nav-links a:hover{color:var(--ink);}
.nav-links a.active{color:var(--ink);}
.nav-cta{display:flex; align-items:center; gap:14px;}
@media(max-width:900px){ .nav-links{display:none;} }

/* --- CTA banner (shared) ------------------------------------------------ */
.cta-banner{background:var(--orange-500); border-radius:24px; padding:56px; text-align:center; color:#fff;}
.cta-banner h2{font-size:30px; color:#fff; margin-bottom:10px; font-weight:500;}
.cta-banner p{color:var(--orange-50); font-size:16px; margin-bottom:28px;}
.cta-banner .btn-ghost{background:#fff; color:var(--orange-700); border-color:#fff;}

/* --- Footer (shared) ----------------------------------------------------- */
footer{padding:56px 0 40px; border-top:1px solid var(--line);}
.footer-top{display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; margin-bottom:20px;}
.footer-links{display:flex; gap:28px; font-size:14px; color:var(--ink-2);}
.footer-bottom{font-size:13px; color:var(--ink-3); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

/* --- Mobile nav (hamburger, CSS-only) + mobile footer --- */
.nav-toggle-cb{display:none;}
.nav-toggle{display:none; cursor:pointer; font-size:26px; line-height:1; color:var(--ink); padding:2px 6px; user-select:none;}
.mobile-menu{display:none; flex-direction:column; padding:6px 0 14px;}
.mobile-menu a{padding:12px 4px; font-size:16px; font-weight:500; color:var(--ink-2); border-top:1px solid var(--line);}
.mobile-menu a:hover{color:var(--ink);}
.nav-toggle-cb:checked ~ .mobile-menu{display:flex;}
@media(max-width:900px){ .nav-toggle{display:inline-flex; align-items:center;} }
@media(min-width:901px){ .nav-toggle-cb:checked ~ .mobile-menu{display:none;} }
@media(max-width:600px){
  .footer-top{flex-direction:column; align-items:flex-start; gap:20px;}
  .footer-links{flex-direction:column; gap:12px;}
}

/* ==========================================================================
   BLOG — listing page
   ========================================================================== */
.blog-hero{padding:56px 0 12px; text-align:center;}
.blog-hero h1{font-size:44px; font-weight:500; line-height:1.12; margin:16px 0 12px;}
.blog-hero p{font-size:18px; color:var(--ink-2); max-width:560px; margin:0 auto;}

.posts{padding:40px 0 20px;}
.post-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
@media(max-width:900px){ .post-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:620px){ .post-grid{grid-template-columns:1fr;} }

.post-card{
  display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line);
  border-radius:18px; overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover{transform:translateY(-4px); box-shadow:0 26px 50px -30px rgba(80,50,20,.4); border-color:var(--line-strong);}
.post-card-thumb{
  height:150px; background:linear-gradient(135deg, var(--orange-300), var(--orange-600));
  position:relative; display:flex; align-items:flex-end; padding:16px;
}
.post-card-thumb .kicker{font-size:12px; font-weight:700; color:#fff; letter-spacing:.03em; text-transform:uppercase; opacity:.95;}
.post-card-body{padding:22px 22px 24px; display:flex; flex-direction:column; flex:1;}
.post-card .card-tags{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px;}
.post-card h3{font-size:19px; font-weight:600; line-height:1.3; margin-bottom:10px;}
.post-card p{font-size:14.5px; color:var(--ink-2); margin-bottom:18px; flex:1;}
.post-card .card-meta{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-3);}
.post-card .card-meta .sep{width:3px; height:3px; border-radius:50%; background:var(--ink-3);}

/* Featured post (first / newest, full width) */
.featured{
  display:grid; grid-template-columns:1.1fr .9fr; gap:0; background:var(--card);
  border:1px solid var(--line); border-radius:20px; overflow:hidden; margin-bottom:26px;
  transition:transform .18s ease, box-shadow .18s ease;
}
.featured:hover{transform:translateY(-3px); box-shadow:0 28px 56px -30px rgba(80,50,20,.4);}
.featured-thumb{background:linear-gradient(135deg, var(--orange-300), var(--orange-600)); min-height:280px; display:flex; align-items:flex-end; padding:24px;}
.featured-thumb .kicker{font-size:12px; font-weight:700; color:#fff; letter-spacing:.03em; text-transform:uppercase;}
.featured-body{padding:38px 40px; display:flex; flex-direction:column; justify-content:center;}
.featured-body .card-tags{display:flex; gap:7px; flex-wrap:wrap; margin-bottom:14px;}
.featured-body h2{font-size:28px; font-weight:500; line-height:1.2; margin-bottom:12px;}
.featured-body p{font-size:15.5px; color:var(--ink-2); margin-bottom:20px;}
.featured-body .card-meta{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-3);}
.featured-body .card-meta .sep{width:3px; height:3px; border-radius:50%; background:var(--ink-3);}
@media(max-width:760px){ .featured{grid-template-columns:1fr;} .featured-thumb{min-height:170px;} .featured-body{padding:30px 26px;} }

/* Tag chips (shared by cards and article head) */
.tag-chip{
  font-size:12px; font-weight:600; color:var(--orange-700); background:var(--orange-50);
  padding:5px 12px; border-radius:999px;
}

/* ==========================================================================
   BLOG — single post / article
   ========================================================================== */
.article{padding:52px 0 40px;}
.article-head{max-width:760px; margin:0 auto 40px;}
.breadcrumb{font-size:13px; color:var(--ink-3); margin-bottom:22px;}
.breadcrumb a:hover{color:var(--ink);}
.post-tags{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px;}
.article-head h1{font-size:42px; font-weight:500; line-height:1.15; letter-spacing:-.01em; margin-bottom:18px;}
.post-meta{display:flex; align-items:center; gap:14px; font-size:14px; color:var(--ink-3);}
.post-meta .author{display:flex; align-items:center; gap:9px; color:var(--ink-2); font-weight:500;}
.author-avatar{
  width:34px; height:34px; border-radius:50%; background:var(--orange-500); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0;
}
.post-meta .sep{width:3px; height:3px; border-radius:50%; background:var(--ink-3); display:inline-block;}

/* Prose body — post content lives inside .article-body */
.article-body{max-width:720px; margin:0 auto; font-size:17.5px; color:var(--ink-2);}
.article-body > p{margin-bottom:24px;}
.article-body h2{font-family:'Fraunces',serif; font-size:28px; font-weight:500; color:var(--ink); margin:44px 0 16px; line-height:1.2;}
.article-body h3{font-size:21px; font-weight:600; color:var(--ink); margin:34px 0 12px;}
.article-body ul, .article-body ol{margin:0 0 24px 0; padding-left:0; list-style:none;}
.article-body ul li{position:relative; padding-left:22px; margin-bottom:12px;}
.article-body ul li:before{content:""; position:absolute; left:0; top:11px; width:7px; height:7px; border-radius:50%; background:var(--orange-500);}
.article-body ol{counter-reset:li; padding-left:0;}
.article-body ol li{counter-increment:li; position:relative; padding-left:28px; margin-bottom:12px;}
.article-body ol li:before{content:counter(li); position:absolute; left:0; top:0; font-family:'Fraunces',serif; color:var(--orange-600); font-weight:600;}
.article-body a{color:var(--orange-600); font-weight:600; border-bottom:1px solid var(--orange-300);}
.article-body a:hover{color:var(--orange-700);}
.article-body strong{color:var(--ink); font-weight:600;}
.article-body blockquote{
  border-left:3px solid var(--orange-500); padding:6px 0 6px 22px; margin:0 0 26px;
  font-family:'Fraunces',serif; font-size:21px; color:var(--ink); line-height:1.4;
}
.article-body img{max-width:100%; border-radius:var(--radius); border:1px solid var(--line); margin:12px 0 28px;}
.article-body figure{margin:12px 0 28px;}
.article-body figcaption{font-size:13.5px; color:var(--ink-3); margin-top:8px; text-align:center;}
.article-body hr{border:none; border-top:1px solid var(--line); margin:40px 0;}

/* Callout box for inside an article */
.callout{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:24px 26px; margin:0 0 28px; box-shadow:0 18px 40px -30px rgba(80,50,20,.3);
}
.callout .callout-label{font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--orange-600); margin-bottom:10px;}
.callout p{margin-bottom:0; color:var(--ink-2);}

.post-footer{max-width:720px; margin:48px auto 0; padding-top:28px; border-top:1px solid var(--line);}
.back-link{font-size:14px; font-weight:600; color:var(--orange-600);}
.back-link:hover{color:var(--orange-700);}

/* --- Small-screen article tweaks ---------------------------------------- */
@media(max-width:640px){
  .blog-hero h1{font-size:34px;}
  .article-head h1{font-size:32px;}
  .article-body{font-size:16.5px;}
  .cta-banner{padding:40px 28px;}
}
