/*
Theme Name: Carbon SEO
Theme URI: https://carbonautomations.com/
Author: Carbon Automations
Description: Block theme matching the Carbon Automations look and feel, built for local SEO and AI search (AEO). Dark UI, orange accent, schema output built in.
Version: 0.4.2
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: carbon-seo
*/

:root { --c-orange: #ff6b35; --c-teal: #2dd4a0; }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Page glow, mimics the light-ray hero on the live site */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 95% 10%, rgba(255,107,53,.28), transparent 60%),
    radial-gradient(700px 500px at 100% 55%, rgba(45,212,160,.14), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(255,255,255,.05), transparent 60%);
}

/* Header */
.c-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(7,8,12,.72); border-bottom: 1px solid var(--wp--preset--color--border); }
.c-header .wp-block-navigation a { color: var(--wp--preset--color--muted); font-weight: 500; text-decoration: none; }
.c-header .wp-block-navigation a:hover { color: var(--wp--preset--color--text); }
.c-logo { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.15rem; margin: 0; }
.c-logo a { color: var(--wp--preset--color--text); text-decoration: none; }
.c-logo span { color: var(--c-orange); }

/* Brand: diamond mark + wordmark */
.c-brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.15rem; line-height: 1; color: var(--wp--preset--color--text); text-decoration: none; }
.c-brand__mark { width: 36px; height: auto; flex: none; color: var(--c-orange); }
.c-brand__accent { color: var(--c-orange); }
.c-footer .c-brand { color: var(--wp--preset--color--text); }
.c-footer .c-brand:hover { color: var(--wp--preset--color--text); }

/* Eyebrow pill */
.c-pill { display: inline-block; padding: .35rem .9rem; border-radius: 999px; border: 1px solid rgba(255,107,53,.45); background: rgba(255,107,53,.08); color: #ff8a5c; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.25rem; }
.c-pill.has-text-align-center { display: table; margin-inline: auto; margin-bottom: 1.25rem; }
.c-pill--teal { border-color: rgba(45,212,160,.45); background: rgba(45,212,160,.08); color: var(--c-teal); }

/* Headings */
.c-hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.08; letter-spacing: -.02em; }
.c-accent { color: var(--c-orange); }
/* Vertical rhythm: 40px between sections and major elements */
:root { --c-gap: 40px; }
.c-section, .c-hero { padding-block: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
main.wp-block-group { padding-top: var(--c-gap); padding-bottom: var(--c-gap); }
main.wp-block-group > * + *,
.wp-block-post-content > * + * { margin-block-start: var(--c-gap) !important; }
.c-section > .wp-block-columns:not(:first-child),
.c-section > .wp-block-buttons:not(:first-child),
.c-section > .wp-block-details:first-of-type { margin-top: var(--c-gap) !important; }
.c-stats { margin-top: var(--c-gap) !important; }
.c-center { text-align: center; }
.c-lede { color: var(--wp--preset--color--muted); font-size: 1.15rem; max-width: 46rem; margin-inline: auto; }

/* Buttons: pill, orange primary, ghost secondary */
.wp-block-button__link { border-radius: 999px; font-weight: 600; padding: .8rem 1.6rem; transition: transform .15s ease, box-shadow .15s ease; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--c-orange); color: #0a0a0a; box-shadow: 0 6px 24px rgba(255,107,53,.28); }
.wp-block-button.is-style-outline .wp-block-button__link { background: rgba(255,255,255,.04); color: var(--wp--preset--color--text); border: 1px solid var(--wp--preset--color--border); }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Cards */
.c-card { background: linear-gradient(160deg, rgba(20,24,36,.95), rgba(11,13,20,.95)); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; }
.c-card--ai { background: radial-gradient(500px 300px at 0% 0%, rgba(45,212,160,.12), transparent 60%), linear-gradient(160deg, rgba(20,24,36,.95), rgba(11,13,20,.95)); }
.c-card--mkt { background: radial-gradient(500px 300px at 100% 0%, rgba(255,107,53,.14), transparent 60%), linear-gradient(160deg, rgba(20,24,36,.95), rgba(11,13,20,.95)); }
.c-card--popular { border-color: rgba(255,107,53,.6); box-shadow: 0 0 0 1px rgba(255,107,53,.25), 0 20px 60px rgba(255,107,53,.12); }
.c-price { color: var(--wp--preset--color--text) !important; font-family: var(--wp--preset--font-family--heading); font-size: 2.5rem; font-weight: 600; margin: .25rem 0 1rem; }
.c-price small { font-size: 1rem; color: var(--wp--preset--color--muted); font-weight: 400; }

/* Full-width photo hero (home) */
main.wp-block-group > .c-herofull:first-child { margin-top: calc(-1 * var(--c-gap)) !important; }
.c-herofull { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, 82vh, 780px); padding-block: 64px; }
.c-herofull > * { margin: 0 !important; }
.c-herofull__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: 0; }
.c-herofull::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,8,12,.9) 0%, rgba(7,8,12,.72) 45%, rgba(7,8,12,.3) 100%),
    linear-gradient(180deg, rgba(7,8,12,.35) 0%, rgba(7,8,12,0) 30%, rgba(7,8,12,.85) 100%); }
.c-herofull > .c-herofull__inner { position: relative; z-index: 2; width: 100%; max-width: 1140px; margin-inline: auto !important; padding-inline: 24px; box-sizing: border-box; }
.c-hero-copy { max-width: 700px; margin-inline: 0 !important; }
.c-hero-copy h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.c-hero-copy .c-lede { margin-inline: 0; color: #d3d8e2; }
.c-hero-copy .c-stats { margin-top: 32px !important; gap: 2rem; }
@media (max-width: 781px) {
  .c-herofull { min-height: 0; padding-block: 48px; }
  .c-herofull::before { background: linear-gradient(180deg, rgba(7,8,12,.82), rgba(7,8,12,.78)); }
}

/* Photos */
.c-photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 24px; border: 1px solid var(--wp--preset--color--border); }
.c-photo--sq { aspect-ratio: 1 / 1; }
.c-photo--45 { aspect-ratio: 4 / 5; }
.c-photo--43 { aspect-ratio: 4 / 3; }
.c-photo--169 { aspect-ratio: 16 / 10; }
.c-card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.c-card--media > * { margin: 0 !important; }
.c-card--media .c-photo { border-radius: 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.c-media-body { padding: clamp(1.25rem, 3vw, 2rem); }
.c-media-body > * + * { margin-top: 1rem; }
a.c-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.c-card--media:hover { border-color: rgba(255,107,53,.5); }
.c-more { color: var(--c-orange); font-weight: 600; }

/* Embedded booking calendar */
.c-booking { border-radius: 24px; overflow: hidden; border: 1px solid var(--wp--preset--color--border); background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); }

/* Check lists */
.c-checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.c-checks li { padding-left: 1.75rem; margin-bottom: .6rem; position: relative; color: #c9ced8; }
.c-checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--c-teal); font-weight: 700; }
.c-card--mkt .c-checks li::before, .c-card--popular .c-checks li::before { color: var(--c-orange); }

/* Stats row */
.c-stats { gap: 2.5rem; }
.c-stat strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 2rem; }
.c-stat span { color: var(--wp--preset--color--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

/* FAQ (core/details) */
.wp-block-details { border: 1px solid var(--wp--preset--color--border); border-radius: 16px; padding: 1rem 1.4rem; margin-bottom: .75rem; background: rgba(14,16,23,.8); }
.wp-block-details summary { cursor: pointer; font-weight: 600; font-family: var(--wp--preset--font-family--heading); font-size: 1.1rem; }
.wp-block-details p { color: #c9ced8; margin-top: .75rem; }

/* Footer */
.c-footer { border-top: 1px solid var(--wp--preset--color--border); }
.c-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.c-footer a:hover { color: var(--wp--preset--color--text); }

/* Mobile */
@media (max-width: 781px) {
  .c-stats { gap: 1.25rem; }
  .c-card { border-radius: 18px; }
}
