/*
Theme Name: Aurorae Media
Theme URI: https://auroraemedia.ae
Author: Aurorae Media
Description: Dark block theme for Aurorae Media with a live moving aurora and twinkling stars behind the whole site. Edit every page, the header and the footer in the WordPress editor.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurorae-media
*/

/* Most colours, fonts and sizes live in theme.json, and you can change them in
   Appearance > Editor > Styles. This file holds the finishing touches. */

:root {
	--aurorae-line: rgba(190, 215, 255, 0.14);
	--aurorae-soft: #c9d2e2;
}

body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--wp--preset--color--green); color: var(--wp--preset--color--night); }
:focus-visible { outline: 2px solid var(--wp--preset--color--cyan); outline-offset: 3px; }
html { scroll-behavior: smooth; }

/* ---------- Night sky canvases (added by assets/js/aurora.js) ---------- */
.aurorae-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
#stars.aurorae-canvas { z-index: 1; }
.wp-site-blocks { position: relative; z-index: 2; overflow-x: clip; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Small text styles you can pick from the block's Advanced > CSS class ---------- */
.aurorae-eyebrow {
	font-family: var(--wp--preset--font-family--label);
	font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
	color: var(--wp--preset--color--green);
	display: flex; align-items: center; gap: 14px;
}
.aurorae-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.aurorae-label {
	font-family: var(--wp--preset--font-family--label);
	font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.aurorae-muted { color: var(--wp--preset--color--muted); }
h1 em, h2 em, h3 em {
	font-style: normal; font-weight: 600;
	background: linear-gradient(100deg, #8dffc9, #9fe4ff 45%, #c7a4ff);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 strong, h2 strong, h3 strong { font-weight: 600; }

/* ---------- Header ---------- */
header.wp-block-template-part {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
	background: rgba(4, 6, 14, 0.5);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--aurorae-line);
}
.aurorae-header { padding-block: 14px; }
.aurorae-header .wp-block-site-logo img { display: block; }
.aurorae-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--muted); transition: color .2s; }
.aurorae-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--ink); }
@media (max-width: 600px) {
	.aurorae-header .wp-block-site-logo img { width: 104px !important; height: auto; }
	.aurorae-header > .wp-block-group { gap: 14px !important; }
	.aurorae-header .wp-block-button__link { padding: 11px 14px; white-space: nowrap; letter-spacing: 0.12em; }
}
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--night) !important; color: var(--wp--preset--color--ink) !important; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: transform .2s, box-shadow .3s; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 10px 40px -8px rgba(93,255,180,.55); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--ink);
	border: 1px solid var(--aurorae-line); padding: 13px 22px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); box-shadow: none; }

/* ---------- Hero ---------- */
.aurorae-hero { position: relative; isolation: isolate; padding-block: clamp(90px, 15vh, 170px) clamp(60px, 9vh, 110px); }
.aurorae-hero::before {
	content: ""; position: absolute; z-index: -1; inset: -30% -45% -25% -45%;
	background: radial-gradient(closest-side at 38% 50%, rgba(6,10,28,.42), rgba(6,10,28,.22) 50%, rgba(6,10,28,0) 100%);
	filter: blur(40px); pointer-events: none;
}
.aurorae-hero h1 { max-width: 13ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(4,8,24,.7), 0 0 3px rgba(4,8,24,.45); }
.aurorae-hero h1 em { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(2,6,20,.95)); }
.aurorae-lead { max-width: 52ch; color: #c3cde0; text-shadow: 0 1px 16px rgba(2,6,20,.9); }
.aurorae-coords {
	font-family: var(--wp--preset--font-family--label);
	font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; word-spacing: 0.4em;
	color: var(--wp--preset--color--muted);
	border-top: 1px solid var(--aurorae-line); padding-top: 18px; margin-top: 2.5rem !important;
}
.aurorae-coords strong { color: var(--wp--preset--color--ink); font-weight: 400; }

/* ---------- Sections ---------- */
.aurorae-section { padding-block: clamp(70px, 10vw, 130px); }
.aurorae-section h2 { max-width: 18ch; text-wrap: balance; }
.aurorae-head { margin-bottom: 48px !important; }
.aurorae-head p { max-width: 44ch; color: var(--wp--preset--color--muted); }
.aurorae-about p { color: var(--aurorae-soft); max-width: 58ch; }

/* Services */
.aurorae-services { border-top: 1px solid var(--aurorae-line); gap: 0 !important; }
.aurorae-services > * { margin-block: 0 !important; }
.aurorae-svc { position: relative; padding-block: 30px; border-bottom: 1px solid var(--aurorae-line); isolation: isolate; }
.aurorae-svc::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
	background: linear-gradient(90deg, rgba(93,255,180,.07), rgba(111,214,255,.05), rgba(162,107,255,.08));
}
.aurorae-svc:hover::after { opacity: 1; }
.aurorae-svc h3 { margin: 0; }
.aurorae-svc p { margin: 0; color: var(--wp--preset--color--muted); }
.aurorae-svc .aurorae-tags { color: var(--aurorae-soft); font-size: 9px; text-align: right; }
@media (max-width: 781px) { .aurorae-svc .aurorae-tags { text-align: left; } }

/* Work tiles */
.aurorae-tile { border-radius: 6px; overflow: hidden; }
.aurorae-tile .wp-block-cover__image-background { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.aurorae-tile:hover .wp-block-cover__image-background { transform: scale(1.05); }
.aurorae-tile h3 { font-size: 24px; font-weight: 400; margin-top: 6px; }
.aurorae-tile .aurorae-label { color: rgba(238,242,247,.75); }

/* Process */
.aurorae-steps > .wp-block-column { border-top: 1px solid var(--aurorae-line); padding-top: 26px; }
.aurorae-steps h3 { font-size: 22px; font-weight: 500; letter-spacing: 0; }
.aurorae-steps p:not(.aurorae-label) { color: var(--wp--preset--color--muted); font-size: 15.5px; }
.aurorae-steps .aurorae-label { color: var(--wp--preset--color--green); }

/* Contact */
.aurorae-cta { padding-block: clamp(90px, 13vw, 170px); }
.aurorae-cta h2 { font-size: clamp(44px, 8vw, 110px); font-weight: 200; max-width: 12ch; letter-spacing: -0.03em; }
.aurorae-mail { font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; }
.aurorae-mail a { text-decoration: none; border-bottom: 1px solid var(--aurorae-line); }

/* ---------- Footer ---------- */
footer.wp-block-template-part { background: rgba(4, 6, 14, 0.6); border-top: 1px solid var(--aurorae-line); }
.aurorae-footer { padding-block: 48px 40px; }
.aurorae-footer p { font-size: 15px; color: var(--aurorae-soft); line-height: 1.8; }
.aurorae-footer p.aurorae-label { font-size: 9.5px; color: var(--wp--preset--color--muted); margin-bottom: 4px; }
.aurorae-footer a { text-decoration: none; }
.aurorae-legal { margin-top: 48px !important; }
.aurorae-legal p { font-size: 13px; color: var(--wp--preset--color--muted); }

/* ---------- Ordinary pages and posts ---------- */
.aurorae-page { padding-block: clamp(60px, 9vw, 120px); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
