/* Something Beautiful Civil Ceremonies — PHP port stylesheet
 * Mirrors the React/Tailwind design system. All colors via CSS vars.
 */
:root {
  --background: #fdf8fa;
  --foreground: #2a1f33;
  --card: #ffffff;
  --muted: #f1eaf2;
  --muted-foreground: #6e6177;
  --border: #e8dde9;
  --primary: #8a4fb5;          /* soft violet */
  --primary-foreground: #ffffff;
  --primary-glow: #c89bdf;
  --rose: #d869a3;
  --sky: #7ab8e0;
  --accent: #ecd6f0;
  --gradient-brand: linear-gradient(135deg, #d869a3, #8a4fb5, #7ab8e0);
  --gradient-soft: linear-gradient(180deg, #fdf8fa, #f4ebf6);
  --gradient-hero: linear-gradient(135deg, rgba(138,79,181,0.55), rgba(216,105,163,0.45) 50%, rgba(122,184,224,0.55));
  --shadow-soft: 0 10px 40px -10px rgba(138,79,181,0.25);
  --shadow-elegant: 0 20px 60px -20px rgba(138,79,181,0.35);
  --radius: 0.875rem;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-serif); letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.script { font-family: var(--font-script); color: var(--primary); }
.gradient-brand { background: var(--gradient-brand); }
.gradient-soft { background: var(--gradient-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: all .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow-elegant); }
.btn-light:hover { background: rgba(255,255,255,.9); }
.btn-outline { background: transparent; border-color: rgba(138,79,181,.4); color: var(--primary); }
.btn-outline:hover { background: rgba(138,79,181,.07); }
.btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253,248,250,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,221,233,.6);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { height: 48px; width: 48px; object-fit: contain; }
.brand-text { display: none; flex-direction: column; line-height: 1.1; }
@media (min-width: 640px) { .brand-text { display: flex; } }
.brand-text .a { font-family: var(--font-script); font-size: 1.4rem; color: var(--primary); }
.brand-text .b { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--muted-foreground); }

.nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a { font-size: .9rem; font-weight: 500; color: rgba(42,31,51,.8); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--primary); }

.mobile-toggle { display: inline-flex; padding: .5rem; background: transparent; border: 0; cursor: pointer; color: var(--foreground); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-nav { display: none; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .85rem 1rem; border-radius: .5rem; font-weight: 500; color: rgba(42,31,51,.85); }
.mobile-nav a:hover, .mobile-nav a.active { background: var(--accent); color: var(--primary); }

/* Sections */
.section { padding: 5rem 0; }
.section-soft { background: var(--gradient-soft); }
.section-hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-inner { position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 6rem 0; }
.hero-eyebrow { font-family: var(--font-script); font-size: 2rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero-title { color: #fff; font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 600; max-width: 820px; margin-top: .5rem; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-text { color: rgba(255,255,255,.95); font-size: 1.05rem; max-width: 640px; margin-top: 1.5rem; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.section-heading { max-width: 720px; margin: 0 auto; text-align: center; }
.section-heading .eyebrow { font-family: var(--font-script); font-size: 1.6rem; color: var(--primary); }
.section-heading h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); font-weight: 600; margin-top: .25rem; }
.section-heading p { color: var(--muted-foreground); font-size: 1.05rem; margin-top: 1rem; }

/* Generic content (rich text from admin) */
.rich { color: var(--foreground); font-size: 1rem; line-height: 1.75; }
.rich h1, .rich h2, .rich h3 { margin-top: 1.5em; margin-bottom: .5em; }
.rich h1 { font-size: 2.25rem; }
.rich h2 { font-size: 1.75rem; }
.rich h3 { font-size: 1.35rem; }
.rich p { margin: 0 0 1em; }
.rich ul, .rich ol { padding-left: 1.5rem; margin: 0 0 1em; }
.rich ul li, .rich ol li { margin-bottom: .35em; list-style: disc; }
.rich ol li { list-style: decimal; }
.rich a { color: var(--primary); text-decoration: underline; }
.rich strong { font-weight: 700; }
.rich em { font-style: italic; }
.rich blockquote { margin: 1.25rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--primary); background: var(--muted); border-radius: .5rem; color: var(--muted-foreground); }
.rich img { border-radius: 1rem; margin: 1rem 0; box-shadow: var(--shadow-soft); height: auto; }

/* Cards / grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 2rem; box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elegant); }
.card .icon { display: inline-flex; height: 56px; width: 56px; align-items: center; justify-content: center; border-radius: .9rem; background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-soft); margin-bottom: 1.25rem; font-size: 1.4rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted-foreground); font-size: .95rem; margin-top: .5rem; }
.card-bar { position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient-brand); }

.includes { margin-top: 1.5rem; }
.includes li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; padding: .25rem 0; color: rgba(42,31,51,.85); }
.includes li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* Two-column intro */
.two-col { display: grid; gap: 3rem; align-items: center; max-width: 1100px; margin: 0 auto; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col img { border-radius: 1.5rem; box-shadow: var(--shadow-elegant); aspect-ratio: 4/3; object-fit: cover; }
.two-col .img-wrap { position: relative; }
.two-col .img-wrap::before { content: ""; position: absolute; inset: -1rem; border-radius: 2rem; background: var(--gradient-brand); opacity: .2; filter: blur(40px); z-index: 0; }
.two-col .img-wrap img { position: relative; z-index: 1; }
.two-col h2 { font-size: clamp(1.85rem,3.5vw,3rem); }
.two-col p { color: var(--muted-foreground); margin-top: 1rem; font-size: 1.05rem; }

.feature-list { margin-top: 2rem; }
.feature-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .35rem 0; }
.feature-list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-brand); margin-top: .55rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3,1fr); grid-auto-rows: 260px; } }
.gallery figure { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-soft); margin: 0; height: 220px; }
@media (min-width: 900px) { .gallery figure { height: auto; } }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .span-2 { grid-column: span 1; }
@media (min-width: 900px) { .gallery .span-2 { grid-column: span 2; grid-row: span 2; } }

/* Testimonials */
.t-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; height: 100%; }
.t-card .qmark { font-size: 2rem; color: rgba(138,79,181,.4); font-family: var(--font-serif); line-height: 1; }
.t-card blockquote { margin: 1rem 0 0; flex: 1; font-size: 1rem; color: rgba(42,31,51,.9); }
.t-card figcaption { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.t-card figcaption .a { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.t-card figcaption .b { color: var(--muted-foreground); font-size: .9rem; margin-top: .15rem; }

/* CTA */
.cta { position: relative; overflow: hidden; max-width: 1100px; margin: 0 auto; border-radius: 1.5rem; background: var(--gradient-brand); padding: 4rem 2rem; text-align: center; color: #fff; box-shadow: var(--shadow-elegant); }
.cta .blob { position: absolute; width: 250px; height: 250px; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(60px); }
.cta .blob.l { top: -80px; left: -80px; }
.cta .blob.r { bottom: -80px; right: -80px; }
.cta .script { color: rgba(255,255,255,.9); font-size: 2rem; }
.cta h2 { color: #fff; font-size: clamp(1.85rem,3.5vw,3rem); margin-top: .25rem; }
.cta p { color: rgba(255,255,255,.85); margin: 1rem auto 0; max-width: 640px; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; position: relative; }

/* Contact */
.contact-grid { display: grid; gap: 3rem; max-width: 1100px; margin: 0 auto; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-box { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-soft); }
.info-box h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.info-box ul li { display: flex; gap: .75rem; align-items: flex-start; padding: .5rem 0; font-size: .95rem; color: var(--muted-foreground); }
.info-box ul li strong { display: block; color: var(--foreground); font-weight: 600; }
.info-box .pin { color: var(--primary); flex-shrink: 0; margin-top: .15rem; }
.info-box.brand-box { background: var(--gradient-brand); color: #fff; border: 0; }
.info-box.brand-box .script { color: rgba(255,255,255,.95); font-size: 1.6rem; }
.info-box.brand-box p { color: rgba(255,255,255,.9); margin-top: .5rem; font-size: .95rem; }

.form { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-soft); }
.form .row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .5rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .65rem .85rem; font-size: .95rem;
  border: 1px solid var(--border); border-radius: .55rem; background: #fff; color: var(--foreground);
  font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form textarea { min-height: 140px; resize: vertical; }
.form .submit-row { margin-top: 1.5rem; }
.form .note { font-size: .8rem; color: var(--muted-foreground); margin-top: .75rem; }

.flash { padding: .85rem 1rem; border-radius: .55rem; margin-bottom: 1.25rem; font-size: .95rem; }
.flash.ok { background: #e8f7ee; color: #1f6e3a; border: 1px solid #bfe6cb; }
.flash.err { background: #fdecec; color: #9b2222; border: 1px solid #f1bcbc; }

/* Footer */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border); background: var(--gradient-soft); }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h3 { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--foreground); margin-bottom: 1rem; font-family: var(--font-sans); }
.footer-grid ul li { padding: .25rem 0; }
.footer-grid ul a { color: var(--muted-foreground); font-size: .9rem; }
.footer-grid ul a:hover { color: var(--primary); }
.footer-bottom { padding: 1.5rem 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .script { color: var(--primary); font-size: 1.1rem; }

.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); transition: all .2s; }
.socials a:hover { border-color: var(--primary); color: var(--primary); }

.muted { color: var(--muted-foreground); }
.center { text-align: center; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
