/* Styles — The PTSD Dude | Modern, minimalist, beach-vibe */

:root {
  /* Palette B with subtle accents */
  --warm-white: #F9F4EF;
  --sage: #E8E5DA;
  --seafoam: #CFE9E4;
  --coastal-blue: #9BC4CE;
  --ocean-depth: #2F4E5E;
  /* Accent from Palette A */
  --deep-teal: #1F5D66;

  --text: #1a2a2d;
  --muted: #5a6b6e;
  --bg: var(--warm-white);

  --radius: 16px;
  --shadow: 0 10px 30px rgba(59, 96, 100, 0.12);
  --shadow-soft: 0 6px 18px rgba(59, 96, 100, 0.10);

  --container: 1120px;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(160deg, var(--warm-white) 0%, #F1EFE7 100%);
}

h1, h2, h3, h4 { font-family: Outfit, Inter, system-ui; letter-spacing: 0.2px; }
h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 10px; }
h2 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
h4 { font-size: 1rem; margin: 0; }
p { line-height: 1.7; color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section .section-head { margin-bottom: 28px; }
.lead { font-size: 1.125rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(8px); background: rgba(250, 249, 246, 0.65); border-bottom: 1px solid rgba(59, 96, 100, 0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ocean-depth); font-weight: 600; }
.brand-mark { color: var(--coastal-blue); font-size: 18px; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover { background: rgba(231, 241, 242, 0.6); }
.nav-links a.active { background: linear-gradient(160deg, var(--coastal-blue), var(--seafoam)); color: #0d2c31; border: 1px solid rgba(13,44,49,0.08); border-radius: 999px; box-shadow: var(--shadow-soft); font-weight: 600; padding: 10px 16px; }
.nav-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 12px 20px; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: linear-gradient(160deg, var(--coastal-blue), var(--seafoam)); color: #0d2c31; border-color: rgba(13,44,49,0.08); }
.btn-ghost { background: rgba(231, 241, 242, 0.6); color: var(--ocean-depth); border-color: rgba(59, 96, 100, 0.12); }
.btn-small { padding: 8px 14px; }

/* Hero */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero.compact { padding: 96px 0 28px; }
.hero-ambient { position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 18% 22%, rgba(207, 233, 228, 0.35) 0%, rgba(207, 233, 228, 0.0) 60%),
  radial-gradient(60% 60% at 82% 28%, rgba(155, 196, 206, 0.28) 0%, rgba(155, 196, 206, 0.0) 60%),
  radial-gradient(50% 50% at 50% 100%, rgba(244, 230, 216, 0.28) 0%, rgba(244, 230, 216, 0.0) 60%);
  pointer-events: none;
  z-index: 1;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.hero-content { position: relative; z-index: 2; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 140px; z-index: 1; animation: bob 8s ease-in-out infinite; }
.hero-wave svg { display: block; width: 100%; height: 100%; }
.hero-wave path { fill: rgba(207, 233, 228, 0.75); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero-bg img { transition: transform .6s ease; }
.hero .lead { max-width: 720px; }
.hero-actions { display: flex; gap: 12px; margin: 18px 0; }
.hero-meta { display: flex; gap: 16px; color: var(--muted); }
.hero-meta a { color: var(--ocean-depth); }

/* Cards & Panels */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(59, 96, 100, 0.18); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.panel { background: linear-gradient(180deg, rgba(231, 241, 242, 0.8), rgba(250, 249, 246, 0.80)); border: 1px solid rgba(59, 96, 100, 0.10); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.panel .actions { margin-top: 8px; display: flex; gap: 10px; }
.panel.add-ons { margin-top: 26px; }

/* Services */
.service-grid { grid-template-columns: repeat(2, 1fr); }
.service-card .price { color: var(--ocean-depth); font-weight: 600; }
.service-thumb { height: 130px; border-radius: var(--radius); margin: -2px -2px 12px; background-size: cover; background-position: center; box-shadow: var(--shadow-soft); }
.line-list { list-style: none; padding: 0; margin: 0; }
.line-list li { padding: 10px 0; border-bottom: 1px dashed rgba(59, 96, 100, 0.15); }
.line-list li:last-child { border-bottom: none; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.blog-card .thumb { height: 160px; background-size: cover; background-position: center; }
.blog-card .body { padding: 18px; }
.blog-card .link { color: var(--ocean-depth); text-decoration: none; font-weight: 600; }
.categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip { border: 1px solid rgba(59, 96, 100, 0.16); background: #fff; color: var(--ocean-depth); border-radius: 999px; padding: 8px 12px; }

/* Bio */
.container.narrow { max-width: 860px; }
.bio-img { aspect-ratio: 16 / 9; width: 100%; height: auto; max-height: 360px; border-radius: var(--radius); margin-bottom: 18px; background:
  linear-gradient(180deg, rgba(183, 212, 214, 0.25), rgba(250, 249, 246, 0.90)),
  url('Asset/Hero.jpg');
  background-size: cover; background-position: center 18%; background-repeat: no-repeat; box-shadow: var(--shadow-soft);
}
.prose a { color: var(--ocean-depth); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.bio-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.bio-photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); background: #fff; }
.bio-photo img { width: 100%; height: auto; display: block; transform: scale(1.02); transition: transform .35s ease, filter .35s ease; }
.bio-photo:hover img { transform: scale(1.06); filter: saturate(110%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.contact-form .form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.contact-form input, .contact-form textarea { border: 1px solid rgba(59, 96, 100, 0.16); border-radius: 12px; padding: 12px 14px; font: inherit; }
.contact-form .form-actions { display: flex; align-items: center; gap: 12px; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; }

/* Footer */
.site-footer { padding: 32px 0 26px; border-top: 1px solid rgba(59, 96, 100, 0.08); background: rgba(250, 249, 246, 0.75); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: start; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--ocean-depth); }
footer .container.tiny { border-top: 1px solid rgba(59, 96, 100, 0.12); padding-top: 16px; margin-top: 16px; font-size: 0.9rem; color: var(--sand-drift); }

/* Footer Reviews */
.footer-reviews { margin-top: 16px; }
.footer-reviews details { border: 1px solid rgba(59, 96, 100, 0.12); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 12px 16px; }
.footer-reviews summary { font-weight: 600; color: var(--ocean-depth); cursor: pointer; }
.footer-reviews summary::-webkit-details-marker { display: none; }
.footer-reviews .review { margin-top: 12px; }
.footer-reviews h5 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.footer-reviews p { margin: 0 0 10px; }
.footer-reviews ul { margin: 8px 0 0; padding-left: 18px; }

/* Reveal & Motion */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* add fade-in to common surfaces */
.panel, .card, .blog-card { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.panel.visible, .card.visible, .blog-card.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; background: transparent; border: 1px solid rgba(59,96,100,0.18); border-radius: 10px; padding: 6px 10px; }
  .nav-links { display: none; position: absolute; top: 64px; right: 12px; background: #fff; border: 1px solid rgba(59, 96, 100, 0.12); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 48px; }
  .hero.compact { padding: 92px 0 28px; }
  .bio-gallery { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(13, 25, 29, 0.75); backdrop-filter: blur(2px); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.lightbox-backdrop.open { opacity: 1; pointer-events: auto; }
.lightbox-dialog { position: fixed; inset: 0; display: grid; place-items: center; z-index: 51; pointer-events: none; }
.lightbox-content { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transform: scale(0.96); opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: auto; }
.lightbox-content img { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lightbox-dialog.open .lightbox-content { transform: scale(1); opacity: 1; }
.lightbox-close { position: fixed; top: 18px; right: 18px; z-index: 52; border: none; border-radius: 999px; background: rgba(255,255,255,0.9); color: #0d2c31; padding: 10px 14px; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-soft); }

.bio-photo img { cursor: zoom-in; }

/* Footer */
.site-footer { padding: 32px 0 26px; border-top: 1px solid rgba(59, 96, 100, 0.08); background: rgba(250, 249, 246, 0.75); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: start; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--ocean-depth); }
footer .container.tiny { border-top: 1px solid rgba(59, 96, 100, 0.12); padding-top: 16px; margin-top: 16px; font-size: 0.9rem; color: var(--sand-drift); }

/* Footer Reviews */
.footer-reviews { margin-top: 16px; }
.footer-reviews details { border: 1px solid rgba(59, 96, 100, 0.12); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 12px 16px; }
.footer-reviews summary { font-weight: 600; color: var(--ocean-depth); cursor: pointer; }
.footer-reviews summary::-webkit-details-marker { display: none; }
.footer-reviews .review { margin-top: 12px; }
.footer-reviews h5 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.footer-reviews p { margin: 0 0 10px; }
.footer-reviews ul { margin: 8px 0 0; padding-left: 18px; }

/* Reveal & Motion */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* add fade-in to common surfaces */
.panel, .card, .blog-card { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.panel.visible, .card.visible, .blog-card.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; background: transparent; border: 1px solid rgba(59,96,100,0.18); border-radius: 10px; padding: 6px 10px; }
  .nav-links { display: none; position: absolute; top: 64px; right: 12px; background: #fff; border: 1px solid rgba(59, 96, 100, 0.12); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 48px; }
  .hero.compact { padding: 92px 0 28px; }
  .bio-gallery { grid-template-columns: 1fr; }
}